blob: 953437bec1b14fd9cdc569cad62a1a1b99315950 (
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
|
/* 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/. */
.card-container {
padding: 8px;
border-radius: 8px;
background-color: var(--fxview-background-color-secondary);
margin-block-end: 24px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
&[isOpenTabsView] {
margin-block-end: 0;
}
}
@media (prefers-contrast) {
.card-container {
border: 1px solid CanvasText;
}
}
.card-container-header {
display: inline-flex;
gap: 14px;
width: 100%;
align-items: center;
cursor: pointer;
border-radius: 1px;
outline-offset: 4px;
padding: 6px;
padding-inline-end: 0;
margin-block-end: 6px;
height: 24px;
}
.card-container-header[withViewAll] {
width: 83%;
}
.card-container-header[hidden] {
display: none;
}
.card-container-header[toggleDisabled] {
cursor: auto;
}
.view-all-link {
color: var(--fxview-primary-action-background);
float: inline-end;
outline-offset: 6px;
border-radius: 1px;
width: 12%;
text-align: end;
padding: 6px;
padding-inline-start: 0;
}
.card-container-header:focus-visible,
.view-all-link:focus-visible {
outline: 2px solid var(--in-content-focus-outline-color);
}
.chevron-icon {
background-image: url("chrome://global/skin/icons/arrow-up.svg");
padding: 2px;
display: inline-block;
justify-self: start;
fill: currentColor;
margin-block: 0;
width: 16px;
height: 16px;
background-position: center;
-moz-context-properties: fill;
border: none;
background-color: transparent;
background-repeat: no-repeat;
border-radius: 4px;
}
.chevron-icon:hover {
background-color: var(--fxview-element-background-hover);
}
@media (prefers-contrast) {
.chevron-icon {
border: 1px solid ButtonText;
color: ButtonText;
}
.chevron-icon:hover {
border: 1px solid SelectedItem;
color: SelectedItem;
}
.chevron-icon:active {
color: SelectedItem;
}
.chevron-icon,
.chevron-icon:hover,
.chevron-icon:active {
background-color: ButtonFace;
}
}
.card-container:not([open]) .chevron-icon {
background-image: url("chrome://global/skin/icons/arrow-down.svg");
}
.card-container:not([open]) a {
display: none;
}
::slotted([slot=header]),
::slotted([slot=secondary-header]) {
align-self: center;
margin: 0;
font-size: 1.13em;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
user-select: none;
white-space: nowrap;
}
::slotted([slot=header]) {
flex: 1;
width: 0;
}
::slotted([slot=secondary-header]) {
padding-inline-end: 1em;
}
.card-container-footer {
display: flex;
justify-content: center;
color: var(--fxview-primary-action-background);
cursor: pointer;
}
::slotted([slot=footer]:not([hidden])) {
text-decoration: underline;
display: inline-block;
outline-offset: 2px;
border-radius: 2px;
margin-block: 0.5rem;
}
@media (max-width: 39rem) {
.card-container-header[withViewAll] {
width: 76%;
}
.view-all-link {
width: 20%;
}
}
.card-container.inner {
border: 1px solid var(--fxview-border);
box-shadow: none;
margin-block: 8px 0;
}
details.empty-state {
box-shadow: none;
border: 1px solid var(--fxview-border);
border-radius: 8px;
}
|