fune/browser/components/firefoxview/view-opentabs.css
Nikki Sharpley 0b7ab691d4 Bug 1864505 - Move "Connect another device" button to top of the page of "Tabs from other devices" r=desktop-theme-reviewers,fxview-reviewers,kcochrane
- Moved "footer" to within sticky container above cards and renamed to "header".
- Update "Connect another device" button to use the `.small-button` styling
- Conditionally display `Recently closed tabs` `h2` on the corresponding view only (an existing bug revealed in this patch)
- Update `.sticky-container` to reflect upcoming styling with the inclusion of search and other secondary headers.

Please see link to bug for screenshot of intended appearance.

Differential Revision: https://phabricator.services.mozilla.com/D193930
2023-12-04 17:16:29 +00:00

25 lines
597 B
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/. */
.view-opentabs-card-container {
display: grid;
gap: 1em;
}
[card-count="one"] {
grid-template-columns: 1fr;
}
[card-count="two"] {
grid-template-columns: repeat(2, 1fr);
}
[card-count="three-or-more"] {
grid-template-columns: repeat(3, 1fr);
@media (max-width: 85rem) {
/* Switch to 2-column layout on narrow viewports */
grid-template-columns: repeat(2, 1fr);
}
}