зеркало из https://github.com/mozilla/gecko-dev.git
134 строки
4.5 KiB
CSS
134 строки
4.5 KiB
CSS
%if 0
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
%endif
|
|
|
|
/* General popup rules */
|
|
|
|
#PopupAutoComplete > richlistbox > richlistitem {
|
|
min-height: 20px;
|
|
border: 0;
|
|
border-radius: 0;
|
|
padding: 0px 1px 0px 1px;
|
|
}
|
|
|
|
#PopupAutoComplete > richlistbox > richlistitem > .ac-site-icon {
|
|
margin-inline-start: 4px;
|
|
margin-inline-end: 0;
|
|
}
|
|
|
|
#PopupAutoComplete > richlistbox > richlistitem > .ac-title {
|
|
font: icon;
|
|
margin-inline-start: 4px;
|
|
}
|
|
|
|
#PopupAutoComplete > richlistbox {
|
|
padding: 0;
|
|
}
|
|
|
|
/* Popup states */
|
|
|
|
.autocomplete-richlistitem:hover {
|
|
background-color: var(--arrowpanel-dimmed);
|
|
}
|
|
|
|
.autocomplete-richlistitem[selected] {
|
|
background-color: Highlight;
|
|
color: HighlightText;
|
|
}
|
|
|
|
/* Autocomplete richlistitem support for a two-line label display */
|
|
|
|
#PopupAutoComplete > richlistbox > richlistitem > .two-line-wrapper {
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: row;
|
|
margin: 0;
|
|
}
|
|
|
|
#PopupAutoComplete > richlistbox > richlistitem > .two-line-wrapper > .ac-site-icon {
|
|
margin-inline-start: auto;
|
|
margin-inline-end: 4px;
|
|
}
|
|
|
|
#PopupAutoComplete > richlistbox > richlistitem > .two-line-wrapper > .labels-wrapper {
|
|
/* The text should flex while the icon should not */
|
|
flex: 1;
|
|
/* width/min-width are needed to get the text-overflow: ellipsis to work for the children */
|
|
min-width: 0;
|
|
width: 0;
|
|
}
|
|
|
|
#PopupAutoComplete > richlistbox > richlistitem > .two-line-wrapper > .labels-wrapper > .label-row {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#PopupAutoComplete > richlistbox > richlistitem > .two-line-wrapper > .labels-wrapper > .line2-label {
|
|
padding-top: 2px !important;
|
|
opacity: .6;
|
|
}
|
|
|
|
/* Login form autocompletion (with and without origin showing) and generated passwords */
|
|
#PopupAutoComplete > richlistbox > richlistitem[originaltype="generatedPassword"] > .two-line-wrapper > .ac-site-icon,
|
|
#PopupAutoComplete > richlistbox > richlistitem[originaltype="loginWithOrigin"] > .two-line-wrapper > .ac-site-icon,
|
|
#PopupAutoComplete > richlistbox > richlistitem[originaltype="login"] > .ac-site-icon {
|
|
display: initial;
|
|
list-style-image: url(chrome://browser/skin/login.svg);
|
|
-moz-context-properties: fill;
|
|
fill: GrayText;
|
|
}
|
|
|
|
#PopupAutoComplete > richlistbox > richlistitem[originaltype="generatedPassword"][selected] > .two-line-wrapper > .ac-site-icon,
|
|
#PopupAutoComplete > richlistbox > richlistitem[originaltype="loginWithOrigin"][selected] > .two-line-wrapper > .ac-site-icon,
|
|
#PopupAutoComplete > richlistbox > richlistitem[originaltype="login"] > .ac-site-icon[selected] {
|
|
fill: HighlightText;
|
|
}
|
|
|
|
/* Login form autocompletion with origin showing and generated passwords */
|
|
#PopupAutoComplete > richlistbox > richlistitem[originaltype="generatedPassword"],
|
|
#PopupAutoComplete > richlistbox > richlistitem[originaltype="loginWithOrigin"] {
|
|
padding: 4px;
|
|
}
|
|
|
|
#PopupAutoComplete > richlistbox > richlistitem[originaltype="generatedPassword"] > .two-line-wrapper > .labels-wrapper > .line2-label {
|
|
font-family: monospace;
|
|
}
|
|
|
|
#PopupAutoComplete > richlistbox > richlistitem[originaltype="login"] + richlistitem[originaltype="generatedPassword"],
|
|
#PopupAutoComplete > richlistbox > richlistitem[originaltype="loginWithOrigin"] + richlistitem[originaltype="generatedPassword"] {
|
|
/* Separator between logins and generated passwords. This uses --panel-separator-color from default
|
|
* themes since autocomplete doesn't yet switch to dark. */
|
|
border-top: 1px solid hsla(210,4%,10%,.14);
|
|
}
|
|
|
|
/* Insecure field warning */
|
|
#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"] {
|
|
background-color: var(--arrowpanel-dimmed);
|
|
border-bottom: 1px solid var(--panel-separator-color);
|
|
padding-bottom: 4px;
|
|
padding-top: 4px;
|
|
}
|
|
|
|
#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"][selected] {
|
|
background-color: var(--arrowpanel-dimmed-further);
|
|
color: -moz-DialogText;
|
|
}
|
|
|
|
#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"] > .ac-title {
|
|
color: GrayText;
|
|
font-size: 1em;
|
|
}
|
|
|
|
#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"][selected] > .ac-title {
|
|
color: inherit;
|
|
}
|
|
|
|
#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"] > .ac-site-icon {
|
|
list-style-image: url(chrome://browser/skin/connection-mixed-active-loaded.svg);
|
|
-moz-context-properties: fill;
|
|
fill: GrayText;
|
|
}
|