fune/browser/extensions/formautofill/content/manageDialog.css
Kestrel 09bcf261f4 Bug 1546585 - Fix about:preferences Saved Addresses list alternate row background color for dark mode r=ntim. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D28802

--HG--
extra : source : 82a99a3ad6682ed02122d4444795010a691c55e8
extra : amend_source : cb63ae9f64af23907a9b90036ba133cd179629c6
2019-04-25 12:32:17 +00:00

131 lines
3 KiB
CSS

/* 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/. */
html {
/* Prevent unnecessary horizontal scroll bar from showing */
overflow-x: hidden;
}
div {
display: flex;
}
button {
padding-right: 10px;
padding-left: 10px;
}
fieldset {
margin: 0;
padding: 0;
border: none;
}
fieldset > legend {
box-sizing: border-box;
width: 100%;
padding: 0.4em 0.7em;
color: #808080;
background-color: var(--in-content-box-background-hover);
border: 1px solid var(--in-content-box-border-color);
border-radius: 2px 2px 0 0;
-moz-user-select: none;
}
option:nth-child(even) {
background-color: var(--in-content-box-background-odd);
}
#addresses,
#credit-cards {
width: 100%;
height: 16.6em;
margin: 0;
border-top: none;
border-radius: 0 0 2px 2px;
}
#addresses > option,
#credit-cards > option {
display: flex;
align-items: center;
height: 1.6em;
padding-inline-start: 0.6em;
}
#controls-container {
flex: 0 1 100%;
justify-content: end;
margin-top: 1em;
}
#remove {
margin-inline-start: 0;
margin-inline-end: auto;
}
#edit {
margin-inline-end: 0;
}
#credit-cards > option::before {
content: "";
background: url("icon-credit-card-generic.svg") no-repeat;
background-size: contain;
float: left;
width: 16px;
height: 16px;
padding-inline-end: 10px;
}
/*
We use .png / @2x.png images where we don't yet have a vector version of a logo
*/
#credit-cards.branded > option[cc-type="amex"]::before {
background-image: url("third-party/cc-logo-amex.png");
}
#credit-cards.branded > option[cc-type="cartebancaire"]::before {
background-image: url("third-party/cc-logo-cartebancaire.png");
}
#credit-cards.branded > option[cc-type="diners"]::before {
background-image: url("third-party/cc-logo-diners.svg");
}
#credit-cards.branded > option[cc-type="discover"]::before {
background-image: url("third-party/cc-logo-discover.png");
}
#credit-cards.branded > option[cc-type="jcb"]::before {
background-image: url("third-party/cc-logo-jcb.svg");
}
#credit-cards.branded > option[cc-type="mastercard"]::before {
background-image: url("third-party/cc-logo-mastercard.svg");
}
#credit-cards.branded > option[cc-type="mir"]::before {
background-image: url("third-party/cc-logo-mir.svg");
}
#credit-cards.branded > option[cc-type="unionpay"]::before {
background-image: url("third-party/cc-logo-unionpay.svg");
}
#credit-cards.branded > option[cc-type="visa"]::before {
background-image: url("third-party/cc-logo-visa.svg");
}
@media (min-resolution: 1.1dppx) {
#credit-cards.branded > option[cc-type="amex"]::before {
background-image: url("third-party/cc-logo-amex@2x.png");
}
#credit-cards.branded > option[cc-type="cartebancaire"]::before {
background-image: url("third-party/cc-logo-cartebancaire@2x.png");
}
#credit-cards.branded > option[cc-type="discover"]::before {
background-image: url("third-party/cc-logo-discover@2x.png");
}
}