Bug 1944627 - update sidebar button checked state for non-revamped sidebar cases...
[gecko.git] / browser / components / firefoxview / card-container.css
blob0c6a81899bc7348dee0db43d98fe7816fefb53e7
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 .card-container {
6 padding: 8px;
7 border-radius: 8px;
8 background-color: var(--fxview-background-color-secondary);
9 margin-block-end: 24px;
10 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
12 &[isOpenTabsView] {
13 margin-block-end: 0;
17 @media (forced-colors) or (prefers-contrast) {
18 .card-container {
19 border: 1px solid var(--fxview-border);
23 .card-container-header {
24 display: inline-flex;
25 gap: 14px;
26 width: 100%;
27 align-items: center;
28 cursor: pointer;
29 border-radius: 1px;
30 outline-offset: 4px;
31 padding: 6px;
32 padding-inline-end: 0;
33 margin-block-end: 6px;
34 height: 24px;
37 .card-container-header[withViewAll] {
38 width: 83%;
41 .card-container-header[hidden] {
42 display: none;
45 .card-container-header[toggleDisabled] {
46 cursor: auto;
49 .view-all-link {
50 color: var(--fxview-primary-action-background);
51 float: inline-end;
52 outline-offset: 6px;
53 border-radius: 1px;
54 width: 12%;
55 text-align: end;
56 padding: 6px;
57 padding-inline-start: 0;
60 .card-container-header:focus-visible,
61 .view-all-link:focus-visible {
62 outline: 2px solid var(--in-content-focus-outline-color);
65 .chevron-icon {
66 background-image: url("chrome://global/skin/icons/arrow-up.svg");
67 padding: 2px;
68 display: inline-block;
69 justify-self: start;
70 fill: currentColor;
71 margin-block: 0;
72 width: 16px;
73 height: 16px;
74 background-position: center;
75 -moz-context-properties: fill;
76 border: none;
77 background-color: transparent;
78 background-repeat: no-repeat;
79 border-radius: 4px;
82 .chevron-icon:hover {
83 background-color: var(--fxview-element-background-hover);
86 @media (forced-colors) {
87 .chevron-icon {
88 border: 1px solid ButtonText;
89 color: ButtonText;
92 .chevron-icon:hover {
93 border: 1px solid SelectedItem;
94 color: SelectedItem;
97 .chevron-icon:active {
98 color: SelectedItem;
101 .chevron-icon,
102 .chevron-icon:hover,
103 .chevron-icon:active {
104 background-color: ButtonFace;
108 .card-container:not([open]) .chevron-icon {
109 background-image: url("chrome://global/skin/icons/arrow-down.svg");
112 .card-container:not([open]) a {
113 display: none;
116 ::slotted([slot=header]),
117 ::slotted([slot=secondary-header]) {
118 align-self: center;
119 margin: 0;
120 font-size: 1.13em;
121 font-weight: 600;
122 overflow: hidden;
123 text-overflow: ellipsis;
124 user-select: none;
125 white-space: nowrap;
128 ::slotted([slot=header]) {
129 flex: 1;
130 width: 0;
133 ::slotted([slot=secondary-header]) {
134 padding-inline-end: 1em;
137 .card-container-footer {
138 display: flex;
139 justify-content: center;
140 color: var(--fxview-primary-action-background);
141 cursor: pointer;
144 ::slotted([slot=footer]:not([hidden])) {
145 text-decoration: underline;
146 display: inline-block;
147 outline-offset: 2px;
148 border-radius: 2px;
149 margin-block: 0.5rem;
152 @media (max-width: 39rem) {
153 .card-container-header[withViewAll] {
154 width: 76%;
156 .view-all-link {
157 width: 20%;
161 .card-container.inner {
162 border: 1px solid var(--fxview-border);
163 box-shadow: none;
164 margin-block: 8px 0;
167 details.empty-state {
168 box-shadow: none;
169 border: 1px solid var(--fxview-border);
170 border-radius: 8px;