Update autocomplete, add dark mode support

pull/2695/head
Daniel Supernault 4 years ago
parent de514f7d76
commit d1d74707a7
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -154,3 +154,56 @@ hr {
.border { .border {
border-color: #282828 !important; border-color: #282828 !important;
} }
.tribute-container {
position: absolute;
top: 0;
left: 0;
height: auto;
max-height: 300px;
min-width: 120px;
max-width: 500px;
overflow: auto;
display: block;
z-index: 999999;
border-radius: 4px;
border: 1px solid #282828;
ul {
margin: 0;
margin-top: 2px;
padding: 0;
list-style: none;
background: #181818;
border-radius: 4px;
border: 1px solid #282828;
background-clip: padding-box;
overflow: hidden;
}
li {
color: #ADAFAE;
padding: 5px 15px;
cursor: pointer;
font-size: 14px;
overflow-x: hidden !important;
span {
font-weight: bold;
}
&.highlight,
&:hover {
background: #11304c;
color: #fff;
}
&.no-match {
cursor: default;
}
}
.menu-highlighted {
font-weight: bold;
}
}

@ -603,16 +603,15 @@ details summary::-webkit-details-marker {
height: auto; height: auto;
max-height: 300px; max-height: 300px;
min-width: 120px; min-width: 120px;
max-width: 100vw; max-width: 500px;
overflow: auto; overflow: auto;
display: block; display: block;
z-index: 999999; z-index: 999999;
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 4px; border-radius: 4px;
box-shadow: 0 1px 4px rgba(#000, 0.13); box-shadow: 0 1px 4px rgba(#000, 0.13);
}
.tribute-container ul { ul {
margin: 0; margin: 0;
margin-top: 2px; margin-top: 2px;
padding: 0; padding: 0;
@ -622,30 +621,27 @@ details summary::-webkit-details-marker {
border: 1px solid rgba(#000, 0.13); border: 1px solid rgba(#000, 0.13);
background-clip: padding-box; background-clip: padding-box;
overflow: hidden; overflow: hidden;
} }
.tribute-container li { li {
color: #000; color: #000;
padding: 5px 15px; padding: 5px 15px;
cursor: pointer; cursor: pointer;
font-size: 14px; font-size: 14px;
overflow-x: hidden !important; overflow-x: hidden !important;
}
.tribute-container li.highlight, &.highlight,
.tribute-container li:hover { &:hover {
background: #2c78bf; background: #2c78bf;
color: #fff; color: #fff;
} }
.tribute-container li span {
font-weight: bold;
}
.tribute-container li.no-match { &.no-match {
cursor: default; cursor: default;
} }
}
.tribute-container .menu-highlighted { .menu-highlighted {
font-weight: bold; font-weight: bold;
}
} }

Loading…
Cancel
Save