blob: f347c79118916b62b4901248315641ea6ad40891 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
/* 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-inline: 10px;
}
fieldset {
margin: 0 4px;
padding: 0;
border: none;
}
fieldset > legend {
box-sizing: border-box;
width: 100%;
padding: 0.4em 0.7em;
background-color: var(--in-content-box-background);
border: 1px solid var(--in-content-box-border-color);
border-radius: 2px 2px 0 0;
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;
padding-inline: 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 {
margin-top: 1em;
}
#remove {
margin-inline-end: auto;
}
#credit-cards > option::before {
content: "";
background: url("icon-credit-card-generic.svg") no-repeat;
background-size: contain;
float: inline-start;
width: 16px;
height: 16px;
padding-inline-end: 10px;
-moz-context-properties: fill;
fill: currentColor;
}
/*
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");
}
}
|