Files
tubestation/browser/components/firefoxview/card-container.css
agoloman 63c83deb26 Revert "Bug 1606785 - Enable Prettier for CSS files r=desktop-theme-reviewers,Standard8,frontend-codestyle-reviewers,emilio" for causing multiple failures.
This reverts commit ec5fa1d4c0.

Revert "Bug 1606785 - Format Firefox CSS files with Prettier r=desktop-theme-reviewers,perftest-reviewers,places-reviewers,translations-reviewers,omc-reviewers,backup-reviewers,browser-installer-reviewers,sparky,dao,pdahiya,nrishel,kpatenio"

This reverts commit baa5d72bbd.

Revert "Bug 1606785 - Format browser/themes and toolkit/themes CSS files with Prettier r=desktop-theme-reviewers,pip-reviewers,tabbrowser-reviewers,places-reviewers,dao,mconley"

This reverts commit 9604b0a8ae.

Revert "Bug 1606785 - Format browser/themes/preferences CSS files with Prettier r=settings-reviewers,desktop-theme-reviewers,dao,mconley"

This reverts commit 686c1cf85f.

Revert "Bug 1606785 - Format urlbar CSS files with Prettier r=urlbar-reviewers,desktop-theme-reviewers,dao"

This reverts commit a7a4f31251.

Revert "Bug 1606785 - Format webcompat CSS files with Prettier r=webcompat-reviewers,denschub"

This reverts commit 41bc4d5237.

Revert "Bug 1606785 - Format search CSS files with Prettier r=search-reviewers,jteow"

This reverts commit 7bb7f82374.

Revert "Bug 1606785 - Format dom CSS files with Prettier r=emilio"

This reverts commit c22e910235.

Revert "Bug 1606785 - Format android CSS files with Prettier r=geckoview-reviewers,hiro"

This reverts commit c08e43fc3d.

Revert "Bug 1606785 - Format layout CSS files with Prettier r=layout-reviewers,dholbert"

This reverts commit 4f2a32d1a4.

Revert "Bug 1606785 - Format devtools CSS files with Prettier r=devtools-reviewers,nchevobbe,frontend-codestyle-reviewers"

This reverts commit c05f675ddf.

Revert "Bug 1606785 - Format recomp CSS files with Prettier r=reusable-components-reviewers,desktop-theme-reviewers,dao,mkennedy"

This reverts commit b10c7de8d0.

Revert "Bug 1606785 - Format sidebar CSS files with Prettier r=sidebar-reviewers,desktop-theme-reviewers,dao,nsharpley"

This reverts commit d32c555e37.

Revert "Bug 1606785 - Format shopping CSS files with Prettier r=shopping-reviewers,desktop-theme-reviewers,dao,rking"

This reverts commit 965887a708.

Revert "Bug 1606785 - Format profiles CSS files with Prettier r=profiles-reviewers,desktop-theme-reviewers,dao,mossop"

This reverts commit 8338860f74.

Revert "Bug 1606785 - Format genai and ml CSS files with Prettier r=firefox-ai-ml-reviewers,Mardak"

This reverts commit d66681f553.

Revert "Bug 1606785 - Format firefoxview CSS files with Prettier r=fxview-reviewers,desktop-theme-reviewers,dao,jsudiaman"

This reverts commit 530b815cad.

Revert "Bug 1606785 - Format aboutlogins, megalist, and form autofill CSS files with Prettier r=credential-management-reviewers,mtigley,desktop-theme-reviewers,dao"

This reverts commit 813c864381.
2025-05-21 04:49:28 +00:00

172 lines
3.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/. */
.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 (forced-colors) or (prefers-contrast) {
.card-container {
border: 1px solid var(--fxview-border);
}
}
.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 (forced-colors) {
.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;
}