X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fglobal%2Fautocomplete.css;h=7096b319b03627454d0629b5b0af0d87f7b6321d;hp=4d44a49c91a353cabc3f48bd3c99f5ecb7cd0264;hb=733b8160a969082eaced76ea726f998a2c32e0a7;hpb=37953ab48bd07b740b15610e6b7acb2f10333996 diff --git a/LCARStrek/global/autocomplete.css b/LCARStrek/global/autocomplete.css index 4d44a49c..7096b319 100644 --- a/LCARStrek/global/autocomplete.css +++ b/LCARStrek/global/autocomplete.css @@ -122,19 +122,45 @@ panel[type="autocomplete-richlistbox"], overflow-x: hidden !important; } +.autocomplete-richlistitem { + padding: 1px 2px; +} + .autocomplete-richlistitem[selected="true"] { background-color: #008484; color: #000000; } -.autocomplete-richlistitem { - padding: 1px 2px; -} - .autocomplete-richlistitem:not(:first-child) { border-top: 1px solid #E7ADE7; } +.ac-title-box { +} + +.ac-url-box { + /* When setting a vertical margin here, half of that needs to be added + .ac-title-box's translateY for when .ac-url-box is hidden (see below). */ +/* margin: 1px 0 4px;*/ +} + +.autocomplete-richlistitem[actiontype="keyword"] .ac-url-box, +.autocomplete-richlistitem[actiontype="searchengine"] .ac-url-box, +.autocomplete-richlistitem[actiontype="visiturl"] .ac-url-box, +.autocomplete-richlistitem[type~="autofill"] .ac-url-box { + visibility: hidden; +} + +.autocomplete-richlistitem[actiontype="keyword"] .ac-title-box, +.autocomplete-richlistitem[actiontype="searchengine"] .ac-title-box, +.autocomplete-richlistitem[actiontype="visiturl"] .ac-title-box, +.autocomplete-richlistitem[type~="autofill"] .ac-title-box { + /* Center the title by moving it down by half of .ac-url-box's height, + including vertical margins (if any). */ +/* transform: translateY(calc(.5em + 2px));*/ + transform: translateY(calc(.5em)); +} + .ac-site-icon { width: 16px; height: 16px; @@ -178,10 +204,6 @@ html|span.ac-emphasize-text { text-decoration: underline; } -html|span.ac-emphasize-alt { - text-decoration: underline; -} - .ac-title, .ac-url { overflow: hidden; }