Adds a third "small" size to the Nova Focus Timer widget on New Tab, alongside the existing medium and large sizes. Small is a compact, vertically centered layout matching the Figma design: a progress ring with the play/pause control, a single editable duration row when idle, and just the ring plus remaining time while running or paused. It has no manual Focus/Break toggle (the timer auto-cycles) and no reset control; the completion celebration reuses the shared animation but shows only the headline. The classic (non-Nova) layout is untouched. Differential Revision: https://phabricator.services.mozilla.com/D309283
16494 lines
566 KiB
CSS
16494 lines
566 KiB
CSS
@charset "UTF-8";
|
|
/* 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/. */
|
|
/* 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/. */
|
|
/* DO NOT EDIT this file directly, instead modify the relevant *.nova.tokens.json file
|
|
* and run `mach buildtokens` to see your changes. */
|
|
/*
|
|
* @backward-compat { version 155 }
|
|
* Nova design token overrides are gated on the `browser.design-tokens.nova` pref in
|
|
* tokens-shared.css, which is NOT enabled when HNT ships its Nova experience (gated
|
|
* on `browser.newtabpage.activity-stream.nova.enabled`). Since the newtab extension
|
|
* can train-hop, it cannot rely on toolkit CSS behind a pref gate. This file provides
|
|
* those token values directly so nova/activity-stream.css is self-contained.
|
|
* Remove this file when `browser.nova.enabled` unifies both prefs and reaches Release.
|
|
*/
|
|
:root.nova-tokens {
|
|
/** background-color **/
|
|
--background-color-box: light-dark(var(--color-white), var(--color-gray-70));
|
|
--background-color-box-info: light-dark(var(--color-gray-15), var(--color-gray-65));
|
|
--background-color-canvas: light-dark(var(--color-gray-05), var(--color-gray-85));
|
|
--background-color-critical: light-dark(var(--color-red-10), var(--color-red-70));
|
|
--background-color-information: light-dark(var(--color-violet-10), var(--color-violet-70));
|
|
--background-color-success: light-dark(var(--color-green-10), var(--color-green-70));
|
|
--background-color-warning: light-dark(var(--color-yellow-10), var(--color-yellow-70));
|
|
/** border **/
|
|
--border-color: light-dark(var(--color-gray-30), var(--color-gray-45));
|
|
--border-color-deemphasized: light-dark(var(--color-gray-20), var(--color-gray-55));
|
|
--border-color-error: light-dark(var(--color-red-50), var(--color-red-20));
|
|
--border-color-interactive: light-dark(var(--color-gray-35), var(--color-gray-50));
|
|
--border-color-interactive-disabled: light-dark(var(--color-gray-25), var(--color-gray-60));
|
|
--border-color-transparent: transparent;
|
|
--border-radius-xsmall: 4px;
|
|
--border-radius-small: 8px;
|
|
--border-radius-medium: 12px;
|
|
--border-radius-xlarge: 24px;
|
|
/** box-shadow **/
|
|
--box-shadow-color-darker-layer-1: light-dark(rgba(0, 0, 0, 15%), rgba(0, 0, 0, 20%));
|
|
--box-shadow-color-darker-layer-2: light-dark(rgba(0, 0, 0, 20%), rgba(0, 0, 0, 40%));
|
|
--box-shadow-color-lighter-layer-1: light-dark(rgba(0, 0, 0, 2%), rgba(0, 0, 0, 6%));
|
|
--box-shadow-color-lighter-layer-2: light-dark(rgba(0, 0, 0, 4%), rgba(0, 0, 0, 12%));
|
|
/** button **/
|
|
/* TODO Bug 1821203 - Gray use needs to be consolidated */
|
|
--button-background-color: transparent;
|
|
--button-background-color-hover: light-dark(var(--color-violet-desaturated-20), var(--color-violet-desaturated-50));
|
|
--button-background-color-active: light-dark(var(--color-violet-desaturated-30), var(--color-violet-desaturated-40));
|
|
--button-background-color-disabled: var(--button-background-color);
|
|
--button-background-color-destructive: light-dark(var(--color-red-50), var(--color-red-30));
|
|
--button-background-color-destructive-hover: light-dark(var(--color-red-60), var(--color-red-20));
|
|
--button-background-color-destructive-active: light-dark(var(--color-red-70), var(--color-red-10));
|
|
--button-background-color-ghost: var(--button-background-color);
|
|
--button-background-color-ghost-disabled: var(--button-background-color-ghost);
|
|
--button-background-color-ghost-selected: var(--button-background-color-selected);
|
|
--button-background-color-menu: var(--button-background-color-ghost);
|
|
--button-background-color-muted: light-dark(var(--color-gray-20), var(--color-gray-55));
|
|
--button-background-color-muted-hover: light-dark(var(--color-gray-30), var(--color-gray-45));
|
|
--button-background-color-muted-active: light-dark(var(--color-gray-40), var(--color-gray-35));
|
|
--button-background-color-muted-disabled: var(--button-background-color-muted);
|
|
--button-background-color-muted-selected: var(--button-background-color-muted-active);
|
|
--button-background-color-primary-disabled: light-dark(var(--color-violet-desaturated-50), var(--color-violet-desaturated-40));
|
|
--button-border-color: var(--color-accent-primary);
|
|
--button-border-color-destructive: var(--button-border-color-ghost);
|
|
--button-border-color-destructive-selected: var(--button-border-color-destructive);
|
|
--button-border-color-ghost: transparent;
|
|
--button-border-color-ghost-hover: var(--button-border-color-ghost);
|
|
--button-border-color-ghost-active: var(--button-border-color-ghost);
|
|
--button-border-color-ghost-disabled: var(--button-border-color-ghost);
|
|
--button-border-color-ghost-selected: var(--button-border-color-ghost);
|
|
--button-border-color-muted: var(--button-border-color-ghost);
|
|
--button-border-color-muted-hover: var(--button-border-color-muted);
|
|
--button-border-color-muted-active: var(--button-border-color-muted);
|
|
--button-border-color-muted-disabled: var(--button-border-color-muted);
|
|
--button-border-color-muted-selected: var(--button-border-color-muted);
|
|
--button-border-color-primary: var(--button-border-color-ghost);
|
|
--button-border-color-primary-selected: var(--button-border-color-primary);
|
|
--button-border-color-selected: var(--button-border-color);
|
|
--button-border-radius: var(--border-radius-xlarge);
|
|
--button-opacity-disabled: 0.7;
|
|
--button-padding-inline-small: var(--space-medium);
|
|
--button-size-icon-small: var(--size-item-medium);
|
|
--button-text-color: light-dark(var(--color-violet-90), var(--color-gray-0));
|
|
--button-text-color-destructive: light-dark(var(--color-white), var(--button-text-color-primary));
|
|
--button-text-color-destructive-disabled: var(--button-text-color-destructive);
|
|
--button-text-color-destructive-selected: light-dark(var(--button-text-color-destructive), var(--button-text-color-destructive-active));
|
|
--button-text-color-ghost: var(--button-text-color);
|
|
--button-text-color-ghost-hover: var(--button-text-color-ghost);
|
|
--button-text-color-ghost-active: var(--button-text-color-ghost);
|
|
--button-text-color-ghost-disabled: var(--button-text-color-ghost);
|
|
--button-text-color-menu-hover: light-dark(var(--button-text-color-ghost-hover), var(--button-text-color-hover));
|
|
--button-text-color-menu-active: light-dark(var(--button-text-color-ghost-active), var(--button-text-color-active));
|
|
--button-text-color-menu-disabled: light-dark(var(--button-text-color-ghost-disabled), var(--button-text-color-disabled));
|
|
--button-text-color-menu-selected: light-dark(var(--button-text-color-ghost-selected), var(--button-text-color-selected));
|
|
--button-text-color-muted: var(--button-text-color);
|
|
--button-text-color-muted-hover: var(--button-text-color-muted);
|
|
--button-text-color-muted-active: var(--button-text-color-muted);
|
|
--button-text-color-muted-disabled: var(--button-text-color-muted);
|
|
--button-text-color-muted-selected: var(--button-text-color-muted-active);
|
|
--button-text-color-primary: light-dark(var(--color-white), var(--color-gray-70));
|
|
--button-text-color-primary-active: var(--button-text-color-primary);
|
|
--button-text-color-selected: light-dark(var(--button-text-color), var(--background-color-canvas));
|
|
/** card **/
|
|
--card-border-color: light-dark(rgba(0, 0, 0, 6%), rgba(255, 255, 255, 4%));
|
|
--card-gap: var(--space-medium);
|
|
--card-header-background-color: var(--button-background-color);
|
|
--card-header-border-color: transparent;
|
|
/** checkbox **/
|
|
--checkbox-border-radius: var(--border-radius-xsmall);
|
|
/** color **/
|
|
--color-accent-attention: light-dark(var(--color-green-40), var(--color-green-30));
|
|
--color-accent-primary: light-dark(var(--color-violet-50), var(--color-violet-30));
|
|
--color-accent-primary-hover: light-dark(var(--color-violet-60), var(--color-violet-20));
|
|
--color-accent-primary-active: light-dark(var(--color-violet-70), var(--color-violet-10));
|
|
--color-accent-primary-selected: var(--button-background-color-primary-active);
|
|
--color-blue-0: #ECF3F8;
|
|
--color-blue-10: #C5EAFE;
|
|
--color-blue-20: #A2D3FF;
|
|
--color-blue-30: #7BB2FF;
|
|
--color-blue-40: #5A87FD;
|
|
--color-blue-50: #455FE7;
|
|
--color-blue-60: #3246B0;
|
|
--color-blue-70: #23327B;
|
|
--color-blue-80: #17214C;
|
|
--color-blue-90: #111524;
|
|
--color-cyan-0: #EBF4F5;
|
|
--color-cyan-10: #C3EEF8;
|
|
--color-cyan-20: #8FDDF0;
|
|
--color-cyan-30: #4CC4E1;
|
|
--color-cyan-40: #10A4CA;
|
|
--color-cyan-50: #0A809F;
|
|
--color-cyan-60: #066077;
|
|
--color-cyan-70: #034554;
|
|
--color-cyan-80: #002D38;
|
|
--color-cyan-90: #011C23;
|
|
--color-gray-0: #FCFBFF;
|
|
--color-gray-05: #F7F6FB;
|
|
--color-gray-10: #EFEDF2;
|
|
--color-gray-15: #E3E2E7;
|
|
--color-gray-20: #D6D5DA;
|
|
--color-gray-25: #C7C6CB;
|
|
--color-gray-30: #B7B6BA;
|
|
--color-gray-35: #A6A4A9;
|
|
--color-gray-40: #949297;
|
|
--color-gray-45: #817F84;
|
|
--color-gray-50: #67666A;
|
|
--color-gray-55: #515054;
|
|
--color-gray-60: #3F3E42;
|
|
--color-gray-65: #312F33;
|
|
--color-gray-70: #252428;
|
|
--color-gray-75: #1D1B1F;
|
|
--color-gray-80: #171519;
|
|
--color-gray-85: #131215;
|
|
--color-gray-90: #121114;
|
|
--color-green-0: #ECF4F1;
|
|
--color-green-10: #C4F1E0;
|
|
--color-green-20: #90E3C6;
|
|
--color-green-30: #4ACCA6;
|
|
--color-green-40: #11AE84;
|
|
--color-green-50: #008865;
|
|
--color-green-60: #06674B;
|
|
--color-green-70: #004933;
|
|
--color-green-80: #003020;
|
|
--color-green-90: #001E12;
|
|
--color-orange-0: #F8F0EC;
|
|
--color-orange-10: #FFDBC5;
|
|
--color-orange-20: #FEBD99;
|
|
--color-orange-30: #FF9565;
|
|
--color-orange-40: #F4682C;
|
|
--color-orange-50: #CD4208;
|
|
--color-orange-60: #9C2C05;
|
|
--color-orange-70: #701C07;
|
|
--color-orange-80: #461209;
|
|
--color-orange-90: #250E0B;
|
|
--color-pink-0: #F7EFF3;
|
|
--color-pink-10: #FFD5EE;
|
|
--color-pink-20: #FFB0E2;
|
|
--color-pink-30: #F585D3;
|
|
--color-pink-40: #DB54BF;
|
|
--color-pink-50: #B32E9F;
|
|
--color-pink-60: #882078;
|
|
--color-pink-70: #5F1854;
|
|
--color-pink-80: #3C1334;
|
|
--color-pink-90: #1E111B;
|
|
--color-purple-0: #FAEBFF;
|
|
--color-purple-10: #F6D7FF;
|
|
--color-purple-20: #E8B7FF;
|
|
--color-purple-30: #D490FF;
|
|
--color-purple-40: #B864EE;
|
|
--color-purple-50: #9540C8;
|
|
--color-purple-60: #702E98;
|
|
--color-purple-70: #4F216B;
|
|
--color-purple-80: #311842;
|
|
--color-purple-90: #1A1220;
|
|
--color-red-0: #FCF2F3;
|
|
--color-red-10: #FFD9DF;
|
|
--color-red-20: #FFB6BF;
|
|
--color-red-30: #FF8998;
|
|
--color-red-40: #ED566E;
|
|
--color-red-50: #C52D4F;
|
|
--color-red-60: #961E3D;
|
|
--color-red-70: #69172D;
|
|
--color-red-80: #42121F;
|
|
--color-red-90: #211014;
|
|
--color-violet-0: #F5ECFF;
|
|
--color-violet-10: #EADDFF;
|
|
--color-violet-20: #D4C1FF;
|
|
--color-violet-30: #B89CFF;
|
|
--color-violet-40: #9871FF;
|
|
--color-violet-50: #764EDD;
|
|
--color-violet-60: #5939A8;
|
|
--color-violet-70: #3E2976;
|
|
--color-violet-80: #271C48;
|
|
--color-violet-90: #161423;
|
|
--color-violet-desaturated-0: #F2F0F8;
|
|
--color-violet-desaturated-10: #E7E1F8;
|
|
--color-violet-desaturated-20: #D2C8EC;
|
|
--color-violet-desaturated-30: #B6AAD9;
|
|
--color-violet-desaturated-40: #9687C0;
|
|
--color-violet-desaturated-50: #75669F;
|
|
--color-violet-desaturated-60: #584A7D;
|
|
--color-violet-desaturated-70: #3E315F;
|
|
--color-violet-desaturated-80: #281D44;
|
|
--color-violet-desaturated-90: #180E30;
|
|
--color-yellow-0: #F9F5E6;
|
|
--color-yellow-10: #FDE8B5;
|
|
--color-yellow-20: #FBCC77;
|
|
--color-yellow-30: #F3A81E;
|
|
--color-yellow-40: #DB820E;
|
|
--color-yellow-50: #B26100;
|
|
--color-yellow-60: #854800;
|
|
--color-yellow-70: #5F3100;
|
|
--color-yellow-80: #3E1D00;
|
|
--color-yellow-90: #270F00;
|
|
/** icon **/
|
|
--icon-color: var(--text-color);
|
|
--icon-color-accent-primary-desaturated: light-dark(var(--color-violet-desaturated-60), var(--color-violet-desaturated-40));
|
|
--icon-color-critical: light-dark(var(--color-red-50), var(--color-red-20));
|
|
--icon-color-information: light-dark(var(--color-violet-50), var(--color-violet-20));
|
|
--icon-color-success: light-dark(var(--color-green-50), var(--color-green-20));
|
|
--icon-color-warning: light-dark(var(--color-yellow-50), var(--color-yellow-20));
|
|
--icon-size-xsmall: var(--size-item-xsmall);
|
|
--icon-size-small: var(--size-item-small);
|
|
--icon-size-medium: 20px;
|
|
--icon-size-large: var(--size-item-medium);
|
|
--icon-size-xlarge: var(--size-item-large);
|
|
/** info-bar **/
|
|
--info-bar-margin-block-end: 0;
|
|
/** page **/
|
|
--page-main-content-width: 664px;
|
|
/** panel **/
|
|
--panel-background-color: var(--background-color-box);
|
|
--panel-border-color: light-dark(var(--color-gray-10), var(--color-gray-60));
|
|
--panel-border-radius: var(--border-radius-large);
|
|
--panel-menuitem-border-radius: var(--button-border-radius);
|
|
--panel-padding: var(--panel-padding-block);
|
|
--panel-padding-block: 8px;
|
|
--panel-text-color: var(--text-color);
|
|
/** size **/
|
|
--size-item-xsmall: 12px;
|
|
--size-item-small: 16px;
|
|
--size-item-medium: 24px;
|
|
--size-item-large: 32px;
|
|
--size-item-xlarge: 48px;
|
|
/** table **/
|
|
--table-row-background-color: var(--background-color-canvas);
|
|
/* TODO Bug 1821203 - Gray use needs to be consolidated */
|
|
--table-row-background-color-alternate: light-dark(var(--color-gray-20), var(--color-gray-65));
|
|
/** text-color **/
|
|
--text-color: light-dark(var(--color-violet-desaturated-90), var(--color-violet-desaturated-0));
|
|
--text-color-accent-primary-selected: light-dark(var(--color-white), var(--color-gray-55));
|
|
--text-color-error: light-dark(var(--color-red-50), var(--color-red-20));
|
|
/** toolbar **/
|
|
--toolbar-background-color: var(--background-color-box);
|
|
--toolbar-field-background-color: var(--toolbar-background-color);
|
|
--toolbar-field-background-color-focus: var(--background-color-box);
|
|
--toolbar-field-border-color: light-dark(var(--color-gray-20), var(--color-gray-60));
|
|
--toolbar-field-border-color-focus: #FFF;
|
|
--toolbar-field-text-color: light-dark(var(--color-violet-desaturated-70), var(--color-violet-desaturated-10));
|
|
--toolbar-field-text-color-focus: var(--toolbar-field-text-color);
|
|
--toolbar-padding-inline: 6px;
|
|
/** toolbarbutton **/
|
|
--toolbarbutton-background-color-hover: light-dark(rgba(117, 102, 159, 25%), rgba(182, 170, 217, 25%));
|
|
--toolbarbutton-background-color-active: light-dark(rgba(117, 102, 159, 40%), rgba(182, 170, 217, 40%));
|
|
--toolbarbutton-icon-fill: light-dark(var(--color-violet-desaturated-50), var(--color-violet-desaturated-10));
|
|
--toolbarbutton-icon-fill-attention: var(--color-accent-primary);
|
|
--toolbarbutton-opacity-disabled: 0.4;
|
|
--toolbarbutton-outline-color: transparent;
|
|
--toolbarbutton-outline-color-hover: transparent;
|
|
--toolbarbutton-outline-color-active: transparent;
|
|
--toolbarbutton-outline-color-selected: var(--toolbarbutton-outline-color-active);
|
|
--toolbarbutton-outline-offset: -1px;
|
|
--toolbarbutton-padding-inner-touch-narrow: 0;
|
|
/** toolbox **/
|
|
--toolbox-background-color-gradient-leading: light-dark(var(--color-violet-10), var(--color-violet-desaturated-70));
|
|
--toolbox-background-color-gradient-trailing: light-dark(var(--color-orange-10), var(--color-orange-70));
|
|
--toolbox-background-color-inactive: transparent;
|
|
/* This gradient is only used for Nova */
|
|
--toolbox-background-gradient: linear-gradient(96deg, color-mix(var(--toolbox-background-color-gradient-leading) 50%, transparent) 39.84%, color-mix(var(--toolbox-background-color-gradient-trailing) 50%, transparent) 101.72%);
|
|
--toolbox-text-color: var(--text-color);
|
|
--toolbox-text-color-inactive: var(--text-color-deemphasized);
|
|
}
|
|
|
|
@media (forced-colors) {
|
|
:root.nova-tokens {
|
|
/** background-color **/
|
|
--background-color-box: var(--background-color-canvas);
|
|
--background-color-box-info: var(--background-color-canvas);
|
|
--background-color-canvas: Canvas;
|
|
--background-color-critical: var(--background-color-canvas);
|
|
--background-color-information: var(--background-color-canvas);
|
|
--background-color-success: var(--background-color-canvas);
|
|
--background-color-warning: var(--background-color-canvas);
|
|
/** border **/
|
|
--border-color: CanvasText;
|
|
--border-color-deemphasized: CanvasText;
|
|
--border-color-error: var(--border-color);
|
|
--border-color-interactive: ButtonText;
|
|
--border-color-interactive-disabled: GrayText;
|
|
--border-color-transparent: CanvasText;
|
|
/** box-shadow **/
|
|
--box-shadow-color-darker-layer-1: transparent;
|
|
--box-shadow-color-darker-layer-2: transparent;
|
|
--box-shadow-color-lighter-layer-1: transparent;
|
|
--box-shadow-color-lighter-layer-2: transparent;
|
|
/** button **/
|
|
/* TODO Bug 1821203 - Gray use needs to be consolidated */
|
|
--button-background-color: ButtonFace;
|
|
--button-background-color-hover: SelectedItemText;
|
|
--button-background-color-active: SelectedItemText;
|
|
--button-background-color-destructive: var(--button-background-color-primary);
|
|
--button-background-color-destructive-hover: var(--button-background-color-primary-hover);
|
|
--button-background-color-destructive-active: var(--button-background-color-primary-active);
|
|
--button-background-color-ghost-disabled: var(--button-background-color-disabled);
|
|
--button-background-color-menu: var(--button-background-color);
|
|
--button-background-color-muted: var(--button-background-color);
|
|
--button-background-color-muted-hover: var(--button-background-color-hover);
|
|
--button-background-color-muted-active: var(--button-background-color-active);
|
|
--button-background-color-muted-disabled: var(--button-background-color);
|
|
--button-background-color-muted-selected: var(--button-background-color-ghost-active);
|
|
--button-background-color-primary-disabled: GrayText;
|
|
--button-border-color: var(--border-color-interactive);
|
|
--button-border-color-destructive: var(--button-border-color-primary);
|
|
--button-border-color-destructive-selected: var(--button-border-color-destructive-active);
|
|
--button-border-color-ghost: var(--button-border-color);
|
|
--button-border-color-ghost-hover: var(--button-border-color-hover);
|
|
--button-border-color-ghost-active: var(--button-border-color-active);
|
|
--button-border-color-ghost-disabled: var(--button-border-color-disabled);
|
|
--button-border-color-ghost-selected: var(--button-border-color-ghost-active);
|
|
--button-border-color-muted: var(--button-border-color);
|
|
--button-border-color-muted-hover: var(--button-border-color-hover);
|
|
--button-border-color-muted-active: var(--button-border-color-active);
|
|
--button-border-color-muted-disabled: var(--button-border-color-disabled);
|
|
--button-border-color-muted-selected: var(--button-border-color-ghost-active);
|
|
--button-border-color-primary: ButtonFace;
|
|
--button-border-color-primary-selected: var(--button-border-color-primary-active);
|
|
--button-border-color-selected: var(--button-border-color-active);
|
|
--button-opacity-disabled: 1;
|
|
--button-text-color: ButtonText;
|
|
--button-text-color-destructive: var(--button-text-color-primary);
|
|
--button-text-color-destructive-disabled: var(--button-text-color-primary);
|
|
--button-text-color-destructive-selected: var(--button-text-color-destructive-active);
|
|
--button-text-color-ghost: ButtonText;
|
|
--button-text-color-ghost-hover: var(--button-text-color-ghost-active);
|
|
--button-text-color-ghost-active: var(--button-text-color-active);
|
|
--button-text-color-ghost-disabled: GrayText;
|
|
--button-text-color-menu-hover: var(--button-text-color-primary);
|
|
--button-text-color-menu-active: var(--button-text-color-primary-active);
|
|
--button-text-color-menu-disabled: var(--button-text-color-primary-disabled);
|
|
--button-text-color-menu-selected: var(--button-text-color-primary-selected);
|
|
--button-text-color-muted: ButtonText;
|
|
--button-text-color-muted-hover: var(--button-text-color-ghost-active);
|
|
--button-text-color-muted-active: var(--button-text-color-active);
|
|
--button-text-color-muted-disabled: GrayText;
|
|
--button-text-color-muted-selected: var(--button-text-color-ghost-active);
|
|
--button-text-color-primary: ButtonFace;
|
|
--button-text-color-primary-active: var(--button-text-color-primary-hover);
|
|
--button-text-color-selected: SelectedItemText;
|
|
/** card **/
|
|
--card-border-color: CanvasText;
|
|
--card-header-border-color: var(--button-border-color);
|
|
/** color **/
|
|
--color-accent-attention: AccentColor;
|
|
--color-accent-primary: AccentColor;
|
|
--color-accent-primary-hover: SelectedItem;
|
|
--color-accent-primary-active: var(--color-accent-primary-hover);
|
|
--color-accent-primary-selected: SelectedItem;
|
|
/** icon **/
|
|
--icon-color-accent-primary-desaturated: CanvasText;
|
|
--icon-color-critical: var(--icon-color);
|
|
--icon-color-information: var(--icon-color);
|
|
--icon-color-success: var(--icon-color);
|
|
--icon-color-warning: var(--icon-color);
|
|
/** panel **/
|
|
--panel-border-color: var(--border-color);
|
|
/** table **/
|
|
/* TODO Bug 1821203 - Gray use needs to be consolidated */
|
|
--table-row-background-color-alternate: var(--background-color-canvas);
|
|
/** text-color **/
|
|
--text-color-accent-primary-selected: SelectedItemText;
|
|
/** toolbar **/
|
|
--toolbar-background-color: Canvas;
|
|
--toolbar-field-border-color: ButtonText;
|
|
--toolbar-field-border-color-focus: SelectedItem;
|
|
--toolbar-field-text-color: var(--text-color);
|
|
/** toolbarbutton **/
|
|
--toolbarbutton-background-color-hover: var(--button-background-color-hover);
|
|
--toolbarbutton-background-color-active: var(--button-background-color-active);
|
|
--toolbarbutton-icon-fill: var(--button-text-color);
|
|
--toolbarbutton-outline-color: var(--button-border-color);
|
|
--toolbarbutton-outline-color-hover: var(--button-border-color-hover);
|
|
--toolbarbutton-outline-color-active: var(--button-border-color-active);
|
|
/** toolbox **/
|
|
--toolbox-background-color-gradient-leading: Canvas;
|
|
--toolbox-background-color-gradient-trailing: Canvas;
|
|
/* This gradient is only used for Nova */
|
|
--toolbox-background-gradient: image(transparent);
|
|
}
|
|
}
|
|
html {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: inherit;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
}
|
|
|
|
button,
|
|
input {
|
|
background-color: inherit;
|
|
color: inherit;
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
}
|
|
|
|
[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
:root {
|
|
--newtab-card-height: 282px;
|
|
--newtab-card-width-medium: 300px;
|
|
--newtab-card-grid-layout-width: 296px;
|
|
--newtab-card-height-small: 133px;
|
|
--newtab-font-size-xsmall: 0.733rem;
|
|
}
|
|
|
|
:root {
|
|
color-scheme: light;
|
|
--newtab-background-color: #F9F9FB;
|
|
--newtab-background-color-secondary: var(--color-white);
|
|
--newtab-text-primary-color: var(--text-color);
|
|
--newtab-background-card: color-mix(in srgb, var(--color-white) 85%, transparent);
|
|
--newtab-card-placeholder-background-color: color-mix(in srgb, currentColor 21%, transparent);
|
|
--newtab-text-topic-label-color: var(--color-violet-70);
|
|
--newtab-text-secondary-text: var(--text-color-deemphasized);
|
|
--newtab-contextual-text-primary-color: light-dark(var(--newtab-text-primary-color), var(--text-color));
|
|
--newtab-primary-action-background: light-dark(var(--color-accent-primary), var(--color-accent-primary));
|
|
--newtab-primary-action-background-pocket: #008078;
|
|
--newtab-text-secondary-color: color-mix(in srgb, var(--newtab-text-primary-color) 70%, transparent);
|
|
--newtab-contextual-text-secondary-color: color-mix(in srgb, var(--newtab-contextual-text-primary-color) 70%, transparent);
|
|
--newtab-weather-background-color: light-dark(rgba(255, 255, 255, 85%), rgba(66, 65, 77, 85%));
|
|
--newtab-element-hover-color: color-mix(in srgb, var(--newtab-background-color) 90%, #000);
|
|
--newtab-element-active-color: color-mix(in srgb, var(--newtab-background-color) 80%, #000);
|
|
--newtab-button-background: var(--button-background-color);
|
|
--newtab-button-focus-background: var(--newtab-button-background);
|
|
--newtab-button-focus-border: var(--focus-outline-color);
|
|
--newtab-button-hover-background: var(--button-background-color-hover);
|
|
--newtab-button-active-background: var(--button-background-color-active);
|
|
--newtab-button-text: var(--button-text-color);
|
|
--newtab-button-static-background: light-dark(#F0F0F4, #2B2A33);
|
|
--newtab-button-static-focus-background: var(--newtab-button-static-background);
|
|
--newtab-button-static-hover-background: light-dark(#E0E0E6, #52525E);
|
|
--newtab-button-static-active-background: light-dark(#CFCFD8, #5B5B66);
|
|
--newtab-element-secondary-color: color-mix(in srgb, currentColor 5%, transparent);
|
|
--newtab-element-secondary-hover-color: color-mix(in srgb, currentColor 12%, transparent);
|
|
--newtab-element-secondary-active-color: color-mix(in srgb, currentColor 25%, transparent);
|
|
--newtab-primary-element-hover-pocket-color: color-mix(in srgb, var(--newtab-primary-action-background-pocket) 90%, #000);
|
|
--newtab-primary-element-active-color: color-mix(in srgb, var(--newtab-primary-action-background) 80%, #000);
|
|
--newtab-primary-element-text-color: var(--color-white);
|
|
--newtab-primary-action-background-dimmed: color-mix(in srgb, var(--newtab-primary-action-background) 25%, transparent);
|
|
--newtab-primary-action-background-pocket-dimmed: color-mix(in srgb, var(--newtab-primary-action-background-pocket) 25%, transparent);
|
|
--newtab-wordmark-color: light-dark(#20123A, #fbfbfe);
|
|
--newtab-status-success: var(--color-green-50);
|
|
--newtab-status-error: var(--color-red-60);
|
|
--newtab-inner-box-shadow-color: rgba(0, 0, 0, 0.1);
|
|
--newtab-section-card-box-shadow-color: rgba(58, 57, 68, 20%);
|
|
--newtab-overlay-color: color-mix(in srgb, var(--newtab-background-color) 85%, transparent);
|
|
--border-radius-large: 16px;
|
|
--newtab-button-secondary-color: inherit;
|
|
}
|
|
:root[lwt-newtab-brighttext] {
|
|
color-scheme: dark;
|
|
--newtab-background-color: #2B2A33;
|
|
--newtab-background-color-secondary: #42414d;
|
|
--newtab-text-primary-color: var(--text-color);
|
|
--newtab-background-card: rgba(66, 65, 77, 0.85);
|
|
--newtab-text-topic-label-color: var(--color-violet-30);
|
|
--newtab-text-secondary-text: #FBFBFEB0;
|
|
--newtab-contextual-text-primary-color: light-dark(var(--text-color), var(--newtab-text-primary-color));
|
|
--newtab-primary-action-background-pocket: var(--color-accent-primary);
|
|
--newtab-primary-action-background-pocket-dimmed: color-mix(in srgb, var(--newtab-primary-action-background) 25%, transparent);
|
|
--newtab-primary-element-hover-pocket-color: color-mix(in srgb, var(--newtab-primary-action-background-pocket) 55%, var(--color-white));
|
|
--newtab-element-hover-color: color-mix(in srgb, var(--newtab-background-color) 80%, var(--color-white));
|
|
--newtab-element-active-color: color-mix(in srgb, var(--newtab-background-color) 60%, var(--color-white));
|
|
--newtab-section-card-box-shadow-color: rgba(0, 0, 0, 80%);
|
|
--newtab-element-secondary-color: color-mix(in srgb, currentColor 10%, transparent);
|
|
--newtab-element-secondary-hover-color: color-mix(in srgb, currentColor 17%, transparent);
|
|
--newtab-element-secondary-active-color: color-mix(in srgb, currentColor 30%, transparent);
|
|
--newtab-primary-element-text-color: #2b2a33;
|
|
--newtab-status-success: var(--color-green-30);
|
|
}
|
|
|
|
@media (prefers-contrast) {
|
|
:root {
|
|
--newtab-text-secondary-color: var(--newtab-text-primary-color);
|
|
--newtab-text-topic-label-color: var(--color-violet-30);
|
|
color-scheme: light;
|
|
--newtab-text-secondary-text: #000;
|
|
}
|
|
}
|
|
@media (prefers-contrast) and (prefers-color-scheme: dark) {
|
|
:root {
|
|
color-scheme: dark;
|
|
--newtab-text-secondary-text: #FFF;
|
|
}
|
|
}
|
|
.icon {
|
|
background-position: center center;
|
|
background-repeat: no-repeat;
|
|
background-size: 16px;
|
|
-moz-context-properties: fill;
|
|
display: inline-block;
|
|
color: var(--icon-color);
|
|
fill: currentColor;
|
|
height: 16px;
|
|
vertical-align: middle;
|
|
width: 16px;
|
|
}
|
|
.icon.icon-spacer {
|
|
margin-inline-end: var(--space-small);
|
|
}
|
|
.icon.icon-small-spacer {
|
|
margin-inline-end: var(--space-xsmall);
|
|
}
|
|
.icon.icon-button-style {
|
|
fill: var(--newtab-text-secondary-color);
|
|
border: 0;
|
|
}
|
|
.icon.icon-button-style:focus, .icon.icon-button-style:hover {
|
|
fill: var(--newtab-text-primary-color);
|
|
}
|
|
.icon.icon-bookmark-added {
|
|
background-image: url("chrome://browser/skin/bookmark.svg");
|
|
}
|
|
.icon.icon-bookmark-hollow {
|
|
background-image: url("chrome://browser/skin/bookmark-hollow.svg");
|
|
}
|
|
.icon.icon-clear-input {
|
|
background-image: url("chrome://global/skin/icons/close-fill.svg");
|
|
}
|
|
.icon.icon-delete {
|
|
background-image: url("chrome://global/skin/icons/delete.svg");
|
|
}
|
|
.icon.icon-search {
|
|
background-image: url("chrome://global/skin/icons/search-glass.svg");
|
|
}
|
|
.icon.icon-modal-delete {
|
|
flex-shrink: 0;
|
|
background-image: url("chrome://newtab/content/data/content/assets/glyph-modal-delete-20.svg");
|
|
background-size: 32px;
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
.icon.icon-mail {
|
|
background-image: url("chrome://newtab/content/data/content/assets/glyph-mail-16.svg");
|
|
}
|
|
.icon.icon-dismiss {
|
|
background-image: url("chrome://global/skin/icons/close.svg");
|
|
}
|
|
.icon.icon-info {
|
|
background-image: url("chrome://global/skin/icons/info.svg");
|
|
}
|
|
.icon.icon-info-critical {
|
|
background-image: url("chrome://newtab/content/data/content/assets/glyph-info-critical-16.svg");
|
|
}
|
|
.icon.icon-info-warning {
|
|
background-image: url("chrome://global/skin/icons/warning.svg");
|
|
fill: var(--icon-color-warning);
|
|
-moz-context-properties: fill;
|
|
}
|
|
.icon.icon-help {
|
|
background-image: url("chrome://global/skin/icons/help.svg");
|
|
}
|
|
.icon.icon-new-window {
|
|
background-image: url("chrome://newtab/content/data/content/assets/glyph-newWindow-16.svg");
|
|
}
|
|
.icon.icon-new-window:dir(rtl) {
|
|
transform: scaleX(-1);
|
|
}
|
|
.icon.icon-new-window-private {
|
|
background-image: url("chrome://browser/skin/privateBrowsing.svg");
|
|
}
|
|
.icon.icon-settings {
|
|
background-image: url("chrome://global/skin/icons/settings.svg");
|
|
}
|
|
.icon.icon-pin {
|
|
background-image: url("chrome://newtab/content/data/content/assets/glyph-pin-16.svg");
|
|
}
|
|
.icon.icon-pin:dir(rtl) {
|
|
transform: scaleX(-1);
|
|
}
|
|
.icon.icon-unpin {
|
|
background-image: url("chrome://newtab/content/data/content/assets/glyph-unpin-16.svg");
|
|
}
|
|
.icon.icon-unpin:dir(rtl) {
|
|
transform: scaleX(-1);
|
|
}
|
|
.icon.icon-edit {
|
|
background-image: url("chrome://global/skin/icons/edit.svg");
|
|
}
|
|
.icon.icon-edit-outline {
|
|
background-image: url("chrome://global/skin/icons/edit-outline.svg");
|
|
}
|
|
.icon.icon-pocket {
|
|
background-image: url("chrome://global/skin/icons/help.svg");
|
|
}
|
|
.icon.icon-history-item {
|
|
background-image: url("chrome://browser/skin/history.svg");
|
|
}
|
|
.icon.icon-newsfeed {
|
|
background-image: url("chrome://global/skin/icons/newsfeed.svg");
|
|
}
|
|
.icon.icon-trending {
|
|
background-image: url("chrome://browser/skin/trending.svg");
|
|
transform: translateY(2px);
|
|
}
|
|
.icon.icon-now {
|
|
background-image: url("chrome://browser/skin/history.svg");
|
|
}
|
|
.icon.icon-topsites {
|
|
background-image: url("chrome://browser/skin/topsites.svg");
|
|
}
|
|
.icon.icon-pin-small {
|
|
background-image: url("chrome://browser/skin/pin-12.svg");
|
|
background-size: 12px;
|
|
height: 12px;
|
|
width: 12px;
|
|
}
|
|
.icon.icon-pin-small:dir(rtl) {
|
|
transform: scaleX(-1);
|
|
}
|
|
.icon.icon-check {
|
|
background-image: url("chrome://global/skin/icons/check.svg");
|
|
}
|
|
.icon.icon-check-filled {
|
|
background-image: url("chrome://global/skin/icons/check-filled.svg");
|
|
}
|
|
.icon.icon-download {
|
|
background-image: url("chrome://browser/skin/downloads/downloads.svg");
|
|
}
|
|
.icon.icon-copy {
|
|
background-image: url("chrome://global/skin/icons/edit-copy.svg");
|
|
}
|
|
.icon.icon-open-file {
|
|
background-image: url("chrome://newtab/content/data/content/assets/glyph-open-file-16.svg");
|
|
}
|
|
.icon.icon-webextension {
|
|
background-image: url("chrome://newtab/content/data/content/assets/glyph-webextension-16.svg");
|
|
}
|
|
.icon.icon-weather {
|
|
background-image: url("chrome://browser/skin/weather/sunny.svg");
|
|
}
|
|
.icon.icon-highlights {
|
|
background-image: url("chrome://global/skin/icons/highlights.svg");
|
|
}
|
|
.icon.icon-arrowhead-down {
|
|
background-image: url("chrome://global/skin/icons/arrow-down.svg");
|
|
}
|
|
.icon.icon-arrowhead-down-small {
|
|
background-image: url("chrome://global/skin/icons/arrow-down-12.svg");
|
|
background-size: 12px;
|
|
height: 12px;
|
|
width: 12px;
|
|
}
|
|
.icon.icon-arrowhead-forward-small {
|
|
background-image: url("chrome://global/skin/icons/arrow-right-12.svg");
|
|
background-size: 12px;
|
|
height: 12px;
|
|
width: 12px;
|
|
}
|
|
.icon.icon-arrowhead-forward-small:dir(rtl) {
|
|
background-image: url("chrome://global/skin/icons/arrow-left-12.svg");
|
|
}
|
|
.icon.icon-arrowhead-up {
|
|
background-image: url("chrome://global/skin/icons/arrow-up.svg");
|
|
}
|
|
.icon.icon-add {
|
|
background-image: url("chrome://global/skin/icons/plus.svg");
|
|
}
|
|
.icon.icon-add-circle-fill {
|
|
background-image: url("chrome://newtab/content/data/content/assets/glyph-add-circle-fill-16.svg");
|
|
}
|
|
.icon.icon-minimize {
|
|
background-image: url("chrome://newtab/content/data/content/assets/glyph-minimize-16.svg");
|
|
}
|
|
.icon.icon-maximize {
|
|
background-image: url("chrome://newtab/content/data/content/assets/glyph-maximize-16.svg");
|
|
}
|
|
.icon.icon-arrow {
|
|
background-image: url("chrome://global/skin/icons/arrow-right-12.svg");
|
|
}
|
|
.icon.icon-device-phone {
|
|
background-image: url("chrome://browser/skin/device-phone.svg");
|
|
}
|
|
.icon.icon-arrow-trending {
|
|
background-image: url("chrome://global/skin/icons/trending.svg");
|
|
}
|
|
|
|
:root {
|
|
font-size: var(--font-size-root);
|
|
height: 100%;
|
|
}
|
|
:root[lwt-newtab-brighttext] {
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
body,
|
|
#root {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
#root {
|
|
position: relative;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--newtab-background-color);
|
|
font-family: system-ui;
|
|
font-size: var(--font-size-root);
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
background-position: var(--newtab-wallpaper-backgroundPosition);
|
|
background-attachment: fixed;
|
|
background-image: var(--newtab-wallpaper, ""), linear-gradient(to right, var(--newtab-wallpaper-color, ""), var(--newtab-wallpaper-color, ""));
|
|
overflow-y: auto;
|
|
}
|
|
|
|
h1,
|
|
h2 {
|
|
font-weight: var(--font-weight);
|
|
}
|
|
|
|
.inner-border {
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--border-radius-small);
|
|
height: 100%;
|
|
inset-inline-start: 0;
|
|
pointer-events: none;
|
|
position: absolute;
|
|
inset-block-start: 0;
|
|
width: 100%;
|
|
z-index: 100;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
.show-on-init {
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease-in;
|
|
}
|
|
.show-on-init.on {
|
|
animation: fadeIn 0.2s;
|
|
opacity: 1;
|
|
}
|
|
|
|
.actions {
|
|
border-block-start: 1px solid var(--border-color);
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-start;
|
|
margin: 0;
|
|
padding: var(--space-large) var(--space-xlarge) 0;
|
|
}
|
|
|
|
.button,
|
|
.actions button {
|
|
background-color: var(--newtab-button-secondary-color);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--border-radius-small);
|
|
color: inherit;
|
|
cursor: pointer;
|
|
margin-block-end: var(--space-large);
|
|
padding: var(--space-small) var(--space-xxlarge);
|
|
white-space: nowrap;
|
|
}
|
|
.button:hover:not(.dismiss), .button:focus:not(.dismiss),
|
|
.actions button:hover:not(.dismiss),
|
|
.actions button:focus:not(.dismiss) {
|
|
box-shadow: 0 0 0 5px var(--newtab-element-secondary-color);
|
|
transition: box-shadow 150ms;
|
|
}
|
|
.button.dismiss,
|
|
.actions button.dismiss {
|
|
background-color: transparent;
|
|
border: 0;
|
|
padding: 0;
|
|
text-decoration: underline;
|
|
}
|
|
.button.primary, .button.done,
|
|
.actions button.primary,
|
|
.actions button.done {
|
|
background-color: var(--newtab-primary-action-background);
|
|
border: solid 1px var(--newtab-primary-action-background);
|
|
color: var(--newtab-primary-element-text-color);
|
|
margin-inline-start: auto;
|
|
}
|
|
|
|
input[type=text], input[type=search] {
|
|
border-radius: var(--border-radius-small);
|
|
}
|
|
|
|
.clamp {
|
|
-webkit-box-orient: vertical;
|
|
display: -webkit-box;
|
|
overflow: hidden;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.a11y-link-button {
|
|
border: 0;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
text-align: unset;
|
|
color: var(--newtab-primary-action-background);
|
|
}
|
|
.a11y-link-button:hover, .a11y-link-button:focus {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* 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/. */
|
|
.activation-window-message {
|
|
--image-size-small: 60px;
|
|
--image-size-medium: 90px;
|
|
--image-size-large: 120px;
|
|
background-color: var(--background-color-canvas);
|
|
border: 2px solid var(--card-border-color);
|
|
color: var(--text-color);
|
|
padding: var(--space-large);
|
|
border-radius: var(--border-radius-medium);
|
|
margin-block: 0 var(--space-xlarge);
|
|
margin-inline: auto;
|
|
position: relative;
|
|
}
|
|
@media (min-width: 610px) {
|
|
.activation-window-message {
|
|
width: 360px;
|
|
}
|
|
}
|
|
@media (min-width: 866px) {
|
|
.activation-window-message {
|
|
width: 510px;
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.activation-window-message {
|
|
width: 720px;
|
|
}
|
|
}
|
|
.activation-window-message .activation-window-message-dismiss {
|
|
position: absolute;
|
|
inset-inline-end: var(--space-medium);
|
|
inset-block-start: var(--space-medium);
|
|
}
|
|
.activation-window-message .activation-window-message-inner {
|
|
display: flex;
|
|
gap: var(--space-medium);
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
.activation-window-message .activation-window-message-inner img {
|
|
max-width: var(--image-size-small);
|
|
max-height: var(--image-size-small);
|
|
object-fit: contain;
|
|
align-self: start;
|
|
}
|
|
.activation-window-message .activation-window-message-inner > div {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding-inline-end: var(--space-xxlarge);
|
|
}
|
|
.activation-window-message .activation-window-message-inner > div moz-button-group {
|
|
margin-block-start: var(--space-xlarge);
|
|
}
|
|
.activation-window-message .activation-window-message-inner h2 {
|
|
margin: 0;
|
|
font-size: var(--font-size-large);
|
|
font-weight: var(--font-weight-heading);
|
|
}
|
|
.activation-window-message .activation-window-message-inner p {
|
|
margin-block: var(--space-medium) 0;
|
|
color: var(--text-color-deemphasized);
|
|
}
|
|
@media (min-width: 866px) {
|
|
.activation-window-message .activation-window-message-inner {
|
|
flex-direction: row;
|
|
gap: var(--space-xlarge);
|
|
}
|
|
.activation-window-message .activation-window-message-inner img {
|
|
max-width: var(--image-size-medium);
|
|
max-height: var(--image-size-medium);
|
|
}
|
|
.activation-window-message.no-buttons .activation-window-message-inner img {
|
|
max-width: var(--image-size-medium);
|
|
max-height: var(--image-size-medium);
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.activation-window-message .activation-window-message-inner img {
|
|
max-width: var(--image-size-large);
|
|
max-height: var(--image-size-large);
|
|
}
|
|
}
|
|
.activation-window-message moz-button-group {
|
|
display: flex;
|
|
gap: var(--space-small);
|
|
justify-content: start;
|
|
}
|
|
.activation-window-message moz-button {
|
|
min-width: fit-content;
|
|
}
|
|
.nova-enabled .activation-window-message {
|
|
background-color: var(--background-color-box);
|
|
border-radius: var(--border-radius-large);
|
|
}
|
|
.nova-enabled .activation-window-message .activation-window-message-inner h2 {
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
.nova-enabled .activation-window-message moz-button {
|
|
min-width: auto;
|
|
}
|
|
|
|
.outer-wrapper {
|
|
color: var(--newtab-text-primary-color);
|
|
display: flex;
|
|
flex-grow: 1;
|
|
min-height: 100vh;
|
|
padding: var(--space-xxlarge);
|
|
}
|
|
.outer-wrapper.ds-outer-wrapper-breakpoint-override {
|
|
padding: var(--space-xxlarge) 0;
|
|
}
|
|
@media (min-width: 610px) {
|
|
.outer-wrapper.ds-outer-wrapper-breakpoint-override {
|
|
padding: var(--space-xxlarge);
|
|
}
|
|
}
|
|
.outer-wrapper.only-search {
|
|
display: block;
|
|
padding-block-start: calc(var(--space-xxlarge) * 4);
|
|
}
|
|
.outer-wrapper a {
|
|
color: var(--newtab-primary-action-background);
|
|
}
|
|
|
|
main.newtab-main {
|
|
margin: 0 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
width: 274px;
|
|
padding: 0;
|
|
min-width: min-content;
|
|
}
|
|
main.newtab-main .vertical-center-wrapper {
|
|
margin: auto 0;
|
|
}
|
|
main.newtab-main section {
|
|
margin-block-end: var(--space-medium);
|
|
position: relative;
|
|
}
|
|
.hide-main main.newtab-main {
|
|
visibility: hidden;
|
|
}
|
|
@media (min-width: 610px) {
|
|
main.newtab-main {
|
|
width: 530px;
|
|
}
|
|
}
|
|
@media (min-width: 866px) {
|
|
main.newtab-main {
|
|
width: 786px;
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
main.newtab-main {
|
|
width: 1042px;
|
|
}
|
|
}
|
|
|
|
.no-search main.newtab-main {
|
|
margin-block-start: var(--space-xxlarge);
|
|
}
|
|
|
|
.ds-outer-wrapper-search-alignment main.newtab-main {
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.ds-outer-wrapper-breakpoint-override main.newtab-main {
|
|
width: auto;
|
|
padding-block-end: 0;
|
|
}
|
|
.ds-outer-wrapper-breakpoint-override main.newtab-main .ds-card {
|
|
width: var(--newtab-card-grid-layout-width);
|
|
}
|
|
.ds-outer-wrapper-breakpoint-override main.newtab-main .ds-card-grid:not(.ds-section-grid) {
|
|
grid-gap: var(--space-large);
|
|
}
|
|
.ds-outer-wrapper-breakpoint-override main.newtab-main .ds-card-grid:not(.ds-section-grid).empty {
|
|
grid-template-columns: auto;
|
|
}
|
|
.ds-outer-wrapper-breakpoint-override main.newtab-main .body-wrapper {
|
|
width: 346px;
|
|
margin: 0 auto;
|
|
}
|
|
@media (min-width: 610px) {
|
|
.ds-outer-wrapper-breakpoint-override main.newtab-main {
|
|
width: auto;
|
|
}
|
|
.ds-outer-wrapper-breakpoint-override main.newtab-main .ds-card-grid:not(.ds-section-grid) {
|
|
grid-template-columns: repeat(1, 1fr);
|
|
}
|
|
.ds-outer-wrapper-breakpoint-override main.newtab-main .body-wrapper {
|
|
width: 346px;
|
|
}
|
|
}
|
|
@media (min-width: 724px) {
|
|
.ds-outer-wrapper-breakpoint-override main.newtab-main {
|
|
width: auto;
|
|
}
|
|
.ds-outer-wrapper-breakpoint-override main.newtab-main .ds-card-grid:not(.ds-section-grid) {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
.ds-outer-wrapper-breakpoint-override main.newtab-main .body-wrapper {
|
|
width: 659px;
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.ds-outer-wrapper-breakpoint-override main.newtab-main {
|
|
width: auto;
|
|
}
|
|
.ds-outer-wrapper-breakpoint-override main.newtab-main .ds-card-grid:not(.ds-section-grid) {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
grid-gap: var(--space-xlarge);
|
|
}
|
|
.ds-outer-wrapper-breakpoint-override main.newtab-main .body-wrapper {
|
|
width: 989px;
|
|
}
|
|
}
|
|
@media (min-width: 1698px) {
|
|
.ds-outer-wrapper-breakpoint-override main.newtab-main {
|
|
width: auto;
|
|
}
|
|
.ds-outer-wrapper-breakpoint-override main.newtab-main .body-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 1311px;
|
|
}
|
|
.ds-outer-wrapper-breakpoint-override main.newtab-main .ds-highlights .card-outer {
|
|
min-width: 216px;
|
|
}
|
|
.ds-outer-wrapper-breakpoint-override main.newtab-main .ds-card-grid:not(.ds-section-grid) {
|
|
grid-template-columns: repeat(4, 1fr);
|
|
}
|
|
}
|
|
|
|
.base-content-fallback {
|
|
height: 100vh;
|
|
}
|
|
|
|
.body-wrapper .section-title, .body-wrapper .sections-list .section:last-of-type, .body-wrapper .topics {
|
|
opacity: 0;
|
|
}
|
|
.body-wrapper.on .section-title, .body-wrapper.on .sections-list .section:last-of-type, .body-wrapper.on .topics {
|
|
opacity: 1;
|
|
}
|
|
|
|
.non-collapsible-section {
|
|
padding: 0;
|
|
}
|
|
|
|
.prefs-button button {
|
|
background-color: transparent;
|
|
border: 0;
|
|
border-radius: var(--button-border-radius);
|
|
cursor: pointer;
|
|
padding: var(--space-large);
|
|
position: fixed;
|
|
inset-inline-end: var(--space-large);
|
|
inset-block-start: var(--space-large);
|
|
z-index: 1000;
|
|
}
|
|
.prefs-button button:hover, .prefs-button button:focus {
|
|
background-color: var(--newtab-element-hover-color);
|
|
}
|
|
.prefs-button button:active {
|
|
background-color: var(--newtab-element-active-color);
|
|
}
|
|
|
|
.wallpaper-attribution {
|
|
padding: 0 var(--space-xlarge);
|
|
font-size: var(--font-size-small);
|
|
color: var(--newtab-contextual-text-primary-color);
|
|
position: absolute;
|
|
inset-block-end: var(--space-large);
|
|
inset-inline-start: 0;
|
|
}
|
|
.lightWallpaper .wallpaper-attribution {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .wallpaper-attribution {
|
|
color-scheme: dark;
|
|
}
|
|
.wallpaper-attribution.theme-light {
|
|
display: inline-block;
|
|
}
|
|
[lwt-newtab-brighttext] .wallpaper-attribution.theme-light {
|
|
display: none;
|
|
}
|
|
.wallpaper-attribution.theme-dark {
|
|
display: none;
|
|
}
|
|
[lwt-newtab-brighttext] .wallpaper-attribution.theme-dark {
|
|
display: inline-block;
|
|
}
|
|
.wallpaper-attribution a {
|
|
color: inherit;
|
|
}
|
|
.wallpaper-attribution a:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.asrouter-newtab-message-wrapper {
|
|
background-color: var(--background-color-canvas);
|
|
border: 2px solid var(--card-border-color);
|
|
color: var(--text-color);
|
|
border-radius: var(--border-radius-large);
|
|
margin-block: 0 var(--space-xlarge);
|
|
margin-inline: auto;
|
|
overflow: hidden;
|
|
max-width: 300px;
|
|
/**
|
|
* Bug 2021914 - this is temporary until we get the Nova grid rules more
|
|
* proliferated on New Tab.
|
|
*/
|
|
}
|
|
@media (min-width: 724px) {
|
|
.asrouter-newtab-message-wrapper {
|
|
max-width: 904px;
|
|
}
|
|
}
|
|
|
|
.nova-outer-wrapper {
|
|
color: var(--newtab-text-primary-color);
|
|
min-height: 100vh;
|
|
padding-block-start: var(--space-xlarge);
|
|
}
|
|
|
|
.asrouter-multistage-message-wrapper {
|
|
margin-block: var(--space-xlarge);
|
|
}
|
|
|
|
/**
|
|
* Nova Grid System
|
|
*
|
|
* Layout structure:
|
|
* .container (full grid)
|
|
* ├── .sidebar-inline-start (148px - left sidebar for logo/navigation)
|
|
* ├── .content (flexible - fills remaining space with 75px columns)
|
|
* └── .sidebar-inline-end (148px - right sidebar for mini widgets)
|
|
*
|
|
* DOM order: sidebar-inline-end precedes content (for tab focus order).
|
|
* CSS grid-column placement preserves the visual order above.
|
|
*
|
|
* Column width:
|
|
* 1 column = 1/4 of an IAB Medium Rectangle (MREC) = 300px ÷ 4 = 75px
|
|
* Row height:
|
|
* 1 row = 1/4 of an IAB Medium Rectangle (MREC) = 250px ÷ 4 = 62.5px
|
|
*/
|
|
:root {
|
|
--mrec-width: 300px;
|
|
--col-width: calc(var(--mrec-width) / 4);
|
|
--mrec-height: 250px;
|
|
--row-height: calc(var(--mrec-height) / 4);
|
|
--side-col-width: calc(2 * var(--col-width));
|
|
--content-col-width: minmax(calc((4 * var(--col-width)) + 34px), var(--content-max-width));
|
|
--col-span-2: calc(2 * var(--col-width) + 1 * var(--space-medium));
|
|
--col-span-3: calc(3 * var(--col-width) + 2 * var(--space-medium));
|
|
--col-span-12: calc(12 * var(--col-width) + 11 * var(--space-medium));
|
|
--col-span-16: calc(16 * var(--col-width) + 15 * var(--space-medium));
|
|
--content-max-width: var(--col-span-16);
|
|
}
|
|
|
|
.nova-enabled.container {
|
|
container-type: inline-size;
|
|
container-name: outer-grid;
|
|
display: grid;
|
|
grid-template-columns: var(--side-col-width) var(--content-col-width) var(--side-col-width);
|
|
grid-auto-rows: var(--row-height);
|
|
gap: var(--space-medium);
|
|
justify-content: space-between;
|
|
margin-inline: auto;
|
|
padding-inline: var(--space-xlarge);
|
|
}
|
|
|
|
.nova-enabled .content {
|
|
container-type: inline-size;
|
|
container-name: content-grid;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, var(--col-width));
|
|
gap: var(--space-medium);
|
|
justify-content: center;
|
|
grid-column: 2;
|
|
grid-row: 2/span 2;
|
|
align-self: start;
|
|
}
|
|
|
|
.nova-enabled .sidebar-inline-end {
|
|
display: grid;
|
|
grid-column: 3;
|
|
grid-row: 1/span 2;
|
|
grid-template-rows: subgrid;
|
|
position: relative;
|
|
}
|
|
|
|
.nova-enabled .sidebar-inline-start {
|
|
grid-column: 1;
|
|
grid-row: 1/span 2;
|
|
}
|
|
|
|
.nova-enabled.logo-in-content .content {
|
|
grid-row: 3/span 2;
|
|
}
|
|
|
|
.nova-enabled .content > * {
|
|
grid-column: 1/-1;
|
|
container-type: inline-size;
|
|
container-name: component;
|
|
}
|
|
|
|
.nova-enabled .col-1 {
|
|
grid-column: span 1;
|
|
}
|
|
|
|
.nova-enabled .col-2 {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
.nova-enabled .col-3 {
|
|
grid-column: span 3;
|
|
}
|
|
|
|
.nova-enabled .col-4 {
|
|
grid-column: span 4;
|
|
}
|
|
|
|
.nova-enabled .col-8 {
|
|
grid-column: span 8;
|
|
}
|
|
|
|
.nova-enabled .col-12 {
|
|
grid-column: span 12;
|
|
}
|
|
|
|
.nova-enabled .col-18 {
|
|
grid-column: span 18;
|
|
}
|
|
|
|
.nova-enabled .col-26 {
|
|
grid-column: span 26;
|
|
}
|
|
|
|
.as-error-fallback {
|
|
align-items: center;
|
|
border-radius: var(--border-radius-medium);
|
|
box-shadow: inset 0 0 0 1px var(--newtab-inner-box-shadow-color);
|
|
color: var(--newtab-text-secondary-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-size: var(--font-size-small);
|
|
justify-content: center;
|
|
justify-items: center;
|
|
}
|
|
.as-error-fallback.borderless-error {
|
|
box-shadow: none;
|
|
}
|
|
.as-error-fallback a {
|
|
color: var(--newtab-text-secondary-color);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.logo-and-wordmark .football-bounce {
|
|
overflow: visible;
|
|
position: relative;
|
|
}
|
|
.logo-and-wordmark .football-bounce .football-bounce__sprite {
|
|
position: absolute;
|
|
pointer-events: none;
|
|
transform: translate(-208px, -103px);
|
|
}
|
|
|
|
.logo-and-wordmark .spin-ball-small .spin-ball-small__spin {
|
|
animation: 5.03s linear both spin-ball-small-spin, 5.03s linear both spin-ball-small-blur;
|
|
animation-play-state: paused;
|
|
}
|
|
.logo-and-wordmark .spin-ball-small .spin-ball-small__classic {
|
|
isolation: isolate;
|
|
animation: 5.03s linear both spin-ball-small-classic-fade;
|
|
animation-play-state: paused;
|
|
}
|
|
.logo-and-wordmark .spin-ball-small .spin-ball-small__nova {
|
|
animation: 5.03s linear both spin-ball-small-nova-fade;
|
|
animation-play-state: paused;
|
|
}
|
|
|
|
@keyframes spin-ball-small-spin {
|
|
0% {
|
|
transform: translate(484.5px, 511px) rotate(0deg) scale(1.7, 1.7) translate(-230.8px, -255.1px);
|
|
}
|
|
2.643% {
|
|
transform: translate(484.5px, 511px) rotate(0deg) scale(1.7, 1.7) translate(-230.8px, -255.1px);
|
|
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
|
}
|
|
9.934% {
|
|
transform: translate(484.5px, 511px) rotate(-10deg) scale(1.7, 1.7) translate(-230.8px, -255.1px);
|
|
animation-timing-function: cubic-bezier(0.8, 0, 0.1, 1);
|
|
}
|
|
42.38% {
|
|
transform: translate(484.5px, 511px) rotate(2880deg) scale(1.7, 1.7) translate(-230.8px, -255.1px);
|
|
}
|
|
67.554% {
|
|
transform: translate(484.5px, 511px) rotate(2880deg) scale(1.7, 1.7) translate(-230.8px, -255.1px);
|
|
}
|
|
72.859% {
|
|
transform: translate(484.5px, 511px) rotate(2890deg) scale(1.7, 1.7) translate(-230.8px, -255.1px);
|
|
animation-timing-function: cubic-bezier(0.8, 0, 0.1, 1);
|
|
}
|
|
92.052% {
|
|
transform: translate(484.5px, 511px) rotate(0deg) scale(1.7, 1.7) translate(-230.8px, -255.1px);
|
|
}
|
|
100% {
|
|
transform: translate(484.5px, 511px) rotate(0deg) scale(1.7, 1.7) translate(-230.8px, -255.1px);
|
|
}
|
|
}
|
|
@keyframes spin-ball-small-blur {
|
|
0% {
|
|
filter: blur(0);
|
|
}
|
|
15.239% {
|
|
filter: blur(0);
|
|
}
|
|
26.485% {
|
|
filter: blur(10px);
|
|
}
|
|
35.108% {
|
|
filter: blur(0);
|
|
}
|
|
76.157% {
|
|
filter: blur(0);
|
|
}
|
|
82.118% {
|
|
filter: blur(10px);
|
|
}
|
|
88.754% {
|
|
filter: blur(0);
|
|
}
|
|
100% {
|
|
filter: blur(0);
|
|
}
|
|
}
|
|
@keyframes spin-ball-small-classic-fade {
|
|
0% {
|
|
opacity: 1;
|
|
}
|
|
14.564% {
|
|
opacity: 1;
|
|
animation-timing-function: cubic-bezier(0, 0, 1, 1);
|
|
}
|
|
27.816% {
|
|
opacity: 0;
|
|
}
|
|
39.738% {
|
|
opacity: 0;
|
|
}
|
|
76.157% {
|
|
opacity: 0;
|
|
}
|
|
82.118% {
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@keyframes spin-ball-small-nova-fade {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
15.239% {
|
|
opacity: 0;
|
|
}
|
|
27.816% {
|
|
opacity: 1;
|
|
}
|
|
39.738% {
|
|
opacity: 1;
|
|
}
|
|
76.157% {
|
|
opacity: 1;
|
|
}
|
|
82.118% {
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
.logo-and-wordmark-wrapper {
|
|
margin-block: 0;
|
|
}
|
|
.nova-enabled .content .logo-and-wordmark-wrapper {
|
|
grid-column: 1/-1;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.logo-and-wordmark {
|
|
align-items: center;
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-block-end: var(--space-xxlarge);
|
|
}
|
|
.nova-enabled .logo-and-wordmark {
|
|
justify-content: flex-start;
|
|
}
|
|
.nova-enabled .logo-and-wordmark .wordmark {
|
|
display: none;
|
|
}
|
|
@container outer-grid (inline-size >= calc(2 * 150px + 9 * 0.75rem + 8 * 75px)) {
|
|
.nova-enabled .logo-and-wordmark {
|
|
width: max-content;
|
|
}
|
|
.nova-enabled .logo-and-wordmark .wordmark {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
.nova-enabled .content .logo-and-wordmark {
|
|
grid-column: 1/-1;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
}
|
|
.no-recommended-stories .logo-and-wordmark {
|
|
margin-block-end: calc(var(--space-large) + var(--space-xlarge));
|
|
}
|
|
.logo-and-wordmark .logo {
|
|
display: inline-block;
|
|
height: 64px;
|
|
width: 64px;
|
|
background: image-set(url("chrome://branding/content/about-logo.png"), url("chrome://branding/content/about-logo@2x.png") 2x) no-repeat center;
|
|
background-size: 64px;
|
|
}
|
|
.logo-and-wordmark .wordmark {
|
|
background: url("chrome://branding/content/firefox-wordmark.svg") no-repeat center center;
|
|
background-size: 105px;
|
|
-moz-context-properties: fill;
|
|
display: inline-block;
|
|
fill: var(--newtab-wordmark-color);
|
|
height: 64px;
|
|
margin-inline-start: var(--space-large);
|
|
width: 105px;
|
|
}
|
|
.lightWallpaper .logo-and-wordmark .wordmark {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .logo-and-wordmark .wordmark {
|
|
color-scheme: dark;
|
|
}
|
|
.logo-and-wordmark .logo-variation-small {
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
height: 64px;
|
|
width: 64px;
|
|
}
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.logo-and-wordmark .logo-variation-small {
|
|
transition: opacity 0.15s ease-out;
|
|
}
|
|
.logo-and-wordmark .logo-variation-small:hover {
|
|
opacity: 0.8;
|
|
}
|
|
.logo-and-wordmark .logo-variation-small.is-animating, .logo-and-wordmark .logo-variation-small.is-animating:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@media (max-width: 609px) {
|
|
.classic-enabled .logo-and-wordmark .logo {
|
|
background-size: 64px;
|
|
height: 64px;
|
|
width: 64px;
|
|
}
|
|
.classic-enabled .logo-and-wordmark .wordmark {
|
|
background-size: 100px;
|
|
height: 64px;
|
|
width: 100px;
|
|
margin-inline-start: var(--space-medium);
|
|
}
|
|
}
|
|
|
|
/* stylelint-disable max-nesting-depth */
|
|
.top-sites-list {
|
|
list-style: none;
|
|
margin: 0 calc(var(--space-large) * -1);
|
|
padding: 0;
|
|
display: grid;
|
|
grid-template-columns: repeat(3, auto);
|
|
justify-content: center;
|
|
row-gap: var(--space-small);
|
|
}
|
|
.top-sites-list:has(.pinned-drag-overlay) {
|
|
position: relative;
|
|
}
|
|
.top-sites-list:not(.dnd-active) .top-site-outer:is(.active,
|
|
:has(.top-site-inner:is(:hover, :focus-within))) {
|
|
background: color-mix(in srgb, var(--button-text-color-hover) 14%, transparent);
|
|
}
|
|
.lightWallpaper .top-sites-list:not(.dnd-active) .top-site-outer:is(.active,
|
|
:has(.top-site-inner:is(:hover, :focus-within))) {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .top-sites-list:not(.dnd-active) .top-site-outer:is(.active,
|
|
:has(.top-site-inner:is(:hover, :focus-within))) {
|
|
color-scheme: dark;
|
|
}
|
|
.top-sites-list:not(.dnd-active) .top-site-outer:is(.active,
|
|
:has(.top-site-inner:is(:hover, :focus-within))) .tile {
|
|
box-shadow: 0 2px 8px 0 var(--newtab-section-card-box-shadow-color);
|
|
}
|
|
.top-sites-list:not(.dnd-active) .top-site-outer:is(.active,
|
|
:has(.top-site-inner:is(:hover, :focus-within))) .icon-pin-small {
|
|
opacity: 1;
|
|
}
|
|
.lightWallpaper .top-sites-list:not(.dnd-active) .top-site-outer:is(.active,
|
|
:has(.top-site-inner:is(:hover, :focus-within))), .darkWallpaper .top-sites-list:not(.dnd-active) .top-site-outer:is(.active,
|
|
:has(.top-site-inner:is(:hover, :focus-within))) {
|
|
background: color-mix(in srgb, var(--button-text-color-hover) 14%, transparent);
|
|
}
|
|
@media (prefers-contrast) {
|
|
.lightWallpaper .top-sites-list:not(.dnd-active) .top-site-outer:is(.active,
|
|
:has(.top-site-inner:is(:hover, :focus-within))), .darkWallpaper .top-sites-list:not(.dnd-active) .top-site-outer:is(.active,
|
|
:has(.top-site-inner:is(:hover, :focus-within))) {
|
|
background-color: var(--background-color-box);
|
|
}
|
|
}
|
|
@media (min-width: 724px) {
|
|
.top-sites-list {
|
|
grid-template-columns: repeat(6, auto);
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.top-sites-list {
|
|
grid-template-columns: repeat(8, auto);
|
|
}
|
|
}
|
|
@media (min-width: 1390px) {
|
|
.top-sites-list {
|
|
grid-template-columns: repeat(var(--top-sites-max-per-row, 8), auto);
|
|
}
|
|
}
|
|
.top-sites-list a {
|
|
text-decoration: none;
|
|
}
|
|
@media (max-width: 610px) {
|
|
.top-sites-list > :nth-child(2n+1) .context-menu {
|
|
margin-inline-end: auto;
|
|
margin-inline-start: auto;
|
|
inset-inline-end: auto;
|
|
inset-inline-start: calc(var(--space-xxlarge) * -1);
|
|
}
|
|
.top-sites-list > :nth-child(2n) .context-menu {
|
|
margin-inline-end: var(--space-xsmall);
|
|
margin-inline-start: auto;
|
|
inset-inline-end: 0;
|
|
inset-inline-start: auto;
|
|
}
|
|
}
|
|
@media (min-width: 610px) and (max-width: 866px) {
|
|
.top-sites-list :nth-child(4n) .context-menu {
|
|
margin-inline-end: var(--space-xsmall);
|
|
margin-inline-start: auto;
|
|
inset-inline-end: 0;
|
|
inset-inline-start: auto;
|
|
}
|
|
}
|
|
@media (min-width: 610px) and (max-width: 802px) {
|
|
.top-sites-list :nth-child(4n+3) .context-menu {
|
|
margin-inline-end: var(--space-xsmall);
|
|
margin-inline-start: auto;
|
|
inset-inline-end: 0;
|
|
inset-inline-start: auto;
|
|
}
|
|
}
|
|
@media (min-width: 866px) and (max-width: 1250px) {
|
|
.top-sites-list :nth-child(6n) .context-menu {
|
|
margin-inline-end: var(--space-xsmall);
|
|
margin-inline-start: auto;
|
|
inset-inline-end: 0;
|
|
inset-inline-start: auto;
|
|
}
|
|
}
|
|
@media (min-width: 866px) and (max-width: 1058px) {
|
|
.top-sites-list :nth-child(6n+5) .context-menu {
|
|
margin-inline-end: var(--space-xsmall);
|
|
margin-inline-start: auto;
|
|
inset-inline-end: 0;
|
|
inset-inline-start: auto;
|
|
}
|
|
}
|
|
@media (min-width: 1122px) and (max-width: 1506px) {
|
|
.top-sites-list :nth-child(8n) .context-menu {
|
|
margin-inline-end: var(--space-xsmall);
|
|
margin-inline-start: auto;
|
|
inset-inline-end: 0;
|
|
inset-inline-start: auto;
|
|
}
|
|
}
|
|
@media (min-width: 1122px) and (max-width: 1314px) {
|
|
.top-sites-list :nth-child(8n+7) .context-menu {
|
|
margin-inline-end: var(--space-xsmall);
|
|
margin-inline-start: auto;
|
|
inset-inline-end: 0;
|
|
inset-inline-start: auto;
|
|
}
|
|
}
|
|
.top-sites-list .hide-for-narrow {
|
|
display: none;
|
|
}
|
|
@media (min-width: 610px) {
|
|
.top-sites-list .hide-for-narrow {
|
|
display: none;
|
|
}
|
|
}
|
|
@media (min-width: 866px) {
|
|
.top-sites-list .hide-for-narrow {
|
|
display: none;
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.top-sites-list .hide-for-narrow {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
.top-sites-list .hide-for-small {
|
|
display: none;
|
|
}
|
|
@media (min-width: 1390px) {
|
|
.top-sites-list .hide-for-small {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
.discovery-stream.ds-layout.ds-layout-topsites {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
.discovery-stream.ds-layout.ds-layout-topsites .top-sites-list {
|
|
padding-block-start: 0;
|
|
}
|
|
.nova-enabled .discovery-stream.ds-layout.ds-layout-topsites {
|
|
display: contents;
|
|
}
|
|
|
|
.pinned-drag-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: -1;
|
|
}
|
|
.pinned-drag-overlay .pinned-drop-box {
|
|
position: absolute;
|
|
}
|
|
.pinned-drag-overlay .pinned-drop-box::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset-block-start: 0;
|
|
inset-block-end: calc(-1 * var(--space-small));
|
|
inset-inline: calc(-1 * var(--space-small));
|
|
border-radius: var(--border-radius-large);
|
|
background: color-mix(in srgb, var(--border-color-selected) 15%, transparent);
|
|
outline: 1px dashed var(--border-color-selected);
|
|
}
|
|
.lightWallpaper .pinned-drag-overlay .pinned-drop-box {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .pinned-drag-overlay .pinned-drop-box {
|
|
color-scheme: dark;
|
|
}
|
|
.pinned-drag-overlay .pinned-drop-box .pinned-area-label {
|
|
position: absolute;
|
|
inset-block-end: 100%;
|
|
inset-inline-start: 0;
|
|
margin-block-end: var(--space-small);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-small);
|
|
white-space: nowrap;
|
|
font-size: var(--font-size-small);
|
|
color: var(--newtab-text-primary-color);
|
|
}
|
|
|
|
.top-site-outer {
|
|
width: 120px;
|
|
margin-block-end: var(--space-medium);
|
|
border-radius: var(--border-radius-large);
|
|
display: inline-block;
|
|
position: relative;
|
|
}
|
|
.top-site-outer .top-site-inner {
|
|
position: relative;
|
|
}
|
|
.top-site-outer .top-site-inner > a {
|
|
padding: var(--space-large) var(--space-large) var(--space-xsmall);
|
|
color: inherit;
|
|
display: block;
|
|
outline: none;
|
|
}
|
|
.top-sites-list:not(.dnd-active) .top-site-outer:has(.top-site-inner:is(:hover, :focus-within)) .context-menu-button {
|
|
opacity: 1;
|
|
transition: opacity 200ms;
|
|
}
|
|
.top-sites-list:not(.dnd-active) .top-site-outer:has(.top-site-inner:is(:hover, :focus-within)) .tile {
|
|
background-color: var(--newtab-background-color-secondary);
|
|
}
|
|
.top-sites-list:not(.dnd-active) .top-site-outer:has(.top-site-inner:is(:hover, :focus-within)) .icon-pin-small {
|
|
opacity: 1;
|
|
}
|
|
.lightWallpaper .top-site-outer:not(:hover, :active, .active) {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .top-site-outer:not(:hover, :active, .active) {
|
|
color-scheme: dark;
|
|
}
|
|
.top-site-outer .tile {
|
|
color-scheme: initial;
|
|
}
|
|
.top-site-outer.active .context-menu-button {
|
|
opacity: 1;
|
|
background-color: var(--newtab-button-active-background);
|
|
}
|
|
.top-site-outer.drag-ghost :is(.context-menu-button, .icon-pin-small) {
|
|
display: none;
|
|
}
|
|
.top-site-outer .tile {
|
|
background: var(--newtab-background-card);
|
|
border-radius: var(--border-radius-large);
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
|
height: calc(var(--size-item-large) * 2);
|
|
width: calc(var(--size-item-large) * 2);
|
|
margin: 0 auto;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-transform: uppercase;
|
|
font-size: var(--font-size-xxlarge);
|
|
color: var(--newtab-contextual-text-secondary-color);
|
|
cursor: pointer;
|
|
}
|
|
.top-site-outer .tile .icon-wrapper {
|
|
border-radius: var(--border-radius-small);
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
.top-site-outer .tile .icon-wrapper.letter-fallback {
|
|
border-radius: var(--border-radius-circle);
|
|
}
|
|
.top-site-outer .tile .icon-wrapper.letter-fallback::before {
|
|
content: attr(data-fallback);
|
|
font-size: var(--font-size-xlarge);
|
|
transform: none;
|
|
position: static;
|
|
}
|
|
.top-site-outer .tile .top-site-icon {
|
|
background-color: transparent;
|
|
border-radius: var(--border-radius-medium);
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
position: absolute;
|
|
}
|
|
.top-site-outer .context-menu-button {
|
|
background-image: url("chrome://global/skin/icons/more.svg");
|
|
border: 0;
|
|
border-radius: var(--border-radius-small);
|
|
cursor: pointer;
|
|
fill: var(--newtab-button-text);
|
|
-moz-context-properties: fill;
|
|
height: var(--size-item-medium);
|
|
width: var(--size-item-medium);
|
|
inset-inline-end: 0;
|
|
inset-block-start: var(--space-medium);
|
|
position: absolute;
|
|
opacity: 0;
|
|
}
|
|
.top-site-outer .context-menu-button:hover {
|
|
background-color: var(--newtab-button-hover-background);
|
|
}
|
|
.top-site-outer .context-menu-button:hover:active {
|
|
background-color: var(--newtab-button-active-background);
|
|
}
|
|
.top-site-outer .context-menu-button:focus-visible {
|
|
background-color: var(--newtab-button-focus-background);
|
|
outline: var(--focus-outline);
|
|
opacity: 1;
|
|
}
|
|
.lightWallpaper .top-site-outer .context-menu-button:focus-visible::after, .darkWallpaper .top-site-outer .context-menu-button:focus-visible::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: var(--border-radius-small);
|
|
outline: var(--focus-outline);
|
|
color-scheme: initial;
|
|
}
|
|
.top-site-outer .context-menu {
|
|
inset-block-start: calc(var(--space-large) + var(--space-xlarge));
|
|
}
|
|
.top-site-outer .icon-pin-small {
|
|
inset-block-start: var(--space-small);
|
|
inset-inline-start: var(--space-small);
|
|
opacity: 0;
|
|
position: absolute;
|
|
}
|
|
.top-site-outer .top-site-button {
|
|
padding: var(--space-large) var(--space-large) var(--space-small);
|
|
}
|
|
.top-site-outer .top-site-button:focus + div .context-menu-button {
|
|
opacity: 1;
|
|
}
|
|
.lightWallpaper .top-site-outer .top-site-button:focus .tile, .darkWallpaper .top-site-outer .top-site-button:focus .tile {
|
|
outline: var(--focus-outline);
|
|
color-scheme: initial;
|
|
}
|
|
.top-site-outer .title {
|
|
color: var(--newtab-contextual-text-primary-color);
|
|
padding-block-start: var(--space-small);
|
|
font: caption;
|
|
text-align: center;
|
|
position: relative;
|
|
}
|
|
.top-site-outer .title .icon {
|
|
margin-inline-end: var(--space-xxsmall);
|
|
fill: currentColor;
|
|
}
|
|
.top-site-outer .title .sponsored-label {
|
|
color: var(--newtab-contextual-text-secondary-color);
|
|
font-size: var(--newtab-font-size-xsmall);
|
|
}
|
|
.top-site-outer .title:not(.sponsored) .sponsored-label {
|
|
display: none;
|
|
}
|
|
.top-site-outer .title .search-topsite {
|
|
margin-inline-end: var(--space-xxsmall);
|
|
fill: currentColor;
|
|
background-size: var(--icon-size-xsmall);
|
|
height: var(--icon-size-xsmall);
|
|
width: var(--icon-size-xsmall);
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-color: transparent;
|
|
position: static;
|
|
display: inline-block;
|
|
color: var(--icon-color);
|
|
box-shadow: none;
|
|
}
|
|
.top-site-outer .rich-icon {
|
|
background-size: cover;
|
|
height: 100%;
|
|
width: 100%;
|
|
position: absolute;
|
|
inset-inline-start: 0;
|
|
inset-block-start: 0;
|
|
}
|
|
.top-site-outer .default-icon,
|
|
.top-site-outer .search-topsite {
|
|
background-size: 40px;
|
|
height: 40px;
|
|
width: 40px;
|
|
align-items: center;
|
|
display: flex;
|
|
justify-content: center;
|
|
font-size: var(--font-size-xlarge);
|
|
}
|
|
.top-site-outer .default-icon[data-fallback]::before,
|
|
.top-site-outer .search-topsite[data-fallback]::before {
|
|
content: attr(data-fallback);
|
|
}
|
|
.top-site-outer .search-topsite {
|
|
background-image: url("chrome://global/skin/icons/search-glass.svg");
|
|
background-size: 16px;
|
|
background-color: var(--newtab-primary-action-background);
|
|
border-radius: var(--border-radius-circle);
|
|
-moz-context-properties: fill;
|
|
fill: var(--newtab-primary-element-text-color);
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
|
transition: background-size 150ms, bottom 150ms, inset-inline-end 150ms, height 150ms, width 150ms;
|
|
height: 32px;
|
|
width: 32px;
|
|
inset-block-end: -6px;
|
|
inset-inline-end: -6px;
|
|
}
|
|
.top-site-outer.placeholder .tile {
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
|
cursor: default;
|
|
}
|
|
.top-site-outer.search-shortcut .rich-icon {
|
|
background-color: var(--color-white);
|
|
}
|
|
.top-site-outer .edit-button {
|
|
background-image: url("chrome://global/skin/icons/edit.svg");
|
|
}
|
|
.top-site-outer.collapsed {
|
|
position: absolute;
|
|
visibility: hidden;
|
|
}
|
|
.top-site-outer.zero-pin-placeholder {
|
|
opacity: 0;
|
|
}
|
|
.top-site-outer.zero-pin-placeholder.over {
|
|
opacity: 1;
|
|
}
|
|
.top-site-outer.dragged .tile *, .top-site-outer.dragged .tile::before {
|
|
display: none;
|
|
}
|
|
.top-site-outer.dragged .title {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.lightWallpaper .add-button {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .add-button {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
.add-button-hidden {
|
|
position: absolute;
|
|
inset-block-start: calc(var(--space-large) + var(--size-item-large));
|
|
inset-inline-start: 100%;
|
|
width: var(--col-width);
|
|
display: flex;
|
|
justify-content: center;
|
|
padding-block: var(--space-xxlarge);
|
|
transform: translateY(-50%);
|
|
opacity: 0;
|
|
transition: opacity 200ms ease-out;
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.add-button-hidden {
|
|
transition: opacity 100ms;
|
|
}
|
|
}
|
|
.top-site-outer:hover .add-button-hidden {
|
|
opacity: 1;
|
|
transition-delay: 200ms;
|
|
}
|
|
.top-sites-list:focus-within .add-button-hidden {
|
|
opacity: 1;
|
|
}
|
|
.top-sites-list:has(.top-site-outer.active) .add-button-hidden {
|
|
opacity: 0;
|
|
}
|
|
|
|
.add-button-tile .add-button {
|
|
position: absolute;
|
|
inset-block-start: calc(var(--space-large) + var(--size-item-large));
|
|
inset-inline: 0;
|
|
margin-inline: auto;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.add-button-tile:only-child {
|
|
grid-column: 1/-1;
|
|
min-height: calc(96px + var(--space-small) * 7);
|
|
}
|
|
|
|
.nova-enabled .add-button-hidden,
|
|
.nova-enabled .add-button-tile .add-button {
|
|
inset-block-start: calc(var(--col-width) - var(--size-item-large));
|
|
}
|
|
.nova-enabled .add-button-tile:only-child {
|
|
min-height: calc(107px + var(--space-small));
|
|
}
|
|
|
|
.shortcuts-refresh .top-site-outer {
|
|
margin-block-end: 0;
|
|
}
|
|
|
|
.edit-topsites-wrapper .top-site-inner > .top-site-button > .tile {
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
.edit-topsites-wrapper .modal {
|
|
border: 0;
|
|
min-height: fit-content;
|
|
inset-block-start: var(--space-xxlarge);
|
|
}
|
|
@media (min-width: 610px) {
|
|
.edit-topsites-wrapper .modal {
|
|
width: 530px;
|
|
}
|
|
}
|
|
@media (min-width: 866px) {
|
|
.edit-topsites-wrapper .modal {
|
|
width: 786px;
|
|
}
|
|
}
|
|
|
|
.topsite-form .section-title {
|
|
font-size: inherit;
|
|
margin: 0 0 var(--space-large);
|
|
}
|
|
.topsite-form .form-input-container {
|
|
max-width: 492px;
|
|
margin: 0 auto;
|
|
padding: var(--space-xxlarge);
|
|
}
|
|
.topsite-form .form-input-container .top-site-outer {
|
|
pointer-events: none;
|
|
}
|
|
.topsite-form .search-shortcuts-container {
|
|
max-width: 700px;
|
|
margin: 0 auto;
|
|
padding: var(--space-xxlarge);
|
|
}
|
|
.topsite-form .search-shortcuts-container > div {
|
|
margin-inline-end: calc(var(--space-xxlarge) * -1);
|
|
}
|
|
.topsite-form .search-shortcuts-container .top-site-outer {
|
|
margin-inline-start: 0;
|
|
margin-inline-end: var(--space-xxlarge);
|
|
}
|
|
.topsite-form .top-site-outer {
|
|
padding: 0;
|
|
margin: var(--space-xlarge) 0 0;
|
|
margin-inline-start: var(--space-xxlarge);
|
|
}
|
|
.topsite-form .fields-and-preview {
|
|
display: flex;
|
|
}
|
|
.topsite-form label {
|
|
font-size: var(--font-size-large);
|
|
}
|
|
.topsite-form .form-wrapper {
|
|
width: 100%;
|
|
}
|
|
.topsite-form .form-wrapper .field {
|
|
position: relative;
|
|
}
|
|
.topsite-form .form-wrapper .field .icon-clear-input {
|
|
position: absolute;
|
|
transform: translateY(-50%);
|
|
inset-block-start: 50%;
|
|
inset-inline-end: var(--space-small);
|
|
}
|
|
.topsite-form .form-wrapper .url input:dir(ltr) {
|
|
padding-inline-end: var(--space-xxlarge);
|
|
}
|
|
.topsite-form .form-wrapper .url input:dir(rtl) {
|
|
padding-inline-start: var(--space-xxlarge);
|
|
}
|
|
.topsite-form .form-wrapper .url input:dir(rtl):not(:placeholder-shown) {
|
|
direction: ltr;
|
|
text-align: end;
|
|
}
|
|
.topsite-form .form-wrapper .enable-custom-image-input {
|
|
display: inline-block;
|
|
font-size: var(--font-size-small);
|
|
margin-block-start: var(--space-xsmall);
|
|
cursor: pointer;
|
|
}
|
|
.topsite-form .form-wrapper .custom-image-input-container {
|
|
margin-block-start: var(--space-xsmall);
|
|
}
|
|
.topsite-form .form-wrapper .custom-image-input-container .loading-container {
|
|
width: 16px;
|
|
height: 16px;
|
|
overflow: hidden;
|
|
position: absolute;
|
|
transform: translateY(-50%);
|
|
inset-block-start: 50%;
|
|
inset-inline-end: var(--space-small);
|
|
}
|
|
.topsite-form .form-wrapper .custom-image-input-container .loading-animation {
|
|
width: 960px;
|
|
height: 16px;
|
|
-moz-context-properties: fill;
|
|
fill: var(--newtab-primary-action-background);
|
|
background-image: url("chrome://browser/skin/tabbrowser/loading.svg");
|
|
animation: tab-throbber-animation 1.05s steps(60) infinite;
|
|
}
|
|
@keyframes tab-throbber-animation {
|
|
100% {
|
|
transform: translateX(-960px);
|
|
}
|
|
}
|
|
@keyframes tab-throbber-animation-rtl {
|
|
100% {
|
|
transform: translateX(960px);
|
|
}
|
|
}
|
|
.topsite-form .form-wrapper .custom-image-input-container .loading-animation:dir(rtl) {
|
|
animation-name: tab-throbber-animation-rtl;
|
|
}
|
|
.topsite-form .form-wrapper input[type=text] {
|
|
background-color: var(--newtab-background-color-secondary);
|
|
border: 1px solid var(--border-color-interactive);
|
|
margin: var(--space-small) 0;
|
|
padding: 0 var(--space-small);
|
|
height: 32px;
|
|
width: 100%;
|
|
font-size: inherit;
|
|
}
|
|
.topsite-form .form-wrapper input[type=text][disabled] {
|
|
border: 1px solid var(--border-color-interactive-disabled);
|
|
box-shadow: none;
|
|
opacity: 0.4;
|
|
}
|
|
.topsite-form .form-wrapper .invalid input[type=text] {
|
|
border: 1px solid var(--border-color-error);
|
|
box-shadow: 0 0 0 1px var(--newtab-status-error), 0 0 0 4px rgba(var(--newtab-status-error), 0.3);
|
|
}
|
|
.topsite-form .form-wrapper .error-tooltip {
|
|
animation: fade-up-tt 450ms;
|
|
background: var(--newtab-status-error);
|
|
border-radius: var(--border-radius-small);
|
|
color: var(--color-white);
|
|
inset-inline-start: var(--space-xxsmall);
|
|
padding: var(--space-xsmall) var(--space-medium);
|
|
position: absolute;
|
|
inset-block-start: var(--space-xxlarge);
|
|
z-index: 1;
|
|
}
|
|
.topsite-form .form-wrapper .error-tooltip::before {
|
|
background: var(--newtab-status-error);
|
|
inset-block-end: calc(var(--space-small) * -1);
|
|
content: ".";
|
|
height: 16px;
|
|
inset-inline-start: var(--space-medium);
|
|
position: absolute;
|
|
text-indent: -999px;
|
|
inset-block-start: calc(var(--space-small) * -1);
|
|
transform: rotate(45deg);
|
|
white-space: nowrap;
|
|
width: 16px;
|
|
z-index: -1;
|
|
}
|
|
.topsite-form .actions {
|
|
justify-content: flex-end;
|
|
padding: var(--space-large) var(--space-xlarge);
|
|
}
|
|
@media (max-width: 610px) {
|
|
.topsite-form .fields-and-preview {
|
|
flex-direction: column;
|
|
}
|
|
.topsite-form .fields-and-preview .top-site-outer {
|
|
margin-inline-start: 0;
|
|
}
|
|
}
|
|
.topsite-form .title {
|
|
user-select: none;
|
|
}
|
|
.topsite-form [type=checkbox]:not(:checked),
|
|
.topsite-form [type=checkbox]:checked {
|
|
inset-inline-start: -9999px;
|
|
position: absolute;
|
|
}
|
|
.topsite-form [type=checkbox]:not(:checked) + label,
|
|
.topsite-form [type=checkbox]:checked + label {
|
|
cursor: pointer;
|
|
display: block;
|
|
position: relative;
|
|
}
|
|
.topsite-form [type=checkbox]:not(:checked) + label::before,
|
|
.topsite-form [type=checkbox]:checked + label::before {
|
|
background: var(--newtab-background-color);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--border-radius-small);
|
|
content: "";
|
|
height: 21px;
|
|
inset-inline-start: calc(var(--space-small) * -1);
|
|
position: absolute;
|
|
inset-block-start: calc(var(--space-small) * -1);
|
|
width: 21px;
|
|
z-index: 1;
|
|
}
|
|
[dir=rtl] .topsite-form [type=checkbox]:not(:checked) + label::before,
|
|
[dir=rtl] .topsite-form [type=checkbox]:checked + label::before {
|
|
inset-inline-start: auto;
|
|
inset-inline-end: calc(var(--space-small) * -1);
|
|
}
|
|
.topsite-form [type=checkbox]:not(:checked) + label::after,
|
|
.topsite-form [type=checkbox]:checked + label::after {
|
|
background: url("chrome://global/skin/icons/check.svg") no-repeat center center;
|
|
content: "";
|
|
height: 21px;
|
|
inset-inline-start: calc(var(--space-small) * -1);
|
|
position: absolute;
|
|
inset-block-start: calc(var(--space-small) * -1);
|
|
width: 21px;
|
|
-moz-context-properties: fill;
|
|
fill: var(--newtab-primary-action-background);
|
|
z-index: 2;
|
|
}
|
|
[dir=rtl] .topsite-form [type=checkbox]:not(:checked) + label::after,
|
|
[dir=rtl] .topsite-form [type=checkbox]:checked + label::after {
|
|
inset-inline-start: auto;
|
|
inset-inline-end: calc(var(--space-small) * -1);
|
|
}
|
|
.topsite-form [type=checkbox]:checked + label .tile {
|
|
box-shadow: 0 0 0 2px var(--newtab-primary-action-background-dimmed);
|
|
}
|
|
.topsite-form [type=checkbox]:not(:checked) + label::after {
|
|
opacity: 0;
|
|
}
|
|
.topsite-form [type=checkbox]:checked + label::after {
|
|
opacity: 1;
|
|
}
|
|
.topsite-form [type=checkbox]:checked:focus + label::before,
|
|
.topsite-form [type=checkbox]:not(:checked):focus + label::before {
|
|
border: 1px dotted var(--newtab-primary-action-background);
|
|
}
|
|
|
|
.top-sites-list .top-site-outer .top-site-button,
|
|
.fields-and-preview .top-site-outer .top-site-button {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
.top-sites-list .top-site-outer .title .title-label,
|
|
.fields-and-preview .top-site-outer .title .title-label {
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
-webkit-line-clamp: 2;
|
|
white-space: wrap;
|
|
word-break: break-word;
|
|
min-height: 2lh;
|
|
width: 100px;
|
|
padding: 0 var(--space-xsmall);
|
|
}
|
|
.top-sites-list .top-site-outer .title.sponsored .title-label,
|
|
.fields-and-preview .top-site-outer .title.sponsored .title-label {
|
|
-webkit-line-clamp: 1;
|
|
min-height: 1lh;
|
|
}
|
|
|
|
@keyframes fade-up-tt {
|
|
0% {
|
|
opacity: 0;
|
|
transform: translateY(15px);
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
.topsite-impression-observer {
|
|
position: absolute;
|
|
inset-block-start: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.sections-list .section-list {
|
|
display: grid;
|
|
grid-gap: var(--space-xxlarge);
|
|
grid-template-columns: repeat(auto-fit, 192px);
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
@media (max-width: 610px) {
|
|
.sections-list .section-list .context-menu {
|
|
margin-inline-end: var(--space-xsmall);
|
|
margin-inline-start: auto;
|
|
inset-inline-end: 0;
|
|
inset-inline-start: auto;
|
|
}
|
|
}
|
|
@media (min-width: 610px) and (max-width: 866px) {
|
|
.sections-list .section-list :nth-child(2n) .context-menu {
|
|
margin-inline-end: var(--space-xsmall);
|
|
margin-inline-start: auto;
|
|
inset-inline-end: 0;
|
|
inset-inline-start: auto;
|
|
}
|
|
}
|
|
@media (min-width: 866px) and (max-width: 1250px) {
|
|
.sections-list .section-list :nth-child(3n) .context-menu {
|
|
margin-inline-end: var(--space-xsmall);
|
|
margin-inline-start: auto;
|
|
inset-inline-end: 0;
|
|
inset-inline-start: auto;
|
|
}
|
|
}
|
|
@media (min-width: 1122px) and (max-width: 1506px) {
|
|
.sections-list .section-list :nth-child(3n) .context-menu,
|
|
.sections-list .section-list :nth-child(4n) .context-menu {
|
|
margin-inline-end: var(--space-xsmall);
|
|
margin-inline-start: auto;
|
|
inset-inline-end: 0;
|
|
inset-inline-start: auto;
|
|
}
|
|
}
|
|
.sections-list .section-empty-state {
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--border-radius-small);
|
|
display: flex;
|
|
height: 266px;
|
|
width: 100%;
|
|
}
|
|
.sections-list .section-empty-state .empty-state {
|
|
margin: auto;
|
|
max-width: 350px;
|
|
}
|
|
.sections-list .section-empty-state .empty-state .empty-state-message {
|
|
color: var(--newtab-text-primary-color);
|
|
font-size: var(--font-size-small);
|
|
margin-block-end: 0;
|
|
text-align: center;
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.sections-list .section-empty-state {
|
|
height: 370px;
|
|
}
|
|
}
|
|
|
|
.top-stories-bottom-container {
|
|
color: var(--newtab-text-primary-color);
|
|
font-size: var(--font-size-small);
|
|
margin-block-start: var(--space-medium);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
.top-stories-bottom-container a {
|
|
color: var(--newtab-primary-action-background);
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
.top-stories-bottom-container a.more-recommendations {
|
|
font-weight: var(--font-weight);
|
|
font-size: var(--font-size-small);
|
|
}
|
|
@media (max-width: 865px) {
|
|
.top-stories-bottom-container .wrapper-topics {
|
|
display: none;
|
|
}
|
|
}
|
|
@media (max-width: 609px) {
|
|
.top-stories-bottom-container .wrapper-more-recommendations {
|
|
width: 100%;
|
|
}
|
|
.top-stories-bottom-container .wrapper-more-recommendations .more-recommendations {
|
|
justify-content: center;
|
|
}
|
|
.top-stories-bottom-container .wrapper-more-recommendations .more-recommendations::after {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1122px) {
|
|
.sections-list .normal-cards .section-list {
|
|
grid-template-columns: repeat(auto-fit, 309px);
|
|
}
|
|
}
|
|
.search-wrapper {
|
|
padding: 0;
|
|
margin-block: var(--space-xxlarge);
|
|
margin-block-start: 0;
|
|
}
|
|
.search-wrapper .logo-and-wordmark {
|
|
margin-block-end: var(--space-xxlarge);
|
|
}
|
|
.search-wrapper .logo-and-wordmark-wrapper {
|
|
margin-block-end: 0;
|
|
}
|
|
@media (height <= 700px) {
|
|
.search-wrapper {
|
|
padding: 0;
|
|
margin-block-start: 0;
|
|
}
|
|
}
|
|
@media (height > 700px) {
|
|
.search-wrapper {
|
|
padding: 0;
|
|
}
|
|
}
|
|
.only-search .search-wrapper {
|
|
padding-block-end: calc(var(--space-large) + var(--space-xlarge));
|
|
}
|
|
.search-wrapper .search-inner-wrapper {
|
|
cursor: default;
|
|
display: flex;
|
|
height: 52px;
|
|
margin: 0 auto;
|
|
position: relative;
|
|
width: 304px;
|
|
}
|
|
@media (min-width: 610px) {
|
|
.search-wrapper .search-inner-wrapper {
|
|
width: 360px;
|
|
}
|
|
}
|
|
@media (min-width: 866px) {
|
|
.search-wrapper .search-inner-wrapper {
|
|
width: 510px;
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.search-wrapper .search-inner-wrapper {
|
|
width: 720px;
|
|
}
|
|
}
|
|
.search-wrapper content-search-handoff-ui {
|
|
--content-search-handoff-ui-background-color: var(--newtab-background-color-secondary);
|
|
--content-search-handoff-ui-color: var(--newtab-text-primary-color);
|
|
--content-search-handoff-ui-fill: var(--newtab-text-secondary-color);
|
|
--content-search-handoff-ui-caret-color: var(--newtab-text-primary-color);
|
|
--content-search-handoff-ui-fakefocus-border-color: var(--newtab-primary-action-background);
|
|
--content-search-handoff-ui-fakefocus-box-shadow-inner: var(--newtab-primary-action-background-dimmed);
|
|
--content-search-handoff-ui-fakefocus-box-shadow-outer: transparent;
|
|
}
|
|
.search-wrapper.visible-logo .logo-and-wordmark .wordmark {
|
|
fill: var(--newtab-wordmark-color);
|
|
}
|
|
|
|
.has-recommended-stories .outer-wrapper:not(.fixed-search) .search-wrapper {
|
|
margin-block-start: var(--space-large);
|
|
}
|
|
.has-recommended-stories .logo-and-wordmark {
|
|
position: absolute;
|
|
inset-inline-start: var(--space-xxlarge);
|
|
inset-block-start: var(--space-xxlarge);
|
|
}
|
|
@media (min-width: 724px) {
|
|
.has-recommended-stories .logo-and-wordmark {
|
|
inset-inline-start: var(--space-large);
|
|
}
|
|
}
|
|
@media (min-width: 866px) {
|
|
.has-recommended-stories .logo-and-wordmark {
|
|
inset-inline-start: var(--space-xxlarge);
|
|
}
|
|
}
|
|
.has-recommended-stories.no-search .body-wrapper {
|
|
margin-block-start: 0;
|
|
}
|
|
@media (min-width: 866px) {
|
|
.has-recommended-stories.no-search .body-wrapper {
|
|
margin-block-start: calc(var(--space-xlarge) * 4);
|
|
}
|
|
}
|
|
@media (min-width: 1698px) {
|
|
.has-recommended-stories.no-search .body-wrapper {
|
|
margin-block-start: 0;
|
|
}
|
|
}
|
|
.has-recommended-stories.no-search.has-sections-grid .body-wrapper {
|
|
margin-block-start: calc(var(--space-xlarge) * 4);
|
|
}
|
|
.has-recommended-stories.no-search.has-sections-grid .logo-and-wordmark {
|
|
inset-inline-start: var(--space-large);
|
|
}
|
|
@media (min-width: 510px) {
|
|
.has-recommended-stories.no-search.has-sections-grid .logo-and-wordmark {
|
|
inset-inline-start: var(--space-xxlarge);
|
|
}
|
|
}
|
|
@media (min-width: 724px) {
|
|
.has-recommended-stories.no-search.has-sections-grid .logo-and-wordmark {
|
|
inset-inline-start: var(--space-large);
|
|
}
|
|
}
|
|
@media (min-width: 866px) {
|
|
.has-recommended-stories.no-search.has-sections-grid .logo-and-wordmark {
|
|
inset-inline-start: var(--space-xxlarge);
|
|
}
|
|
}
|
|
.has-recommended-stories .search-inner-wrapper {
|
|
width: 200px;
|
|
}
|
|
@media (min-width: 510px) {
|
|
.has-recommended-stories .search-inner-wrapper {
|
|
width: 300px;
|
|
}
|
|
}
|
|
@media (min-width: 610px) {
|
|
.has-recommended-stories .search-inner-wrapper {
|
|
width: 350px;
|
|
}
|
|
}
|
|
@media (min-width: 866px) {
|
|
.has-recommended-stories .search-inner-wrapper {
|
|
width: 410px;
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.has-recommended-stories .search-inner-wrapper {
|
|
width: 584px;
|
|
}
|
|
}
|
|
@media (min-width: 1506px) {
|
|
.has-recommended-stories .search-inner-wrapper {
|
|
width: 720px;
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.has-recommended-stories.has-mobile-download-promo .search-inner-wrapper {
|
|
width: 497px;
|
|
}
|
|
}
|
|
@media (min-width: 1506px) {
|
|
.has-recommended-stories.has-mobile-download-promo .search-inner-wrapper {
|
|
width: 720px;
|
|
}
|
|
}
|
|
.has-recommended-stories .logo {
|
|
width: 52px;
|
|
height: 52px;
|
|
background-size: 52px;
|
|
}
|
|
.has-recommended-stories .wordmark {
|
|
display: none;
|
|
height: 52px;
|
|
}
|
|
@media (min-width: 866px) {
|
|
.has-recommended-stories .wordmark {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.nova-enabled .search-wrapper {
|
|
container-type: normal;
|
|
display: grid;
|
|
grid-template-columns: subgrid;
|
|
}
|
|
.nova-enabled .search-inner-wrapper {
|
|
grid-column: 1/-1;
|
|
margin-inline: auto;
|
|
width: calc(4 * var(--col-width) + 3 * var(--space-medium));
|
|
}
|
|
@container content-grid (inline-size >= calc(6 * 75px + 5 * 0.75rem)) {
|
|
.nova-enabled .search-inner-wrapper {
|
|
width: calc(6 * var(--col-width) + 5 * var(--space-medium));
|
|
}
|
|
}
|
|
@container content-grid (inline-size >= calc(10 * 75px + 9 * 0.75rem)) {
|
|
.nova-enabled .search-inner-wrapper {
|
|
width: calc(10 * var(--col-width) + 9 * var(--space-medium));
|
|
}
|
|
}
|
|
.nova-enabled .sticky-search-sentinel {
|
|
grid-column: 1/-1;
|
|
block-size: 1px;
|
|
margin-block-end: -1px;
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
}
|
|
@media (height > 700px) {
|
|
.nova-enabled .search-wrapper {
|
|
position: sticky;
|
|
inset-block-start: 0;
|
|
z-index: 3;
|
|
padding-block: var(--space-xlarge);
|
|
}
|
|
}
|
|
|
|
@media (height > 700px) {
|
|
.nova-outer-wrapper.stuck-search::before {
|
|
content: "";
|
|
position: fixed;
|
|
inset-block-start: 0;
|
|
inset-inline: 0;
|
|
block-size: calc(52px + 2 * var(--space-xlarge));
|
|
background-color: var(--newtab-overlay-color);
|
|
border-block-end: var(--border-width) solid var(--border-color);
|
|
z-index: 2;
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
@media (height > 700px) {
|
|
.activity-stream .fixed-search .search-wrapper {
|
|
border-block-end: solid 1px var(--border-color);
|
|
padding: var(--space-xlarge) 0;
|
|
background-color: var(--newtab-overlay-color);
|
|
min-height: 95px;
|
|
inset-inline-start: 0;
|
|
position: fixed;
|
|
inset-block-start: 0;
|
|
width: 100%;
|
|
z-index: 3;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.activity-stream .fixed-search .search-wrapper .search-inner-wrapper {
|
|
min-height: 52px;
|
|
}
|
|
.activity-stream .fixed-search .search-wrapper .logo-and-wordmark {
|
|
display: none;
|
|
}
|
|
}
|
|
/* stylelint-disable max-nesting-depth */
|
|
.context-menu {
|
|
background: var(--newtab-background-color-secondary);
|
|
border-radius: var(--border-radius-small);
|
|
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.2);
|
|
display: block;
|
|
font-size: inherit;
|
|
margin-inline-start: var(--space-xsmall);
|
|
inset-inline-start: 100%;
|
|
position: absolute;
|
|
inset-block-start: var(--space-small);
|
|
z-index: 2;
|
|
}
|
|
.context-menu > ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: var(--space-xsmall) 0;
|
|
}
|
|
.context-menu > ul > li {
|
|
margin: 0;
|
|
width: 100%;
|
|
}
|
|
.context-menu > ul > li.separator {
|
|
border-block-end: 1px solid var(--border-color);
|
|
margin: var(--space-xsmall) 0;
|
|
}
|
|
.context-menu > ul > li > a,
|
|
.context-menu > ul > li > button {
|
|
align-items: center;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
display: flex;
|
|
width: 100%;
|
|
outline: none;
|
|
border: 0;
|
|
padding: var(--space-xsmall) var(--space-medium);
|
|
white-space: nowrap;
|
|
}
|
|
.context-menu > ul > li > a:is(:focus, :hover),
|
|
.context-menu > ul > li > button:is(:focus, :hover) {
|
|
background: var(--newtab-element-secondary-hover-color);
|
|
}
|
|
.context-menu > ul > li > a:active,
|
|
.context-menu > ul > li > button:active {
|
|
background: var(--newtab-element-secondary-active-color);
|
|
}
|
|
.context-menu > ul > li > a.disabled,
|
|
.context-menu > ul > li > button.disabled {
|
|
opacity: 0.4;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.nova-enabled ~ .confirmation-dialog {
|
|
border-radius: var(--border-radius-large);
|
|
}
|
|
|
|
.confirmation-dialog {
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--border-radius-small);
|
|
padding: 0;
|
|
width: 400px;
|
|
box-shadow: var(--popup-box-shadow);
|
|
background: var(--newtab-background-color-secondary);
|
|
}
|
|
.confirmation-dialog::backdrop {
|
|
background: var(--newtab-overlay-color);
|
|
}
|
|
.confirmation-dialog section {
|
|
margin: 0;
|
|
}
|
|
.confirmation-dialog .modal-message {
|
|
display: flex;
|
|
padding: var(--space-large);
|
|
padding-block-end: 0;
|
|
}
|
|
.confirmation-dialog .modal-message p {
|
|
margin: 0;
|
|
margin-block-end: var(--space-large);
|
|
}
|
|
.confirmation-dialog .modal-message p:first-child {
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
.confirmation-dialog .button-group {
|
|
border: 0;
|
|
padding: var(--space-large);
|
|
}
|
|
.confirmation-dialog .icon {
|
|
margin-inline-end: var(--space-large);
|
|
}
|
|
|
|
.personalizeButtonWrapper {
|
|
margin: 0;
|
|
padding: 0;
|
|
z-index: 5;
|
|
position: fixed;
|
|
inset-block-end: var(--space-xlarge);
|
|
inset-inline-end: var(--space-xlarge);
|
|
}
|
|
|
|
.personalize-button {
|
|
border: 0;
|
|
border-radius: var(--border-radius-small);
|
|
background-color: var(--button-background-color, rgba(21, 20, 26, 0.07));
|
|
box-shadow: 0 0.8px 1.6px 0 rgba(58, 57, 68, 0.2);
|
|
padding: calc(5 * var(--space-xxsmall));
|
|
position: relative;
|
|
background-size: var(--icon-size-medium);
|
|
background-position: center;
|
|
display: flex;
|
|
align-items: center;
|
|
overflow: hidden;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
.lightWallpaper .personalize-button, .darkWallpaper .personalize-button {
|
|
background-color: var(--newtab-weather-background-color);
|
|
}
|
|
@media (prefers-contrast) {
|
|
.lightWallpaper .personalize-button, .darkWallpaper .personalize-button {
|
|
background-color: var(--background-color-box);
|
|
}
|
|
}
|
|
.personalize-button:hover {
|
|
background-color: var(--newtab-button-static-hover-background);
|
|
}
|
|
.personalize-button:active {
|
|
background-color: var(--newtab-button-static-active-background);
|
|
}
|
|
.personalize-button:focus-visible {
|
|
border: 0;
|
|
outline: var(--focus-outline);
|
|
background-color: var(--newtab-button-static-active-background);
|
|
}
|
|
.personalize-button.personalize-animate-exit-done {
|
|
visibility: hidden;
|
|
}
|
|
.personalize-button > div {
|
|
width: var(--icon-size-medium);
|
|
height: var(--icon-size-medium);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.personalize-button > div > img {
|
|
-moz-context-properties: fill;
|
|
display: inline-block;
|
|
color: var(--icon-color);
|
|
fill: currentColor;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
vertical-align: middle;
|
|
width: 100%;
|
|
}
|
|
.personalize-button > label {
|
|
margin-inline-end: 0;
|
|
opacity: 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
max-width: 0;
|
|
transition: opacity 0.3s ease, margin 0.3s ease, max-width 0.3s ease;
|
|
}
|
|
|
|
.open-customization-button.personalize-animate-exit-done {
|
|
visibility: hidden;
|
|
}
|
|
.open-customization-button::part(moz-button-label) {
|
|
opacity: 0;
|
|
max-width: 0;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
}
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.open-customization-button::part(moz-button-label) {
|
|
transition: opacity 0.3s ease, max-width 0.3s ease;
|
|
}
|
|
}
|
|
.lightWallpaper .open-customization-button::part(moz-button-label) {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .open-customization-button::part(moz-button-label) {
|
|
color-scheme: dark;
|
|
}
|
|
.open-customization-button::part(button) {
|
|
min-width: var(--button-size-icon);
|
|
max-width: var(--button-size-icon);
|
|
height: var(--button-size-icon);
|
|
padding-inline: 0 calc((var(--button-size-icon) - var(--icon-size-medium)) / 2);
|
|
overflow: hidden;
|
|
justify-content: flex-end;
|
|
gap: 0;
|
|
}
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.open-customization-button::part(button) {
|
|
transition: max-width 0.3s ease, padding 0.3s ease, gap 0.3s ease;
|
|
}
|
|
}
|
|
.lightWallpaper .open-customization-button::part(button) {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .open-customization-button::part(button) {
|
|
color-scheme: dark;
|
|
}
|
|
.open-customization-button:hover::part(moz-button-label), .open-customization-button:focus-within::part(moz-button-label), .open-customization-button.activation-window-variant-a::part(moz-button-label), .open-customization-button.activation-window-variant-b::part(moz-button-label) {
|
|
opacity: 1;
|
|
max-width: 30ch;
|
|
}
|
|
.open-customization-button:hover::part(button), .open-customization-button:focus-within::part(button), .open-customization-button.activation-window-variant-a::part(button), .open-customization-button.activation-window-variant-b::part(button) {
|
|
max-width: calc(30ch + var(--icon-size-medium) + var(--space-small) + var(--space-large) * 2);
|
|
padding: var(--space-small) var(--space-large);
|
|
gap: var(--space-small);
|
|
}
|
|
|
|
.personalize-button:hover > label,
|
|
.personalize-button:focus-visible > label,
|
|
.personalize-button:focus-within > label,
|
|
.personalize-button.activation-window-variant-a > label,
|
|
.personalize-button.activation-window-variant-b > label {
|
|
opacity: 1;
|
|
margin-inline-end: var(--space-medium);
|
|
max-width: 30ch;
|
|
}
|
|
|
|
.customize-menu {
|
|
--customize-menu-bg: color-mix(in srgb, var(--newtab-background-color-secondary) 96%, transparent);
|
|
color: var(--newtab-text-primary-color);
|
|
background-color: var(--newtab-background-color-secondary);
|
|
width: 432px;
|
|
min-height: 100%;
|
|
position: fixed;
|
|
inset-block: 0;
|
|
inset-inline: auto 0;
|
|
z-index: 1001;
|
|
padding-block: 0 var(--space-large);
|
|
padding-inline: var(--space-large);
|
|
transform: translateX(435px);
|
|
visibility: hidden;
|
|
cursor: default;
|
|
overflow: auto;
|
|
border: none;
|
|
margin: 0;
|
|
}
|
|
.customize-menu.nova-enabled {
|
|
background: var(--customize-menu-bg);
|
|
border-radius: var(--border-radius-large);
|
|
box-shadow: 0 0 14px 0 var(--box-shadow-color-accent-primary-primary);
|
|
width: 418px;
|
|
padding-inline: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: clip;
|
|
overflow-x: hidden;
|
|
min-height: calc(100% - var(--space-xsmall));
|
|
inset-block: var(--space-xxsmall);
|
|
inset-inline: auto var(--space-xxsmall);
|
|
}
|
|
.customize-menu::backdrop {
|
|
background: transparent;
|
|
}
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.customize-menu.customize-animate-enter, .customize-menu.customize-animate-exit, .customize-menu.customize-animate-enter-done, .customize-menu.customize-animate-exit-done {
|
|
transition: transform 250ms cubic-bezier(0.46, 0.03, 0.52, 0.96), visibility 250ms;
|
|
}
|
|
}
|
|
@media (forced-colors: active) {
|
|
.customize-menu {
|
|
border-inline-start: solid 1px;
|
|
}
|
|
}
|
|
.customize-menu:dir(rtl) {
|
|
transform: translateX(-435px);
|
|
}
|
|
.customize-menu.customize-animate-enter-done, .customize-menu.customize-animate-enter-active {
|
|
box-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.2);
|
|
visibility: visible;
|
|
transform: translateX(0);
|
|
}
|
|
.customize-menu.customize-animate-exit-active {
|
|
box-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.customize-menu-content {
|
|
height: 100%;
|
|
overflow: auto;
|
|
}
|
|
.nova-enabled .customize-menu-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
height: unset;
|
|
}
|
|
.customize-menu-content.subpanel-open {
|
|
overflow: clip;
|
|
}
|
|
.customize-menu-content .close-button-wrapper {
|
|
position: sticky;
|
|
inset-block-start: 0;
|
|
padding-block-start: var(--space-large);
|
|
background-color: var(--newtab-background-color-secondary);
|
|
z-index: 1;
|
|
}
|
|
.nova-enabled .customize-menu-content .close-button-wrapper {
|
|
background: transparent;
|
|
}
|
|
.customize-menu-content .close-button-wrapper moz-button {
|
|
margin-inline-start: auto;
|
|
margin-inline-end: var(--space-large);
|
|
display: block;
|
|
}
|
|
.customize-menu-content *:focus-visible {
|
|
outline: var(--focus-outline);
|
|
}
|
|
.customize-menu-content .manage-settings-footer {
|
|
padding: var(--space-xlarge);
|
|
display: flex;
|
|
position: absolute;
|
|
inset-block-end: 0;
|
|
inset-inline-start: 0;
|
|
width: 100%;
|
|
background: linear-gradient(to right, var(--customize-menu-bg) calc(100% - var(--space-xxlarge)), transparent);
|
|
}
|
|
.customize-menu-content .manage-settings-footer:dir(rtl) {
|
|
background: linear-gradient(to left, var(--customize-menu-bg) calc(100% - var(--space-xxlarge)), transparent);
|
|
}
|
|
.customize-menu-content .manage-settings-footer::before {
|
|
content: "";
|
|
pointer-events: none;
|
|
position: absolute;
|
|
inset-block-start: calc((var(--space-xlarge) + var(--space-large)) * -1);
|
|
inset-inline: 0;
|
|
height: calc(var(--space-xlarge) + var(--space-large));
|
|
background: linear-gradient(to bottom, transparent, var(--customize-menu-bg));
|
|
mask-image: linear-gradient(to right, black calc(100% - var(--space-xxlarge)), transparent);
|
|
}
|
|
.customize-menu-content .manage-settings-footer:dir(rtl)::before {
|
|
mask-image: linear-gradient(to left, black calc(100% - var(--space-xxlarge)), transparent);
|
|
}
|
|
|
|
.grid-skip {
|
|
display: contents;
|
|
}
|
|
|
|
.home-section {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: repeat(4, auto);
|
|
grid-row-gap: var(--space-xxlarge);
|
|
padding-block: var(--space-xsmall) var(--space-large);
|
|
padding-inline: var(--space-large);
|
|
}
|
|
.nova-enabled .home-section {
|
|
align-content: start;
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
padding-inline: var(--space-xlarge);
|
|
}
|
|
.home-section .wallpapers-section h2 {
|
|
font-size: inherit;
|
|
}
|
|
.home-section .widgets-section h2 {
|
|
font-size: inherit;
|
|
margin-block-start: 0;
|
|
font-weight: var(--font-weight-heading);
|
|
}
|
|
.home-section .settings-widgets,
|
|
.home-section .settings-toggles {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xlarge);
|
|
}
|
|
.home-section .settings-widgets {
|
|
gap: var(--space-large);
|
|
}
|
|
.home-section .settings-widgets .divider {
|
|
margin-block-start: var(--space-large);
|
|
}
|
|
.home-section [slot=nested] {
|
|
margin-block-start: 0;
|
|
}
|
|
.home-section .section #shortcuts-toggle {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.home-section .section #shortcuts-toggle #row-selector {
|
|
width: 138px;
|
|
}
|
|
.home-section .section .more-info-top-wrapper > .more-information {
|
|
padding: var(--space-small);
|
|
}
|
|
.home-section .section .more-info-top-wrapper,
|
|
.home-section .section .more-info-pocket-wrapper,
|
|
.home-section .section .more-info-widgets-wrapper {
|
|
margin-inline-start: calc(var(--space-xxsmall) * -1);
|
|
overflow: hidden;
|
|
}
|
|
.home-section .section .more-info-top-wrapper .more-information,
|
|
.home-section .section .more-info-pocket-wrapper .more-information,
|
|
.home-section .section .more-info-widgets-wrapper .more-information {
|
|
position: relative;
|
|
transition: margin-block-start 250ms cubic-bezier(0.82, 0.085, 0.395, 0.895);
|
|
}
|
|
.home-section .section .more-info-pocket-wrapper .more-information,
|
|
.home-section .section .more-info-widgets-wrapper .more-information {
|
|
position: static;
|
|
}
|
|
.home-section .section .more-info-pocket-wrapper .more-information {
|
|
padding-block: var(--space-medium);
|
|
}
|
|
.home-section .section .more-info-pocket-wrapper .customize-menu-checkbox {
|
|
--input-width: var(--size-item-small);
|
|
margin-block-end: var(--space-medium);
|
|
}
|
|
.home-section .section .more-info-pocket-wrapper:has(moz-box-button:focus-within), .home-section .section .more-info-pocket-wrapper:has(.customize-menu-checkbox:focus-within) {
|
|
overflow: visible;
|
|
}
|
|
.home-section .sponsored-content-info {
|
|
display: flex;
|
|
gap: var(--space-small);
|
|
font-size: var(--font-size-small);
|
|
border-radius: var(--border-radius-medium);
|
|
background-color: var(--newtab-element-secondary-color);
|
|
padding: var(--space-small) var(--space-large);
|
|
}
|
|
.home-section .sponsored-content-info .icon-help {
|
|
flex-shrink: 0;
|
|
color: var(--color-accent-primary);
|
|
height: 20px;
|
|
}
|
|
.home-section .sponsored-content-info a {
|
|
color: var(--newtab-primary-action-background);
|
|
}
|
|
.home-section .divider {
|
|
border-block-start: 1px var(--border-color) solid;
|
|
margin: 0 calc(var(--space-large) * -1);
|
|
}
|
|
|
|
.external-link {
|
|
-moz-context-properties: fill;
|
|
background: url("chrome://global/skin/icons/settings.svg") left no-repeat;
|
|
background-size: 16px;
|
|
border: 1px solid transparent;
|
|
border-radius: var(--border-radius-small);
|
|
color: var(--link-color);
|
|
cursor: pointer;
|
|
fill: var(--link-color);
|
|
font-size: var(--font-size-small);
|
|
padding-inline-start: var(--space-xlarge);
|
|
text-decoration: underline;
|
|
}
|
|
.external-link:hover {
|
|
color: var(--link-color-hover);
|
|
text-decoration: none;
|
|
}
|
|
.external-link:active {
|
|
color: var(--link-color-active);
|
|
}
|
|
@media (forced-colors: active) {
|
|
.external-link {
|
|
padding: var(--space-small) var(--space-medium);
|
|
padding-inline-start: var(--space-xlarge);
|
|
}
|
|
}
|
|
.external-link:dir(rtl) {
|
|
background-position-x: right;
|
|
}
|
|
|
|
.external-link:focus-visible,
|
|
.close-button:focus-visible {
|
|
border: 1px solid var(--newtab-primary-action-background);
|
|
outline: 0;
|
|
box-shadow: 0 0 0 2px var(--newtab-primary-action-background-dimmed);
|
|
}
|
|
|
|
.home-section .section .selector {
|
|
margin-block-start: var(--space-xxsmall);
|
|
}
|
|
|
|
.sections-mgmt-panel,
|
|
.widgets-mgmt-panel {
|
|
height: 100%;
|
|
inset-inline-start: var(--space-xlarge);
|
|
position: absolute;
|
|
inset-block-start: 0;
|
|
width: 380px;
|
|
z-index: 2;
|
|
transform: translateX(100%);
|
|
margin-block: var(--space-large) 0;
|
|
padding: 0;
|
|
background-color: var(--newtab-background-color-secondary);
|
|
overflow-y: auto;
|
|
}
|
|
.nova-enabled .sections-mgmt-panel,
|
|
.nova-enabled .widgets-mgmt-panel {
|
|
height: 100vh;
|
|
inset-inline-start: 0;
|
|
position: fixed;
|
|
width: 100%;
|
|
margin-block: 0;
|
|
}
|
|
.sections-mgmt-panel:dir(rtl),
|
|
.widgets-mgmt-panel:dir(rtl) {
|
|
transform: translateX(-100%);
|
|
}
|
|
.sections-mgmt-panel h3,
|
|
.widgets-mgmt-panel h3 {
|
|
font-size: inherit;
|
|
margin-block: 0 var(--space-small);
|
|
}
|
|
.sections-mgmt-panel button.arrow-button,
|
|
.widgets-mgmt-panel button.arrow-button {
|
|
background: url("chrome://global/skin/icons/arrow-left.svg") no-repeat left center;
|
|
border: none;
|
|
cursor: pointer;
|
|
margin-block-end: var(--space-xlarge);
|
|
padding-inline-start: var(--space-xlarge);
|
|
-moz-context-properties: fill;
|
|
fill: currentColor;
|
|
min-height: var(--size-item-small);
|
|
margin-inline-start: var(--space-xsmall);
|
|
margin-block-start: var(--space-xsmall);
|
|
}
|
|
.sections-mgmt-panel button.arrow-button:dir(rtl),
|
|
.widgets-mgmt-panel button.arrow-button:dir(rtl) {
|
|
background: url("chrome://global/skin/icons/arrow-right.svg") no-repeat right center;
|
|
}
|
|
.sections-mgmt-panel button.arrow-button h1,
|
|
.widgets-mgmt-panel button.arrow-button h1 {
|
|
font-size: var(--font-size-root);
|
|
margin-block: 0;
|
|
font-weight: var(--button-font-weight);
|
|
}
|
|
.nova-enabled .sections-mgmt-panel .panel-content,
|
|
.nova-enabled .widgets-mgmt-panel .panel-content {
|
|
padding: var(--space-xlarge);
|
|
}
|
|
.nova-enabled .sections-mgmt-panel .arrow-wrapper,
|
|
.nova-enabled .widgets-mgmt-panel .arrow-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-block-end: var(--space-xlarge);
|
|
}
|
|
.nova-enabled .sections-mgmt-panel .arrow-wrapper .arrow-button,
|
|
.nova-enabled .widgets-mgmt-panel .arrow-wrapper .arrow-button {
|
|
margin-inline-end: var(--space-small);
|
|
}
|
|
.nova-enabled .sections-mgmt-panel .arrow-wrapper h2,
|
|
.nova-enabled .widgets-mgmt-panel .arrow-wrapper h2 {
|
|
font-size: var(--font-size-heading-medium);
|
|
margin-block: 0;
|
|
font-weight: var(--button-font-weight);
|
|
}
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.sections-mgmt-panel.sections-mgmt-panel-enter, .sections-mgmt-panel.sections-mgmt-panel-exit, .sections-mgmt-panel.sections-mgmt-panel-enter-done, .sections-mgmt-panel.sections-mgmt-panel-exit-done, .sections-mgmt-panel.widgets-mgmt-panel-enter, .sections-mgmt-panel.widgets-mgmt-panel-exit, .sections-mgmt-panel.widgets-mgmt-panel-enter-done, .sections-mgmt-panel.widgets-mgmt-panel-exit-done,
|
|
.widgets-mgmt-panel.sections-mgmt-panel-enter,
|
|
.widgets-mgmt-panel.sections-mgmt-panel-exit,
|
|
.widgets-mgmt-panel.sections-mgmt-panel-enter-done,
|
|
.widgets-mgmt-panel.sections-mgmt-panel-exit-done,
|
|
.widgets-mgmt-panel.widgets-mgmt-panel-enter,
|
|
.widgets-mgmt-panel.widgets-mgmt-panel-exit,
|
|
.widgets-mgmt-panel.widgets-mgmt-panel-enter-done,
|
|
.widgets-mgmt-panel.widgets-mgmt-panel-exit-done {
|
|
transition: transform 300ms;
|
|
}
|
|
}
|
|
.sections-mgmt-panel.sections-mgmt-panel-enter-done, .sections-mgmt-panel.sections-mgmt-panel-enter-active, .sections-mgmt-panel.widgets-mgmt-panel-enter-done, .sections-mgmt-panel.widgets-mgmt-panel-enter-active,
|
|
.widgets-mgmt-panel.sections-mgmt-panel-enter-done,
|
|
.widgets-mgmt-panel.sections-mgmt-panel-enter-active,
|
|
.widgets-mgmt-panel.widgets-mgmt-panel-enter-done,
|
|
.widgets-mgmt-panel.widgets-mgmt-panel-enter-active {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.sections-mgmt-panel .topic-list {
|
|
list-style: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-small);
|
|
margin-block: 0 var(--space-xxlarge);
|
|
padding-inline: 0;
|
|
width: 100%;
|
|
}
|
|
.sections-mgmt-panel .topic-list li {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.sections-mgmt-panel .topic-list-empty-state {
|
|
display: block;
|
|
margin-block-end: var(--space-xxlarge);
|
|
color: var(--text-color-deemphasized);
|
|
}
|
|
.sections-mgmt-panel .section-block .section-button-blocked-text,
|
|
.sections-mgmt-panel .section-block .section-button-following-text,
|
|
.sections-mgmt-panel .section-follow .section-button-blocked-text,
|
|
.sections-mgmt-panel .section-follow .section-button-following-text {
|
|
display: none;
|
|
}
|
|
.sections-mgmt-panel .section-block .section-button-unblock-text,
|
|
.sections-mgmt-panel .section-block .section-button-unfollow-text,
|
|
.sections-mgmt-panel .section-follow .section-button-unblock-text,
|
|
.sections-mgmt-panel .section-follow .section-button-unfollow-text {
|
|
display: none;
|
|
}
|
|
.sections-mgmt-panel .section-block.following .section-button-follow-text,
|
|
.sections-mgmt-panel .section-follow.following .section-button-follow-text {
|
|
display: none;
|
|
}
|
|
.sections-mgmt-panel .section-block.following .section-button-following-text,
|
|
.sections-mgmt-panel .section-follow.following .section-button-following-text {
|
|
display: block;
|
|
}
|
|
.sections-mgmt-panel .section-block.following:not(:hover) moz-button,
|
|
.sections-mgmt-panel .section-follow.following:not(:hover) moz-button {
|
|
--button-background-color-destructive: var(--button-background-color);
|
|
--button-text-color-destructive: var(--button-text-color);
|
|
--button-border-color-destructive: var(--button-border-color);
|
|
}
|
|
.sections-mgmt-panel .section-block.following:hover .section-button-following-text,
|
|
.sections-mgmt-panel .section-follow.following:hover .section-button-following-text {
|
|
display: none;
|
|
}
|
|
.sections-mgmt-panel .section-block.following:hover .section-button-unfollow-text,
|
|
.sections-mgmt-panel .section-follow.following:hover .section-button-unfollow-text {
|
|
display: block;
|
|
}
|
|
.sections-mgmt-panel .section-block.blocked .section-button-block-text,
|
|
.sections-mgmt-panel .section-follow.blocked .section-button-block-text {
|
|
display: none;
|
|
}
|
|
.sections-mgmt-panel .section-block.blocked .section-button-blocked-text,
|
|
.sections-mgmt-panel .section-follow.blocked .section-button-blocked-text {
|
|
display: block;
|
|
}
|
|
.sections-mgmt-panel .section-block.blocked:hover .section-button-blocked-text,
|
|
.sections-mgmt-panel .section-follow.blocked:hover .section-button-blocked-text {
|
|
display: none;
|
|
}
|
|
.sections-mgmt-panel .section-block.blocked:hover .section-button-unblock-text,
|
|
.sections-mgmt-panel .section-follow.blocked:hover .section-button-unblock-text {
|
|
display: block;
|
|
}
|
|
|
|
.widgets-mgmt-panel .settings-widgets {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-large);
|
|
}
|
|
|
|
.widgets-mgmt-panel-container {
|
|
padding-block: var(--space-medium);
|
|
}
|
|
|
|
.nova-enabled #wallpapers-section,
|
|
.nova-enabled #shortcuts-section,
|
|
.nova-enabled #widgets-section,
|
|
.nova-enabled #pocket-section {
|
|
margin-block: var(--space-medium);
|
|
}
|
|
.nova-enabled .section #shortcuts-toggle #row-selector {
|
|
width: 100%;
|
|
}
|
|
.nova-enabled #wallpapers-toggle {
|
|
margin-block-end: var(--space-large);
|
|
}
|
|
|
|
.category-list {
|
|
border: none;
|
|
display: grid;
|
|
gap: calc(var(--space-xlarge) * 2) var(--space-large);
|
|
grid-auto-rows: 86px;
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
margin-block-end: var(--space-large);
|
|
padding: 0;
|
|
}
|
|
.category-list label {
|
|
display: inline-block;
|
|
font-size: var(--font-size-small);
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
.nova-enabled .category-list {
|
|
gap: calc(var(--space-xlarge) * 2) var(--space-medium);
|
|
}
|
|
|
|
.category-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
.category-header .wallpapers-reset {
|
|
margin: unset;
|
|
}
|
|
.nova-enabled .category-header {
|
|
justify-content: unset;
|
|
}
|
|
.nova-enabled .category-header .wallpapers-reset {
|
|
margin-block-end: var(--space-medium);
|
|
margin-inline-start: auto;
|
|
}
|
|
|
|
button.arrow-button {
|
|
background: url("chrome://global/skin/icons/arrow-left.svg") no-repeat left center;
|
|
border: none;
|
|
cursor: pointer;
|
|
margin-block-end: var(--space-xlarge);
|
|
padding-inline-start: var(--space-xlarge);
|
|
-moz-context-properties: fill;
|
|
fill: currentColor;
|
|
min-height: 1rem;
|
|
margin-inline-start: var(--space-xsmall);
|
|
margin-block-start: var(--space-xsmall);
|
|
}
|
|
button.arrow-button:dir(rtl) {
|
|
background: url("chrome://global/skin/icons/arrow-right.svg") no-repeat right center;
|
|
}
|
|
|
|
.wallpapers-arrow-button {
|
|
margin-block-end: var(--space-xlarge);
|
|
}
|
|
|
|
.wallpaper-input {
|
|
appearance: none;
|
|
background-clip: content-box;
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
border-radius: var(--border-radius-medium);
|
|
border: none;
|
|
box-shadow: 0 1px 4px 0 rgba(12, 12, 13, 0.2);
|
|
cursor: pointer;
|
|
height: 86px;
|
|
margin: 0;
|
|
outline: 2px solid transparent;
|
|
padding: 0;
|
|
width: 100%;
|
|
}
|
|
.wallpaper-input:checked, .wallpaper-input.selected {
|
|
box-shadow: inset 0 0 0 3px var(--color-accent-primary);
|
|
}
|
|
.wallpaper-input.theme-custom-wallpaper {
|
|
border: 2px dashed var(--border-color-default, #CFCFD8);
|
|
box-shadow: none;
|
|
position: relative;
|
|
}
|
|
.wallpaper-input.theme-custom-wallpaper::after {
|
|
content: "";
|
|
-moz-context-properties: fill;
|
|
fill: var(--icon-color);
|
|
width: calc(var(--icon-size) * 1.25);
|
|
height: calc(var(--icon-size) * 1.25);
|
|
display: block;
|
|
position: absolute;
|
|
inset-block-start: 50%;
|
|
inset-inline-start: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
.wallpaper-input.theme-custom-wallpaper:focus {
|
|
outline-color: var(--focus-outline-color);
|
|
outline-offset: var(--focus-outline-offset);
|
|
}
|
|
.wallpaper-input.theme-custom-wallpaper::after {
|
|
background: url("chrome://global/skin/icons/plus-20.svg") center no-repeat;
|
|
}
|
|
.wallpaper-input.dark-landscape {
|
|
background-image: url("chrome://newtab/content/data/content/assets/wallpapers/dark-landscape.avif");
|
|
}
|
|
.wallpaper-input.dark-color {
|
|
background-image: url("chrome://newtab/content/data/content/assets/wallpapers/dark-color.avif");
|
|
}
|
|
.wallpaper-input.dark-mountain {
|
|
background-image: url("chrome://newtab/content/data/content/assets/wallpapers/dark-mountain.avif");
|
|
}
|
|
.wallpaper-input.dark-panda {
|
|
background-image: url("chrome://newtab/content/data/content/assets/wallpapers/dark-panda.avif");
|
|
}
|
|
.wallpaper-input.dark-sky {
|
|
background-image: url("chrome://newtab/content/data/content/assets/wallpapers/dark-sky.avif");
|
|
}
|
|
.wallpaper-input.dark-beach {
|
|
background-image: url("chrome://newtab/content/data/content/assets/wallpapers/dark-beach.avif");
|
|
}
|
|
.wallpaper-input.light-beach {
|
|
background-image: url("chrome://newtab/content/data/content/assets/wallpapers/light-beach.avif");
|
|
}
|
|
.wallpaper-input.light-color {
|
|
background-image: url("chrome://newtab/content/data/content/assets/wallpapers/light-color.avif");
|
|
}
|
|
.wallpaper-input.light-landscape {
|
|
background-image: url("chrome://newtab/content/data/content/assets/wallpapers/light-landscape.avif");
|
|
}
|
|
.wallpaper-input.light-mountain {
|
|
background-image: url("chrome://newtab/content/data/content/assets/wallpapers/light-mountain.avif");
|
|
}
|
|
.wallpaper-input.light-panda {
|
|
background-image: url("chrome://newtab/content/data/content/assets/wallpapers/light-panda.avif");
|
|
}
|
|
.wallpaper-input.light-sky {
|
|
background-image: url("chrome://newtab/content/data/content/assets/wallpapers/light-sky.avif");
|
|
}
|
|
.wallpaper-input:focus-visible {
|
|
outline-offset: var(--focus-outline-offset);
|
|
}
|
|
.wallpaper-input:hover {
|
|
filter: brightness(55%);
|
|
outline-color: transparent;
|
|
}
|
|
.nova-enabled .wallpaper-input {
|
|
border-radius: var(--border-radius-small);
|
|
}
|
|
|
|
.theme-custom-color-picker {
|
|
background-color: var(--newtab-background-color-secondary);
|
|
background-clip: content-box;
|
|
border-radius: var(--border-radius-medium);
|
|
outline: 2px dashed var(--border-color-default, #CFCFD8);
|
|
outline-offset: 2px;
|
|
position: relative;
|
|
}
|
|
.theme-custom-color-picker .wallpaper-input {
|
|
box-shadow: none;
|
|
}
|
|
.theme-custom-color-picker .wallpaper-input:focus {
|
|
outline-color: var(--focus-outline-color);
|
|
outline-offset: 6px;
|
|
}
|
|
.theme-custom-color-picker.default-color-set #solid-color-picker {
|
|
opacity: 0;
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
.theme-custom-color-picker.default-color-set::after {
|
|
color-scheme: dark;
|
|
}
|
|
}
|
|
.theme-custom-color-picker.custom-color-dark::after {
|
|
color-scheme: dark;
|
|
}
|
|
.theme-custom-color-picker.is-dark::after {
|
|
color-scheme: dark;
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
.theme-custom-color-picker.is-dark::after {
|
|
color: #FBFBFE;
|
|
}
|
|
}
|
|
.theme-custom-color-picker::after {
|
|
background: url("chrome://global/skin/icons/color-picker-20.svg") center no-repeat;
|
|
content: "";
|
|
-moz-context-properties: fill;
|
|
fill: var(--icon-color);
|
|
width: calc(var(--icon-size) * 1.25);
|
|
height: calc(var(--icon-size) * 1.25);
|
|
display: block;
|
|
position: absolute;
|
|
inset-block-start: 50%;
|
|
inset-inline-start: 50%;
|
|
transform: translate(-50%, -50%);
|
|
pointer-events: none;
|
|
cursor: pointer;
|
|
color-scheme: light;
|
|
}
|
|
.theme-custom-color-picker label {
|
|
display: inline-block;
|
|
font-size: var(--font-size-small);
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
.theme-custom-color-picker ::-moz-color-swatch {
|
|
border-color: transparent;
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
|
|
.wallpaper-list {
|
|
display: grid;
|
|
gap: var(--space-large);
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
grid-auto-rows: 86px;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: none;
|
|
}
|
|
.wallpaper-list.category {
|
|
background-color: var(--newtab-background-color-secondary);
|
|
color: var(--newtab-text-primary-color);
|
|
display: unset;
|
|
gap: unset;
|
|
grid-auto-rows: unset;
|
|
grid-template-columns: unset;
|
|
height: 100%;
|
|
padding: var(--space-xlarge);
|
|
position: absolute;
|
|
inset-block-start: 0;
|
|
inset-inline-start: 100%;
|
|
width: 100%;
|
|
z-index: 2;
|
|
overflow-y: auto;
|
|
}
|
|
.wallpaper-list.category fieldset {
|
|
border: none;
|
|
display: grid;
|
|
gap: var(--space-large);
|
|
grid-auto-rows: 86px;
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
padding: 0;
|
|
}
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.wallpaper-list.category.wallpaper-list-enter, .wallpaper-list.category.wallpaper-list-exit, .wallpaper-list.category.wallpaper-list-enter-done, .wallpaper-list.category.wallpaper-list-exit-done {
|
|
transition: inset-inline-start 300ms;
|
|
}
|
|
}
|
|
.wallpaper-list.category.wallpaper-list-enter-done, .wallpaper-list.category.wallpaper-list-enter-active {
|
|
inset-inline-start: 0;
|
|
}
|
|
.wallpaper-list:not(.ignore-color-mode) .wallpaper-input.theme-light, .wallpaper-list:not(.ignore-color-mode) .sr-only.theme-light {
|
|
display: inline-block;
|
|
}
|
|
[lwt-newtab-brighttext] .wallpaper-list:not(.ignore-color-mode) .wallpaper-input.theme-light, [lwt-newtab-brighttext] .wallpaper-list:not(.ignore-color-mode) .sr-only.theme-light {
|
|
display: none;
|
|
}
|
|
.wallpaper-list:not(.ignore-color-mode) .wallpaper-input.theme-dark, .wallpaper-list:not(.ignore-color-mode) .sr-only.theme-dark {
|
|
display: none;
|
|
}
|
|
[lwt-newtab-brighttext] .wallpaper-list:not(.ignore-color-mode) .wallpaper-input.theme-dark, [lwt-newtab-brighttext] .wallpaper-list:not(.ignore-color-mode) .sr-only.theme-dark {
|
|
display: inline-block;
|
|
}
|
|
.wallpaper-list .sr-only {
|
|
opacity: 0;
|
|
overflow: hidden;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.wallpapers-reset {
|
|
background: none;
|
|
border: none;
|
|
text-decoration: underline;
|
|
margin-inline: auto;
|
|
display: block;
|
|
font-size: var(--font-size-small);
|
|
color: var(--newtab-text-primary-color);
|
|
cursor: pointer;
|
|
}
|
|
.wallpapers-reset:hover {
|
|
text-decoration: none;
|
|
}
|
|
.wallpapers-reset:focus-visible {
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.custom-wallpaper-error {
|
|
padding-block-start: var(--space-xlarge);
|
|
font-size: var(--font-size-small);
|
|
display: flex;
|
|
gap: var(--space-small);
|
|
align-items: center;
|
|
}
|
|
.custom-wallpaper-error .icon {
|
|
width: var(--button-size-icon-small);
|
|
height: var(--button-size-icon-small);
|
|
fill: var(--icon-color-critical);
|
|
}
|
|
|
|
.mobileDownloadPromoWrapper {
|
|
display: none;
|
|
height: 55px;
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.mobileDownloadPromoWrapper.is-tall {
|
|
height: 74px;
|
|
}
|
|
}
|
|
@media (min-width: 610px) {
|
|
.mobileDownloadPromoWrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: absolute;
|
|
inset-inline-start: auto;
|
|
inset-block-start: var(--space-xxlarge);
|
|
inset-inline-end: var(--space-medium);
|
|
margin-block-start: 0;
|
|
margin-inline-start: 0;
|
|
z-index: 1;
|
|
}
|
|
}
|
|
@media (min-width: 724px) {
|
|
.mobileDownloadPromoWrapper {
|
|
inset-inline-end: var(--space-xxlarge);
|
|
}
|
|
}
|
|
.no-search .mobileDownloadPromoWrapper {
|
|
display: none;
|
|
}
|
|
@media (min-width: 866px) {
|
|
.no-search .mobileDownloadPromoWrapper {
|
|
display: flex;
|
|
inset-block-start: var(--space-xxlarge);
|
|
inset-inline-start: auto;
|
|
inset-inline-end: var(--space-xxlarge);
|
|
}
|
|
}
|
|
|
|
.mobile-download-promo {
|
|
width: 32px;
|
|
height: 32px;
|
|
appearance: none;
|
|
border: 0;
|
|
border-radius: var(--border-radius-small);
|
|
padding: 0;
|
|
cursor: pointer;
|
|
}
|
|
.mobile-download-promo:hover {
|
|
background-color: var(--button-background-color-ghost-hover);
|
|
}
|
|
.mobile-download-promo:hover:active {
|
|
background-color: var(--button-background-color-ghost-active);
|
|
}
|
|
.mobile-download-promo.is-active {
|
|
background-color: var(--button-background-color-ghost-active);
|
|
}
|
|
.lightWallpaper .mobile-download-promo, .darkWallpaper .mobile-download-promo {
|
|
background-color: var(--newtab-weather-background-color);
|
|
}
|
|
@media (prefers-contrast) {
|
|
.lightWallpaper .mobile-download-promo, .darkWallpaper .mobile-download-promo {
|
|
background-color: var(--background-color-box);
|
|
}
|
|
}
|
|
|
|
/* stylelint-disable max-nesting-depth */
|
|
.card-outer {
|
|
background: var(--newtab-background-color-secondary);
|
|
border-radius: var(--border-radius-medium);
|
|
display: inline-block;
|
|
height: 266px;
|
|
margin-inline-end: var(--space-xxlarge);
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
.card-outer .context-menu-button {
|
|
background-clip: padding-box;
|
|
background-color: var(--newtab-button-background);
|
|
background-image: url("chrome://global/skin/icons/more.svg");
|
|
background-position: 50.1%;
|
|
border: 0;
|
|
outline: 1px solid var(--border-color);
|
|
outline-width: 0;
|
|
border-radius: var(--border-radius-circle);
|
|
cursor: pointer;
|
|
color: var(--button-text-color);
|
|
fill: var(--newtab-button-text);
|
|
height: 27px;
|
|
inset-inline-end: calc(var(--space-medium) * -1);
|
|
opacity: 0;
|
|
position: absolute;
|
|
inset-block-start: calc(var(--space-medium) * -1);
|
|
transform: scale(0.25);
|
|
transition-duration: 150ms;
|
|
transition-property: transform, opacity;
|
|
width: 27px;
|
|
}
|
|
.card-outer .context-menu-button:is(:active, :focus-visible, :hover) {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
.card-outer .context-menu-button:is(:hover) {
|
|
background-color: var(--newtab-button-hover-background);
|
|
}
|
|
.card-outer .context-menu-button:is(:focus-visible) {
|
|
outline-color: var(--newtab-button-focus-border);
|
|
background-color: var(--newtab-button-focus-background);
|
|
outline-width: 4px;
|
|
}
|
|
.card-outer .context-menu-button:is(:active) {
|
|
background-color: var(--newtab-button-active-background);
|
|
}
|
|
.card-outer:is(:focus):not(.placeholder) {
|
|
border: 0;
|
|
outline: var(--focus-outline);
|
|
transition: none;
|
|
}
|
|
.card-outer:hover {
|
|
box-shadow: none;
|
|
transition: none;
|
|
}
|
|
.card-outer.placeholder {
|
|
background: transparent;
|
|
}
|
|
.card-outer.placeholder .card-preview-image-outer,
|
|
.card-outer.placeholder .card-context {
|
|
display: none;
|
|
}
|
|
.card-outer .card {
|
|
border-radius: var(--border-radius-medium);
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
|
height: 100%;
|
|
}
|
|
.card-outer > a {
|
|
color: inherit;
|
|
display: block;
|
|
height: 100%;
|
|
outline: none;
|
|
position: absolute;
|
|
width: 100%;
|
|
}
|
|
.card-outer > a:is(:focus) .card {
|
|
border: 0;
|
|
outline: var(--focus-outline);
|
|
}
|
|
.card-outer > a:is(.active, :focus) .card {
|
|
box-shadow: 0 0 0 5px var(--newtab-element-secondary-color);
|
|
transition: box-shadow 150ms;
|
|
}
|
|
.card-outer > a:is(.active, :focus) .card-title {
|
|
color: var(--newtab-primary-action-background);
|
|
}
|
|
.card-outer:is(:hover, :focus, .active):not(.placeholder) {
|
|
outline: none;
|
|
}
|
|
.card-outer:is(:hover, :focus, .active):not(.placeholder) .context-menu-button {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
transition-delay: 333ms;
|
|
}
|
|
.card-outer:is(:hover, :focus, .active):not(.placeholder) .card-title {
|
|
color: var(--newtab-primary-action-background);
|
|
}
|
|
.card-outer:is(:hover, :focus, .active):not(.placeholder) .alternate ~ .card-host-name {
|
|
display: none;
|
|
}
|
|
.card-outer:is(:hover, :focus, .active):not(.placeholder) .card-host-name.alternate {
|
|
display: block;
|
|
}
|
|
.card-outer .card-preview-image-outer {
|
|
background-color: var(--newtab-element-secondary-color);
|
|
border-radius: var(--border-radius-medium) var(--border-radius-medium) 0 0;
|
|
height: 122px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
.card-outer .card-preview-image-outer::after {
|
|
border-block-end: 1px solid var(--newtab-card-hairline-color);
|
|
inset-block-end: 0;
|
|
content: "";
|
|
position: absolute;
|
|
width: 100%;
|
|
}
|
|
.card-outer .card-preview-image-outer .card-preview-image {
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
height: 100%;
|
|
opacity: 0;
|
|
transition: opacity 1s cubic-bezier(0.07, 0.95, 0, 1);
|
|
width: 100%;
|
|
}
|
|
.card-outer .card-preview-image-outer .card-preview-image.loaded {
|
|
opacity: 1;
|
|
}
|
|
.card-outer .card-details {
|
|
padding: var(--space-large) var(--space-large) var(--space-medium);
|
|
}
|
|
.card-outer .card-text {
|
|
max-height: 78px;
|
|
overflow: hidden;
|
|
}
|
|
.card-outer .card-text.no-host-name, .card-outer .card-text.no-context {
|
|
max-height: 97px;
|
|
}
|
|
.card-outer .card-text.no-host-name.no-context {
|
|
max-height: 116px;
|
|
}
|
|
.card-outer .card-text:not(.no-description) .card-title {
|
|
max-height: 57px;
|
|
overflow: hidden;
|
|
}
|
|
.card-outer .card-host-name {
|
|
color: var(--newtab-text-secondary-color);
|
|
font-size: var(--font-size-small);
|
|
overflow: hidden;
|
|
padding-block-end: var(--space-xsmall);
|
|
text-overflow: ellipsis;
|
|
text-transform: uppercase;
|
|
white-space: nowrap;
|
|
}
|
|
.card-outer .card-host-name.alternate {
|
|
display: none;
|
|
}
|
|
.card-outer .card-title {
|
|
font-size: inherit;
|
|
font-weight: var(--font-weight-heading);
|
|
line-height: 19px;
|
|
margin: 0 0 var(--space-xxsmall);
|
|
word-wrap: break-word;
|
|
}
|
|
.card-outer .card-description {
|
|
font-size: var(--font-size-small);
|
|
line-height: 19px;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
word-wrap: break-word;
|
|
}
|
|
.card-outer .card-context {
|
|
inset-block-end: 0;
|
|
color: var(--newtab-text-secondary-color);
|
|
display: flex;
|
|
font-size: var(--font-size-small);
|
|
inset-inline-start: 0;
|
|
padding: var(--space-small) var(--space-large);
|
|
position: absolute;
|
|
}
|
|
.card-outer .card-context-icon {
|
|
fill: var(--newtab-text-secondary-color);
|
|
height: 22px;
|
|
margin-inline-end: var(--space-xsmall);
|
|
}
|
|
.card-outer .card-context-label {
|
|
flex-grow: 1;
|
|
line-height: 22px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@media (min-width: 1122px) {
|
|
.normal-cards .card-outer {
|
|
height: 370px;
|
|
}
|
|
.normal-cards .card-outer .card-preview-image-outer {
|
|
height: 155px;
|
|
}
|
|
.normal-cards .card-outer .card-details {
|
|
padding: var(--space-medium) var(--space-large);
|
|
}
|
|
.normal-cards .card-outer .card-text {
|
|
max-height: 140px;
|
|
}
|
|
.normal-cards .card-outer .card-host-name {
|
|
font-size: var(--font-size-small);
|
|
padding-block-end: var(--space-xsmall);
|
|
}
|
|
.normal-cards .card-outer .card-title {
|
|
font-size: var(--font-size-large);
|
|
line-height: 23px;
|
|
margin-block-end: 0;
|
|
}
|
|
.normal-cards .card-outer .card-text:not(.no-description) .card-title {
|
|
max-height: 69px;
|
|
}
|
|
.normal-cards .card-outer .card-description {
|
|
font-size: inherit;
|
|
line-height: 23px;
|
|
}
|
|
.normal-cards .card-outer .card-context {
|
|
inset-block-end: var(--space-xsmall);
|
|
font-size: inherit;
|
|
line-height: 23px;
|
|
}
|
|
}
|
|
|
|
.compact-cards .card-outer {
|
|
height: 160px;
|
|
}
|
|
.compact-cards .card-outer .card-preview-image-outer {
|
|
height: 108px;
|
|
}
|
|
.compact-cards .card-outer .card-details {
|
|
padding: var(--space-medium) var(--space-large);
|
|
}
|
|
.compact-cards .card-outer .card-host-name {
|
|
line-height: 10px;
|
|
}
|
|
.compact-cards .card-outer .card-text .card-title, .compact-cards .card-outer .card-text:not(.no-description) .card-title {
|
|
font-size: var(--font-size-small);
|
|
line-height: calc(var(--font-size-small) + 1px);
|
|
max-height: calc(var(--font-size-small) + 5px);
|
|
overflow: hidden;
|
|
padding: 0 0 var(--space-xsmall);
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.compact-cards .card-outer .card-description {
|
|
display: none;
|
|
}
|
|
.compact-cards .card-outer .card-context {
|
|
background-color: var(--newtab-background-color-secondary);
|
|
border-radius: var(--border-radius-medium);
|
|
clip-path: inset(-1px -1px 4px);
|
|
height: 32px;
|
|
width: 32px;
|
|
padding: var(--space-small);
|
|
inset-block-start: 91px;
|
|
inset-inline-end: var(--space-medium);
|
|
inset-inline-start: auto;
|
|
}
|
|
.compact-cards .card-outer .card-context::after {
|
|
border: 1px solid var(--newtab-card-hairline-color);
|
|
border-block-end: 0;
|
|
border-radius: var(--border-radius-medium);
|
|
content: "";
|
|
position: absolute;
|
|
height: 17px;
|
|
width: 34px;
|
|
inset-block-start: calc(var(--space-xxsmall) * -1);
|
|
inset-inline-start: calc(var(--space-xxsmall) * -1);
|
|
}
|
|
.compact-cards .card-outer .card-context .card-context-icon {
|
|
margin-inline-end: 0;
|
|
height: 16px;
|
|
width: 16px;
|
|
}
|
|
.compact-cards .card-outer .card-context .card-context-icon.icon-bookmark-added {
|
|
fill: var(--color-blue-40);
|
|
}
|
|
.compact-cards .card-outer .card-context .card-context-icon.icon-download {
|
|
fill: var(--color-green-40);
|
|
}
|
|
.compact-cards .card-outer .card-context .card-context-icon.icon-pocket {
|
|
fill: #EF4056;
|
|
}
|
|
.compact-cards .card-outer .card-context .card-context-label {
|
|
display: none;
|
|
}
|
|
@media not all and (min-width: 1122px) {
|
|
.compact-cards .hide-for-narrow {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* stylelint-disable max-nesting-depth */
|
|
.collapsible-section {
|
|
padding: 0 var(--space-xlarge);
|
|
margin-block-end: var(--space-xxlarge);
|
|
}
|
|
.collapsible-section .section-title-container {
|
|
margin: 0;
|
|
}
|
|
.collapsible-section .section-title-container.has-subtitle {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
@media (min-width: 866px) {
|
|
.collapsible-section .section-title-container.has-subtitle {
|
|
flex-direction: row;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
}
|
|
}
|
|
.collapsible-section .section-title {
|
|
font-size: var(--font-size-large);
|
|
font-weight: var(--font-weight-heading);
|
|
color: var(--newtab-text-primary-color);
|
|
}
|
|
.collapsible-section .section-title.grey-title {
|
|
color: var(--newtab-text-primary-color);
|
|
display: inline-block;
|
|
fill: var(--newtab-text-primary-color);
|
|
vertical-align: middle;
|
|
}
|
|
.collapsible-section .section-title .section-title-contents {
|
|
vertical-align: top;
|
|
}
|
|
@media (max-width: 609px) {
|
|
.collapsible-section .section-title .section-title-contents {
|
|
display: block;
|
|
}
|
|
.collapsible-section .section-title .section-title-contents .learn-more-link-wrapper {
|
|
display: block;
|
|
text-align: center;
|
|
}
|
|
.collapsible-section .section-title .section-title-contents .learn-more-link-wrapper .learn-more-link {
|
|
margin-inline-start: 0;
|
|
}
|
|
}
|
|
.collapsible-section .section-sub-title {
|
|
font-size: inherit;
|
|
color: var(--newtab-text-secondary-color);
|
|
opacity: 0.3;
|
|
}
|
|
.collapsible-section .section-top-bar {
|
|
min-height: 19px;
|
|
margin-block-end: var(--space-medium);
|
|
position: relative;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
@media (max-width: 609px) {
|
|
.collapsible-section .section-top-bar {
|
|
flex-direction: column;
|
|
gap: var(--space-small);
|
|
align-items: flex-start;
|
|
}
|
|
}
|
|
.collapsible-section.active {
|
|
background: var(--newtab-element-hover-color);
|
|
border-radius: var(--border-radius-small);
|
|
}
|
|
.collapsible-section .learn-more-link {
|
|
font-size: var(--font-size-small);
|
|
margin-inline-start: var(--space-medium);
|
|
}
|
|
.collapsible-section .learn-more-link a {
|
|
color: var(--newtab-primary-action-background);
|
|
}
|
|
.collapsible-section .section-body-fallback {
|
|
height: 266px;
|
|
}
|
|
.collapsible-section .section-body {
|
|
margin: 0 calc(var(--space-xsmall) * -1);
|
|
padding: 0 var(--space-small);
|
|
}
|
|
.collapsible-section .section-body.animating {
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
}
|
|
.collapsible-section[data-section-id=topsites] .section-top-bar {
|
|
display: none;
|
|
}
|
|
@media (min-width: 610px) and (max-width: 865px) {
|
|
.collapsible-section[data-section-id=topstories] .card-outer:first-child {
|
|
display: none;
|
|
}
|
|
}
|
|
.collapsible-section .button-topic-selection {
|
|
display: none;
|
|
}
|
|
@media (min-width: 724px) {
|
|
.collapsible-section .button-topic-selection {
|
|
display: block;
|
|
}
|
|
}
|
|
.lightWallpaper .collapsible-section .button-topic-selection moz-button[type=default]::part(button), .darkWallpaper .collapsible-section .button-topic-selection moz-button[type=default]::part(button) {
|
|
background-color: var(--newtab-weather-background-color);
|
|
}
|
|
.lightWallpaper .collapsible-section .button-topic-selection moz-button[type=default]::part(button):hover, .darkWallpaper .collapsible-section .button-topic-selection moz-button[type=default]::part(button):hover {
|
|
background-color: var(--newtab-button-static-hover-background);
|
|
}
|
|
.lightWallpaper .collapsible-section .button-topic-selection moz-button[type=default]::part(button):hover:active, .darkWallpaper .collapsible-section .button-topic-selection moz-button[type=default]::part(button):hover:active {
|
|
background-color: var(--newtab-button-static-active-background);
|
|
}
|
|
@media (prefers-contrast) {
|
|
.lightWallpaper .collapsible-section .button-topic-selection moz-button[type=default]::part(button), .darkWallpaper .collapsible-section .button-topic-selection moz-button[type=default]::part(button) {
|
|
background-color: var(--background-color-box);
|
|
}
|
|
}
|
|
|
|
/* stylelint-disable max-nesting-depth */
|
|
.discoverystream-admin-toggle {
|
|
position: fixed;
|
|
inset-block-end: calc(var(--button-size-icon) + var(--space-xxlarge) + var(--space-small));
|
|
inset-inline-end: var(--space-xlarge);
|
|
appearance: none;
|
|
border: 0;
|
|
border-radius: var(--border-radius-small);
|
|
background-color: var(--button-background-color, rgba(21, 20, 26, 0.07));
|
|
box-shadow: 0 0.8px 1.6px 0 rgba(58, 57, 68, 0.2);
|
|
padding: calc(5 * var(--space-xxsmall));
|
|
z-index: 4;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.lightWallpaper .discoverystream-admin-toggle, .darkWallpaper .discoverystream-admin-toggle {
|
|
background-color: var(--newtab-weather-background-color);
|
|
}
|
|
@media (prefers-contrast) {
|
|
.lightWallpaper .discoverystream-admin-toggle, .darkWallpaper .discoverystream-admin-toggle {
|
|
background-color: var(--background-color-box);
|
|
}
|
|
}
|
|
.discoverystream-admin-toggle:hover {
|
|
background-color: var(--newtab-button-static-hover-background);
|
|
}
|
|
.discoverystream-admin-toggle:active {
|
|
background-color: var(--newtab-button-static-active-background);
|
|
}
|
|
.discoverystream-admin-toggle:focus-visible {
|
|
border: 0;
|
|
outline: var(--focus-outline);
|
|
background-color: var(--newtab-button-static-active-background);
|
|
}
|
|
.discoverystream-admin-toggle:dir(rtl) {
|
|
transform: scaleX(-1);
|
|
}
|
|
.discoverystream-admin-toggle > div {
|
|
width: var(--icon-size-medium);
|
|
height: var(--icon-size-medium);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.discoverystream-admin-toggle > div > img {
|
|
-moz-context-properties: fill;
|
|
display: inline-block;
|
|
color: var(--icon-color);
|
|
fill: currentColor;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
vertical-align: middle;
|
|
width: 100%;
|
|
}
|
|
|
|
.discoverystream-admin {
|
|
position: fixed;
|
|
inset-block-start: 0;
|
|
inset-inline-start: 0;
|
|
width: 100%;
|
|
background: var(--newtab-background-color);
|
|
height: 100%;
|
|
overflow-y: scroll;
|
|
margin: 0 auto;
|
|
color: var(--newtab-text-primary-color);
|
|
z-index: 3;
|
|
}
|
|
.discoverystream-admin .personalization-data {
|
|
padding-block-end: var(--space-xlarge);
|
|
}
|
|
.discoverystream-admin.collapsed {
|
|
display: none;
|
|
}
|
|
.discoverystream-admin main.main-panel {
|
|
margin: 0 auto;
|
|
width: 274px;
|
|
}
|
|
@media (min-width: 610px) {
|
|
.discoverystream-admin main.main-panel {
|
|
width: 530px;
|
|
}
|
|
}
|
|
@media (min-width: 866px) {
|
|
.discoverystream-admin main.main-panel {
|
|
width: 786px;
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.discoverystream-admin main.main-panel {
|
|
width: 1042px;
|
|
}
|
|
}
|
|
.discoverystream-admin h1 {
|
|
font-size: var(--font-size-xxlarge);
|
|
}
|
|
.discoverystream-admin h2 .button,
|
|
.discoverystream-admin p .button {
|
|
font-size: inherit;
|
|
padding: var(--space-xsmall) var(--space-medium);
|
|
margin-inline-start: var(--space-xsmall);
|
|
margin-block-end: 0;
|
|
}
|
|
.discoverystream-admin .toggle-wrapper {
|
|
margin-block: var(--space-large);
|
|
width: 200px;
|
|
}
|
|
.discoverystream-admin .inferred-personalization-overrides {
|
|
margin-block: var(--space-large);
|
|
}
|
|
.discoverystream-admin .inferred-overrides-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-medium);
|
|
}
|
|
.discoverystream-admin .inferred-overrides-title {
|
|
margin: 0;
|
|
}
|
|
.discoverystream-admin .inferred-overrides-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-medium);
|
|
}
|
|
.discoverystream-admin .inferred-overrides-actions .button {
|
|
margin: 0;
|
|
}
|
|
.discoverystream-admin .inferred-overrides-toggle-row td:first-child {
|
|
font-weight: var(--font-weight-bold);
|
|
}
|
|
.discoverystream-admin .inferred-overrides-last-refreshed {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-small);
|
|
font-size: var(--font-size-small);
|
|
margin-block: var(--space-small) var(--space-medium);
|
|
padding-inline-start: var(--space-small);
|
|
}
|
|
.discoverystream-admin .inferred-overrides-last-refreshed-label {
|
|
font-weight: var(--font-weight-bold);
|
|
}
|
|
.discoverystream-admin .inferred-vectors-row {
|
|
display: flex;
|
|
align-items: stretch;
|
|
gap: var(--space-xlarge);
|
|
margin-block-start: var(--space-xlarge);
|
|
}
|
|
.discoverystream-admin .inferred-vector-column {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-small);
|
|
}
|
|
.discoverystream-admin .inferred-vector-panel {
|
|
border: 1px solid var(--border-color);
|
|
padding: var(--space-small);
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.discoverystream-admin .inferred-vector-panel pre {
|
|
margin-block-start: 0;
|
|
flex: 1;
|
|
overflow: auto;
|
|
}
|
|
.discoverystream-admin .inferred-vector-title {
|
|
font-weight: var(--font-weight-bold);
|
|
}
|
|
.discoverystream-admin .inferred-overrides-table-header td {
|
|
font-weight: var(--font-weight-bold);
|
|
}
|
|
.discoverystream-admin .inferred-score-col {
|
|
width: 1%;
|
|
white-space: nowrap;
|
|
text-align: center;
|
|
padding-inline: 0;
|
|
}
|
|
.discoverystream-admin .inferred-overrides-toggle-row td {
|
|
vertical-align: middle;
|
|
}
|
|
.discoverystream-admin .inferred-override-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-medium);
|
|
}
|
|
.discoverystream-admin .inferred-override-slider {
|
|
width: 160px;
|
|
}
|
|
.discoverystream-admin .inferred-override-value {
|
|
min-width: 2ch;
|
|
text-align: end;
|
|
}
|
|
.discoverystream-admin .details-section {
|
|
margin-block: var(--space-large);
|
|
}
|
|
.discoverystream-admin .details-section summary {
|
|
font-size: var(--font-size-large);
|
|
}
|
|
.discoverystream-admin table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
}
|
|
.discoverystream-admin table.minimal-table {
|
|
border-collapse: collapse;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
.discoverystream-admin table.minimal-table td {
|
|
padding: var(--space-small);
|
|
}
|
|
.discoverystream-admin table.minimal-table td:first-child {
|
|
width: 1%;
|
|
white-space: nowrap;
|
|
}
|
|
.discoverystream-admin table.minimal-table td:not(:first-child) {
|
|
font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace;
|
|
}
|
|
.discoverystream-admin table.errorReporting tr {
|
|
border: 1px solid var(--newtab-background-color-secondary);
|
|
}
|
|
.discoverystream-admin table.errorReporting td {
|
|
padding: var(--space-xsmall);
|
|
}
|
|
.discoverystream-admin table.errorReporting td[rowspan] {
|
|
border: 1px solid var(--newtab-background-color-secondary);
|
|
}
|
|
.discoverystream-admin .large-data-container {
|
|
max-height: 500px;
|
|
overflow-y: scroll;
|
|
}
|
|
.discoverystream-admin .message-item:first-child td {
|
|
border-block-start: 1px solid var(--border-color);
|
|
}
|
|
.discoverystream-admin .message-item td {
|
|
vertical-align: top;
|
|
padding: var(--space-small);
|
|
border-block-end: 1px solid var(--border-color);
|
|
}
|
|
.discoverystream-admin .message-item td.min {
|
|
width: 1%;
|
|
white-space: nowrap;
|
|
}
|
|
.discoverystream-admin .message-item td.message-summary {
|
|
width: 60%;
|
|
}
|
|
.discoverystream-admin .message-item td.button-column {
|
|
width: 15%;
|
|
}
|
|
.discoverystream-admin .message-item td:first-child {
|
|
border-inline-start: 1px solid var(--border-color);
|
|
}
|
|
.discoverystream-admin .message-item td:last-child {
|
|
border-inline-end: 1px solid var(--border-color);
|
|
}
|
|
.discoverystream-admin .message-item.blocked .message-id,
|
|
.discoverystream-admin .message-item.blocked .message-summary {
|
|
opacity: 0.5;
|
|
}
|
|
.discoverystream-admin .message-item.blocked .message-id {
|
|
opacity: 0.5;
|
|
}
|
|
.discoverystream-admin .message-item .message-id {
|
|
font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace;
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.discoverystream-admin pre {
|
|
background: var(--newtab-background-color-secondary);
|
|
margin: 0;
|
|
padding: var(--space-small);
|
|
font-size: var(--font-size-small);
|
|
max-width: 750px;
|
|
overflow: auto;
|
|
font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace;
|
|
}
|
|
.discoverystream-admin .helpLink {
|
|
padding: var(--space-medium);
|
|
display: flex;
|
|
background: rgba(0, 0, 0, 0.1);
|
|
border-radius: var(--border-radius-small);
|
|
align-items: center;
|
|
}
|
|
.discoverystream-admin .helpLink a {
|
|
text-decoration: underline;
|
|
}
|
|
.discoverystream-admin .helpLink .icon {
|
|
min-width: 18px;
|
|
min-height: 18px;
|
|
}
|
|
.discoverystream-admin .ds-component {
|
|
margin-block-end: var(--space-large);
|
|
}
|
|
.discoverystream-admin .collapsed {
|
|
display: none;
|
|
}
|
|
.discoverystream-admin .icon {
|
|
display: inline-table;
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
.discoverystream-admin .button:disabled, .discoverystream-admin .button:disabled:active {
|
|
opacity: 0.5;
|
|
cursor: unset;
|
|
box-shadow: none;
|
|
}
|
|
.discoverystream-admin .weather-section {
|
|
margin-block-end: var(--space-xlarge);
|
|
}
|
|
.discoverystream-admin .weather-section form {
|
|
display: flex;
|
|
}
|
|
.discoverystream-admin .weather-section form label {
|
|
margin-inline-end: var(--space-medium);
|
|
}
|
|
|
|
.more-recommendations {
|
|
display: flex;
|
|
align-items: center;
|
|
white-space: nowrap;
|
|
line-height: 1.2307692308;
|
|
}
|
|
.more-recommendations::after {
|
|
background: url("chrome://global/skin/icons/arrow-right-12.svg") no-repeat center center;
|
|
content: "";
|
|
-moz-context-properties: fill;
|
|
display: inline-block;
|
|
fill: var(--newtab-primary-action-background);
|
|
height: 16px;
|
|
margin-inline-start: var(--space-xsmall);
|
|
vertical-align: top;
|
|
width: var(--icon-size-xsmall);
|
|
}
|
|
.more-recommendations:dir(rtl)::after {
|
|
background-image: url("chrome://global/skin/icons/arrow-left-12.svg");
|
|
}
|
|
|
|
.discovery-stream.ds-layout {
|
|
--gridColumnGap: 48px;
|
|
--gridRowGap: 24px;
|
|
grid-template-columns: repeat(12, 1fr);
|
|
grid-column-gap: var(--gridColumnGap);
|
|
grid-row-gap: var(--gridRowGap);
|
|
margin: 0 auto;
|
|
}
|
|
.nova-enabled .discovery-stream.ds-layout {
|
|
display: grid;
|
|
}
|
|
.discovery-stream.ds-layout .ds-column-12 {
|
|
grid-column-start: auto;
|
|
grid-column-end: span 12;
|
|
}
|
|
.discovery-stream.ds-layout .ds-column-11 {
|
|
grid-column-start: auto;
|
|
grid-column-end: span 11;
|
|
}
|
|
.discovery-stream.ds-layout .ds-column-10 {
|
|
grid-column-start: auto;
|
|
grid-column-end: span 10;
|
|
}
|
|
.discovery-stream.ds-layout .ds-column-9 {
|
|
grid-column-start: auto;
|
|
grid-column-end: span 9;
|
|
}
|
|
.discovery-stream.ds-layout .ds-column-8 {
|
|
grid-column-start: auto;
|
|
grid-column-end: span 8;
|
|
}
|
|
.discovery-stream.ds-layout .ds-column-7 {
|
|
grid-column-start: auto;
|
|
grid-column-end: span 7;
|
|
}
|
|
.discovery-stream.ds-layout .ds-column-6 {
|
|
grid-column-start: auto;
|
|
grid-column-end: span 6;
|
|
}
|
|
.discovery-stream.ds-layout .ds-column-5 {
|
|
grid-column-start: auto;
|
|
grid-column-end: span 5;
|
|
}
|
|
.discovery-stream.ds-layout .ds-column-4 {
|
|
grid-column-start: auto;
|
|
grid-column-end: span 4;
|
|
}
|
|
.discovery-stream.ds-layout .ds-column-3 {
|
|
grid-column-start: auto;
|
|
grid-column-end: span 3;
|
|
}
|
|
.discovery-stream.ds-layout .ds-column-2 {
|
|
grid-column-start: auto;
|
|
grid-column-end: span 2;
|
|
}
|
|
.discovery-stream.ds-layout .ds-column-1 {
|
|
grid-column-start: auto;
|
|
grid-column-end: span 1;
|
|
}
|
|
.discovery-stream.ds-layout .ds-column-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
grid-row-gap: var(--gridRowGap);
|
|
}
|
|
.discovery-stream.ds-layout .ds-column-grid > div:empty {
|
|
display: none;
|
|
}
|
|
|
|
.ds-header {
|
|
margin: var(--space-small) 0;
|
|
}
|
|
.ds-header .ds-context {
|
|
font-weight: var(--font-weight);
|
|
}
|
|
|
|
.ds-header,
|
|
.ds-layout .section-title span {
|
|
color: var(--newtab-contextual-text-primary-color);
|
|
font-size: var(--font-size-large);
|
|
font-weight: var(--font-weight-heading);
|
|
}
|
|
.lightWallpaper .ds-header,
|
|
.lightWallpaper .ds-layout .section-title span {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .ds-header,
|
|
.darkWallpaper .ds-layout .section-title span {
|
|
color-scheme: dark;
|
|
}
|
|
.ds-header .icon,
|
|
.ds-layout .section-title span .icon {
|
|
fill: var(--newtab-text-secondary-color);
|
|
}
|
|
|
|
.collapsible-section.ds-layout {
|
|
margin: auto;
|
|
}
|
|
.lightWallpaper .collapsible-section.ds-layout .section-top-bar .learn-more-link {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .collapsible-section.ds-layout .section-top-bar .learn-more-link {
|
|
color-scheme: dark;
|
|
}
|
|
.collapsible-section.ds-layout .section-top-bar .learn-more-link a {
|
|
color: var(--newtab-primary-action-background);
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
.collapsible-section.ds-layout .section-top-bar .learn-more-link a:is(:focus, :hover) {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.nova-enabled .content .ds-layout:not(.discovery-stream) {
|
|
display: contents;
|
|
}
|
|
.nova-enabled .content .ds-layout:not(.discovery-stream) > div {
|
|
display: contents;
|
|
}
|
|
|
|
.nova-enabled .content .discovery-stream.ds-layout {
|
|
display: contents;
|
|
grid-column: 1/-1;
|
|
}
|
|
.nova-enabled .content .discovery-stream.ds-layout .ds-column {
|
|
display: contents;
|
|
}
|
|
.nova-enabled .content .discovery-stream.ds-layout .ds-column-grid {
|
|
display: contents;
|
|
}
|
|
.nova-enabled .content .discovery-stream.ds-layout .ds-column-grid > div {
|
|
display: contents;
|
|
}
|
|
|
|
.nova-enabled .content .ds-top-sites {
|
|
display: contents;
|
|
}
|
|
|
|
.nova-enabled .content .top-sites {
|
|
grid-column: 1/-1;
|
|
}
|
|
|
|
.nova-enabled .content .ds-section-wrapper {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, calc(4 * var(--col-width) + 3 * var(--space-medium)));
|
|
gap: var(--space-medium);
|
|
justify-content: center;
|
|
grid-column: 1/-1;
|
|
}
|
|
|
|
.nova-enabled .content .ds-card-grid-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, calc(4 * var(--col-width) + 3 * var(--space-medium)));
|
|
gap: var(--space-medium);
|
|
justify-content: center;
|
|
grid-column: 1/-1;
|
|
}
|
|
|
|
.modalOverlayOuter {
|
|
border: none;
|
|
box-shadow: var(--popup-box-shadow);
|
|
padding: 0;
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.modalOverlayOuter::backdrop {
|
|
background: var(--newtab-overlay-color);
|
|
}
|
|
|
|
.notification-wrapper {
|
|
position: fixed;
|
|
inset-inline-end: var(--space-medium);
|
|
inset-block-end: var(--space-medium);
|
|
z-index: 10;
|
|
}
|
|
|
|
.notification-feed-item {
|
|
position: relative;
|
|
animation: toastSlideInSlideOut 4s ease-in-out forwards;
|
|
}
|
|
|
|
.nova-enabled ~ .notification-wrapper .newtab-toast-success {
|
|
--message-bar-background-color: var(--background-color-box);
|
|
--message-bar-icon-color: var(--icon-color-success);
|
|
}
|
|
|
|
@keyframes toastSlideInSlideOut {
|
|
0%, 100% {
|
|
opacity: 0;
|
|
inset-block-start: 50%;
|
|
}
|
|
15%, 85% {
|
|
opacity: 1;
|
|
inset-block-start: 0;
|
|
}
|
|
}
|
|
/* 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/. */
|
|
.discovery-stream.ds-layout.ds-layout-widgets {
|
|
margin-inline: 0;
|
|
}
|
|
|
|
.widgets-wrapper {
|
|
margin-inline: auto;
|
|
padding-block-end: var(--space-large);
|
|
}
|
|
.classic-enabled .widgets-wrapper {
|
|
max-width: max-content;
|
|
}
|
|
.nova-enabled .widgets-wrapper {
|
|
display: contents;
|
|
}
|
|
|
|
.classic-enabled .widgets-section-container {
|
|
padding-block: var(--space-xsmall) var(--space-large);
|
|
padding-inline: var(--space-large);
|
|
background-color: var(--button-background-color);
|
|
border-radius: var(--border-radius-large);
|
|
}
|
|
.lightWallpaper .classic-enabled .widgets-section-container, .darkWallpaper .classic-enabled .widgets-section-container {
|
|
background-color: var(--newtab-weather-background-color);
|
|
}
|
|
@media (prefers-contrast) {
|
|
.lightWallpaper .classic-enabled .widgets-section-container, .darkWallpaper .classic-enabled .widgets-section-container {
|
|
background-color: var(--background-color-box);
|
|
}
|
|
}
|
|
.nova-enabled .widgets-section-container {
|
|
grid-column: 1/-1;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, calc(4 * var(--col-width) + 3 * var(--space-medium)));
|
|
gap: var(--space-medium);
|
|
justify-content: center;
|
|
}
|
|
.widgets-section-container .widgets-title-container {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
gap: var(--space-medium);
|
|
}
|
|
.nova-enabled .widgets-section-container .widgets-title-container {
|
|
grid-column: 1/-1;
|
|
}
|
|
.widgets-section-container .widgets-title-container .widgets-title-container-text {
|
|
display: inline-block;
|
|
margin-inline-end: auto;
|
|
position: relative;
|
|
}
|
|
.widgets-section-container .widgets-title-container .widgets-title-heading {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-medium);
|
|
}
|
|
.widgets-section-container .widgets-title-container .widgets-title-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-medium);
|
|
position: relative;
|
|
}
|
|
.widgets-section-container h1 {
|
|
font-size: var(--font-size-large);
|
|
font-weight: var(--font-weight-bold);
|
|
}
|
|
.nova-enabled .widgets-section-container h1 {
|
|
font-size: var(--font-size-heading-large);
|
|
font-weight: var(--font-weight-heading);
|
|
color: var(--newtab-contextual-text-primary-color);
|
|
}
|
|
@container content-grid (inline-size >= calc(12 * 75px + 11 * 0.75rem)) {
|
|
.nova-enabled .widgets-section-container h1 {
|
|
font-size: var(--font-size-heading-xlarge);
|
|
}
|
|
}
|
|
.lightWallpaper .nova-enabled .widgets-section-container h1 {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .nova-enabled .widgets-section-container h1 {
|
|
color-scheme: dark;
|
|
}
|
|
.nova-enabled .widgets-section-container #hide-all-widgets-button,
|
|
.nova-enabled .widgets-section-container #toggle-widgets-size-button {
|
|
color: var(--newtab-contextual-text-primary-color);
|
|
}
|
|
.lightWallpaper .nova-enabled .widgets-section-container #hide-all-widgets-button,
|
|
.lightWallpaper .nova-enabled .widgets-section-container #toggle-widgets-size-button {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .nova-enabled .widgets-section-container #hide-all-widgets-button,
|
|
.darkWallpaper .nova-enabled .widgets-section-container #toggle-widgets-size-button {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
.widgets-expand-button {
|
|
appearance: none;
|
|
align-items: center;
|
|
background-color: transparent;
|
|
border: 1px solid var(--newtab-primary-action-background);
|
|
border-radius: var(--border-radius-circle);
|
|
color: var(--newtab-primary-action-background);
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
height: var(--size-item-large);
|
|
justify-content: center;
|
|
margin: 0;
|
|
padding: 0;
|
|
width: var(--size-item-large);
|
|
}
|
|
.widgets-expand-button::before {
|
|
background-color: currentColor;
|
|
content: "";
|
|
height: var(--size-item-small);
|
|
mask: url("chrome://global/skin/icons/arrow-down.svg") center/contain no-repeat;
|
|
transition: transform 160ms ease;
|
|
width: var(--size-item-small);
|
|
}
|
|
.widgets-expand-button.is-maximized::before {
|
|
transform: rotate(180deg);
|
|
}
|
|
.widgets-expand-button:hover {
|
|
background-color: var(--newtab-element-secondary-hover-color);
|
|
}
|
|
.widgets-expand-button:active {
|
|
background-color: var(--newtab-element-secondary-active-color);
|
|
}
|
|
.widgets-expand-button:focus {
|
|
outline: none;
|
|
}
|
|
.widgets-expand-button:focus-visible {
|
|
outline: var(--focus-outline);
|
|
outline-offset: var(--focus-outline-offset);
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.widgets-expand-button::before {
|
|
transition: none;
|
|
}
|
|
}
|
|
.widgets-header-context-menu {
|
|
position: relative;
|
|
}
|
|
.lightWallpaper .widgets-header-context-menu {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .widgets-header-context-menu {
|
|
color-scheme: dark;
|
|
}
|
|
.widgets-header-context-menu .widgets-header-context-menu-button::part(button) {
|
|
background-color: transparent;
|
|
}
|
|
.widgets-header-context-menu .widgets-header-context-menu-button::part(button):hover {
|
|
background-color: var(--button-background-color-hover);
|
|
}
|
|
.widgets-header-context-menu .widgets-header-context-menu-button::part(button):active {
|
|
background-color: var(--button-background-color-active);
|
|
}
|
|
.widgets-header-context-menu panel-list {
|
|
min-width: 256px;
|
|
}
|
|
.widgets-header-context-menu panel-item::part(button) {
|
|
min-block-size: 30px;
|
|
}
|
|
|
|
@media (min-width: 1122px) {
|
|
.classic-enabled .widgets-section-container {
|
|
padding-block-end: var(--space-xlarge);
|
|
padding-inline: var(--space-xlarge);
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.has-sections-grid .classic-enabled .widgets-section-container {
|
|
padding-block-end: var(--space-large);
|
|
padding-inline: var(--space-large);
|
|
}
|
|
}
|
|
|
|
.nova-enabled .widgets-container {
|
|
grid-column: 1/-1;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, var(--col-width));
|
|
grid-auto-rows: var(--row-height);
|
|
gap: var(--space-medium);
|
|
}
|
|
.classic-enabled .widgets-container {
|
|
--widgets-card-width: var(--newtab-card-grid-layout-width);
|
|
--widgets-max-cols: 3;
|
|
--widgets-grid-gap: var(--space-large);
|
|
--widgets-small-card-height: var(--newtab-card-height-small);
|
|
}
|
|
.classic-enabled .widgets-container:has(.lists), .classic-enabled .widgets-container:has(.focus-timer), .classic-enabled .widgets-container:has(.sports) {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, var(--widgets-card-width));
|
|
gap: var(--widgets-grid-gap);
|
|
}
|
|
@media (min-width: 610px) {
|
|
.classic-enabled .widgets-container:has(.lists), .classic-enabled .widgets-container:has(.focus-timer), .classic-enabled .widgets-container:has(.sports) {
|
|
max-width: calc(var(--widgets-max-cols) * var(--widgets-card-width) + (var(--widgets-max-cols) - 1) * var(--widgets-grid-gap));
|
|
justify-content: center;
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.classic-enabled .widgets-container:has(.lists), .classic-enabled .widgets-container:has(.focus-timer), .classic-enabled .widgets-container:has(.sports) {
|
|
--widgets-grid-gap: var(--space-xlarge);
|
|
}
|
|
}
|
|
.classic-enabled .widgets-container .is-small {
|
|
height: var(--widgets-small-card-height);
|
|
}
|
|
|
|
.classic-enabled .has-sections-grid .widgets-container {
|
|
--widgets-card-width: var(--newtab-card-width-medium);
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.classic-enabled .has-sections-grid .widgets-container:has(.lists), .classic-enabled .has-sections-grid .widgets-container:has(.focus-timer), .classic-enabled .has-sections-grid .widgets-container:has(.sports) {
|
|
--widgets-grid-gap: var(--space-large);
|
|
}
|
|
}
|
|
|
|
.nova-enabled .widget-draggable.is-dragging {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.widgets-feedback-link {
|
|
display: inline-block;
|
|
margin-block-start: var(--space-medium);
|
|
font-size: var(--font-size-small);
|
|
}
|
|
|
|
.nova-enabled .widgets-row-toggle {
|
|
display: none;
|
|
grid-column: 1/-1;
|
|
justify-self: center;
|
|
margin-block-start: var(--space-medium);
|
|
}
|
|
.lightWallpaper .nova-enabled .widgets-row-toggle {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .nova-enabled .widgets-row-toggle {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
@container content-grid (inline-size < calc(8 * 75px + 7 * 0.75rem)) {
|
|
.nova-enabled .widgets-section-container[data-overflow-1] .widgets-row-toggle {
|
|
display: block;
|
|
}
|
|
.nova-enabled .widgets-container[data-row-collapsed] .widget-wrapper[data-hidden-1] {
|
|
display: none;
|
|
}
|
|
}
|
|
@container content-grid ((inline-size >= calc(8 * 75px + 7 * 0.75rem)) and (inline-size < calc(12 * 75px + 11 * 0.75rem))) {
|
|
.nova-enabled .widgets-section-container[data-overflow-2] .widgets-row-toggle {
|
|
display: block;
|
|
}
|
|
.nova-enabled .widgets-container[data-row-collapsed] .widget-wrapper[data-hidden-2] {
|
|
display: none;
|
|
}
|
|
}
|
|
@container content-grid ((inline-size >= calc(12 * 75px + 11 * 0.75rem)) and (inline-size < calc(16 * 75px + 15 * 0.75rem))) {
|
|
.nova-enabled .widgets-section-container[data-overflow-3] .widgets-row-toggle {
|
|
display: block;
|
|
}
|
|
.nova-enabled .widgets-container[data-row-collapsed] .widget-wrapper[data-hidden-3] {
|
|
display: none;
|
|
}
|
|
}
|
|
@container content-grid (inline-size >= calc(16 * 75px + 15 * 0.75rem)) {
|
|
.nova-enabled .widgets-section-container[data-overflow-4] .widgets-row-toggle {
|
|
display: block;
|
|
}
|
|
.nova-enabled .widgets-container[data-row-collapsed] .widget-wrapper[data-hidden-4] {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@container content-grid (inline-size >= calc(8 * 75px + 7 * 0.75rem)) {
|
|
.nova-enabled .widgets-container:has(> :nth-child(2)):not(:has(> :nth-child(3))) > .widgets-add-button {
|
|
display: flex;
|
|
}
|
|
}
|
|
@container content-grid (inline-size >= calc(12 * 75px + 11 * 0.75rem)) {
|
|
.nova-enabled .widgets-container:has(> :nth-child(3)):not(:has(> :nth-child(4))) > .widgets-add-button {
|
|
display: flex;
|
|
}
|
|
}
|
|
@container content-grid (inline-size >= calc(16 * 75px + 15 * 0.75rem)) {
|
|
.nova-enabled .widgets-container:has(> :nth-child(4)):not(:has(> :nth-child(5))) > .widgets-add-button {
|
|
display: flex;
|
|
}
|
|
}
|
|
.nova-enabled .widgets-add-button {
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0;
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease;
|
|
background: var(--newtab-background-card);
|
|
border: 1px dashed var(--border-color);
|
|
border-radius: var(--border-radius-large);
|
|
color: var(--icon-color-accent-primary-desaturated, light-dark(var(--color-violet-desaturated-60), var(--color-violet-desaturated-50)));
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.nova-enabled .widgets-add-button {
|
|
transition: none;
|
|
}
|
|
}
|
|
.nova-enabled .widgets-add-button.medium-widget {
|
|
grid-row: span 2;
|
|
}
|
|
.nova-enabled .widgets-add-button.large-widget {
|
|
grid-row: span 4;
|
|
}
|
|
.nova-enabled .widgets-add-button:hover, .nova-enabled .widgets-add-button:focus-within {
|
|
opacity: 1;
|
|
background: var(--newtab-background-color-secondary);
|
|
outline: 1px solid var(--border-color-deemphasized);
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .widgets-add-button:focus-visible {
|
|
outline: var(--focus-outline);
|
|
outline-offset: var(--focus-outline-offset);
|
|
}
|
|
.nova-enabled .widgets-add-button .widgets-add-button-icon {
|
|
display: inline-block;
|
|
width: var(--icon-size-large);
|
|
height: var(--icon-size-large);
|
|
background-color: currentColor;
|
|
mask: url("chrome://global/skin/icons/plus.svg") center/contain no-repeat;
|
|
}
|
|
|
|
.feature-highlight .feature-highlight-modal.widget-highlight-wrapper {
|
|
width: auto;
|
|
max-width: min-content;
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.widget-highlight-wrapper.inset-block-end {
|
|
margin-block-start: var(--space-large);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.widget-highlight-wrapper .content-wrapper {
|
|
margin: 0;
|
|
padding: var(--space-medium);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.widget-highlight-wrapper .widget-highlight img {
|
|
border-radius: var(--border-radius-medium);
|
|
margin-block-end: var(--space-small);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.widget-highlight-wrapper .widget-highlight h3 {
|
|
margin-block: 0 var(--space-xsmall);
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.widget-highlight-wrapper .widget-highlight p {
|
|
margin-block: 0;
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.widget-highlight-wrapper .message-icon {
|
|
display: none;
|
|
}
|
|
.feature-highlight .feature-highlight-modal.widget-highlight-wrapper moz-button {
|
|
position: absolute;
|
|
inset-inline-end: var(--space-medium);
|
|
inset-block-start: var(--space-medium);
|
|
--button-icon-fill: var(--color-gray-0);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.widget-highlight-wrapper.no-image {
|
|
min-width: 370px;
|
|
padding-block-start: var(--space-small);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.widget-highlight-wrapper.no-image moz-button {
|
|
--button-icon-fill: var(--icon-color);
|
|
}
|
|
|
|
/* 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/. */
|
|
.nova-enabled .widget-wrapper.small-widget {
|
|
grid-column: span 2;
|
|
grid-row: span 2;
|
|
}
|
|
.nova-enabled .widget-wrapper.medium-widget {
|
|
grid-row: span 2;
|
|
}
|
|
.nova-enabled .widget-wrapper.large-widget {
|
|
grid-row: span 4;
|
|
}
|
|
.nova-enabled .widget-wrapper:has(> .large-widget) {
|
|
grid-column: span 4;
|
|
grid-row: span 4;
|
|
}
|
|
|
|
.widget-error-fallback {
|
|
block-size: 100%;
|
|
padding: var(--space-large);
|
|
text-align: center;
|
|
}
|
|
|
|
/* 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/. */
|
|
@keyframes widget-celebration-confetti-fall {
|
|
0% {
|
|
opacity: 0;
|
|
translate: 0 0;
|
|
rotate: 0deg;
|
|
}
|
|
12% {
|
|
opacity: 1;
|
|
}
|
|
85% {
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
translate: var(--confetti-drift) var(--confetti-fall, 360px);
|
|
rotate: var(--confetti-rotate);
|
|
}
|
|
}
|
|
@keyframes widget-celebration-firework {
|
|
0% {
|
|
opacity: 0;
|
|
translate: 0 0;
|
|
scale: 0.3;
|
|
}
|
|
12% {
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
translate: var(--fw-dx) calc(var(--fw-dy) + 14px);
|
|
scale: 1;
|
|
}
|
|
}
|
|
@keyframes widget-celebration-lifecycle {
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@keyframes widget-celebration-border-draw {
|
|
from {
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
opacity: 0.4;
|
|
stroke-dashoffset: 100;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
stroke-dashoffset: 0;
|
|
}
|
|
}
|
|
@keyframes widget-celebration-border-fade {
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
@keyframes widget-celebration-border-orbit-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: var(--opacity-deemphasized-strong);
|
|
}
|
|
}
|
|
@keyframes widget-celebration-border-orbit-loop {
|
|
from {
|
|
stroke-dashoffset: 100;
|
|
}
|
|
to {
|
|
stroke-dashoffset: 0;
|
|
}
|
|
}
|
|
@keyframes widget-celebration-border-orbit-out {
|
|
from {
|
|
opacity: var(--opacity-deemphasized-strong);
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
@keyframes widget-celebration-copy-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
@keyframes widget-celebration-copy-out {
|
|
from {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
transform: translateY(-4px);
|
|
}
|
|
}
|
|
@keyframes widget-celebration-copy-panel-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@keyframes widget-celebration-copy-panel-out {
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
@keyframes widget-celebration-illustration-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(12px) scale(0.96);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
}
|
|
@keyframes widget-celebration-illustration-out {
|
|
from {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
transform: translateY(8px) scale(0.98);
|
|
}
|
|
}
|
|
@keyframes widget-celebration-tint-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@keyframes widget-celebration-tint-out {
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
/* 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/. */
|
|
.lists {
|
|
background: var(--newtab-background-card);
|
|
transition: opacity 0.2s ease;
|
|
--lists-surface-color: light-dark(
|
|
var(--color-white),
|
|
var(--newtab-background-card)
|
|
);
|
|
--lists-text-color: light-dark(
|
|
color-mix(in srgb, var(--color-violet-desaturated-90) 70%, transparent),
|
|
color-mix(in srgb, var(--color-violet-desaturated-0) 70%, transparent)
|
|
);
|
|
--lists-checkbox-border-color: light-dark(
|
|
var(--text-color),
|
|
var(--newtab-text-primary-color)
|
|
);
|
|
--lists-button-background: light-dark(var(--color-violet-50), var(--color-violet-30));
|
|
--lists-button-background-hover: var(--color-accent-primary-hover);
|
|
--lists-button-background-active: var(--color-accent-primary-active);
|
|
--lists-button-text-color: var(--button-text-color-primary);
|
|
--widget-celebration-accent-color: var(--color-accent-primary);
|
|
--widget-celebration-copy-color: var(--lists-text-color);
|
|
--widget-celebration-surface-color: var(--lists-surface-color);
|
|
--widget-celebration-headline-gradient-angle: 90deg;
|
|
--widget-celebration-headline-gradient-start: var(--color-orange-20);
|
|
--widget-celebration-headline-gradient-mid-start: var(--color-orange-30);
|
|
--widget-celebration-headline-gradient-mid-end: var(--color-pink-30);
|
|
--widget-celebration-headline-gradient-end: var(--color-pink-40);
|
|
--widget-celebration-tint-color: color-mix(
|
|
in srgb,
|
|
var(--lists-surface-color) 92%,
|
|
transparent
|
|
);
|
|
--widget-celebration-glow-color: color-mix(
|
|
in srgb,
|
|
var(--widget-celebration-accent-color) 35%,
|
|
transparent
|
|
);
|
|
--widget-celebration-orbit-color: color-mix(
|
|
in srgb,
|
|
var(--color-violet-40) 70%,
|
|
transparent
|
|
);
|
|
--widget-celebration-border-draw-duration: 1900ms;
|
|
--widget-celebration-orbit-duration: 1900ms;
|
|
--widget-celebration-track-color: color-mix(
|
|
in srgb,
|
|
var(--widget-celebration-accent-color) 45%,
|
|
transparent
|
|
);
|
|
--widget-celebration-hold-duration: 3400ms;
|
|
--widget-celebration-exit-duration: 1200ms;
|
|
--widget-celebration-enter-ease: cubic-bezier(0.2, 0.9, 0.2, 1);
|
|
--widget-celebration-headline-delay: 80ms;
|
|
--widget-celebration-panel-delay: var(--widget-celebration-headline-delay);
|
|
--widget-celebration-illustration-delay: 180ms;
|
|
--widget-celebration-subhead-delay: 280ms;
|
|
border-radius: var(--border-radius-large);
|
|
padding-block-start: var(--space-medium);
|
|
box-shadow: var(--card-box-shadow);
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.lists:hover {
|
|
background: var(--newtab-background-color-secondary);
|
|
}
|
|
.nova-enabled .lists {
|
|
--widget-size-transition-duration: 180ms;
|
|
--widget-size-transition-easing: ease;
|
|
background: var(--newtab-background-card);
|
|
transition: opacity 0.2s ease;
|
|
padding: var(--space-medium);
|
|
border-radius: var(--border-radius-large);
|
|
box-shadow: var(--box-shadow-level-2);
|
|
color: var(--text-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
transition: height var(--widget-size-transition-duration) var(--widget-size-transition-easing);
|
|
}
|
|
.nova-enabled .lists:hover {
|
|
background: var(--newtab-background-color-secondary);
|
|
}
|
|
.nova-enabled .lists.small-widget, .nova-enabled .lists.medium-widget {
|
|
height: var(--newtab-card-height-small);
|
|
}
|
|
.nova-enabled .lists.large-widget {
|
|
height: var(--newtab-card-height);
|
|
}
|
|
.nova-enabled .lists:hover, .nova-enabled .lists:focus-within {
|
|
outline: 1px solid var(--border-color-deemphasized);
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.nova-enabled .lists {
|
|
transition: none;
|
|
}
|
|
}
|
|
.classic-enabled .lists {
|
|
grid-column: span 1;
|
|
width: var(--newtab-card-grid-layout-width);
|
|
height: var(--newtab-card-height);
|
|
padding: var(--space-medium);
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.has-sections-grid .classic-enabled .lists {
|
|
width: var(--newtab-card-width-medium);
|
|
}
|
|
.lightWallpaper .classic-enabled .lists .empty-list {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .classic-enabled .lists .empty-list {
|
|
color-scheme: dark;
|
|
}
|
|
@media (forced-colors: active) {
|
|
.lists {
|
|
--lists-surface-color: Canvas;
|
|
--lists-text-color: CanvasText;
|
|
--lists-checkbox-border-color: ButtonText;
|
|
--lists-button-background: ButtonFace;
|
|
--lists-button-background-hover: SelectedItem;
|
|
--lists-button-background-active: SelectedItem;
|
|
--lists-button-text-color: ButtonText;
|
|
}
|
|
.lists .lists-celebration-headline {
|
|
background: none;
|
|
-webkit-text-fill-color: CanvasText;
|
|
color: CanvasText;
|
|
}
|
|
}
|
|
.lists .lists-celebration {
|
|
animation: widget-celebration-lifecycle calc(var(--widget-celebration-hold-duration) + var(--widget-celebration-exit-duration)) linear forwards;
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
z-index: 3;
|
|
}
|
|
.lists .lists-celebration::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
background: var(--widget-celebration-tint-color);
|
|
opacity: 0;
|
|
animation: widget-celebration-tint-in 260ms var(--widget-celebration-enter-ease) forwards, widget-celebration-tint-out var(--widget-celebration-exit-duration) ease forwards;
|
|
animation-delay: 0ms, var(--widget-celebration-hold-duration);
|
|
}
|
|
.lists .lists-celebration-effects {
|
|
inset: 0;
|
|
position: absolute;
|
|
}
|
|
.lists .lists-celebration-effects svg {
|
|
display: block;
|
|
filter: drop-shadow(0 0 10px var(--widget-celebration-glow-color));
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
.lists .lists-celebration-stroke-track,
|
|
.lists .lists-celebration-stroke,
|
|
.lists .lists-celebration-stroke-orbit {
|
|
fill: none;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
stroke-width: 3;
|
|
}
|
|
.lists .lists-celebration-stroke-track {
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
opacity: 0.22;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
stroke: var(--widget-celebration-track-color);
|
|
}
|
|
.lists .lists-celebration-stroke {
|
|
stroke-dasharray: 100;
|
|
stroke-dashoffset: 100;
|
|
animation-name: widget-celebration-border-draw, widget-celebration-border-fade;
|
|
animation-duration: var(--widget-celebration-border-draw-duration), var(--widget-celebration-exit-duration);
|
|
animation-timing-function: var(--widget-celebration-enter-ease), ease;
|
|
animation-fill-mode: forwards, forwards;
|
|
animation-delay: 0ms, var(--widget-celebration-hold-duration);
|
|
}
|
|
.lists .lists-celebration-stroke-orbit {
|
|
opacity: 0;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
stroke: var(--widget-celebration-orbit-color);
|
|
stroke-dasharray: 14 86;
|
|
stroke-dashoffset: 100;
|
|
stroke-width: 3;
|
|
animation: widget-celebration-border-orbit-in 240ms var(--widget-celebration-enter-ease) 160ms forwards, widget-celebration-border-orbit-loop var(--widget-celebration-orbit-duration) linear 260ms infinite, widget-celebration-border-orbit-out var(--widget-celebration-exit-duration) ease var(--widget-celebration-hold-duration) forwards;
|
|
}
|
|
.lists .lists-celebration-copy {
|
|
align-items: center;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
color: var(--widget-celebration-copy-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
inset-block-start: 52%;
|
|
inset-inline: var(--space-large);
|
|
padding-block: var(--space-small);
|
|
padding-inline: var(--space-medium);
|
|
position: absolute;
|
|
text-align: center;
|
|
transform: translateY(-50%);
|
|
z-index: 1;
|
|
}
|
|
.lists .lists-celebration-copy::before {
|
|
display: none;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
background: color-mix(in srgb, var(--widget-celebration-surface-color) 88%, transparent);
|
|
border-radius: var(--border-radius-large);
|
|
content: "";
|
|
inset: 0;
|
|
opacity: 0;
|
|
position: absolute;
|
|
animation: widget-celebration-copy-panel-in 320ms var(--widget-celebration-enter-ease) forwards, widget-celebration-copy-panel-out var(--widget-celebration-exit-duration) ease forwards;
|
|
animation-delay: var(--widget-celebration-panel-delay), var(--widget-celebration-hold-duration);
|
|
}
|
|
.lists .lists-celebration-headline,
|
|
.lists .lists-celebration-subhead {
|
|
opacity: 0;
|
|
position: relative;
|
|
transform: translateY(8px);
|
|
z-index: 1;
|
|
}
|
|
.lists .lists-celebration-headline {
|
|
display: inline-block;
|
|
background-image: linear-gradient(var(--widget-celebration-headline-gradient-angle), var(--widget-celebration-headline-gradient-start), var(--widget-celebration-headline-gradient-mid-start) 28%, var(--widget-celebration-headline-gradient-mid-end) 64%, var(--widget-celebration-headline-gradient-end));
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
color: transparent;
|
|
font-size: var(--font-size-xlarge);
|
|
font-weight: var(--font-weight-bold);
|
|
line-height: 1.2;
|
|
animation: widget-celebration-copy-in 320ms var(--widget-celebration-enter-ease) forwards, widget-celebration-copy-out var(--widget-celebration-exit-duration) ease forwards;
|
|
animation-delay: var(--widget-celebration-headline-delay), var(--widget-celebration-hold-duration);
|
|
}
|
|
.lists .lists-celebration-subhead {
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
color: var(--widget-celebration-copy-color);
|
|
font-size: var(--font-size-large);
|
|
font-weight: var(--font-weight-semibold);
|
|
line-height: 1.2;
|
|
margin-block-start: var(--space-xxsmall);
|
|
animation: widget-celebration-copy-in 320ms var(--widget-celebration-enter-ease) forwards, widget-celebration-copy-out var(--widget-celebration-exit-duration) ease forwards;
|
|
animation-delay: var(--widget-celebration-subhead-delay), var(--widget-celebration-hold-duration);
|
|
}
|
|
.lists .lists-celebration-illustration {
|
|
/* stylelint-disable stylelint-plugin-mozilla/use-design-tokens */
|
|
block-size: 132px;
|
|
inset-block-end: var(--space-xxsmall);
|
|
inline-size: auto;
|
|
max-inline-size: 209px;
|
|
/* stylelint-enable stylelint-plugin-mozilla/use-design-tokens */
|
|
inset-inline-end: var(--space-small);
|
|
opacity: 0;
|
|
position: absolute;
|
|
transform: translateY(12px) scale(0.96);
|
|
transform-origin: bottom right;
|
|
animation: widget-celebration-illustration-in 360ms var(--widget-celebration-enter-ease) forwards, widget-celebration-illustration-out var(--widget-celebration-exit-duration) ease forwards;
|
|
animation-delay: var(--widget-celebration-illustration-delay), var(--widget-celebration-hold-duration);
|
|
}
|
|
.lists .lists-celebration-confetti {
|
|
position: absolute;
|
|
inset: 0;
|
|
overflow: hidden;
|
|
border-radius: inherit;
|
|
pointer-events: none;
|
|
}
|
|
.lists .lists-celebration-confetti-defs {
|
|
position: absolute;
|
|
inline-size: 0;
|
|
block-size: 0;
|
|
}
|
|
.lists .lists-celebration-confetti-piece {
|
|
position: absolute;
|
|
inset-block-start: -12%;
|
|
/* stylelint-disable stylelint-plugin-mozilla/use-design-tokens */
|
|
inset-inline-start: var(--confetti-x);
|
|
inline-size: var(--confetti-w);
|
|
block-size: var(--confetti-h);
|
|
/* stylelint-enable stylelint-plugin-mozilla/use-design-tokens */
|
|
opacity: 0;
|
|
animation-name: widget-celebration-confetti-fall;
|
|
animation-duration: calc(var(--confetti-duration) * var(--confetti-duration-scale, 1));
|
|
animation-timing-function: cubic-bezier(0.3, 0.45, 0.55, 1);
|
|
animation-delay: calc(var(--confetti-delay) * var(--confetti-delay-scale, 1));
|
|
animation-fill-mode: forwards;
|
|
}
|
|
.lists i.lists-celebration-confetti-piece {
|
|
/* stylelint-disable stylelint-plugin-mozilla/use-design-tokens */
|
|
background-color: var(--confetti-color);
|
|
border-radius: var(--confetti-radius);
|
|
/* stylelint-enable stylelint-plugin-mozilla/use-design-tokens */
|
|
clip-path: var(--confetti-clip);
|
|
}
|
|
.lists svg.lists-celebration-confetti-piece {
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
color: var(--confetti-color);
|
|
}
|
|
.lists .lists-celebration-fireworks {
|
|
position: absolute;
|
|
inset: 0;
|
|
overflow: hidden;
|
|
border-radius: inherit;
|
|
pointer-events: none;
|
|
}
|
|
.lists .lists-celebration-firework {
|
|
position: absolute;
|
|
/* stylelint-disable stylelint-plugin-mozilla/use-design-tokens */
|
|
inset-block-start: var(--fw-top);
|
|
inset-inline-start: var(--fw-left);
|
|
/* stylelint-enable stylelint-plugin-mozilla/use-design-tokens */
|
|
inline-size: 0;
|
|
block-size: 0;
|
|
color: inherit;
|
|
}
|
|
.lists .lists-celebration-firework-spark {
|
|
position: absolute;
|
|
/* stylelint-disable stylelint-plugin-mozilla/use-design-tokens */
|
|
inline-size: calc(6px * var(--fw-scale, 1));
|
|
block-size: calc(6px * var(--fw-scale, 1));
|
|
box-shadow: 0 0 4px currentColor;
|
|
/* stylelint-enable stylelint-plugin-mozilla/use-design-tokens */
|
|
border-radius: var(--border-radius-circle);
|
|
background-color: currentColor;
|
|
opacity: 0;
|
|
animation: widget-celebration-firework 1000ms ease-out calc(var(--fw-delay) + var(--firework-start-delay, 0ms)) forwards;
|
|
}
|
|
.lists .lists-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xsmall);
|
|
margin-block-end: var(--space-xsmall);
|
|
min-height: 24px;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
.lists .lists-header > :first-child {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.lists .lists-header > .lists-switcher {
|
|
flex: 0 1 auto;
|
|
max-inline-size: min(100%, 320px);
|
|
}
|
|
.lists .lists-header .lists-switcher {
|
|
align-items: center;
|
|
display: inline-flex;
|
|
gap: var(--space-xxsmall);
|
|
min-width: 0;
|
|
}
|
|
.lists .lists-header .lists-switcher .lists-title {
|
|
flex: 0 1 auto;
|
|
}
|
|
.lists .lists-header moz-button.lists-switcher-button {
|
|
flex: 0 0 auto;
|
|
margin: 0;
|
|
min-height: 24px;
|
|
min-width: 24px;
|
|
}
|
|
.lists .lists-header #lists-switcher-panel panel-item::part(button) {
|
|
padding-inline-start: var(--space-xxlarge);
|
|
}
|
|
.lists .lists-header .lists-title {
|
|
color: var(--lists-text-color);
|
|
display: block;
|
|
font-size: var(--font-size-small);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.lists .lists-header moz-button.lists-panel-button {
|
|
margin-inline-start: auto;
|
|
visibility: hidden;
|
|
}
|
|
.lists:hover .lists-header moz-button.lists-panel-button, .lists:focus-within .lists-header moz-button.lists-panel-button {
|
|
visibility: visible;
|
|
}
|
|
.lists .edit-list-wrapper {
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
.lists .edit-list-wrapper .edit-list {
|
|
padding-inline-end: var(--space-xxlarge);
|
|
}
|
|
.lists .edit-list-wrapper moz-button.edit-list-clear {
|
|
position: absolute;
|
|
inset-block-start: 50%;
|
|
transform: translateY(-50%);
|
|
inset-inline-end: var(--space-xxsmall);
|
|
--focus-outline-offset: var(--focus-outline-inset);
|
|
}
|
|
.lists .edit-list {
|
|
background: none;
|
|
border: none;
|
|
box-sizing: border-box;
|
|
color: var(--lists-text-color);
|
|
font-size: var(--font-size-small);
|
|
outline: var(--focus-outline);
|
|
padding-inline: var(--space-small);
|
|
width: 100%;
|
|
min-height: 24px;
|
|
}
|
|
.lists .lists-add-action {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xsmall);
|
|
margin-block-end: var(--space-xsmall);
|
|
}
|
|
.lists .add-task-container {
|
|
display: none;
|
|
position: relative;
|
|
}
|
|
.lists .add-task-container .icon.icon-add {
|
|
inset-block-start: 50%;
|
|
inset-inline-start: var(--space-small);
|
|
position: absolute;
|
|
transform: translateY(-50%);
|
|
}
|
|
.lists .add-task-container .icon.icon-add.icon-disabled {
|
|
fill: var(--text-color-disabled);
|
|
}
|
|
.lists .add-task-container .add-task-input {
|
|
background: var(--button-background-color);
|
|
border: none;
|
|
border-radius: var(--border-radius-medium);
|
|
outline: none;
|
|
padding-block: var(--space-small);
|
|
padding-inline-end: var(--space-large);
|
|
padding-inline-start: calc(var(--space-large) * 2 + var(--space-xsmall));
|
|
width: 100%;
|
|
}
|
|
.lists .add-task-container .add-task-input:focus {
|
|
outline: var(--focus-outline);
|
|
}
|
|
.lists .add-task-container .add-task-input:focus::placeholder {
|
|
color: var(--newtab-text-primary-color);
|
|
}
|
|
.lists .add-task-container .add-task-input:disabled {
|
|
background-color: var(--button-background-color-ghost);
|
|
color: var(--text-color-disabled);
|
|
outline: var(--border-width) solid var(--border-color-interactive-disabled);
|
|
}
|
|
.lists.is-adding-task .lists-add-action .add-task-container {
|
|
display: block;
|
|
}
|
|
.lists.is-adding-task .lists-add-action .lists-add-button {
|
|
display: none;
|
|
}
|
|
.lists .lists-add-button {
|
|
appearance: none;
|
|
align-items: center;
|
|
align-self: flex-start;
|
|
background: var(--lists-button-background);
|
|
border: var(--border-width) solid transparent;
|
|
border-radius: var(--border-radius-large);
|
|
color: var(--lists-button-text-color);
|
|
display: inline-flex;
|
|
font-family: inherit;
|
|
font-size: var(--font-size-root);
|
|
font-weight: var(--font-weight-semibold);
|
|
gap: var(--space-small);
|
|
min-height: 32px;
|
|
padding-block: var(--space-xsmall);
|
|
padding-inline: var(--space-large);
|
|
}
|
|
.lists .lists-add-button .icon.icon-add {
|
|
color: inherit;
|
|
margin: 0;
|
|
-moz-context-properties: fill;
|
|
fill: currentColor;
|
|
position: static;
|
|
}
|
|
.lists .lists-add-button:hover:not(:disabled) {
|
|
background: var(--lists-button-background-hover);
|
|
color: var(--lists-button-text-color);
|
|
}
|
|
.lists .lists-add-button:active:not(:disabled) {
|
|
background: var(--lists-button-background-active);
|
|
color: var(--lists-button-text-color);
|
|
}
|
|
.lists .lists-add-button:focus-visible {
|
|
outline: var(--focus-outline);
|
|
outline-offset: var(--focus-outline-offset);
|
|
}
|
|
.lists .lists-add-button:disabled {
|
|
background: var(--lists-button-background);
|
|
color: var(--lists-button-text-color);
|
|
opacity: var(--button-opacity-disabled);
|
|
}
|
|
.lists .lists-add-button.icon-only {
|
|
align-items: center;
|
|
border-radius: var(--border-radius-circle);
|
|
justify-content: center;
|
|
min-height: 24px;
|
|
min-width: 24px;
|
|
padding: var(--space-small);
|
|
}
|
|
.lists .lists-add-button.icon-only .sr-only {
|
|
border: 0;
|
|
clip: rect(0, 0, 0, 0);
|
|
height: var(--size-item-xsmall);
|
|
margin: calc(-1 * var(--border-width));
|
|
overflow: hidden;
|
|
padding: 0;
|
|
position: absolute;
|
|
white-space: nowrap;
|
|
width: var(--size-item-xsmall);
|
|
}
|
|
.lists .lists-completed-button {
|
|
appearance: none;
|
|
align-items: center;
|
|
align-self: flex-start;
|
|
background: var(--lists-button-background);
|
|
border: var(--border-width) solid transparent;
|
|
border-radius: var(--border-radius-circle);
|
|
color: var(--lists-button-text-color);
|
|
display: inline-flex;
|
|
font-family: inherit;
|
|
font-size: var(--font-size-small);
|
|
font-weight: var(--font-weight-semibold);
|
|
justify-content: center;
|
|
line-height: 1;
|
|
min-height: 24px;
|
|
min-width: 24px;
|
|
padding: var(--space-small);
|
|
}
|
|
.lists .lists-completed-button:hover:not(:disabled) {
|
|
background: var(--lists-button-background-hover);
|
|
}
|
|
.lists .lists-completed-button:active:not(:disabled), .lists .lists-completed-button.is-active {
|
|
background: var(--button-background-color-active);
|
|
color: var(--lists-text-color);
|
|
}
|
|
.lists .lists-completed-button:focus-visible {
|
|
outline: var(--focus-outline);
|
|
outline-offset: var(--focus-outline-offset);
|
|
}
|
|
.lists .lists-completed-button .lists-completed-button-label {
|
|
line-height: 1;
|
|
}
|
|
.lists .lists-completed-button .sr-only {
|
|
border: 0;
|
|
clip: rect(0, 0, 0, 0);
|
|
height: var(--size-item-xsmall);
|
|
margin: calc(-1 * var(--border-width));
|
|
overflow: hidden;
|
|
padding: 0;
|
|
position: absolute;
|
|
white-space: nowrap;
|
|
width: var(--size-item-xsmall);
|
|
}
|
|
.lists .task-list-wrapper {
|
|
display: flex;
|
|
flex: 1;
|
|
height: 100%;
|
|
min-height: 0;
|
|
}
|
|
.lists moz-reorderable-list {
|
|
display: block;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
.lists fieldset {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xxsmall);
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
padding-block-start: var(--space-small);
|
|
padding-inline-end: var(--space-small);
|
|
border: none;
|
|
overflow-y: auto;
|
|
scrollbar-width: none;
|
|
}
|
|
.lists fieldset:hover {
|
|
scrollbar-width: thin;
|
|
}
|
|
.lists fieldset:focus {
|
|
outline: var(--focus-outline);
|
|
}
|
|
.lists .task-item {
|
|
align-items: center;
|
|
background: transparent;
|
|
border-radius: var(--border-radius-medium);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
min-height: 32px;
|
|
transition: opacity 300ms ease;
|
|
}
|
|
.lists .task-item.task-type-tasks:last-of-type {
|
|
margin-block-end: 0;
|
|
}
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.lists .task-item.exiting {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
.lists .task-item .checkbox-wrapper {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
flex-grow: 2;
|
|
gap: var(--space-small);
|
|
padding-block: var(--space-small);
|
|
padding-inline: var(--space-small);
|
|
}
|
|
.lists .task-item .checkbox-wrapper span {
|
|
-webkit-line-clamp: 3;
|
|
color: var(--lists-text-color);
|
|
display: -webkit-box;
|
|
font-size: var(--font-size-small);
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
word-break: break-word;
|
|
white-space: normal;
|
|
width: 100%;
|
|
}
|
|
.lists .task-item input[type=checkbox] {
|
|
-moz-appearance: none;
|
|
appearance: none;
|
|
background-color: transparent;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: var(--size-item-xsmall) var(--size-item-xsmall);
|
|
border: var(--border-width) solid var(--lists-checkbox-border-color);
|
|
border-radius: var(--border-radius-small);
|
|
box-sizing: border-box;
|
|
display: block;
|
|
flex: none;
|
|
height: 16px;
|
|
margin: 0;
|
|
opacity: 1;
|
|
padding: 0;
|
|
width: 16px;
|
|
}
|
|
.lists .task-item input[type=checkbox]:checked {
|
|
-moz-context-properties: fill;
|
|
background-color: var(--lists-button-background);
|
|
background-image: url("chrome://global/skin/icons/check.svg");
|
|
border-color: var(--lists-button-background);
|
|
fill: var(--lists-button-text-color);
|
|
}
|
|
.lists .task-item input[type=checkbox]:focus-visible {
|
|
outline: var(--focus-outline);
|
|
outline-offset: var(--focus-outline-inset);
|
|
}
|
|
.lists .task-item .task-label {
|
|
color: var(--lists-text-color);
|
|
display: -webkit-box;
|
|
font-size: var(--font-size-small);
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
position: relative;
|
|
text-decoration: none;
|
|
word-break: break-word;
|
|
}
|
|
.lists .task-item .task-label:is(a) {
|
|
color: var(--link-color);
|
|
text-decoration: underline;
|
|
}
|
|
.lists .task-item input:checked ~ .task-label {
|
|
color: var(--lists-text-color);
|
|
text-decoration: line-through;
|
|
text-decoration-thickness: 2px;
|
|
}
|
|
.lists .task-item moz-button {
|
|
margin-inline-end: var(--space-xsmall);
|
|
visibility: hidden;
|
|
}
|
|
.lists .task-item moz-button:has(+ panel-list[open]) {
|
|
visibility: visible;
|
|
}
|
|
.lists .task-item:hover, .lists .task-item:focus-visible, .lists .task-item:focus-within {
|
|
background: var(--button-background-color);
|
|
}
|
|
.lists .task-item:hover moz-button, .lists .task-item:focus-visible moz-button, .lists .task-item:focus-within moz-button {
|
|
visibility: visible;
|
|
}
|
|
.lists .task-item panel-list[open] ~ moz-button {
|
|
visibility: visible;
|
|
}
|
|
.lists .task-item .edit-task {
|
|
margin-inline-start: var(--space-small);
|
|
max-width: 180px;
|
|
border: none;
|
|
border-radius: 0;
|
|
user-select: text;
|
|
}
|
|
.lists .task-item .edit-task:focus {
|
|
outline: var(--focus-outline);
|
|
}
|
|
.lists .empty-list {
|
|
display: flex;
|
|
flex: 1;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100%;
|
|
padding-block-end: var(--space-medium);
|
|
}
|
|
.lightWallpaper .lists .empty-list {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .lists .empty-list {
|
|
color-scheme: dark;
|
|
}
|
|
.lists .empty-list .empty-list-illustration {
|
|
height: auto;
|
|
width: 75px;
|
|
-moz-context-properties: fill;
|
|
fill: light-dark(#DADBDF, #3B3B43);
|
|
}
|
|
.lists .completed-task-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-small);
|
|
margin-block-start: var(--space-small);
|
|
}
|
|
.lists .completed-task-wrapper summary {
|
|
list-style: none;
|
|
}
|
|
.lists .completed-task-wrapper summary:focus {
|
|
outline: var(--focus-outline);
|
|
}
|
|
.lists .completed-task-wrapper summary .completed-title {
|
|
color: var(--lists-text-color);
|
|
position: relative;
|
|
}
|
|
.lists .completed-task-wrapper summary .completed-title::after {
|
|
content: "";
|
|
-moz-context-properties: fill;
|
|
fill: var(--button-icon-fill);
|
|
background-image: url("chrome://global/skin/icons/arrow-right.svg");
|
|
height: var(--icon-size-small);
|
|
width: var(--icon-size-small);
|
|
position: absolute;
|
|
inset-inline-end: calc(-1 * var(--space-xlarge));
|
|
inset-block-start: 50%;
|
|
transform: translateY(-50%);
|
|
transition: transform 160ms ease;
|
|
}
|
|
.lists .completed-task-wrapper summary .completed-title:dir(rtl)::after {
|
|
background-image: url("chrome://global/skin/icons/arrow-left.svg");
|
|
}
|
|
.lists .completed-task-wrapper[open] .completed-title::after {
|
|
background-image: url("chrome://global/skin/icons/arrow-down.svg");
|
|
transform: translateY(-50%) rotate(90deg);
|
|
}
|
|
.lists .completed-task-wrapper[open] .completed-title:dir(rtl)::after {
|
|
transform: translateY(-50%) rotate(-90deg);
|
|
}
|
|
.nova-enabled .lists.compact-widget {
|
|
height: var(--newtab-card-height-small);
|
|
}
|
|
.lists.compact-widget .lists-celebration-copy {
|
|
inset-block-start: 46%;
|
|
inset-inline: var(--space-medium);
|
|
}
|
|
.lists.compact-widget .lists-celebration-headline {
|
|
font-size: var(--font-size-large);
|
|
}
|
|
.lists.compact-widget .lists-celebration-subhead {
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.lists.compact-widget .lists-celebration-illustration {
|
|
block-size: 80px;
|
|
inline-size: auto;
|
|
max-inline-size: 127px;
|
|
inset-inline-end: var(--space-large);
|
|
}
|
|
.lists.compact-widget .lists-header {
|
|
align-items: center;
|
|
gap: var(--space-small);
|
|
}
|
|
.lists.compact-widget .lists-header > :first-child {
|
|
flex: 0 1 auto;
|
|
}
|
|
.lists.compact-widget .lists-add-button.icon-only,
|
|
.lists.compact-widget .lists-completed-button {
|
|
block-size: 32px;
|
|
inline-size: 32px;
|
|
min-height: 32px;
|
|
min-width: 32px;
|
|
padding: 0;
|
|
}
|
|
.lists.compact-widget .lists-add-action {
|
|
margin-block-end: var(--space-xxsmall);
|
|
}
|
|
.lists.compact-widget fieldset {
|
|
padding-block-start: var(--space-medium);
|
|
}
|
|
.lists.compact-widget.has-visible-tasks:not(.is-adding-task) fieldset {
|
|
-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 32px), transparent 100%);
|
|
mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 32px), transparent 100%);
|
|
}
|
|
@media (forced-colors: active) {
|
|
.lists.compact-widget.has-visible-tasks:not(.is-adding-task) fieldset {
|
|
-webkit-mask-image: none;
|
|
mask-image: none;
|
|
}
|
|
}
|
|
.lists.compact-widget .task-item {
|
|
min-height: 24px;
|
|
}
|
|
.lists.compact-widget .task-item .checkbox-wrapper {
|
|
padding-block: var(--space-small);
|
|
padding-inline: 0;
|
|
}
|
|
.lists.compact-widget .task-item .checkbox-wrapper span,
|
|
.lists.compact-widget .task-label {
|
|
-webkit-line-clamp: 2;
|
|
}
|
|
.lists.compact-widget .empty-list {
|
|
align-items: flex-end;
|
|
justify-content: flex-end;
|
|
padding-block-end: var(--space-xsmall);
|
|
}
|
|
.lists.compact-widget .empty-list-illustration {
|
|
width: 48px;
|
|
}
|
|
|
|
/* 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/. */
|
|
.focus-timer {
|
|
background: var(--newtab-background-card);
|
|
transition: opacity 0.2s ease;
|
|
border-radius: var(--border-radius-large);
|
|
padding-block: var(--space-medium);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
height: 100%;
|
|
}
|
|
.focus-timer:hover {
|
|
background: var(--newtab-background-color-secondary);
|
|
}
|
|
.nova-enabled .focus-timer {
|
|
--widget-size-transition-duration: 180ms;
|
|
--widget-size-transition-easing: ease;
|
|
background: var(--newtab-background-card);
|
|
transition: opacity 0.2s ease;
|
|
padding: var(--space-medium);
|
|
border-radius: var(--border-radius-large);
|
|
box-shadow: var(--box-shadow-level-2);
|
|
color: var(--text-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
transition: height var(--widget-size-transition-duration) var(--widget-size-transition-easing);
|
|
}
|
|
.nova-enabled .focus-timer:hover {
|
|
background: var(--newtab-background-color-secondary);
|
|
}
|
|
.nova-enabled .focus-timer.small-widget, .nova-enabled .focus-timer.medium-widget {
|
|
height: var(--newtab-card-height-small);
|
|
}
|
|
.nova-enabled .focus-timer.large-widget {
|
|
height: var(--newtab-card-height);
|
|
}
|
|
.nova-enabled .focus-timer:hover, .nova-enabled .focus-timer:focus-within {
|
|
outline: 1px solid var(--border-color-deemphasized);
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.nova-enabled .focus-timer {
|
|
transition: none;
|
|
}
|
|
}
|
|
.classic-enabled .focus-timer {
|
|
grid-column: span 1;
|
|
width: var(--newtab-card-grid-layout-width);
|
|
height: var(--newtab-card-height);
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.has-sections-grid .classic-enabled .focus-timer {
|
|
width: var(--newtab-card-width-medium);
|
|
}
|
|
.nova-enabled .focus-timer {
|
|
--timer-focus-color: var(--color-orange-30, #FF8D5B);
|
|
--timer-break-color: var(--color-violet-50, #764EDD);
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
--timer-celebration-leading: #B89CFF;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
--timer-celebration-trailing: #FF9565;
|
|
--timer-ring-idle-color: light-dark(var(--color-gray-20), var(--color-gray-30));
|
|
--timer-small-ring-size: 60px;
|
|
--timer-small-ring-thickness: 10.75px;
|
|
--timer-small-gap: 6px;
|
|
--timer-small-time-size: 16px;
|
|
--widget-celebration-accent-color: var(--timer-celebration-leading);
|
|
--widget-celebration-copy-color: var(--text-color-deemphasized);
|
|
--widget-celebration-surface-color: var(--newtab-background-card);
|
|
--widget-celebration-headline-gradient-angle: 96deg;
|
|
--widget-celebration-headline-gradient-start: var(--timer-celebration-leading);
|
|
--widget-celebration-headline-gradient-mid-start: var(--timer-celebration-leading);
|
|
--widget-celebration-headline-gradient-mid-end: var(--timer-celebration-trailing);
|
|
--widget-celebration-headline-gradient-end: var(--timer-celebration-trailing);
|
|
--widget-celebration-tint-color: transparent;
|
|
--widget-celebration-glow-color: color-mix(
|
|
in srgb,
|
|
var(--widget-celebration-accent-color) 35%,
|
|
transparent
|
|
);
|
|
--widget-celebration-orbit-color: color-mix(
|
|
in srgb,
|
|
var(--timer-celebration-trailing) 70%,
|
|
transparent
|
|
);
|
|
--widget-celebration-border-draw-duration: 800ms;
|
|
--widget-celebration-orbit-duration: 1900ms;
|
|
--widget-celebration-track-color: color-mix(
|
|
in srgb,
|
|
var(--widget-celebration-accent-color) 45%,
|
|
transparent
|
|
);
|
|
--widget-celebration-hold-duration: 3400ms;
|
|
--widget-celebration-exit-duration: 1200ms;
|
|
--widget-celebration-enter-ease: cubic-bezier(0.2, 0.9, 0.2, 1);
|
|
--widget-celebration-headline-delay: 1ms;
|
|
--widget-celebration-panel-delay: var(--widget-celebration-headline-delay);
|
|
--widget-celebration-illustration-delay: 1ms;
|
|
--widget-celebration-subhead-delay: 1ms;
|
|
align-items: center;
|
|
background: var(--newtab-background-card);
|
|
border-radius: var(--border-radius-large);
|
|
gap: var(--space-medium);
|
|
justify-content: center;
|
|
padding: var(--space-medium);
|
|
position: relative;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration {
|
|
animation: widget-celebration-lifecycle calc(var(--widget-celebration-hold-duration) + var(--widget-celebration-exit-duration)) linear forwards;
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
z-index: 3;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
background: var(--widget-celebration-tint-color);
|
|
opacity: 0;
|
|
animation: widget-celebration-tint-in 260ms var(--widget-celebration-enter-ease) forwards, widget-celebration-tint-out var(--widget-celebration-exit-duration) ease forwards;
|
|
animation-delay: 0ms, var(--widget-celebration-hold-duration);
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-effects {
|
|
inset: 0;
|
|
position: absolute;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-effects svg {
|
|
display: block;
|
|
filter: drop-shadow(0 0 10px var(--widget-celebration-glow-color));
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-stroke-track,
|
|
.nova-enabled .focus-timer .focus-timer-celebration-stroke,
|
|
.nova-enabled .focus-timer .focus-timer-celebration-stroke-orbit {
|
|
fill: none;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
stroke-width: 3;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-stroke-track {
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
opacity: 0.22;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
stroke: var(--widget-celebration-track-color);
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-stroke {
|
|
stroke-dasharray: 100;
|
|
stroke-dashoffset: 100;
|
|
animation-name: widget-celebration-border-draw, widget-celebration-border-fade;
|
|
animation-duration: var(--widget-celebration-border-draw-duration), var(--widget-celebration-exit-duration);
|
|
animation-timing-function: var(--widget-celebration-enter-ease), ease;
|
|
animation-fill-mode: forwards, forwards;
|
|
animation-delay: 0ms, var(--widget-celebration-hold-duration);
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-stroke-orbit {
|
|
opacity: 0;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
stroke: var(--widget-celebration-orbit-color);
|
|
stroke-dasharray: 14 86;
|
|
stroke-dashoffset: 100;
|
|
stroke-width: 3;
|
|
animation: widget-celebration-border-orbit-in 240ms var(--widget-celebration-enter-ease) 160ms forwards, widget-celebration-border-orbit-loop var(--widget-celebration-orbit-duration) linear 260ms infinite, widget-celebration-border-orbit-out var(--widget-celebration-exit-duration) ease var(--widget-celebration-hold-duration) forwards;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-copy {
|
|
align-items: center;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
color: var(--widget-celebration-copy-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
inset-block-start: 52%;
|
|
inset-inline: var(--space-large);
|
|
padding-block: var(--space-small);
|
|
padding-inline: var(--space-medium);
|
|
position: absolute;
|
|
text-align: center;
|
|
transform: translateY(-50%);
|
|
z-index: 1;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-copy::before {
|
|
display: none;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
background: color-mix(in srgb, var(--widget-celebration-surface-color) 88%, transparent);
|
|
border-radius: var(--border-radius-large);
|
|
content: "";
|
|
inset: 0;
|
|
opacity: 0;
|
|
position: absolute;
|
|
animation: widget-celebration-copy-panel-in 320ms var(--widget-celebration-enter-ease) forwards, widget-celebration-copy-panel-out var(--widget-celebration-exit-duration) ease forwards;
|
|
animation-delay: var(--widget-celebration-panel-delay), var(--widget-celebration-hold-duration);
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-headline,
|
|
.nova-enabled .focus-timer .focus-timer-celebration-subhead {
|
|
opacity: 0;
|
|
position: relative;
|
|
transform: translateY(8px);
|
|
z-index: 1;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-headline {
|
|
display: inline-block;
|
|
background-image: linear-gradient(var(--widget-celebration-headline-gradient-angle), var(--widget-celebration-headline-gradient-start), var(--widget-celebration-headline-gradient-mid-start) 28%, var(--widget-celebration-headline-gradient-mid-end) 64%, var(--widget-celebration-headline-gradient-end));
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
color: transparent;
|
|
font-size: var(--font-size-xlarge);
|
|
font-weight: var(--font-weight-bold);
|
|
line-height: 1.2;
|
|
animation: widget-celebration-copy-in 320ms var(--widget-celebration-enter-ease) forwards, widget-celebration-copy-out var(--widget-celebration-exit-duration) ease forwards;
|
|
animation-delay: var(--widget-celebration-headline-delay), var(--widget-celebration-hold-duration);
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-subhead {
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
color: var(--widget-celebration-copy-color);
|
|
font-size: var(--font-size-large);
|
|
font-weight: var(--font-weight-semibold);
|
|
line-height: 1.2;
|
|
margin-block-start: var(--space-xxsmall);
|
|
animation: widget-celebration-copy-in 320ms var(--widget-celebration-enter-ease) forwards, widget-celebration-copy-out var(--widget-celebration-exit-duration) ease forwards;
|
|
animation-delay: var(--widget-celebration-subhead-delay), var(--widget-celebration-hold-duration);
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-illustration {
|
|
/* stylelint-disable stylelint-plugin-mozilla/use-design-tokens */
|
|
block-size: 132px;
|
|
inset-block-end: var(--space-xxsmall);
|
|
inline-size: auto;
|
|
max-inline-size: 209px;
|
|
/* stylelint-enable stylelint-plugin-mozilla/use-design-tokens */
|
|
inset-inline-end: var(--space-small);
|
|
opacity: 0;
|
|
position: absolute;
|
|
transform: translateY(12px) scale(0.96);
|
|
transform-origin: bottom right;
|
|
animation: widget-celebration-illustration-in 360ms var(--widget-celebration-enter-ease) forwards, widget-celebration-illustration-out var(--widget-celebration-exit-duration) ease forwards;
|
|
animation-delay: var(--widget-celebration-illustration-delay), var(--widget-celebration-hold-duration);
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-confetti {
|
|
position: absolute;
|
|
inset: 0;
|
|
overflow: hidden;
|
|
border-radius: inherit;
|
|
pointer-events: none;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-confetti-defs {
|
|
position: absolute;
|
|
inline-size: 0;
|
|
block-size: 0;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-confetti-piece {
|
|
position: absolute;
|
|
inset-block-start: -12%;
|
|
/* stylelint-disable stylelint-plugin-mozilla/use-design-tokens */
|
|
inset-inline-start: var(--confetti-x);
|
|
inline-size: var(--confetti-w);
|
|
block-size: var(--confetti-h);
|
|
/* stylelint-enable stylelint-plugin-mozilla/use-design-tokens */
|
|
opacity: 0;
|
|
animation-name: widget-celebration-confetti-fall;
|
|
animation-duration: calc(var(--confetti-duration) * var(--confetti-duration-scale, 1));
|
|
animation-timing-function: cubic-bezier(0.3, 0.45, 0.55, 1);
|
|
animation-delay: calc(var(--confetti-delay) * var(--confetti-delay-scale, 1));
|
|
animation-fill-mode: forwards;
|
|
}
|
|
.nova-enabled .focus-timer i.focus-timer-celebration-confetti-piece {
|
|
/* stylelint-disable stylelint-plugin-mozilla/use-design-tokens */
|
|
background-color: var(--confetti-color);
|
|
border-radius: var(--confetti-radius);
|
|
/* stylelint-enable stylelint-plugin-mozilla/use-design-tokens */
|
|
clip-path: var(--confetti-clip);
|
|
}
|
|
.nova-enabled .focus-timer svg.focus-timer-celebration-confetti-piece {
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
color: var(--confetti-color);
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-fireworks {
|
|
position: absolute;
|
|
inset: 0;
|
|
overflow: hidden;
|
|
border-radius: inherit;
|
|
pointer-events: none;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-firework {
|
|
position: absolute;
|
|
/* stylelint-disable stylelint-plugin-mozilla/use-design-tokens */
|
|
inset-block-start: var(--fw-top);
|
|
inset-inline-start: var(--fw-left);
|
|
/* stylelint-enable stylelint-plugin-mozilla/use-design-tokens */
|
|
inline-size: 0;
|
|
block-size: 0;
|
|
color: inherit;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-firework-spark {
|
|
position: absolute;
|
|
/* stylelint-disable stylelint-plugin-mozilla/use-design-tokens */
|
|
inline-size: calc(6px * var(--fw-scale, 1));
|
|
block-size: calc(6px * var(--fw-scale, 1));
|
|
box-shadow: 0 0 4px currentColor;
|
|
/* stylelint-enable stylelint-plugin-mozilla/use-design-tokens */
|
|
border-radius: var(--border-radius-circle);
|
|
background-color: currentColor;
|
|
opacity: 0;
|
|
animation: widget-celebration-firework 1000ms ease-out calc(var(--fw-delay) + var(--firework-start-delay, 0ms)) forwards;
|
|
}
|
|
.nova-enabled .focus-timer:hover {
|
|
background: var(--newtab-background-color-secondary);
|
|
}
|
|
.nova-enabled .focus-timer .newtab-widget-timer-notification-title-wrapper {
|
|
inset-block-start: var(--space-small);
|
|
inset-inline-end: var(--space-small);
|
|
inset-inline-start: auto;
|
|
margin-block-end: 0;
|
|
padding-inline: 0;
|
|
position: absolute;
|
|
width: auto;
|
|
}
|
|
.nova-enabled .focus-timer .newtab-widget-timer-notification-title-wrapper h2 {
|
|
clip: rect(0 0 0 0);
|
|
clip-path: inset(50%);
|
|
height: 1px;
|
|
overflow: hidden;
|
|
position: absolute;
|
|
white-space: nowrap;
|
|
width: 1px;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-body {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-medium);
|
|
}
|
|
.nova-enabled .focus-timer.is-celebrating .focus-timer-body,
|
|
.nova-enabled .focus-timer.is-celebrating .focus-timer-play-button {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-headline {
|
|
font-size: var(--font-size-root);
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-subhead {
|
|
font-size: var(--font-size-small);
|
|
font-weight: var(--font-weight);
|
|
margin-block-start: var(--space-xxsmall);
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-time-slot,
|
|
.nova-enabled .focus-timer .focus-timer-bottom-slot {
|
|
align-items: center;
|
|
block-size: var(--button-min-height, 32px);
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-time-display {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: calc(var(--space-xsmall) + var(--space-xxsmall));
|
|
justify-content: center;
|
|
line-height: 1;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-time-text {
|
|
color: var(--text-color);
|
|
font-size: var(--font-size-xxlarge);
|
|
font-variant-numeric: tabular-nums;
|
|
font-weight: var(--font-weight);
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-time-mode {
|
|
color: var(--text-color-deemphasized);
|
|
font-size: var(--newtab-font-size-xsmall);
|
|
font-weight: var(--font-weight);
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
letter-spacing: 0.022em;
|
|
text-transform: none;
|
|
white-space: nowrap;
|
|
}
|
|
.nova-enabled .focus-timer.small-widget {
|
|
flex-direction: column;
|
|
gap: var(--timer-small-gap);
|
|
}
|
|
.nova-enabled .focus-timer.small-widget .progress-circle-wrapper {
|
|
block-size: var(--timer-small-ring-size);
|
|
margin-block-end: 0;
|
|
width: var(--timer-small-ring-size);
|
|
}
|
|
.nova-enabled .focus-timer.small-widget .focus-timer-body {
|
|
gap: var(--timer-small-gap);
|
|
}
|
|
.nova-enabled .focus-timer.small-widget .focus-timer-time-text {
|
|
font-size: var(--timer-small-time-size);
|
|
}
|
|
.nova-enabled .focus-timer.small-widget .focus-timer-spinbutton {
|
|
font-size: var(--font-size-root);
|
|
min-width: auto;
|
|
}
|
|
.nova-enabled .focus-timer.small-widget .focus-timer-time-mode {
|
|
clip: rect(0 0 0 0);
|
|
clip-path: inset(50%);
|
|
height: 1px;
|
|
overflow: hidden;
|
|
position: absolute;
|
|
white-space: nowrap;
|
|
width: 1px;
|
|
}
|
|
.nova-enabled .focus-timer.small-widget .focus-timer-bottom-slot:empty {
|
|
display: none;
|
|
}
|
|
.nova-enabled .focus-timer.small-widget .focus-timer-celebration-copy {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
inset-block-end: auto;
|
|
inset-block-start: 76%;
|
|
inset-inline: var(--space-small);
|
|
justify-content: center;
|
|
padding: 0;
|
|
transform: translateY(-50%);
|
|
}
|
|
.nova-enabled .focus-timer.small-widget .focus-timer-celebration-subhead {
|
|
display: none;
|
|
}
|
|
.nova-enabled .focus-timer.small-widget :is(.progress-circle-background, .progress-circle-background-break, .progress-circle, .progress-circle-complete, .progress-circle-cap) {
|
|
--thickness: var(--timer-small-ring-thickness);
|
|
}
|
|
.nova-enabled .focus-timer.medium-widget {
|
|
flex-direction: row;
|
|
gap: var(--space-medium);
|
|
justify-content: center;
|
|
}
|
|
.nova-enabled .focus-timer.medium-widget .progress-circle-wrapper {
|
|
--progress-circle-size: 70px;
|
|
flex-shrink: 0;
|
|
margin-block-end: 0;
|
|
}
|
|
.nova-enabled .focus-timer.medium-widget .focus-timer-body {
|
|
align-self: stretch;
|
|
flex-shrink: 0;
|
|
gap: var(--space-medium);
|
|
justify-content: center;
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
min-inline-size: 180px;
|
|
}
|
|
.nova-enabled .focus-timer.medium-widget.is-active .focus-timer-body, .nova-enabled .focus-timer.medium-widget.is-complete .focus-timer-body, .nova-enabled .focus-timer.medium-widget.is-celebrating .focus-timer-body {
|
|
min-inline-size: 0;
|
|
}
|
|
.nova-enabled .focus-timer.medium-widget .focus-timer-bottom-slot:empty {
|
|
display: none;
|
|
}
|
|
.nova-enabled .focus-timer.medium-widget .focus-timer-celebration-copy {
|
|
align-items: flex-start;
|
|
display: flex;
|
|
flex-direction: column;
|
|
inset-block: 0;
|
|
inset-inline-end: var(--space-medium);
|
|
inset-inline-start: calc(50% + var(--space-xsmall));
|
|
justify-content: center;
|
|
padding: 0;
|
|
text-align: start;
|
|
transform: none;
|
|
}
|
|
.nova-enabled .focus-timer.medium-widget :is(.progress-circle-background, .progress-circle-background-break, .progress-circle, .progress-circle-complete, .progress-circle-cap) {
|
|
--thickness: 12.5px;
|
|
}
|
|
.nova-enabled .focus-timer.large-widget {
|
|
flex-direction: column;
|
|
gap: calc(var(--space-medium) + var(--space-small));
|
|
}
|
|
.nova-enabled .focus-timer.large-widget .progress-circle-wrapper {
|
|
--progress-circle-size: 120px;
|
|
block-size: calc(var(--space-medium) * 2 + var(--space-xxlarge) * 4);
|
|
margin-block-end: 0;
|
|
inline-size: var(--progress-circle-size);
|
|
}
|
|
.nova-enabled .focus-timer.large-widget .focus-timer-body {
|
|
gap: var(--space-large);
|
|
}
|
|
.nova-enabled .focus-timer.large-widget .focus-timer-celebration-copy {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
inset-block-end: calc(var(--space-xxlarge) * 2 + var(--space-large));
|
|
inset-block-start: auto;
|
|
inset-inline: var(--space-medium);
|
|
justify-content: center;
|
|
padding: 0;
|
|
transform: none;
|
|
}
|
|
.nova-enabled .focus-timer.large-widget .progress-circle-wrapper :is(.progress-circle-background, .progress-circle-background-break, .progress-circle, .progress-circle-complete, .progress-circle-cap-rotator) {
|
|
inset-block-end: auto;
|
|
inset-block-start: var(--space-medium);
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
block-size: var(--progress-circle-size);
|
|
}
|
|
.nova-enabled .focus-timer.large-widget :is(.progress-circle-background, .progress-circle-background-break, .progress-circle, .progress-circle-complete, .progress-circle-cap) {
|
|
--thickness: 18.5px;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-time-row {
|
|
align-items: center;
|
|
display: flex;
|
|
gap: var(--space-small);
|
|
justify-content: center;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-spinbutton {
|
|
color: var(--text-color);
|
|
font-size: var(--font-size-xxlarge);
|
|
font-variant-numeric: tabular-nums;
|
|
font-weight: var(--font-weight);
|
|
min-width: 80px;
|
|
padding: var(--space-xxsmall) var(--space-small);
|
|
text-align: center;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-spinbutton:focus, .nova-enabled .focus-timer .focus-timer-spinbutton:focus-visible {
|
|
border: 1px solid var(--border-color-interactive, #99979C);
|
|
border-radius: calc(var(--border-radius-medium) + var(--space-xsmall));
|
|
outline: none;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-mode-group {
|
|
display: flex;
|
|
gap: var(--space-small);
|
|
justify-content: center;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-mode-group moz-button[type=default]::part(button),
|
|
.nova-enabled .focus-timer .focus-timer-reset-button::part(button) {
|
|
border-color: var(--color-accent-primary);
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-reset-button {
|
|
align-self: center;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-play-button {
|
|
inset-block-start: 50%;
|
|
inset-inline-start: 50%;
|
|
position: absolute;
|
|
transform: translate(-50%, -50%);
|
|
z-index: 3;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-play-button::part(button) {
|
|
background-color: transparent;
|
|
border-color: transparent;
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
color: light-dark(#816297, #ECE0F5);
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-play-button:hover::part(button), .nova-enabled .focus-timer .focus-timer-play-button:focus::part(button), .nova-enabled .focus-timer .focus-timer-play-button:focus-visible::part(button), .nova-enabled .focus-timer .focus-timer-play-button:active::part(button) {
|
|
background-color: transparent;
|
|
border-color: transparent;
|
|
}
|
|
.nova-enabled .focus-timer .progress-circle-wrapper.is-active .focus-timer-play-button::part(button) {
|
|
color: var(--icon-color);
|
|
}
|
|
.nova-enabled .focus-timer .progress-circle-background {
|
|
background: conic-gradient(var(--timer-focus-color) 0deg, var(--timer-focus-color) 360deg);
|
|
}
|
|
.nova-enabled .focus-timer .progress-circle-background-break {
|
|
background: conic-gradient(var(--timer-break-color) 0deg, var(--timer-break-color) 360deg);
|
|
}
|
|
.nova-enabled .focus-timer .progress-circle {
|
|
background-color: var(--timer-ring-idle-color);
|
|
}
|
|
.nova-enabled .focus-timer .progress-circle-complete {
|
|
background: conic-gradient(from 0deg, var(--timer-celebration-leading), var(--timer-celebration-trailing), var(--timer-celebration-leading));
|
|
}
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.nova-enabled .focus-timer .progress-circle-complete.visible {
|
|
animation: focus-timer-celebration-spin 800ms ease-out, focus-timer-celebration-ring-fade-out var(--widget-celebration-exit-duration) ease forwards;
|
|
animation-delay: 0ms, var(--widget-celebration-hold-duration);
|
|
}
|
|
}
|
|
.nova-enabled .focus-timer .progress-circle-cap-rotator {
|
|
inset: 0;
|
|
pointer-events: none;
|
|
position: absolute;
|
|
transform: rotate(var(--progress-angle, 0deg));
|
|
z-index: 2;
|
|
}
|
|
.nova-enabled .focus-timer .progress-circle-cap {
|
|
block-size: var(--thickness, var(--space-small));
|
|
border-radius: var(--border-radius-circle);
|
|
inline-size: var(--thickness, var(--space-small));
|
|
inset-block-start: 0;
|
|
inset-inline-start: 50%;
|
|
position: absolute;
|
|
transform: translateX(-50%);
|
|
}
|
|
.nova-enabled .focus-timer .progress-circle-cap-rotator.is-focus .progress-circle-cap {
|
|
background: var(--timer-focus-color);
|
|
}
|
|
.nova-enabled .focus-timer .progress-circle-cap-rotator.is-break .progress-circle-cap {
|
|
background: var(--timer-break-color);
|
|
}
|
|
|
|
@keyframes focus-timer-celebration-spin {
|
|
from {
|
|
transform: rotate(0deg);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: rotate(360deg);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@keyframes focus-timer-celebration-ring-fade-out {
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
.nova-enabled .focus-timer {
|
|
--timer-focus-color: var(--color-orange-30, #FF8D5B);
|
|
--timer-break-color: var(--color-violet-50, #764EDD);
|
|
}
|
|
}
|
|
@media (forced-colors: active) {
|
|
.nova-enabled .focus-timer {
|
|
border: 1px solid CanvasText;
|
|
}
|
|
.nova-enabled .focus-timer .progress-circle-background,
|
|
.nova-enabled .focus-timer .progress-circle-background-break,
|
|
.nova-enabled .focus-timer .progress-circle-complete,
|
|
.nova-enabled .focus-timer .progress-circle-cap-rotator,
|
|
.nova-enabled .focus-timer .progress-circle-cap {
|
|
forced-color-adjust: none;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-play-button::part(button) {
|
|
forced-color-adjust: none;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-time-row {
|
|
border: var(--border-width) solid ButtonText;
|
|
border-radius: var(--border-radius-circle);
|
|
padding-inline: var(--space-xxsmall);
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-spinbutton:focus,
|
|
.nova-enabled .focus-timer .focus-timer-spinbutton:focus-visible {
|
|
border-color: CanvasText;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-mode-group moz-button[type=default]::part(button),
|
|
.nova-enabled .focus-timer .focus-timer-reset-button::part(button) {
|
|
border-color: ButtonText;
|
|
}
|
|
.nova-enabled .focus-timer .focus-timer-celebration-headline {
|
|
background: none;
|
|
-webkit-text-fill-color: CanvasText;
|
|
color: CanvasText;
|
|
}
|
|
}
|
|
.focus-timer-tabs {
|
|
display: flex;
|
|
margin-block-end: var(--space-medium);
|
|
position: relative;
|
|
width: 100%;
|
|
padding-inline: var(--space-medium);
|
|
}
|
|
|
|
.focus-timer-tabs-buttons {
|
|
display: flex;
|
|
gap: var(--space-xxsmall);
|
|
justify-content: center;
|
|
flex-grow: 1;
|
|
}
|
|
.nova-enabled .focus-timer-tabs-buttons {
|
|
gap: var(--space-small);
|
|
}
|
|
.classic-enabled .focus-timer-tabs-buttons moz-button {
|
|
flex-grow: 1;
|
|
}
|
|
.classic-enabled .focus-timer-tabs-buttons moz-button:first-of-type::part(button) {
|
|
border-end-end-radius: 0;
|
|
border-start-end-radius: 0;
|
|
}
|
|
.classic-enabled .focus-timer-tabs-buttons moz-button:last-of-type::part(button) {
|
|
border-start-start-radius: 0;
|
|
border-end-start-radius: 0;
|
|
}
|
|
|
|
.newtab-widget-timer-notification-title-wrapper {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding-inline: var(--space-medium);
|
|
margin-block-end: var(--space-medium);
|
|
}
|
|
.newtab-widget-timer-notification-title-wrapper h2 {
|
|
margin-block: 0;
|
|
font-weight: var(--font-weight);
|
|
font-size: var(--font-size-root);
|
|
}
|
|
|
|
.focus-timer-context-menu-wrapper {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.focus-timer:hover .focus-timer-context-menu-wrapper, .focus-timer:focus-within .focus-timer-context-menu-wrapper {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.progress-circle-wrapper {
|
|
--progress-circle-size: 138px;
|
|
/* Colours for the main timer */
|
|
--timer-red: var(--color-red-50);
|
|
--timer-orange: var(--color-orange-30);
|
|
/* Colours for the break timer */
|
|
--timer-blue: var(--color-blue-20);
|
|
--timer-violet: var(--color-violet-20);
|
|
/* Complete timer */
|
|
--timer-green: var(--color-green-20);
|
|
block-size: var(--progress-circle-size);
|
|
inline-size: var(--progress-circle-size);
|
|
position: relative;
|
|
overflow: hidden;
|
|
margin-block-end: var(--space-small);
|
|
/* main timer colours */
|
|
/* break timer colours */
|
|
/* timer turns green when complete */
|
|
}
|
|
.progress-circle-wrapper.is-small {
|
|
--progress-circle-size: 114px;
|
|
}
|
|
.progress-circle-wrapper.is-small .progress-circle-label {
|
|
font-size: var(--font-size-xxlarge);
|
|
}
|
|
.progress-circle-wrapper .progress-circle-background,
|
|
.progress-circle-wrapper .progress-circle-background-break,
|
|
.progress-circle-wrapper .progress-circle,
|
|
.progress-circle-wrapper .progress-circle-complete {
|
|
--thickness: var(--space-small);
|
|
border-radius: var(--border-radius-circle);
|
|
inset: 0;
|
|
mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), black calc(100% - var(--thickness)));
|
|
position: absolute;
|
|
}
|
|
.progress-circle-wrapper .progress-circle,
|
|
.progress-circle-wrapper .progress-circle-complete {
|
|
background-color: var(--border-color-interactive);
|
|
}
|
|
.progress-circle-wrapper .progress-circle-background {
|
|
background: conic-gradient(var(--timer-orange) 0deg, var(--timer-red) 150deg, var(--timer-red) 210deg, var(--timer-orange) 360deg);
|
|
}
|
|
.progress-circle-wrapper .progress-circle-background-break {
|
|
background: conic-gradient(var(--timer-violet) 0deg, var(--timer-blue) 150deg, var(--timer-blue) 210deg, var(--timer-violet) 360deg);
|
|
}
|
|
.progress-circle-wrapper .progress-circle-complete {
|
|
background: var(--timer-green);
|
|
opacity: 0;
|
|
transition: opacity 1.5s ease-in-out;
|
|
z-index: 2;
|
|
}
|
|
.progress-circle-wrapper .progress-circle-complete.visible {
|
|
opacity: 1;
|
|
}
|
|
.progress-circle-wrapper .focus-hidden {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
.progress-circle-wrapper .focus-visible {
|
|
opacity: 1;
|
|
}
|
|
.progress-circle-wrapper .break-hidden {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
.progress-circle-wrapper .break-visible {
|
|
opacity: 1;
|
|
}
|
|
.progress-circle-wrapper .progress-circle-label {
|
|
align-items: center;
|
|
color: var(--text-color);
|
|
display: flex;
|
|
font-size: calc(var(--font-size-large) * 2);
|
|
font-weight: var(--font-weight-semibold);
|
|
font-variant-numeric: tabular-nums;
|
|
height: 100%;
|
|
inset-block-start: 0;
|
|
inset-inline-start: 0;
|
|
justify-content: center;
|
|
position: absolute;
|
|
width: 100%;
|
|
z-index: 2;
|
|
}
|
|
|
|
.timer-set-minutes:focus,
|
|
.timer-set-seconds:focus {
|
|
outline: var(--focus-outline);
|
|
}
|
|
|
|
.focus-timer-controls {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: var(--space-medium);
|
|
}
|
|
|
|
.timer-notification-status {
|
|
color: var(--text-color-deemphasized);
|
|
font-size: var(--font-size-small);
|
|
margin-block-start: var(--space-small);
|
|
}
|
|
|
|
/* 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/. */
|
|
/* stylelint-disable stylelint-plugin-mozilla/use-design-tokens */
|
|
.sports {
|
|
border-radius: var(--border-radius-large);
|
|
padding: var(--space-medium);
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: var(--box-shadow-level-2);
|
|
height: 100%;
|
|
position: relative;
|
|
--widget-celebration-accent-color: var(--color-accent-primary);
|
|
--widget-celebration-copy-color: var(--text-color);
|
|
--widget-celebration-surface-color: var(--background-color-box);
|
|
--widget-celebration-headline-gradient-angle: 90deg;
|
|
--widget-celebration-headline-gradient-start: var(--color-orange-20);
|
|
--widget-celebration-headline-gradient-mid-start: var(--color-orange-30);
|
|
--widget-celebration-headline-gradient-mid-end: var(--color-pink-30);
|
|
--widget-celebration-headline-gradient-end: var(--color-pink-40);
|
|
--widget-celebration-tint-color: transparent;
|
|
--widget-celebration-glow-color: color-mix(
|
|
in srgb,
|
|
var(--widget-celebration-accent-color) 35%,
|
|
transparent
|
|
);
|
|
--widget-celebration-orbit-color: color-mix(
|
|
in srgb,
|
|
var(--widget-celebration-accent-color) 70%,
|
|
transparent
|
|
);
|
|
--widget-celebration-track-color: color-mix(
|
|
in srgb,
|
|
var(--widget-celebration-accent-color) 45%,
|
|
transparent
|
|
);
|
|
--widget-celebration-border-draw-duration: 1900ms;
|
|
--widget-celebration-orbit-duration: 1900ms;
|
|
--widget-celebration-hold-duration: 3400ms;
|
|
--widget-celebration-exit-duration: 1200ms;
|
|
--widget-celebration-enter-ease: cubic-bezier(0.2, 0.9, 0.2, 1);
|
|
--widget-celebration-headline-delay: 80ms;
|
|
--widget-celebration-panel-delay: var(--widget-celebration-headline-delay);
|
|
--widget-celebration-illustration-delay: 180ms;
|
|
--widget-celebration-subhead-delay: 280ms;
|
|
--widget-size-transition-duration: 180ms;
|
|
--widget-size-transition-easing: ease;
|
|
background: var(--newtab-background-card);
|
|
transition: opacity 0.2s ease;
|
|
padding: var(--space-medium);
|
|
border-radius: var(--border-radius-large);
|
|
box-shadow: var(--box-shadow-level-2);
|
|
color: var(--text-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
transition: height var(--widget-size-transition-duration) var(--widget-size-transition-easing);
|
|
--sports-view-all-return-delay: 4000ms;
|
|
}
|
|
.sports:hover {
|
|
background: var(--newtab-background-color-secondary);
|
|
}
|
|
.sports.small-widget, .sports.medium-widget {
|
|
height: var(--newtab-card-height-small);
|
|
}
|
|
.sports.large-widget {
|
|
height: var(--newtab-card-height);
|
|
}
|
|
.sports:hover, .sports:focus-within {
|
|
outline: 1px solid var(--border-color-deemphasized);
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.sports {
|
|
transition: none;
|
|
}
|
|
}
|
|
.sports .sports-celebration {
|
|
animation: widget-celebration-lifecycle calc(var(--widget-celebration-hold-duration) + var(--widget-celebration-exit-duration)) linear forwards;
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
z-index: 3;
|
|
}
|
|
.sports .sports-celebration::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
background: var(--widget-celebration-tint-color);
|
|
opacity: 0;
|
|
animation: widget-celebration-tint-in 260ms var(--widget-celebration-enter-ease) forwards, widget-celebration-tint-out var(--widget-celebration-exit-duration) ease forwards;
|
|
animation-delay: 0ms, var(--widget-celebration-hold-duration);
|
|
}
|
|
.sports .sports-celebration-effects {
|
|
inset: 0;
|
|
position: absolute;
|
|
}
|
|
.sports .sports-celebration-effects svg {
|
|
display: block;
|
|
filter: drop-shadow(0 0 10px var(--widget-celebration-glow-color));
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
.sports .sports-celebration-stroke-track,
|
|
.sports .sports-celebration-stroke,
|
|
.sports .sports-celebration-stroke-orbit {
|
|
fill: none;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
stroke-width: 3;
|
|
}
|
|
.sports .sports-celebration-stroke-track {
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
opacity: 0.22;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
stroke: var(--widget-celebration-track-color);
|
|
}
|
|
.sports .sports-celebration-stroke {
|
|
stroke-dasharray: 100;
|
|
stroke-dashoffset: 100;
|
|
animation-name: widget-celebration-border-draw, widget-celebration-border-fade;
|
|
animation-duration: var(--widget-celebration-border-draw-duration), var(--widget-celebration-exit-duration);
|
|
animation-timing-function: var(--widget-celebration-enter-ease), ease;
|
|
animation-fill-mode: forwards, forwards;
|
|
animation-delay: 0ms, var(--widget-celebration-hold-duration);
|
|
}
|
|
.sports .sports-celebration-stroke-orbit {
|
|
opacity: 0;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
stroke: var(--widget-celebration-orbit-color);
|
|
stroke-dasharray: 14 86;
|
|
stroke-dashoffset: 100;
|
|
stroke-width: 3;
|
|
animation: widget-celebration-border-orbit-in 240ms var(--widget-celebration-enter-ease) 160ms forwards, widget-celebration-border-orbit-loop var(--widget-celebration-orbit-duration) linear 260ms infinite, widget-celebration-border-orbit-out var(--widget-celebration-exit-duration) ease var(--widget-celebration-hold-duration) forwards;
|
|
}
|
|
.sports .sports-celebration-copy {
|
|
align-items: center;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
color: var(--widget-celebration-copy-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
inset-block-start: 52%;
|
|
inset-inline: var(--space-large);
|
|
padding-block: var(--space-small);
|
|
padding-inline: var(--space-medium);
|
|
position: absolute;
|
|
text-align: center;
|
|
transform: translateY(-50%);
|
|
z-index: 1;
|
|
}
|
|
.sports .sports-celebration-copy::before {
|
|
display: none;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
background: color-mix(in srgb, var(--widget-celebration-surface-color) 88%, transparent);
|
|
border-radius: var(--border-radius-large);
|
|
content: "";
|
|
inset: 0;
|
|
opacity: 0;
|
|
position: absolute;
|
|
animation: widget-celebration-copy-panel-in 320ms var(--widget-celebration-enter-ease) forwards, widget-celebration-copy-panel-out var(--widget-celebration-exit-duration) ease forwards;
|
|
animation-delay: var(--widget-celebration-panel-delay), var(--widget-celebration-hold-duration);
|
|
}
|
|
.sports .sports-celebration-headline,
|
|
.sports .sports-celebration-subhead {
|
|
opacity: 0;
|
|
position: relative;
|
|
transform: translateY(8px);
|
|
z-index: 1;
|
|
}
|
|
.sports .sports-celebration-headline {
|
|
display: inline-block;
|
|
background-image: linear-gradient(var(--widget-celebration-headline-gradient-angle), var(--widget-celebration-headline-gradient-start), var(--widget-celebration-headline-gradient-mid-start) 28%, var(--widget-celebration-headline-gradient-mid-end) 64%, var(--widget-celebration-headline-gradient-end));
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
color: transparent;
|
|
font-size: var(--font-size-xlarge);
|
|
font-weight: var(--font-weight-bold);
|
|
line-height: 1.2;
|
|
animation: widget-celebration-copy-in 320ms var(--widget-celebration-enter-ease) forwards, widget-celebration-copy-out var(--widget-celebration-exit-duration) ease forwards;
|
|
animation-delay: var(--widget-celebration-headline-delay), var(--widget-celebration-hold-duration);
|
|
}
|
|
.sports .sports-celebration-subhead {
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
color: var(--widget-celebration-copy-color);
|
|
font-size: var(--font-size-large);
|
|
font-weight: var(--font-weight-semibold);
|
|
line-height: 1.2;
|
|
margin-block-start: var(--space-xxsmall);
|
|
animation: widget-celebration-copy-in 320ms var(--widget-celebration-enter-ease) forwards, widget-celebration-copy-out var(--widget-celebration-exit-duration) ease forwards;
|
|
animation-delay: var(--widget-celebration-subhead-delay), var(--widget-celebration-hold-duration);
|
|
}
|
|
.sports .sports-celebration-illustration {
|
|
/* stylelint-disable stylelint-plugin-mozilla/use-design-tokens */
|
|
block-size: 132px;
|
|
inset-block-end: var(--space-xxsmall);
|
|
inline-size: auto;
|
|
max-inline-size: 209px;
|
|
/* stylelint-enable stylelint-plugin-mozilla/use-design-tokens */
|
|
inset-inline-end: var(--space-small);
|
|
opacity: 0;
|
|
position: absolute;
|
|
transform: translateY(12px) scale(0.96);
|
|
transform-origin: bottom right;
|
|
animation: widget-celebration-illustration-in 360ms var(--widget-celebration-enter-ease) forwards, widget-celebration-illustration-out var(--widget-celebration-exit-duration) ease forwards;
|
|
animation-delay: var(--widget-celebration-illustration-delay), var(--widget-celebration-hold-duration);
|
|
}
|
|
.sports .sports-celebration-confetti {
|
|
position: absolute;
|
|
inset: 0;
|
|
overflow: hidden;
|
|
border-radius: inherit;
|
|
pointer-events: none;
|
|
}
|
|
.sports .sports-celebration-confetti-defs {
|
|
position: absolute;
|
|
inline-size: 0;
|
|
block-size: 0;
|
|
}
|
|
.sports .sports-celebration-confetti-piece {
|
|
position: absolute;
|
|
inset-block-start: -12%;
|
|
/* stylelint-disable stylelint-plugin-mozilla/use-design-tokens */
|
|
inset-inline-start: var(--confetti-x);
|
|
inline-size: var(--confetti-w);
|
|
block-size: var(--confetti-h);
|
|
/* stylelint-enable stylelint-plugin-mozilla/use-design-tokens */
|
|
opacity: 0;
|
|
animation-name: widget-celebration-confetti-fall;
|
|
animation-duration: calc(var(--confetti-duration) * var(--confetti-duration-scale, 1));
|
|
animation-timing-function: cubic-bezier(0.3, 0.45, 0.55, 1);
|
|
animation-delay: calc(var(--confetti-delay) * var(--confetti-delay-scale, 1));
|
|
animation-fill-mode: forwards;
|
|
}
|
|
.sports i.sports-celebration-confetti-piece {
|
|
/* stylelint-disable stylelint-plugin-mozilla/use-design-tokens */
|
|
background-color: var(--confetti-color);
|
|
border-radius: var(--confetti-radius);
|
|
/* stylelint-enable stylelint-plugin-mozilla/use-design-tokens */
|
|
clip-path: var(--confetti-clip);
|
|
}
|
|
.sports svg.sports-celebration-confetti-piece {
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
color: var(--confetti-color);
|
|
}
|
|
.sports .sports-celebration-fireworks {
|
|
position: absolute;
|
|
inset: 0;
|
|
overflow: hidden;
|
|
border-radius: inherit;
|
|
pointer-events: none;
|
|
}
|
|
.sports .sports-celebration-firework {
|
|
position: absolute;
|
|
/* stylelint-disable stylelint-plugin-mozilla/use-design-tokens */
|
|
inset-block-start: var(--fw-top);
|
|
inset-inline-start: var(--fw-left);
|
|
/* stylelint-enable stylelint-plugin-mozilla/use-design-tokens */
|
|
inline-size: 0;
|
|
block-size: 0;
|
|
color: inherit;
|
|
}
|
|
.sports .sports-celebration-firework-spark {
|
|
position: absolute;
|
|
/* stylelint-disable stylelint-plugin-mozilla/use-design-tokens */
|
|
inline-size: calc(6px * var(--fw-scale, 1));
|
|
block-size: calc(6px * var(--fw-scale, 1));
|
|
box-shadow: 0 0 4px currentColor;
|
|
/* stylelint-enable stylelint-plugin-mozilla/use-design-tokens */
|
|
border-radius: var(--border-radius-circle);
|
|
background-color: currentColor;
|
|
opacity: 0;
|
|
animation: widget-celebration-firework 1000ms ease-out calc(var(--fw-delay) + var(--firework-start-delay, 0ms)) forwards;
|
|
}
|
|
.sports .sports-celebration-illustration {
|
|
inset-inline: 0;
|
|
margin-inline: auto;
|
|
transform-origin: bottom center;
|
|
translate: -18% 0;
|
|
}
|
|
.sports.is-celebrating .sports-view-all {
|
|
animation: sports-celebration-restore-view-all var(--sports-view-all-return-delay) steps(1, jump-end) forwards;
|
|
}
|
|
.sports.is-followed-celebration .sports-celebration-stroke,
|
|
.sports.is-followed-celebration .sports-celebration-stroke-track,
|
|
.sports.is-followed-celebration .sports-celebration-stroke-orbit {
|
|
display: none;
|
|
}
|
|
.sports.is-followed-celebration.is-followed-highlight::before {
|
|
display: none;
|
|
}
|
|
.sports.is-followed-celebration::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 2;
|
|
border-radius: inherit;
|
|
padding: 2px;
|
|
/* stylelint-disable-line declaration-property-value-disallowed-list */
|
|
background: var(--sports-celebration-border-gradient);
|
|
mask: linear-gradient(#FFF 0 0) content-box, linear-gradient(#FFF 0 0);
|
|
mask-composite: exclude;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
animation-name: sports-celebration-border-in, sports-celebration-border-out;
|
|
animation-duration: 260ms, var(--widget-celebration-exit-duration);
|
|
animation-timing-function: var(--widget-celebration-enter-ease), ease;
|
|
animation-fill-mode: forwards, forwards;
|
|
animation-delay: 0ms, var(--widget-celebration-hold-duration);
|
|
}
|
|
.sports:hover, .sports:has(:focus-visible) {
|
|
outline: 1px solid var(--border-color-deemphasized);
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.sports.is-followed-highlight::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: inherit;
|
|
padding: 2px;
|
|
/* stylelint-disable-line declaration-property-value-disallowed-list */
|
|
background: var(--sports-followed-gradient);
|
|
mask: linear-gradient(#FFF 0 0) content-box, linear-gradient(#FFF 0 0);
|
|
mask-composite: exclude;
|
|
pointer-events: none;
|
|
}
|
|
.sports.medium-widget .sports-title-wrapper {
|
|
align-items: center;
|
|
margin-block-end: 0;
|
|
}
|
|
.sports.medium-widget .sports-intro-wrapper > .sports-intro-lede {
|
|
margin: 0;
|
|
}
|
|
.sports.medium-widget .sports-intro-title {
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.sports.medium-widget .sports-buttons-wrapper {
|
|
margin-block-start: var(--space-medium);
|
|
}
|
|
.sports.medium-widget .sports-body {
|
|
margin-block-end: calc(-1 * var(--space-xsmall));
|
|
padding-block-end: var(--space-xsmall);
|
|
justify-content: space-between;
|
|
}
|
|
.sports.medium-widget .match-highlight-view {
|
|
align-self: first baseline;
|
|
margin-block-end: auto;
|
|
}
|
|
.sports.medium-widget .sports-celebration-illustration {
|
|
block-size: 92px;
|
|
}
|
|
.sports.medium-widget .sports-celebration-confetti-piece {
|
|
--confetti-fall: 230px;
|
|
}
|
|
.sports.large-widget .sports-intro-wrapper {
|
|
margin-block-start: var(--space-large);
|
|
}
|
|
.sports.large-widget .sports-buttons-wrapper {
|
|
margin-block-start: var(--space-large);
|
|
}
|
|
.sports.sports-intro {
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.sports.sports-intro .sports-intro-video {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
object-position: bottom center;
|
|
pointer-events: none;
|
|
}
|
|
.sports.sports-intro > .sports-title-wrapper,
|
|
.sports.sports-intro > .sports-body {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
.sports.sports-follow-state .sports-title-wrapper {
|
|
padding: var(--space-small);
|
|
}
|
|
.sports.sports-matches .sports-title-wrapper {
|
|
grid-template-columns: auto 1fr auto;
|
|
}
|
|
.sports.sports-key-dates .sports-title-wrapper {
|
|
grid-template-columns: auto 1fr auto;
|
|
}
|
|
.sports.sports-key-dates .sports-title-wrapper > h3 {
|
|
font-size: var(--font-size-small);
|
|
margin-block: 0;
|
|
justify-self: start;
|
|
align-self: center;
|
|
margin-inline-start: var(--space-small);
|
|
font-weight: var(--font-weight);
|
|
color: var(--text-color-deemphasized);
|
|
}
|
|
|
|
.sports-title-wrapper {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto 1fr;
|
|
margin-block-end: var(--space-xsmall);
|
|
}
|
|
.sports-title-wrapper .sports-intro-title {
|
|
margin-block: 0;
|
|
max-width: 250px;
|
|
}
|
|
.sports-title-wrapper .sports-intro-lede {
|
|
margin-block-end: var(--space-small);
|
|
}
|
|
|
|
.sports-context-menu-wrapper {
|
|
grid-column: 3;
|
|
justify-self: end;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.sports:hover .sports-context-menu-wrapper,
|
|
.sports:has(:focus-visible) .sports-context-menu-wrapper {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.sports-context-menu-wrapper:focus-within,
|
|
.sports-context-menu-wrapper:has(panel-list[open]) {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.sports-body {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-small);
|
|
overflow-y: auto;
|
|
scrollbar-width: none;
|
|
overflow-x: hidden;
|
|
padding-inline: var(--space-small);
|
|
padding-block: var(--space-xsmall) var(--space-small);
|
|
}
|
|
|
|
.sports-live-scores {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xsmall);
|
|
}
|
|
|
|
.sports-intro-wrapper {
|
|
text-align: center;
|
|
}
|
|
|
|
.sports-intro-title {
|
|
margin-block: 0;
|
|
font-size: var(--font-size-heading-xlarge);
|
|
font-weight: var(--font-weight-heading);
|
|
}
|
|
|
|
.sports-buttons-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
.sports-buttons-wrapper .sports-view-matches {
|
|
margin-block-end: var(--space-small);
|
|
}
|
|
.sports-buttons-wrapper .sports-follow-teams-btn {
|
|
background: var(--newtab-background-color-secondary);
|
|
border-radius: var(--border-radius-xlarge);
|
|
}
|
|
|
|
.sports-follow-teams {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-small);
|
|
flex: 1;
|
|
}
|
|
|
|
.sports-country-search {
|
|
margin-block-end: var(--space-xsmall);
|
|
}
|
|
|
|
.sports-follow-teams-title {
|
|
font-size: var(--font-size-small);
|
|
align-self: center;
|
|
}
|
|
|
|
.sports-follow-teams-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: var(--space-xsmall);
|
|
gap: var(--space-medium);
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.sports-follow-teams-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-small);
|
|
cursor: pointer;
|
|
}
|
|
.sports-follow-teams-row.is-disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
.sports-follow-teams-row.is-disabled moz-checkbox {
|
|
pointer-events: none;
|
|
}
|
|
.sports-follow-teams-row.is-disabled .sports-team-flag,
|
|
.sports-follow-teams-row.is-disabled .sports-team-name {
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.sports-team-flag {
|
|
width: 30px;
|
|
height: var(--dimension-20);
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sports-team-name {
|
|
flex: 1;
|
|
min-width: 0;
|
|
font-size: var(--font-size-root);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.sports-back-button {
|
|
grid-column: 1;
|
|
justify-self: start;
|
|
}
|
|
.sports-back-button:dir(rtl) {
|
|
transform: scaleX(-1);
|
|
}
|
|
|
|
.sports-matches-tabs {
|
|
display: flex;
|
|
}
|
|
|
|
.sports-matches-view {
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.sports-matches-tab-panel {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.sports-matches-view > div > moz-button {
|
|
display: block;
|
|
margin-inline: auto;
|
|
}
|
|
|
|
.sports-matches-list-section > ul {
|
|
list-style: none;
|
|
padding-inline-start: 0;
|
|
margin-block: 0;
|
|
}
|
|
|
|
.sports-matches-list {
|
|
margin-block-start: var(--space-medium);
|
|
}
|
|
|
|
.sports-section-label {
|
|
color: var(--text-color-deemphasized);
|
|
font-size: var(--font-size-small);
|
|
}
|
|
|
|
.sports-matches-list-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-large);
|
|
}
|
|
|
|
@keyframes sports-section-label-live-pulse {
|
|
0%, 100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
.sports-section-label-live {
|
|
color: var(--text-color-error);
|
|
font-weight: var(--font-weight-heading);
|
|
animation: sports-section-label-live-pulse 1.6s ease-in-out infinite;
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.sports-section-label-live {
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
.sports-matches-list-section + .sports-matches-list-section {
|
|
border-block-start: 1px solid var(--border-color-deemphasized);
|
|
padding-block-start: calc(var(--space-large) + var(--space-xsmall));
|
|
margin-block-start: calc(var(--space-large) + var(--space-xsmall));
|
|
}
|
|
|
|
.sports-followed-only-toggle {
|
|
display: block;
|
|
margin-block-end: var(--space-small);
|
|
}
|
|
|
|
.sports-upcoming-loading-more,
|
|
.sports-results-loading-more {
|
|
text-align: center;
|
|
color: var(--text-color-deemphasized);
|
|
font-size: var(--font-size-small);
|
|
padding-block: var(--space-medium);
|
|
}
|
|
|
|
.sports-upcoming-load-more-sentinel,
|
|
.sports-results-load-more-sentinel {
|
|
height: 1px;
|
|
}
|
|
|
|
.sports-matches-tab-panel:not(:has(.match-highlight-view)) > moz-button {
|
|
margin-block-start: var(--space-medium);
|
|
padding-block-end: var(--space-small);
|
|
}
|
|
|
|
.sports-matches-tab-panel:has(.match-highlight-view) {
|
|
height: 100%;
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.sports-matches-tab-panel:has(.match-highlight-view) > .sports-section-label,
|
|
.sports-matches-tab-panel:has(.match-highlight-view) > .sports-now-header {
|
|
position: absolute;
|
|
margin-block-start: var(--space-medium);
|
|
}
|
|
|
|
.sports-now-header {
|
|
inset-inline: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-small);
|
|
}
|
|
|
|
.sports-live-refresh-button {
|
|
margin-block-start: calc(-1 * var(--space-xsmall));
|
|
}
|
|
|
|
.medium-widget .sports-matches-tab-panel:has(.match-highlight-view) > .sports-live-refresh-button {
|
|
inset-inline: unset;
|
|
inset-inline-end: 0;
|
|
margin-block-start: 0;
|
|
}
|
|
|
|
.medium-widget .sports-matches-tab-panel:has(.sports-live-pagination) .sports-live-refresh-button {
|
|
inset-inline-end: var(--space-small);
|
|
inset-block-end: var(--space-xxsmall);
|
|
}
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.sports-live-refresh-button.is-spinning::part(button) {
|
|
animation: sports-live-refresh-spin 1s linear infinite;
|
|
}
|
|
}
|
|
@keyframes sports-live-refresh-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
.large-widget .sports-matches-tab-panel:has(.match-highlight-view) > .match-highlight-view {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
|
|
.sports-matches-tab-panel:has(.match-highlight-view) > moz-button {
|
|
position: absolute;
|
|
inset-block-end: 0;
|
|
inset-inline: 0;
|
|
width: fit-content;
|
|
}
|
|
|
|
.sports-upcoming-empty-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-small);
|
|
}
|
|
.sports-upcoming-empty-info .sports-upcoming-empty-info-icon {
|
|
width: var(--icon-size);
|
|
height: var(--icon-size);
|
|
background: url("chrome://global/skin/icons/info.svg") no-repeat center/contain;
|
|
-moz-context-properties: fill;
|
|
fill: currentColor;
|
|
}
|
|
|
|
.sports-matches-tab {
|
|
flex: 1;
|
|
padding-block: var(--space-small);
|
|
border: none;
|
|
border-block-end: 2px solid transparent;
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.sports-matches-tab:focus-visible {
|
|
outline: var(--focus-outline);
|
|
}
|
|
.sports-matches-tab.is-active {
|
|
font-weight: var(--font-weight-semibold);
|
|
border-block-end-color: var(--color-accent-primary);
|
|
}
|
|
.sports-matches-tab.is-disabled {
|
|
color: var(--text-color-disabled);
|
|
cursor: not-allowed;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.sports-cancel-button {
|
|
grid-column: 3;
|
|
justify-self: end;
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
color: var(--newtab-primary-action-background);
|
|
font-size: var(--font-size-small);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.sports-done-button {
|
|
margin-inline-start: auto;
|
|
position: sticky;
|
|
inset-inline-end: 0;
|
|
inset-block-end: var(--space-xxsmall);
|
|
}
|
|
|
|
.sports-key-dates {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.sports-key-dates .sports-key-dates-list {
|
|
list-style: none;
|
|
padding-inline-start: var(--space-xsmall);
|
|
margin-block-start: 0;
|
|
}
|
|
.sports-key-dates .sports-key-dates-list .sports-key-dates-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-block-end: var(--space-medium);
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.sports-key-dates .sports-key-dates-list .sports-key-dates-item:last-of-type {
|
|
margin-block-end: 0;
|
|
}
|
|
.sports-key-dates moz-button {
|
|
align-self: center;
|
|
}
|
|
|
|
@keyframes sports-celebration-restore-view-all {
|
|
from {
|
|
visibility: hidden;
|
|
}
|
|
to {
|
|
visibility: visible;
|
|
}
|
|
}
|
|
@keyframes sports-celebration-border-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@keyframes sports-celebration-border-out {
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
/* 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/. */
|
|
.sports-match-row {
|
|
--sports-flag-width: 60px;
|
|
--sports-flag-height: 40px;
|
|
display: grid;
|
|
grid-template-columns: 3fr 4fr 3fr;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
padding: var(--space-small);
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.sports-match-row.clickable {
|
|
cursor: pointer;
|
|
}
|
|
.sports-match-row:hover {
|
|
background: var(--button-background-color-hover);
|
|
}
|
|
.sports-match-row.sports-match-row-placeholder:hover {
|
|
background: none;
|
|
}
|
|
.sports-match-row .sports-match-team {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: var(--space-xsmall);
|
|
}
|
|
.sports-match-row .sports-match-team .sports-match-flag-wrapper {
|
|
position: relative;
|
|
display: inline-block;
|
|
line-height: 0;
|
|
}
|
|
.sports-match-row .sports-match-team .sports-match-flag-wrapper.is-followed .sports-match-flag {
|
|
outline: 2px solid var(--color-accent-primary);
|
|
outline-offset: -2px;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens, declaration-property-value-disallowed-list */
|
|
border-radius: 6px;
|
|
}
|
|
.sports-match-row .sports-match-team .sports-match-flag {
|
|
width: var(--sports-flag-width);
|
|
/* stylelint-disable-line stylelint-plugin-mozilla/use-design-tokens */
|
|
height: var(--sports-flag-height);
|
|
/* stylelint-disable-line stylelint-plugin-mozilla/use-design-tokens */
|
|
display: block;
|
|
}
|
|
.sports-match-row .sports-match-team .sports-match-flag-tbd {
|
|
--sports-tbd-placeholder-color: light-dark(
|
|
var(--color-gray-15),
|
|
var(--color-gray-75)
|
|
);
|
|
box-sizing: border-box;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
background-color: var(--sports-tbd-placeholder-color);
|
|
border: var(--border-width) solid var(--border-color);
|
|
border-radius: var(--border-radius-small);
|
|
}
|
|
.sports-match-row .sports-match-team .sports-match-flag-check {
|
|
position: absolute;
|
|
inset-block-start: calc(var(--space-xsmall) * -1);
|
|
inset-inline-end: calc(var(--space-xsmall) * -1);
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
width: 17px;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
height: 17px;
|
|
border-radius: var(--border-radius-circle);
|
|
background-color: var(--newtab-background-color-secondary);
|
|
background-image: url("chrome://global/skin/icons/check-filled.svg");
|
|
background-repeat: no-repeat;
|
|
background-position: right top;
|
|
-moz-context-properties: fill;
|
|
fill: var(--color-accent-primary);
|
|
}
|
|
.sports-match-row .sports-match-upcoming,
|
|
.sports-match-row .sports-match-result,
|
|
.sports-match-row .sports-match-live {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
.sports-match-row .sports-match-upcoming .sports-match-time,
|
|
.sports-match-row .sports-match-result .sports-match-time,
|
|
.sports-match-row .sports-match-live .sports-match-time {
|
|
font-size: var(--font-size-xlarge);
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
.sports-match-row .sports-match-upcoming .sports-match-date,
|
|
.sports-match-row .sports-match-result .sports-match-date,
|
|
.sports-match-row .sports-match-live .sports-match-date {
|
|
color: var(--text-color-deemphasized);
|
|
}
|
|
.sports-match-row .sports-match-upcoming .sports-match-vs,
|
|
.sports-match-row .sports-match-result .sports-match-vs,
|
|
.sports-match-row .sports-match-live .sports-match-vs {
|
|
font-size: var(--font-size-xxlarge);
|
|
}
|
|
.sports-match-row .sports-match-result,
|
|
.sports-match-row .sports-match-live {
|
|
gap: var(--space-small);
|
|
}
|
|
.sports-match-row .sports-score-pill {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-self: center;
|
|
gap: var(--space-xsmall);
|
|
border-radius: var(--border-radius-circle);
|
|
padding: var(--space-xsmall) var(--space-large);
|
|
font-size: var(--font-size-xxlarge);
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
.sports-match-row .sports-score-pill.sports-score-pill-now {
|
|
align-self: start;
|
|
background: var(--button-background-color-hover);
|
|
margin-block-start: var(--space-xxsmall);
|
|
}
|
|
.sports-match-row .sports-score-pill.sports-score-pill-results {
|
|
background: var(--background-color-box-info);
|
|
}
|
|
.sports-match-row .sports-match-live > .sports-score-pill-now {
|
|
align-self: center;
|
|
}
|
|
.sports-match-row .sports-match-result-footer,
|
|
.sports-match-row .sports-match-live-footer {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
column-gap: calc(var(--space-xsmall) + var(--space-xxsmall));
|
|
color: var(--text-color-deemphasized);
|
|
}
|
|
.sports-match-row .sports-match-result-footer > span,
|
|
.sports-match-row .sports-match-live-footer > span {
|
|
white-space: nowrap;
|
|
}
|
|
.sports-match-row .sports-score-penalty {
|
|
font-size: var(--font-size-small);
|
|
font-weight: var(--font-weight);
|
|
}
|
|
.sports-match-row.sports-match-row-medium, .sports-match-row.sports-match-row-list {
|
|
--sports-flag-width: 50px;
|
|
--sports-flag-height: 35px;
|
|
}
|
|
.sports-match-row.sports-match-row-medium .sports-match-team, .sports-match-row.sports-match-row-list .sports-match-team {
|
|
flex-direction: row;
|
|
align-self: start;
|
|
gap: var(--space-small);
|
|
}
|
|
.sports-match-row.sports-match-row-medium .sports-match-team:first-child .sports-match-code, .sports-match-row.sports-match-row-list .sports-match-team:first-child .sports-match-code {
|
|
order: -1;
|
|
}
|
|
.sports-match-row.sports-match-row-medium .sports-match-code, .sports-match-row.sports-match-row-list .sports-match-code {
|
|
width: 35px;
|
|
/* stylelint-disable-line stylelint-plugin-mozilla/use-design-tokens */
|
|
text-align: center;
|
|
}
|
|
.sports-match-row.sports-match-row-medium .sports-match-result-footer,
|
|
.sports-match-row.sports-match-row-medium .sports-match-live-footer, .sports-match-row.sports-match-row-list .sports-match-result-footer,
|
|
.sports-match-row.sports-match-row-list .sports-match-live-footer {
|
|
font-size: var(--font-size-small);
|
|
column-gap: var(--space-xsmall);
|
|
}
|
|
.sports-match-row.sports-match-row-medium {
|
|
padding: var(--space-xsmall);
|
|
}
|
|
.sports-match-row.sports-match-row-medium .sports-match-upcoming .sports-match-time {
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.sports-match-row.sports-match-row-medium .sports-match-upcoming .sports-match-date {
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.sports-match-row.sports-match-row-medium .sports-match-upcoming .sports-match-vs {
|
|
font-size: var(--font-size-xlarge);
|
|
}
|
|
.sports-match-row.sports-match-row-medium .sports-score-pill {
|
|
font-size: var(--font-size-xlarge);
|
|
margin-block-start: 0;
|
|
}
|
|
.sports-match-row.sports-match-row-medium .sports-score-pill:has(.sports-score-penalty) {
|
|
padding-inline: var(--space-small);
|
|
}
|
|
.sports-match-row.sports-match-row-medium:has(.sports-match-result) .sports-score-pill {
|
|
padding-block: var(--space-xxsmall);
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.sports-match-row.sports-match-row-medium:has(.sports-match-result) .sports-match-result {
|
|
gap: 0;
|
|
}
|
|
.sports-match-row.sports-match-row-list {
|
|
margin-block: var(--space-xsmall);
|
|
}
|
|
.sports-match-row.sports-match-row-list .sports-score-pill {
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.sports-match-row.sports-match-row-list .sports-score-pill.sports-score-pill-results {
|
|
background: none;
|
|
padding: 0;
|
|
}
|
|
.sports-match-row.sports-match-row-list .sports-match-result {
|
|
gap: 0;
|
|
}
|
|
.sports-match-row.sports-match-row-list .sports-match-upcoming .sports-match-time {
|
|
font-size: var(--font-size-small);
|
|
}
|
|
|
|
/* 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/. */
|
|
/* stylelint-disable stylelint-plugin-mozilla/use-design-tokens */
|
|
.sports {
|
|
--sports-result-flag-width: 86px;
|
|
--sports-result-flag-height: 60px;
|
|
}
|
|
.sports .sports-result-flag-wrapper {
|
|
display: inline-block;
|
|
line-height: 0;
|
|
}
|
|
.sports .sports-result-flag {
|
|
inline-size: var(--sports-result-flag-width);
|
|
block-size: var(--sports-result-flag-height);
|
|
display: block;
|
|
border-radius: var(--border-radius-medium);
|
|
box-shadow: var(--box-shadow-level-2);
|
|
object-fit: cover;
|
|
}
|
|
.sports .sports-result-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-small);
|
|
align-items: center;
|
|
}
|
|
.sports .sports-result-name {
|
|
font-size: var(--font-size-xlarge);
|
|
font-weight: var(--font-weight-semibold);
|
|
color: var(--text-color);
|
|
line-height: 1.1;
|
|
text-align: center;
|
|
}
|
|
.sports .sports-result-placement {
|
|
font-size: var(--font-size-root);
|
|
color: var(--text-color);
|
|
line-height: 1.2;
|
|
max-inline-size: 10em;
|
|
}
|
|
.sports .sports-result-team {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: var(--space-small);
|
|
text-align: center;
|
|
}
|
|
.sports .sports-result-surface {
|
|
position: relative;
|
|
z-index: 1;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
inline-size: 100%;
|
|
block-size: 100%;
|
|
background: var(--background-color-box);
|
|
border-radius: var(--border-radius-xlarge);
|
|
box-shadow: var(--box-shadow-level-2);
|
|
padding: var(--space-medium);
|
|
}
|
|
.sports .sports-result-mascot {
|
|
position: absolute;
|
|
inset: 0;
|
|
inline-size: 100%;
|
|
block-size: 100%;
|
|
object-fit: contain;
|
|
object-position: center bottom;
|
|
z-index: 2;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.sports-result-card {
|
|
position: relative;
|
|
flex: 1;
|
|
display: flex;
|
|
}
|
|
|
|
.sports.large-widget .sports-result-mascot-champion {
|
|
inset-block: auto -5%;
|
|
inset-inline: auto -20%;
|
|
inline-size: auto;
|
|
block-size: 75%;
|
|
}
|
|
|
|
.sports.medium-widget .sports-result-mascot-champion {
|
|
inset-block: auto -52.5%;
|
|
inset-inline: auto -20%;
|
|
inline-size: auto;
|
|
block-size: 155%;
|
|
}
|
|
|
|
.sports.large-widget .sports-result-mascot-third {
|
|
inset-block: auto -30%;
|
|
inset-inline: auto -17.5%;
|
|
inline-size: auto;
|
|
block-size: 70%;
|
|
}
|
|
|
|
.sports.medium-widget .sports-result-mascot-third {
|
|
inset-block: auto -70%;
|
|
inset-inline: auto -15%;
|
|
inline-size: auto;
|
|
block-size: 140%;
|
|
}
|
|
|
|
.sports-result-card-medium .sports-result-surface {
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
}
|
|
.sports-result-card-medium .sports-result-team {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: var(--space-medium);
|
|
text-align: start;
|
|
}
|
|
|
|
.sports-result-card-third.sports-result-card-large .sports-result-surface {
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
padding-block-start: 32px;
|
|
}
|
|
|
|
.sports-result-final {
|
|
inline-size: 100%;
|
|
margin-block-start: auto;
|
|
}
|
|
.sports-result-final .sports-match-row .sports-match-team {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: var(--space-small);
|
|
}
|
|
.sports-result-final .sports-match-row .sports-match-team:first-child {
|
|
flex-direction: row-reverse;
|
|
}
|
|
.sports-result-final .sports-match-row .sports-match-upcoming .sports-match-time {
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.sports-result-final .sports-match-row .sports-match-upcoming .sports-match-date {
|
|
font-size: var(--font-size-small);
|
|
}
|
|
|
|
.sports-result-final-label {
|
|
margin: 0 0 var(--space-xxsmall);
|
|
color: var(--text-color-deemphasized);
|
|
font-size: var(--font-size-root);
|
|
}
|
|
|
|
.sports-podium {
|
|
position: relative;
|
|
flex: 1;
|
|
display: flex;
|
|
}
|
|
|
|
.sports .sports-podium-surface {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
grid-template-areas: "champion champion" "runner-up third";
|
|
align-content: space-between;
|
|
justify-items: center;
|
|
gap: var(--space-small);
|
|
}
|
|
|
|
.sports-result-team-podium-champion {
|
|
grid-area: champion;
|
|
--sports-result-flag-width: 86px;
|
|
--sports-result-flag-height: 60px;
|
|
}
|
|
|
|
.sports-result-team-podium-runner-up,
|
|
.sports-result-team-podium-third {
|
|
--sports-result-flag-width: 52px;
|
|
--sports-result-flag-height: 36px;
|
|
}
|
|
|
|
.sports-result-team-podium-runner-up {
|
|
grid-area: runner-up;
|
|
justify-self: start;
|
|
}
|
|
|
|
.sports-result-team-podium-third {
|
|
grid-area: third;
|
|
justify-self: end;
|
|
}
|
|
|
|
.sports.large-widget .sports-result-mascot-podium {
|
|
inset-block: auto -35%;
|
|
inset-inline: 0;
|
|
margin-inline: auto;
|
|
inline-size: auto;
|
|
block-size: 80%;
|
|
}
|
|
|
|
.sports.is-result-view {
|
|
overflow: hidden;
|
|
border: none;
|
|
--confetti-duration-scale: 1;
|
|
--confetti-delay-scale: 1.8;
|
|
--firework-start-delay: 2500ms;
|
|
--widget-celebration-hold-duration: 7600ms;
|
|
padding: calc(var(--space-small) + var(--space-xxsmall));
|
|
background: radial-gradient(135% 115% at 50% 118%, #592ACB 0%, #834FCA 11%, #AC74C8 22%, #D698C7 33%, #FFBDC5 44%, #CC98AD 58%, #98748F 72%, #654F7C 86%, #312A64 100%);
|
|
}
|
|
.sports.is-result-view:hover, .sports.is-result-view:has(:focus-visible) {
|
|
outline: none;
|
|
}
|
|
.sports.is-result-view > .sports-title-wrapper {
|
|
position: absolute;
|
|
inset-block-start: calc(var(--space-small) + var(--space-xxsmall));
|
|
inset-inline: calc(var(--space-small) + var(--space-xxsmall));
|
|
margin: 0;
|
|
z-index: 2;
|
|
}
|
|
.sports.is-result-view > .sports-body {
|
|
position: relative;
|
|
z-index: 1;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
.sports-result-card-champion.sports-result-card-large .sports-result-surface {
|
|
justify-content: flex-start;
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
padding-block-start: 52px;
|
|
}
|
|
|
|
/* 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/. */
|
|
.watch-live-modal-dialog {
|
|
border: none;
|
|
padding: 0;
|
|
border-radius: var(--border-radius-large);
|
|
background: var(--newtab-background-color-secondary);
|
|
color: var(--text-color);
|
|
box-shadow: var(--box-shadow-level-2);
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
width: 437px;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
height: 367px;
|
|
overflow: hidden;
|
|
}
|
|
.watch-live-modal-dialog::backdrop {
|
|
background: var(--background-color-overlay);
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-content {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-header {
|
|
flex: 0 0 auto;
|
|
padding: var(--space-large) var(--space-large) var(--space-medium);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-medium);
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-title {
|
|
font-size: var(--font-size-large);
|
|
font-weight: var(--font-weight-bold);
|
|
margin: 0;
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-scroll {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
scrollbar-width: none;
|
|
padding: 0 var(--space-large) var(--space-large);
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-row-link {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-medium);
|
|
padding: var(--space-small) var(--space-medium);
|
|
border-radius: var(--border-radius-medium);
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-row-link:hover {
|
|
background: var(--newtab-element-hover-color);
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-row-link:focus-visible {
|
|
outline: var(--focus-outline);
|
|
outline-offset: var(--focus-outline-inset);
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-row-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-product {
|
|
font-weight: var(--font-weight-bold);
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-entitlement {
|
|
font-size: var(--font-size-small);
|
|
color: var(--text-color-deemphasized);
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-play {
|
|
flex: 0 0 auto;
|
|
width: var(--icon-size-large);
|
|
height: var(--icon-size-large);
|
|
border-radius: var(--border-radius-circle);
|
|
border: var(--border-width) solid currentColor;
|
|
background: url("chrome://global/skin/media/play-fill.svg") center/var(--icon-size-xsmall) no-repeat;
|
|
color: var(--color-accent-primary, AccentColor);
|
|
-moz-context-properties: fill;
|
|
fill: currentColor;
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-separator {
|
|
border: none;
|
|
border-block-start: var(--border-width) solid var(--border-color);
|
|
margin: var(--space-medium) 0;
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-other-regions-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
background: none;
|
|
border: none;
|
|
color: inherit;
|
|
padding: var(--space-small) var(--space-medium);
|
|
border-radius: var(--border-radius-medium);
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-other-regions-toggle:hover {
|
|
background: var(--newtab-element-hover-color);
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-other-regions-toggle:focus-visible {
|
|
outline: var(--focus-outline);
|
|
outline-offset: var(--focus-outline-inset);
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-chevron {
|
|
width: var(--icon-size-small);
|
|
height: var(--icon-size-small);
|
|
-moz-context-properties: fill;
|
|
fill: currentColor;
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-other-regions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-medium);
|
|
margin-block-start: var(--space-medium);
|
|
}
|
|
.watch-live-modal-dialog .watch-live-modal-region-title {
|
|
font-size: var(--font-size-root);
|
|
font-weight: var(--font-weight-bold);
|
|
margin: 0 0 var(--space-xsmall);
|
|
padding-inline: var(--space-medium);
|
|
}
|
|
|
|
/* 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/. */
|
|
/* stylelint-disable stylelint-plugin-mozilla/use-design-tokens */
|
|
.sports-matches-tab-panel:has(.sports-live-pagination) > moz-button {
|
|
inset-block-end: var(--space-xxlarge);
|
|
}
|
|
|
|
.medium-widget .sports-matches-tab-panel:has(.sports-live-pagination) .sports-watch-live-button {
|
|
inset-inline: unset;
|
|
inset-inline-start: var(--space-small);
|
|
inset-block-end: var(--space-xxsmall);
|
|
}
|
|
|
|
.sports-live-pagination {
|
|
position: absolute;
|
|
inset-block-end: var(--space-xxsmall);
|
|
inset-inline: 0;
|
|
margin-inline: auto;
|
|
width: fit-content;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-small);
|
|
}
|
|
|
|
.large-widget .sports-live-pagination {
|
|
inset-block-end: calc(var(--space-small) * -1);
|
|
}
|
|
|
|
.sports-live-pagination-dots {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xsmall);
|
|
}
|
|
|
|
.sports-live-pagination-dot {
|
|
appearance: none;
|
|
border: 0;
|
|
padding: 0;
|
|
inline-size: 6px;
|
|
block-size: 6px;
|
|
border-radius: var(--border-radius-circle);
|
|
background-color: var(--text-color-deemphasized);
|
|
opacity: 0.5;
|
|
transition: opacity 100ms;
|
|
}
|
|
.sports-live-pagination-dot:hover {
|
|
opacity: 0.85;
|
|
}
|
|
.sports-live-pagination-dot.is-active {
|
|
opacity: 1;
|
|
background-color: var(--color-accent-primary);
|
|
}
|
|
|
|
/* 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 https://mozilla.org/MPL/2.0/. */
|
|
/* 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 https://mozilla.org/MPL/2.0/. */
|
|
.weather-widget .weather-icon {
|
|
width: var(--size-item-medium);
|
|
height: auto;
|
|
vertical-align: middle;
|
|
}
|
|
@media (prefers-contrast) {
|
|
.weather-widget .weather-icon {
|
|
-moz-context-properties: fill, stroke;
|
|
fill: currentColor;
|
|
stroke: currentColor;
|
|
}
|
|
}
|
|
.weather-widget .weather-icon.iconId1 {
|
|
content: url("chrome://browser/skin/weather/sunny.svg");
|
|
}
|
|
.weather-widget .weather-icon.iconId2 {
|
|
content: url("chrome://browser/skin/weather/mostly-sunny.svg");
|
|
}
|
|
.weather-widget .weather-icon:is(.iconId3, .iconId4, .iconId6) {
|
|
content: url("chrome://browser/skin/weather/partly-sunny.svg");
|
|
}
|
|
.weather-widget .weather-icon.iconId5 {
|
|
content: url("chrome://browser/skin/weather/hazy-sunshine.svg");
|
|
}
|
|
.weather-widget .weather-icon:is(.iconId7, .iconId8) {
|
|
content: url("chrome://browser/skin/weather/cloudy.svg");
|
|
}
|
|
.weather-widget .weather-icon.iconId11 {
|
|
content: url("chrome://browser/skin/weather/fog.svg");
|
|
}
|
|
.weather-widget .weather-icon.iconId12 {
|
|
content: url("chrome://browser/skin/weather/showers.svg");
|
|
}
|
|
.weather-widget .weather-icon:is(.iconId13, .iconId14) {
|
|
content: url("chrome://browser/skin/weather/mostly-cloudy-with-showers.svg");
|
|
}
|
|
.weather-widget .weather-icon.iconId15 {
|
|
content: url("chrome://browser/skin/weather/thunderstorms.svg");
|
|
}
|
|
.weather-widget .weather-icon:is(.iconId16, .iconId17) {
|
|
content: url("chrome://browser/skin/weather/mostly-cloudy-with-thunderstorms.svg");
|
|
}
|
|
.weather-widget .weather-icon.iconId18 {
|
|
content: url("chrome://browser/skin/weather/rain.svg");
|
|
}
|
|
.weather-widget .weather-icon:is(.iconId19, .iconId20, .iconId25) {
|
|
content: url("chrome://browser/skin/weather/flurries.svg");
|
|
}
|
|
.weather-widget .weather-icon.iconId21 {
|
|
content: url("chrome://browser/skin/weather/partly-sunny-with-flurries.svg");
|
|
}
|
|
.weather-widget .weather-icon:is(.iconId22, .iconId23) {
|
|
content: url("chrome://browser/skin/weather/snow.svg");
|
|
}
|
|
.weather-widget .weather-icon:is(.iconId24, .iconId31) {
|
|
content: url("chrome://browser/skin/weather/ice.svg");
|
|
}
|
|
.weather-widget .weather-icon:is(.iconId26, .iconId29) {
|
|
content: url("chrome://browser/skin/weather/freezing-rain.svg");
|
|
}
|
|
.weather-widget .weather-icon.iconId30 {
|
|
content: url("chrome://browser/skin/weather/hot.svg");
|
|
}
|
|
.weather-widget .weather-icon.iconId32 {
|
|
content: url("chrome://browser/skin/weather/windy.svg");
|
|
}
|
|
.weather-widget .weather-icon.iconId33 {
|
|
content: url("chrome://browser/skin/weather/night-clear.svg");
|
|
}
|
|
.weather-widget .weather-icon:is(.iconId34, .iconId35, .iconId36, .iconId38) {
|
|
content: url("chrome://browser/skin/weather/night-mostly-clear.svg");
|
|
}
|
|
.weather-widget .weather-icon.iconId37 {
|
|
content: url("chrome://browser/skin/weather/night-hazy-moonlight.svg");
|
|
}
|
|
.weather-widget .weather-icon:is(.iconId39, .iconId40) {
|
|
content: url("chrome://browser/skin/weather/night-partly-cloudy-with-showers.svg");
|
|
height: var(--size-item-large);
|
|
}
|
|
.weather-widget .weather-icon:is(.iconId41, .iconId42) {
|
|
content: url("chrome://browser/skin/weather/night-partly-cloudy-with-thunderstorms.svg");
|
|
}
|
|
.weather-widget .weather-icon:is(.iconId43, .iconId44) {
|
|
content: url("chrome://browser/skin/weather/night-mostly-cloudy-with-flurries.svg");
|
|
}
|
|
|
|
.nova-enabled .weather-widget {
|
|
--widget-size-transition-duration: 180ms;
|
|
--widget-size-transition-easing: ease;
|
|
background: var(--newtab-background-card);
|
|
transition: opacity 0.2s ease;
|
|
padding: var(--space-medium);
|
|
border-radius: var(--border-radius-large);
|
|
box-shadow: var(--box-shadow-level-2);
|
|
color: var(--text-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
transition: height var(--widget-size-transition-duration) var(--widget-size-transition-easing);
|
|
z-index: 1;
|
|
height: 100%;
|
|
--weather-sunny-background-color: light-dark(var(--color-yellow-0), var(--color-yellow-90));
|
|
--weather-cloudy-background-color: light-dark(var(--color-gray-20), var(--color-gray-80));
|
|
--weather-rainy-background-color: light-dark(var(--color-blue-0), var(--color-blue-90));
|
|
--weather-snowy-background-color: light-dark(var(--color-violet-0), var(--color-violet-90));
|
|
--weather-hot-background-color: light-dark(var(--color-orange-0), var(--color-orange-90));
|
|
}
|
|
.nova-enabled .weather-widget:hover {
|
|
background: var(--newtab-background-color-secondary);
|
|
}
|
|
.nova-enabled .weather-widget.small-widget, .nova-enabled .weather-widget.medium-widget {
|
|
height: var(--newtab-card-height-small);
|
|
}
|
|
.nova-enabled .weather-widget.large-widget {
|
|
height: var(--newtab-card-height);
|
|
}
|
|
.nova-enabled .weather-widget:hover, .nova-enabled .weather-widget:focus-within {
|
|
outline: 1px solid var(--border-color-deemphasized);
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.nova-enabled .weather-widget {
|
|
transition: none;
|
|
}
|
|
}
|
|
.nova-enabled .weather-widget .weather-anchor {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 0;
|
|
border-radius: var(--border-radius-large);
|
|
text-decoration: none;
|
|
}
|
|
.nova-enabled .weather-widget .widget-title-bar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-block-end: auto;
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.nova-enabled .weather-widget .widget-title-bar .widget-title h3 {
|
|
margin: 0;
|
|
font-size: var(--font-size-small);
|
|
color: var(--text-color-deemphasized);
|
|
font-weight: var(--font-weight);
|
|
}
|
|
.nova-enabled .weather-widget .widget-title-bar .weather-context-menu-wrapper {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
.nova-enabled .weather-widget .forecast-footer {
|
|
position: absolute;
|
|
inset-block-end: calc(var(--space-xlarge) * -1);
|
|
inset-inline-end: 0;
|
|
font-size: var(--newtab-font-size-xsmall);
|
|
}
|
|
.nova-enabled .weather-widget .forecast-footer .sponsored-text {
|
|
visibility: hidden;
|
|
text-wrap-mode: nowrap;
|
|
}
|
|
.nova-enabled .weather-widget .forecast-footer .full-forecast {
|
|
display: none;
|
|
color: var(--text-color);
|
|
padding-inline-end: var(--space-xlarge);
|
|
background: url("chrome://global/skin/icons/arrow-right.svg") no-repeat right center;
|
|
-moz-context-properties: fill;
|
|
fill: currentColor;
|
|
font-size: var(--newtab-font-size-xsmall);
|
|
}
|
|
.nova-enabled .weather-widget .forecast-footer .full-forecast:dir(rtl) {
|
|
background-image: url("chrome://global/skin/icons/arrow-left.svg");
|
|
background-position: left center;
|
|
}
|
|
.nova-enabled .weather-widget:hover .forecast-footer .sponsored-text, .nova-enabled .weather-widget:focus-within .forecast-footer .sponsored-text {
|
|
visibility: visible;
|
|
}
|
|
.nova-enabled .weather-widget:hover .full-forecast, .nova-enabled .weather-widget:focus-within .full-forecast {
|
|
color: var(--link-color-hover);
|
|
}
|
|
.nova-enabled .weather-widget .weather-container {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
}
|
|
.nova-enabled .weather-widget .weather-conditions-view .weather-info-link {
|
|
color: var(--text-color);
|
|
display: flex;
|
|
gap: var(--space-xsmall);
|
|
text-decoration: none;
|
|
}
|
|
.nova-enabled .weather-widget .weather-conditions-view .weather-icon-column {
|
|
padding: var(--space-small);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
align-self: center;
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.nova-enabled .weather-widget .weather-conditions-view .weather-icon-column .weather-icon {
|
|
width: var(--icon-size-large);
|
|
}
|
|
.nova-enabled .weather-widget .weather-conditions-view .weather-info-row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.nova-enabled .weather-widget .weather-conditions-view .temperature-unit {
|
|
font-size: var(--font-size-large);
|
|
font-weight: var(--font-weight-heading);
|
|
text-transform: uppercase;
|
|
}
|
|
.nova-enabled .weather-widget .weather-conditions-view .high-low-row {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
align-self: flex-start;
|
|
margin-inline-start: auto;
|
|
color: var(--text-color-deemphasized);
|
|
font-size: var(--newtab-font-size-xsmall);
|
|
gap: var(--space-small);
|
|
}
|
|
.nova-enabled .weather-widget .weather-conditions-view .high-low-row .high-temperature,
|
|
.nova-enabled .weather-widget .weather-conditions-view .high-low-row .low-temperature {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.nova-enabled .weather-widget .weather-conditions-view .high-low-row .high-temperature {
|
|
margin-inline-end: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .weather-widget .weather-conditions-view .high-low-row .arrow-icon {
|
|
display: inline-block;
|
|
width: var(--size-item-xsmall);
|
|
height: var(--size-item-xsmall);
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
-moz-context-properties: fill, fill-opacity;
|
|
fill: currentColor;
|
|
}
|
|
.nova-enabled .weather-widget .weather-conditions-view .high-low-row .arrow-icon.arrow-up {
|
|
background-image: url("chrome://global/skin/icons/shaft-arrow-up.svg");
|
|
}
|
|
.nova-enabled .weather-widget .weather-conditions-view .high-low-row .arrow-icon.arrow-down {
|
|
background-image: url("chrome://global/skin/icons/shaft-arrow-down.svg");
|
|
}
|
|
.nova-enabled .weather-widget .weather-conditions-view .weather-info-description {
|
|
display: none;
|
|
}
|
|
.nova-enabled .weather-widget .weather-conditions-view .weather-icon-column:has(.iconId1, .iconId2, .iconId3, .iconId4, .iconId5, .iconId6, .iconId33),
|
|
.nova-enabled .weather-widget .weather-opt-in-container .weather-icon-column:has(.iconId1, .iconId2, .iconId3, .iconId4, .iconId5, .iconId6, .iconId33), .nova-enabled .weather-widget.small-widget .forecast-row-items > li:first-of-type:has(.iconId1, .iconId2, .iconId3, .iconId4, .iconId5, .iconId6, .iconId33) {
|
|
background-color: var(--weather-sunny-background-color);
|
|
}
|
|
.nova-enabled .weather-widget .weather-conditions-view .weather-icon-column:has(.iconId7, .iconId8, .iconId11, .iconId32, .iconId34, .iconId35, .iconId36, .iconId37, .iconId38),
|
|
.nova-enabled .weather-widget .weather-opt-in-container .weather-icon-column:has(.iconId7, .iconId8, .iconId11, .iconId32, .iconId34, .iconId35, .iconId36, .iconId37, .iconId38), .nova-enabled .weather-widget.small-widget .forecast-row-items > li:first-of-type:has(.iconId7, .iconId8, .iconId11, .iconId32, .iconId34, .iconId35, .iconId36, .iconId37, .iconId38) {
|
|
background-color: var(--weather-cloudy-background-color);
|
|
}
|
|
.nova-enabled .weather-widget .weather-conditions-view .weather-icon-column:has(.iconId12, .iconId13, .iconId14, .iconId15, .iconId16, .iconId17, .iconId18, .iconId39, .iconId40, .iconId41, .iconId42),
|
|
.nova-enabled .weather-widget .weather-opt-in-container .weather-icon-column:has(.iconId12, .iconId13, .iconId14, .iconId15, .iconId16, .iconId17, .iconId18, .iconId39, .iconId40, .iconId41, .iconId42), .nova-enabled .weather-widget.small-widget .forecast-row-items > li:first-of-type:has(.iconId12, .iconId13, .iconId14, .iconId15, .iconId16, .iconId17, .iconId18, .iconId39, .iconId40, .iconId41, .iconId42) {
|
|
background-color: var(--weather-rainy-background-color);
|
|
}
|
|
.nova-enabled .weather-widget .weather-conditions-view .weather-icon-column:has(.iconId19, .iconId20, .iconId21, .iconId22, .iconId23, .iconId24, .iconId25, .iconId26, .iconId29, .iconId31, .iconId43, .iconId44),
|
|
.nova-enabled .weather-widget .weather-opt-in-container .weather-icon-column:has(.iconId19, .iconId20, .iconId21, .iconId22, .iconId23, .iconId24, .iconId25, .iconId26, .iconId29, .iconId31, .iconId43, .iconId44), .nova-enabled .weather-widget.small-widget .forecast-row-items > li:first-of-type:has(.iconId19, .iconId20, .iconId21, .iconId22, .iconId23, .iconId24, .iconId25, .iconId26, .iconId29, .iconId31, .iconId43, .iconId44) {
|
|
background-color: var(--weather-snowy-background-color);
|
|
}
|
|
.nova-enabled .weather-widget .weather-conditions-view .weather-icon-column:has(.iconId30),
|
|
.nova-enabled .weather-widget .weather-opt-in-container .weather-icon-column:has(.iconId30), .nova-enabled .weather-widget.small-widget .forecast-row-items > li:first-of-type:has(.iconId30) {
|
|
background-color: var(--weather-hot-background-color);
|
|
}
|
|
.nova-enabled .weather-widget .forecast-row {
|
|
display: flex;
|
|
gap: var(--space-medium);
|
|
flex-direction: column;
|
|
}
|
|
.nova-enabled .weather-widget .forecast-row .today-forecast {
|
|
display: none;
|
|
margin: 0;
|
|
font-size: var(--font-size-small);
|
|
color: var(--text-color-deemphasized);
|
|
font-weight: var(--font-weight);
|
|
}
|
|
.nova-enabled .weather-widget .forecast-row .forecast-row-items {
|
|
list-style: none;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
padding: 0;
|
|
margin-block: var(--space-xxsmall);
|
|
}
|
|
.nova-enabled .weather-widget .forecast-row .forecast-row-items li {
|
|
background: var(--newtab-background-color);
|
|
border-radius: var(--border-radius-small);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-inline: var(--space-xxsmall);
|
|
padding: var(--space-small) var(--space-medium);
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.nova-enabled .weather-widget .forecast-row .forecast-row-items li:first-of-type {
|
|
margin-inline-start: 0;
|
|
}
|
|
.nova-enabled .weather-widget .forecast-row .forecast-row-items li:last-of-type {
|
|
margin-inline-end: 0;
|
|
}
|
|
.nova-enabled .weather-widget.small-widget {
|
|
grid-column: span 2;
|
|
grid-row: span 2;
|
|
}
|
|
.nova-enabled .weather-widget.medium-widget .weather-container {
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-medium);
|
|
}
|
|
.nova-enabled .weather-widget.medium-widget .weather-conditions-view {
|
|
flex: 1;
|
|
}
|
|
.nova-enabled .weather-widget.medium-widget .weather-info-link {
|
|
width: 100%;
|
|
gap: var(--space-small);
|
|
align-items: center;
|
|
}
|
|
.nova-enabled .weather-widget.medium-widget .weather-info-column {
|
|
flex: 1;
|
|
}
|
|
.nova-enabled .weather-widget.medium-widget .weather-info-row {
|
|
flex-direction: row;
|
|
}
|
|
.nova-enabled .weather-widget.medium-widget .high-low-row {
|
|
align-self: center;
|
|
}
|
|
.nova-enabled .weather-widget.medium-widget .weather-icon-column .weather-icon {
|
|
width: var(--icon-size-xlarge);
|
|
}
|
|
.nova-enabled .weather-widget.medium-widget .weather-info-description {
|
|
display: block;
|
|
font-size: var(--font-size-small);
|
|
color: var(--text-color-deemphasized);
|
|
}
|
|
.nova-enabled .weather-widget.medium-widget .forecast-row-items li:nth-child(n+3) {
|
|
display: none;
|
|
}
|
|
.nova-enabled .weather-widget.medium-widget .forecast-footer {
|
|
inset-inline-end: auto;
|
|
inset-inline-start: 0;
|
|
}
|
|
.nova-enabled .weather-widget.large-widget .weather-container {
|
|
flex: 1;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
padding-block-start: var(--space-medium);
|
|
}
|
|
.nova-enabled .weather-widget.large-widget .weather-conditions-view {
|
|
flex: 1;
|
|
}
|
|
.nova-enabled .weather-widget.large-widget .weather-info-link {
|
|
width: 100%;
|
|
gap: var(--space-medium);
|
|
align-items: center;
|
|
}
|
|
.nova-enabled .weather-widget.large-widget .weather-info-column {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-small);
|
|
}
|
|
.nova-enabled .weather-widget.large-widget .weather-info-row {
|
|
flex-direction: row;
|
|
}
|
|
.nova-enabled .weather-widget.large-widget .weather-icon-column {
|
|
padding: var(--space-large);
|
|
}
|
|
.nova-enabled .weather-widget.large-widget .weather-icon-column .weather-icon {
|
|
width: calc(var(--icon-size-medium) * 2);
|
|
}
|
|
.nova-enabled .weather-widget.large-widget .high-low-row {
|
|
align-self: center;
|
|
}
|
|
.nova-enabled .weather-widget.large-widget .weather-info-description {
|
|
display: block;
|
|
font-size: var(--font-size-small);
|
|
color: var(--text-color-deemphasized);
|
|
}
|
|
.nova-enabled .weather-widget.large-widget .forecast-footer {
|
|
padding-block-start: var(--space-large);
|
|
position: relative;
|
|
inset: unset;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
.nova-enabled .weather-widget.large-widget .forecast-footer .full-forecast {
|
|
display: inline-block;
|
|
}
|
|
.nova-enabled .weather-widget.large-widget .today-forecast {
|
|
display: block;
|
|
margin: 0;
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in {
|
|
position: relative;
|
|
padding-inline: 0;
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in .widget-title-bar {
|
|
justify-content: flex-end;
|
|
position: absolute;
|
|
inset-block-start: var(--space-medium);
|
|
inset-inline-end: var(--space-medium);
|
|
z-index: 1;
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in .weather-icon {
|
|
display: none;
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in .weather-icon-column {
|
|
width: max-content;
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in .weather-opt-in-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
gap: var(--space-small);
|
|
height: 100%;
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in .weather-opt-in-container-title-bar {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-medium);
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in .weather-opt-in-container-title {
|
|
font-size: var(--font-size-small);
|
|
margin: 0;
|
|
padding-inline-end: var(--space-xlarge);
|
|
font-weight: var(--font-weight-heading);
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in .weather-opt-in-container-buttons {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
gap: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in .weather-text-link {
|
|
border: 1px solid transparent;
|
|
border-radius: var(--border-radius-small);
|
|
color: var(--link-color);
|
|
font-size: var(--font-size-small);
|
|
appearance: none;
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in .weather-text-link:hover {
|
|
color: var(--link-color-hover);
|
|
text-decoration: underline;
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in .weather-text-link:active {
|
|
color: var(--link-color-active);
|
|
}
|
|
@media (forced-colors: active) {
|
|
.nova-enabled .weather-widget.weather-opt-in .weather-text-link {
|
|
padding: var(--space-small) var(--space-medium);
|
|
padding-inline-start: var(--space-xlarge);
|
|
}
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in .weather-text-link:dir(rtl) {
|
|
background-position-x: right;
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in .weather-text-link:focus-visible {
|
|
border: 1px solid var(--focus-outline-color);
|
|
outline: 0;
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in.small-widget .weather-opt-in-container-title {
|
|
padding-block-start: var(--space-medium);
|
|
font-size: var(--newtab-font-size-xsmall);
|
|
line-height: 1.25;
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in.small-widget .weather-opt-in-container-title::before {
|
|
content: "";
|
|
float: inline-end;
|
|
width: calc(var(--space-xlarge) + var(--space-large));
|
|
height: var(--space-medium);
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in.small-widget .weather-opt-in-container-buttons {
|
|
padding-inline: var(--space-medium);
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in.small-widget .weather-text-link {
|
|
font-size: var(--newtab-font-size-xsmall);
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in.medium-widget {
|
|
padding-inline: var(--space-medium);
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in.medium-widget .weather-icon {
|
|
display: block;
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in.medium-widget .weather-icon-column .weather-icon {
|
|
width: calc(var(--icon-size-medium) * 2);
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in.medium-widget .weather-opt-in-container-title {
|
|
font-size: var(--font-size-root);
|
|
padding-inline-end: var(--space-xxlarge);
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in.medium-widget .weather-opt-in-container-buttons {
|
|
gap: var(--space-medium);
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in.large-widget .weather-icon {
|
|
display: block;
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in.large-widget .weather-opt-in-container {
|
|
justify-content: center;
|
|
gap: var(--space-xxlarge);
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in.large-widget .weather-opt-in-container-title-bar {
|
|
margin-block-start: var(--space-large);
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in.large-widget .weather-opt-in-container-title {
|
|
font-size: var(--font-size-large);
|
|
text-align: center;
|
|
padding-inline-end: 0;
|
|
}
|
|
.nova-enabled .weather-widget.weather-opt-in.large-widget .weather-opt-in-container-buttons {
|
|
gap: var(--space-medium);
|
|
}
|
|
.nova-enabled .weather-widget.weather-search-active .weather-search-container {
|
|
position: relative;
|
|
}
|
|
.nova-enabled .weather-widget.weather-search-active .location-input {
|
|
padding: var(--space-small);
|
|
outline: 1px solid var(--border-color-selected);
|
|
border-radius: var(--border-radius-circle);
|
|
padding-inline-start: calc(var(--space-medium) * 4);
|
|
border: 0;
|
|
width: 100%;
|
|
}
|
|
.nova-enabled .weather-widget.weather-search-active .location-input-wrapper {
|
|
margin-block-end: var(--space-small);
|
|
position: relative;
|
|
}
|
|
.nova-enabled .weather-widget.weather-search-active .search-icon {
|
|
content: url("chrome://global/skin/icons/search-glass.svg");
|
|
-moz-context-properties: fill;
|
|
fill: var(--icon-color);
|
|
position: absolute;
|
|
inset-block-start: 50%;
|
|
transform: translateY(-50%);
|
|
inset-inline-start: var(--space-large);
|
|
}
|
|
.nova-enabled .weather-widget.weather-search-active .close-icon {
|
|
position: absolute;
|
|
inset-block-start: 50%;
|
|
transform: translateY(-50%);
|
|
inset-inline-end: var(--space-medium);
|
|
}
|
|
.nova-enabled .weather-widget.weather-search-active .close-icon:focus-visible {
|
|
outline: var(--focus-outline);
|
|
}
|
|
.nova-enabled .weather-widget.weather-search-active .weather-anchor, .nova-enabled .weather-widget.weather-search-active .weather-container, .nova-enabled .weather-widget.weather-search-active .forecast-footer, .nova-enabled .weather-widget.weather-search-active .widget-title-bar {
|
|
display: none;
|
|
}
|
|
.nova-enabled .weather-widget.weather-search-active.small-widget {
|
|
position: absolute;
|
|
inset-inline-end: 0;
|
|
width: calc(4 * var(--col-width) + 3 * var(--space-medium));
|
|
height: calc(2 * var(--row-height) + var(--space-medium));
|
|
}
|
|
.nova-enabled .weather-widget.weather-error-state {
|
|
justify-content: flex-start;
|
|
}
|
|
.nova-enabled .weather-widget.weather-error-state .weather-error {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
justify-content: space-evenly;
|
|
gap: var(--space-small);
|
|
}
|
|
.nova-enabled .weather-widget.weather-error-state p {
|
|
margin: 0;
|
|
font-size: var(--font-size-small);
|
|
color: var(--text-color-deemphasized);
|
|
}
|
|
.nova-enabled .weather-widget.weather-error-state.small-widget .weather-error {
|
|
margin-block-start: auto;
|
|
gap: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .weather-widget.weather-error-state.medium-widget .weather-error {
|
|
flex-direction: row;
|
|
justify-content: flex-start;
|
|
margin-block: auto;
|
|
}
|
|
.nova-enabled .weather-widget.weather-error-state.medium-widget .widget-title-bar {
|
|
margin-block-end: 0;
|
|
}
|
|
.nova-enabled .weather-widget.weather-error-state.large-widget .weather-error {
|
|
height: 100%;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.nova-enabled .weather-widget.weather-error-state.large-widget .widget-title-bar {
|
|
margin-block-end: 0;
|
|
}
|
|
|
|
/* 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/. */
|
|
.nova-enabled .clocks-widget {
|
|
--widget-size-transition-duration: 180ms;
|
|
--widget-size-transition-easing: ease;
|
|
background: var(--newtab-background-card);
|
|
transition: opacity 0.2s ease;
|
|
padding: var(--space-medium);
|
|
border-radius: var(--border-radius-large);
|
|
box-shadow: var(--box-shadow-level-2);
|
|
color: var(--text-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
transition: height var(--widget-size-transition-duration) var(--widget-size-transition-easing);
|
|
height: var(--newtab-card-height-small);
|
|
transition: height var(--widget-size-transition-duration) var(--widget-size-transition-easing);
|
|
}
|
|
.nova-enabled .clocks-widget:hover {
|
|
background: var(--newtab-background-color-secondary);
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget, .nova-enabled .clocks-widget.medium-widget {
|
|
height: var(--newtab-card-height-small);
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget {
|
|
height: var(--newtab-card-height);
|
|
}
|
|
.nova-enabled .clocks-widget:hover, .nova-enabled .clocks-widget:focus-within {
|
|
outline: 1px solid var(--border-color-deemphasized);
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.nova-enabled .clocks-widget {
|
|
transition: none;
|
|
}
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget {
|
|
height: var(--newtab-card-height);
|
|
}
|
|
.nova-enabled .clocks-widget .widget-toolbar {
|
|
position: absolute;
|
|
inset-block-start: 0;
|
|
inset-inline: 0;
|
|
block-size: 75px;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: flex-end;
|
|
gap: var(--space-small);
|
|
padding: var(--space-medium);
|
|
border-start-start-radius: var(--border-radius-large);
|
|
border-start-end-radius: var(--border-radius-large);
|
|
opacity: 0;
|
|
transition: opacity 180ms ease, block-size var(--widget-size-transition-duration) var(--widget-size-transition-easing), padding var(--widget-size-transition-duration) var(--widget-size-transition-easing);
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
}
|
|
.nova-enabled .clocks-widget .widget-toolbar moz-button {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transform: translateY(-0.125rem);
|
|
transition: opacity 140ms ease, transform 140ms ease;
|
|
}
|
|
.nova-enabled .clocks-widget .widget-toolbar panel-list {
|
|
pointer-events: auto;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-add-button::part(button),
|
|
.nova-enabled .clocks-widget .clocks-edit-add-button::part(button) {
|
|
background-color: var(--button-background-color-primary);
|
|
border-color: var(--button-border-color-primary);
|
|
color: var(--button-text-color-primary);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-add-button:hover::part(button),
|
|
.nova-enabled .clocks-widget .clocks-edit-add-button:hover::part(button) {
|
|
background-color: var(--button-background-color-primary-hover);
|
|
color: var(--button-text-color-primary-hover);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-add-button:hover:active::part(button),
|
|
.nova-enabled .clocks-widget .clocks-edit-add-button:hover:active::part(button) {
|
|
background-color: var(--button-background-color-primary-active);
|
|
color: var(--button-text-color-primary-active);
|
|
}
|
|
.nova-enabled .clocks-widget:hover .widget-toolbar, .nova-enabled .clocks-widget:focus-within .widget-toolbar {
|
|
opacity: 1;
|
|
}
|
|
.nova-enabled .clocks-widget:hover .widget-toolbar moz-button, .nova-enabled .clocks-widget:focus-within .widget-toolbar moz-button {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
transform: translateY(0);
|
|
}
|
|
.nova-enabled .clocks-widget.is-dismissed .widget-toolbar:hover {
|
|
opacity: 0;
|
|
}
|
|
.nova-enabled .clocks-widget.is-dismissed .widget-toolbar:hover moz-button {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transform: translateY(-0.125rem);
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.nova-enabled .clocks-widget {
|
|
transition: none;
|
|
}
|
|
.nova-enabled .clocks-widget .widget-toolbar {
|
|
transition: none;
|
|
}
|
|
.nova-enabled .clocks-widget .widget-toolbar moz-button {
|
|
transition: none;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-list,
|
|
.nova-enabled .clocks-widget .clocks-row,
|
|
.nova-enabled .clocks-widget .clocks-meta,
|
|
.nova-enabled .clocks-widget .clocks-label,
|
|
.nova-enabled .clocks-widget .clocks-city,
|
|
.nova-enabled .clocks-widget .clocks-timezone,
|
|
.nova-enabled .clocks-widget .clocks-time,
|
|
.nova-enabled .clocks-widget .clocks-edit-item,
|
|
.nova-enabled .clocks-widget .clocks-edit-item-actions,
|
|
.nova-enabled .clocks-widget .clocks-row-actions {
|
|
transition: none;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-edit-item:hover .clocks-edit-item-actions,
|
|
.nova-enabled .clocks-widget .clocks-edit-item:focus-within .clocks-edit-item-actions {
|
|
transition: none;
|
|
}
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-panel {
|
|
position: absolute;
|
|
z-index: 2;
|
|
inset-block-start: var(--space-xsmall);
|
|
inset-inline-end: var(--space-small);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-medium);
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
inline-size: min(332px, 100% - var(--space-large));
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
block-size: 276px;
|
|
padding: var(--space-medium);
|
|
background: var(--newtab-background-color-secondary);
|
|
border: var(--border-width) solid var(--border-color);
|
|
border-radius: var(--border-radius-large);
|
|
box-shadow: var(--box-shadow-level-4);
|
|
}
|
|
@media (prefers-contrast) {
|
|
.nova-enabled .clocks-widget .clocks-panel {
|
|
background-color: var(--background-color-box);
|
|
}
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-location-wrapper {
|
|
position: relative;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-search-location-input {
|
|
min-inline-size: 0;
|
|
inline-size: 100%;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-search-results {
|
|
position: absolute;
|
|
inset-block-start: calc(100% + var(--space-xxsmall));
|
|
inset-inline: 0;
|
|
z-index: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xxsmall);
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
max-block-size: 180px;
|
|
overflow-y: auto;
|
|
padding: var(--space-xsmall);
|
|
background: var(--newtab-background-color-secondary);
|
|
border: var(--border-width) solid var(--border-color);
|
|
border-radius: var(--border-radius-medium);
|
|
box-shadow: var(--box-shadow-level-4);
|
|
}
|
|
@media (prefers-contrast) {
|
|
.nova-enabled .clocks-widget .clocks-search-results {
|
|
background-color: var(--background-color-box);
|
|
}
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-search-no-results {
|
|
color: var(--text-color-deemphasized);
|
|
font-size: var(--font-size-small);
|
|
padding-inline: var(--space-small);
|
|
padding-block: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-nickname-input {
|
|
min-inline-size: 0;
|
|
inline-size: 100%;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-edit-title {
|
|
margin: 0;
|
|
color: var(--text-color);
|
|
font-size: var(--font-size-root);
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-edit-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-small);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-edit-title-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-small);
|
|
min-inline-size: 0;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-edit-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-small);
|
|
flex: 1 1 0;
|
|
min-block-size: 0;
|
|
overflow-y: auto;
|
|
margin: 0;
|
|
padding: 0;
|
|
padding-block-start: var(--space-xxsmall);
|
|
padding-inline: var(--space-xxsmall);
|
|
list-style: none;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-edit-panel {
|
|
flex: 1 1 0;
|
|
min-block-size: 0;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-edit-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: calc(var(--space-xxsmall) / 2);
|
|
position: relative;
|
|
padding-block: var(--space-small);
|
|
padding-inline: var(--space-medium);
|
|
padding-inline-end: calc(var(--space-medium) * 4);
|
|
border-radius: var(--button-border-radius);
|
|
transition: background-color 180ms ease;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-edit-item:hover,
|
|
.nova-enabled .clocks-widget .clocks-edit-item:focus-within {
|
|
background-color: var(--button-background-color-menu-hover, #E7E1F8);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-edit-item:focus-visible {
|
|
outline: var(--focus-outline);
|
|
outline-offset: var(--focus-outline-inset);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-edit-top-row {
|
|
display: flex;
|
|
align-items: center;
|
|
min-inline-size: 0;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-edit-city {
|
|
font-size: var(--font-size-small);
|
|
min-inline-size: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-edit-item-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
position: absolute;
|
|
inset-inline-end: var(--space-medium);
|
|
inset-block: 0;
|
|
margin-block: auto;
|
|
block-size: fit-content;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 180ms ease;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-edit-item:hover .clocks-edit-item-actions,
|
|
.nova-enabled .clocks-widget .clocks-edit-item:focus-within .clocks-edit-item-actions {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-edit-item-button::part(button) {
|
|
border: var(--border-width) solid transparent;
|
|
border-radius: var(--border-radius-circle);
|
|
block-size: var(--size-item-large);
|
|
inline-size: var(--size-item-large);
|
|
padding: var(--space-xsmall);
|
|
--button-icon-fill: var(--icon-color);
|
|
color: var(--icon-color);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-edit-item-button:hover::part(button),
|
|
.nova-enabled .clocks-widget .clocks-edit-item-button:focus-visible::part(button) {
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/no-base-design-tokens, stylelint-plugin-mozilla/use-design-tokens */
|
|
border-color: rgba(255, 255, 255, 0.9);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-edit-subtitle {
|
|
color: var(--text-color-deemphasized);
|
|
font-size: var(--font-size-small);
|
|
font-weight: var(--font-weight);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-add-actions {
|
|
margin-block-start: auto;
|
|
align-self: center;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-search-result {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-small);
|
|
padding-inline: var(--space-small);
|
|
padding-block: var(--space-xsmall);
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: var(--border-radius-small);
|
|
color: var(--text-color);
|
|
font: inherit;
|
|
text-align: start;
|
|
cursor: default;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-search-result:hover, .nova-enabled .clocks-widget .clocks-search-result:focus {
|
|
background: var(--button-background-color-hover);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-search-result:focus-visible {
|
|
outline: var(--focus-outline);
|
|
outline-offset: var(--focus-outline-offset);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-search-result-city,
|
|
.nova-enabled .clocks-widget .clocks-search-result-timezone {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-search-result-timezone {
|
|
color: var(--text-color-deemphasized);
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
min-block-size: 0;
|
|
transition: padding-block-start var(--widget-size-transition-duration) var(--widget-size-transition-easing), gap var(--widget-size-transition-duration) var(--widget-size-transition-easing);
|
|
}
|
|
.nova-enabled .clocks-widget:not(.is-panel-open):hover .clocks-list, .nova-enabled .clocks-widget:not(.is-panel-open):focus-within .clocks-list {
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens, declaration-property-value-disallowed-list */
|
|
padding-block-start: 2.25rem;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-row {
|
|
display: flex;
|
|
align-items: center;
|
|
position: relative;
|
|
color: var(--text-color);
|
|
min-inline-size: 0;
|
|
transition: gap var(--widget-size-transition-duration) var(--widget-size-transition-easing), padding var(--widget-size-transition-duration) var(--widget-size-transition-easing);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-row-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-small);
|
|
position: absolute;
|
|
inset-inline-end: 0;
|
|
inset-block: 0;
|
|
margin-block: auto;
|
|
block-size: fit-content;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 180ms ease;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-row-action-button::part(button) {
|
|
border: var(--border-width) solid var(--button-border-color);
|
|
border-radius: var(--border-radius-circle);
|
|
block-size: var(--size-item-large);
|
|
inline-size: var(--size-item-large);
|
|
padding: var(--space-small);
|
|
--button-icon-fill: var(--icon-color);
|
|
color: var(--icon-color);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-row.has-inline-actions:focus-visible {
|
|
outline: var(--focus-outline);
|
|
outline-offset: var(--focus-outline-inset);
|
|
border-radius: var(--border-radius-small);
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget .clocks-row.has-inline-actions.hides-time-on-inline-actions {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) max-content;
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget .clocks-row.has-inline-actions.hides-time-on-inline-actions .clocks-meta {
|
|
grid-column: 1;
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget .clocks-row.has-inline-actions.hides-time-on-inline-actions .clocks-time {
|
|
grid-column: 2;
|
|
grid-row: 1;
|
|
justify-self: end;
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget .clocks-row.has-inline-actions.hides-time-on-inline-actions:hover .clocks-time, .nova-enabled .clocks-widget.large-widget .clocks-row.has-inline-actions.hides-time-on-inline-actions:focus-within .clocks-time {
|
|
visibility: hidden;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-row.has-inline-actions:hover .clocks-row-actions,
|
|
.nova-enabled .clocks-widget .clocks-row.has-inline-actions:focus-within .clocks-row-actions {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget .clocks-row.has-inline-actions.hides-time-on-inline-actions:hover .clocks-time, .nova-enabled .clocks-widget.medium-widget .clocks-row.has-inline-actions.hides-time-on-inline-actions:focus-within .clocks-time {
|
|
display: none;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-small);
|
|
min-inline-size: 0;
|
|
flex: 1 1 auto;
|
|
transition: gap var(--widget-size-transition-duration) var(--widget-size-transition-easing);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-inline-size: 0;
|
|
gap: var(--space-xxsmall);
|
|
transition: gap var(--widget-size-transition-duration) var(--widget-size-transition-easing);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-label-chip {
|
|
display: inline-block;
|
|
padding-block: var(--space-xsmall);
|
|
padding-inline: var(--space-small);
|
|
border-radius: var(--border-radius-large);
|
|
font-size: var(--font-size-root);
|
|
color: var(--text-color);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
min-inline-size: 0;
|
|
max-inline-size: 100%;
|
|
/* stylelint-disable stylelint-plugin-mozilla/no-base-design-tokens, stylelint-plugin-mozilla/use-design-tokens */
|
|
/* stylelint-enable stylelint-plugin-mozilla/no-base-design-tokens, stylelint-plugin-mozilla/use-design-tokens */
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-label-chip.clocks-chip-cyan {
|
|
background-color: light-dark(var(--color-cyan-0), var(--color-cyan-80));
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-label-chip.clocks-chip-green {
|
|
background-color: light-dark(var(--color-green-0), var(--color-green-80));
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-label-chip.clocks-chip-yellow {
|
|
background-color: light-dark(var(--color-yellow-0), var(--color-yellow-80));
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-label-chip.clocks-chip-purple {
|
|
background-color: light-dark(var(--color-purple-0), var(--color-purple-80));
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-label-chip.clocks-chip-red {
|
|
background-color: light-dark(var(--color-red-0), var(--color-red-80));
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-label-chip.clocks-chip-orange {
|
|
background-color: light-dark(var(--color-orange-0), var(--color-orange-80));
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-label-chip.clocks-chip-blue {
|
|
background-color: light-dark(var(--color-blue-0), var(--color-blue-80));
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-label-chip.clocks-chip-pink {
|
|
background-color: light-dark(var(--color-pink-0), var(--color-pink-80));
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-label-chip.clocks-chip-violet {
|
|
background-color: light-dark(var(--color-violet-0), var(--color-violet-80));
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-label-chip.clocks-chip-neutral {
|
|
background-color: light-dark(var(--color-gray-0), var(--color-gray-80));
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget[data-clock-count="1"] .clocks-meta, .nova-enabled .clocks-widget.large-widget[data-clock-count="2"] .clocks-meta {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: var(--space-small);
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget[data-clock-count="1"] .clocks-label-chip, .nova-enabled .clocks-widget.large-widget[data-clock-count="2"] .clocks-label-chip {
|
|
padding-block: var(--space-small);
|
|
padding-inline: var(--space-large);
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget[data-clock-count="3"] .clocks-label-chip, .nova-enabled .clocks-widget.large-widget[data-clock-count="4"] .clocks-label-chip {
|
|
padding-block: 0.375rem;
|
|
justify-self: start;
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget[data-clock-count="3"] .clocks-meta, .nova-enabled .clocks-widget.large-widget[data-clock-count="4"] .clocks-meta {
|
|
display: grid;
|
|
grid-template-columns: 9ch minmax(9ch, 1fr);
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget.has-no-labels[data-clock-count="3"] .clocks-meta, .nova-enabled .clocks-widget.large-widget.has-no-labels[data-clock-count="4"] .clocks-meta {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-city {
|
|
font-size: var(--font-size-root);
|
|
font-weight: var(--font-weight);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
transition: font-size var(--widget-size-transition-duration) var(--widget-size-transition-easing);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-timezone {
|
|
font-size: var(--font-size-small);
|
|
color: var(--text-color-deemphasized);
|
|
transition: font-size var(--widget-size-transition-duration) var(--widget-size-transition-easing);
|
|
}
|
|
.nova-enabled .clocks-widget .clocks-time {
|
|
font-weight: var(--font-weight-semibold);
|
|
font-variant-numeric: tabular-nums;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
transition: font-size var(--widget-size-transition-duration) var(--widget-size-transition-easing);
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget.is-hero .clocks-list {
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
align-items: stretch;
|
|
gap: 0;
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget.is-hero .clocks-row {
|
|
flex: 1 1 auto;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
padding: 0;
|
|
gap: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget.is-hero .clocks-meta {
|
|
flex: 0 0 auto;
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget.is-hero .clocks-label {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: var(--space-xxsmall);
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget.is-hero .clocks-timezone {
|
|
display: initial;
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget.is-hero .clocks-time {
|
|
font-size: var(--font-size-heading-large);
|
|
align-self: flex-start;
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget .widget-toolbar {
|
|
block-size: var(--size-item-large);
|
|
padding-block-start: var(--space-xxsmall);
|
|
padding-block-end: 0;
|
|
padding-inline-end: var(--space-large);
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget .widget-toolbar moz-button::part(button) {
|
|
block-size: 1.75rem;
|
|
inline-size: 1.75rem;
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget .widget-toolbar moz-button {
|
|
/* moz-button draws its focus ring from the internal button background
|
|
using this variable, so tighten the offset at the host level. */
|
|
--focus-outline-offset: calc(var(--focus-outline-inset) - 1px);
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget .clocks-list {
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
gap: var(--space-small);
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget .clocks-row {
|
|
flex: 1 1 0;
|
|
justify-content: space-between;
|
|
gap: var(--space-small);
|
|
align-items: center;
|
|
padding: var(--space-small);
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget .clocks-label {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: var(--space-xxsmall);
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget .clocks-time {
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget[data-clock-count="3"] .clocks-timezone, .nova-enabled .clocks-widget.small-widget[data-clock-count="4"] .clocks-timezone {
|
|
display: none;
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget[data-clock-count="3"] .clocks-row {
|
|
flex: 0 0 auto;
|
|
padding-block: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget[data-clock-count="4"] .clocks-list {
|
|
gap: 0.375rem;
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget[data-clock-count="4"] .clocks-row {
|
|
flex: 0 0 auto;
|
|
padding-block: var(--space-xxsmall);
|
|
padding-inline: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget:not(.is-panel-open):hover .clocks-list, .nova-enabled .clocks-widget.small-widget:not(.is-panel-open):focus-within .clocks-list {
|
|
justify-content: flex-start;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens, declaration-property-value-disallowed-list */
|
|
padding-block-start: 1.5rem;
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget[data-clock-count="2"]:not(.is-panel-open):hover .clocks-list, .nova-enabled .clocks-widget.small-widget[data-clock-count="2"]:not(.is-panel-open):focus-within .clocks-list {
|
|
/* Two full rows with timezone text need a slightly smaller header lane. */
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens, declaration-property-value-disallowed-list */
|
|
padding-block-start: 1rem;
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget[data-clock-count="2"]:not(.is-panel-open):hover .clocks-row, .nova-enabled .clocks-widget.small-widget[data-clock-count="2"]:not(.is-panel-open):focus-within .clocks-row {
|
|
padding-block: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .clocks-widget.small-widget[data-clock-count="4"]:not(.is-panel-open):hover .clocks-list, .nova-enabled .clocks-widget.small-widget[data-clock-count="4"]:not(.is-panel-open):focus-within .clocks-list {
|
|
/* Only the menu remains at 4 clocks, so reserve less header room. */
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens, declaration-property-value-disallowed-list */
|
|
padding-block-start: 0.85rem;
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget:not(.is-panel-open):hover .clocks-list, .nova-enabled .clocks-widget.medium-widget:not(.is-panel-open):focus-within .clocks-list {
|
|
padding-block-start: var(--space-medium);
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget[data-clock-count="3"]:not(.is-panel-open):hover .clocks-list, .nova-enabled .clocks-widget.medium-widget[data-clock-count="3"]:not(.is-panel-open):focus-within .clocks-list {
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens, declaration-property-value-disallowed-list */
|
|
padding-block-start: 1.25rem;
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget[data-clock-count="3"]:not(.is-panel-open):hover .clocks-row, .nova-enabled .clocks-widget.medium-widget[data-clock-count="3"]:not(.is-panel-open):focus-within .clocks-row {
|
|
padding-block: var(--space-small);
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget .clocks-list {
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
gap: var(--space-small);
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget .clocks-row {
|
|
flex: 1 1 0;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
padding: var(--space-medium) 0.625rem;
|
|
gap: var(--space-xsmall);
|
|
position: relative;
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget .clocks-meta {
|
|
flex: 0 0 auto;
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget .clocks-row-actions {
|
|
inset-block-start: auto;
|
|
inset-block-end: var(--space-small);
|
|
inset-inline-end: var(--space-small);
|
|
margin: 0;
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget .clocks-row + .clocks-row::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset-inline-start: calc(-1 * var(--space-xsmall));
|
|
inset-block: var(--space-small);
|
|
inline-size: var(--border-width);
|
|
background: var(--border-color);
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget .clocks-time {
|
|
font-size: var(--font-size-heading-xlarge);
|
|
align-self: flex-start;
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget[data-clock-count="3"] .clocks-time {
|
|
font-size: calc(var(--font-size-heading-large) - 3px);
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget[data-clock-count="3"] .clocks-row-actions {
|
|
inset-inline-start: var(--space-small);
|
|
inset-inline-end: auto;
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget[data-clock-count="3"] .clocks-row.has-inline-actions:hover .clocks-row-actions,
|
|
.nova-enabled .clocks-widget.medium-widget[data-clock-count="3"] .clocks-row.has-inline-actions:focus-within .clocks-row-actions {
|
|
position: static;
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget[data-clock-count="4"] .clocks-time {
|
|
align-self: center;
|
|
font-size: var(--font-size-heading-small);
|
|
text-align: center;
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget[data-clock-count="4"] .clocks-list {
|
|
gap: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget[data-clock-count="4"] .clocks-row {
|
|
padding-block: var(--space-xsmall);
|
|
padding-inline: 0.375rem;
|
|
gap: var(--space-xxsmall);
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget[data-clock-count="4"] .clocks-row + .clocks-row::before {
|
|
inset-inline-start: calc(var(--space-xxsmall) * -1);
|
|
inset-block: var(--space-xxsmall);
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget[data-clock-count="4"] .clocks-row-actions {
|
|
gap: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget[data-clock-count="4"] .clocks-row-action-button::part(button) {
|
|
block-size: 1.75rem;
|
|
inline-size: 1.75rem;
|
|
padding: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget.is-hero .clocks-list {
|
|
padding-block-start: 0;
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget.is-hero .clocks-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
grid-template-rows: 1fr auto;
|
|
align-items: center;
|
|
column-gap: var(--space-small);
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget.is-hero .clocks-meta {
|
|
grid-column: 1/-1;
|
|
grid-row: 1;
|
|
align-self: start;
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget.is-hero .clocks-time {
|
|
grid-column: 1;
|
|
grid-row: 2;
|
|
}
|
|
.nova-enabled .clocks-widget.medium-widget.is-hero .clocks-row-actions {
|
|
position: static;
|
|
grid-column: 2;
|
|
grid-row: 2;
|
|
align-self: center;
|
|
justify-self: end;
|
|
inset: auto;
|
|
margin: 0;
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget .widget-toolbar {
|
|
padding-block-start: var(--space-small);
|
|
padding-inline-end: var(--space-large);
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget .widget-toolbar moz-button {
|
|
--focus-outline-offset: var(--focus-outline-inset);
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget .clocks-list {
|
|
flex-direction: column;
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget .clocks-row {
|
|
flex: 1 1 0;
|
|
justify-content: space-between;
|
|
gap: var(--space-medium);
|
|
padding-inline-start: var(--space-medium);
|
|
padding-inline-end: var(--space-small);
|
|
position: relative;
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget .clocks-row + .clocks-row::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset-inline: var(--space-small);
|
|
block-size: var(--border-width);
|
|
background: var(--border-color);
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget .clocks-row-actions {
|
|
margin-inline-end: var(--space-small);
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget[data-clock-count="2"] .clocks-list {
|
|
gap: var(--space-medium);
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget[data-clock-count="2"] .clocks-row + .clocks-row::before {
|
|
inset-block-start: calc(-1 * var(--space-small));
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget[data-clock-count="3"] .clocks-list, .nova-enabled .clocks-widget.large-widget[data-clock-count="4"] .clocks-list {
|
|
gap: var(--space-small);
|
|
padding-block-start: 0;
|
|
transition-property: gap;
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget[data-clock-count="3"] .clocks-row + .clocks-row::before, .nova-enabled .clocks-widget.large-widget[data-clock-count="4"] .clocks-row + .clocks-row::before {
|
|
inset-block-start: calc(-1 * var(--space-xsmall));
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget .clocks-time {
|
|
font-size: var(--font-size-heading-xlarge);
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget.is-hero .clocks-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
grid-template-rows: 1fr auto;
|
|
align-items: center;
|
|
column-gap: var(--space-small);
|
|
flex: 1 1 auto;
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget.is-hero .clocks-meta {
|
|
grid-column: 1/-1;
|
|
grid-row: 1;
|
|
align-self: start;
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget.is-hero .clocks-label {
|
|
gap: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget.is-hero .clocks-city {
|
|
font-size: var(--font-size-heading-xlarge);
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget.is-hero .clocks-timezone {
|
|
font-size: var(--font-size-heading-large);
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget.is-hero .clocks-time {
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list, stylelint-plugin-mozilla/use-design-tokens */
|
|
font-size: 56px;
|
|
grid-column: 1;
|
|
grid-row: 2;
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget.is-hero .clocks-row-actions {
|
|
position: static;
|
|
grid-column: 2;
|
|
grid-row: 2;
|
|
align-self: center;
|
|
justify-self: end;
|
|
inset: auto;
|
|
margin: 0;
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget.is-hero .clocks-meta:has(.clocks-label-chip) .clocks-timezone {
|
|
font-size: var(--font-size-heading-medium);
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget.is-hero:not(.is-panel-open):hover .clocks-list, .nova-enabled .clocks-widget.large-widget.is-hero:not(.is-panel-open):focus-within .clocks-list {
|
|
padding-block-start: 0;
|
|
}
|
|
.nova-enabled .clocks-widget.large-widget[data-clock-count="2"]:not(.is-panel-open):hover .clocks-list, .nova-enabled .clocks-widget.large-widget[data-clock-count="2"]:not(.is-panel-open):focus-within .clocks-list {
|
|
padding-block-start: 0;
|
|
}
|
|
|
|
.ds-card-grid .ds-card {
|
|
background: var(--newtab-background-color-secondary);
|
|
border-radius: var(--border-radius-small);
|
|
}
|
|
.ds-card-grid .ds-card:not(.placeholder) {
|
|
border-radius: var(--border-radius-medium);
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
|
}
|
|
.ds-card-grid .ds-card:not(.placeholder) img,
|
|
.ds-card-grid .ds-card:not(.placeholder) .placeholder-image {
|
|
border-radius: var(--border-radius-medium) var(--border-radius-medium) 0 0;
|
|
}
|
|
|
|
.ds-card:not(.placeholder) .img-wrapper .img {
|
|
height: 160px;
|
|
width: 100%;
|
|
}
|
|
|
|
.ds-card-grid {
|
|
display: grid;
|
|
grid-gap: var(--space-xlarge);
|
|
position: relative;
|
|
}
|
|
.ds-card-grid.ds-card-grid-compact {
|
|
grid-gap: var(--space-large);
|
|
}
|
|
.ds-card-grid.ad-sizing-variant-a, .ds-card-grid.ad-sizing-variant-b {
|
|
row-gap: var(--space-xlarge);
|
|
column-gap: var(--space-large);
|
|
}
|
|
.ds-card-grid .ds-card-link:focus {
|
|
border: 0;
|
|
outline: var(--focus-outline);
|
|
transition: none;
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.ds-column-5 .ds-card-grid, .ds-column-6 .ds-card-grid, .ds-column-7 .ds-card-grid, .ds-column-8 .ds-card-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
.ds-column-9 .ds-card-grid, .ds-column-10 .ds-card-grid, .ds-column-11 .ds-card-grid, .ds-column-12 .ds-card-grid {
|
|
grid-template-columns: repeat(1, 1fr);
|
|
}
|
|
@media (min-width: 610px) {
|
|
.ds-column-9 .ds-card-grid, .ds-column-10 .ds-card-grid, .ds-column-11 .ds-card-grid, .ds-column-12 .ds-card-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
@media (min-width: 866px) {
|
|
.ds-column-9 .ds-card-grid, .ds-column-10 .ds-card-grid, .ds-column-11 .ds-card-grid, .ds-column-12 .ds-card-grid {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
}
|
|
.ds-column-9 .ds-card-grid .title, .ds-column-10 .ds-card-grid .title, .ds-column-11 .ds-card-grid .title, .ds-column-12 .ds-card-grid .title {
|
|
font-size: var(--font-size-large);
|
|
}
|
|
.ds-column-9 .ds-card-grid .excerpt, .ds-column-10 .ds-card-grid .excerpt, .ds-column-11 .ds-card-grid .excerpt, .ds-column-12 .ds-card-grid .excerpt {
|
|
font-size: 15;
|
|
-webkit-line-clamp: 3;
|
|
line-height: 24;
|
|
}
|
|
.ds-card-grid.empty {
|
|
grid-template-columns: auto;
|
|
}
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-10 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-11 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-12 .ds-card-grid.ds-card-grid-four-card-variant {
|
|
grid-template-columns: repeat(1, 1fr);
|
|
}
|
|
@media (min-width: 610px) {
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-10 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-11 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-12 .ds-card-grid.ds-card-grid-four-card-variant {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
@media (min-width: 866px) {
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-10 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-11 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-12 .ds-card-grid.ds-card-grid-four-card-variant {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-10 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-11 .ds-card-grid.ds-card-grid-four-card-variant, .ds-column-12 .ds-card-grid.ds-card-grid-four-card-variant {
|
|
grid-template-columns: repeat(4, 1fr);
|
|
}
|
|
}
|
|
.ds-card-grid.ds-card-grid-four-card-variant .ds-card.placeholder {
|
|
min-height: 247px;
|
|
}
|
|
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .story-footer {
|
|
margin-block-start: var(--space-small);
|
|
}
|
|
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .source,
|
|
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .story-sponsored-label,
|
|
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .status-message .story-context-label {
|
|
color: var(--newtab-text-secondary-color);
|
|
-webkit-line-clamp: 2;
|
|
}
|
|
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .source,
|
|
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .story-sponsored-label {
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .status-message .story-context-label {
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .story-badge-icon {
|
|
margin-inline-end: var(--space-xxsmall);
|
|
margin-block-end: var(--space-xxsmall);
|
|
height: 14px;
|
|
width: 14px;
|
|
background-size: 14px;
|
|
}
|
|
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .title {
|
|
font-size: inherit;
|
|
}
|
|
.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .info-wrap {
|
|
flex-grow: 0;
|
|
}
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout {
|
|
grid-template-columns: repeat(1, 1fr);
|
|
}
|
|
@media (min-width: 610px) {
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
@media (min-width: 866px) {
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
}
|
|
@media (height <= 1065px) {
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .excerpt, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .excerpt, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .excerpt, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .excerpt {
|
|
display: none;
|
|
}
|
|
}
|
|
@media (max-width: 1122px) {
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card.placeholder, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card.placeholder, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card.placeholder, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card.placeholder {
|
|
min-height: 247px;
|
|
}
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-footer, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-footer, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-footer, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-footer {
|
|
margin-block-start: var(--space-small);
|
|
}
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label,
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
|
|
.ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label,
|
|
.ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
|
|
.ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label,
|
|
.ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
|
|
.ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label,
|
|
.ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label {
|
|
color: var(--newtab-text-secondary-color);
|
|
-webkit-line-clamp: 2;
|
|
}
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
|
|
.ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
|
|
.ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
|
|
.ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label {
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label {
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-badge-icon, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-badge-icon, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-badge-icon, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-badge-icon {
|
|
margin-inline-end: var(--space-xxsmall);
|
|
margin-block-end: var(--space-xxsmall);
|
|
height: 14px;
|
|
width: 14px;
|
|
background-size: 14px;
|
|
}
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .title, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .title, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .title, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .title {
|
|
font-size: inherit;
|
|
}
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .info-wrap, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .info-wrap, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .info-wrap, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .info-wrap {
|
|
flex-grow: 0;
|
|
}
|
|
}
|
|
@media (min-width: 1122px) and (height <= 964px) {
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout {
|
|
grid-template-columns: repeat(4, 1fr);
|
|
}
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card.placeholder, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card.placeholder, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card.placeholder, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card.placeholder {
|
|
min-height: 247px;
|
|
}
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-footer, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-footer, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-footer, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-footer {
|
|
margin-block-start: var(--space-small);
|
|
}
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label,
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
|
|
.ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label,
|
|
.ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
|
|
.ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label,
|
|
.ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
|
|
.ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label,
|
|
.ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label {
|
|
color: var(--newtab-text-secondary-color);
|
|
-webkit-line-clamp: 2;
|
|
}
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
|
|
.ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
|
|
.ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .source,
|
|
.ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-sponsored-label {
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .status-message .story-context-label {
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-badge-icon, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-badge-icon, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-badge-icon, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .story-badge-icon {
|
|
margin-inline-end: var(--space-xxsmall);
|
|
margin-block-end: var(--space-xxsmall);
|
|
height: 14px;
|
|
width: 14px;
|
|
background-size: 14px;
|
|
}
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .title, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .title, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .title, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .title {
|
|
font-size: inherit;
|
|
}
|
|
.ds-column-9 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .info-wrap, .ds-column-10 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .info-wrap, .ds-column-11 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .info-wrap, .ds-column-12 .ds-card-grid.ds-card-grid-hybrid-layout .ds-card .meta .info-wrap {
|
|
flex-grow: 0;
|
|
}
|
|
}
|
|
|
|
.outer-wrapper .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder),
|
|
.outer-wrapper.newtab-experience .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder) {
|
|
box-shadow: none;
|
|
background: none;
|
|
}
|
|
.outer-wrapper .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder) .ds-card-link:focus,
|
|
.outer-wrapper.newtab-experience .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder) .ds-card-link:focus {
|
|
box-shadow: none;
|
|
}
|
|
.outer-wrapper .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder) .ds-card-link:focus .img-wrapper .img img,
|
|
.outer-wrapper.newtab-experience .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder) .ds-card-link:focus .img-wrapper .img img {
|
|
border: 0;
|
|
outline: var(--focus-outline);
|
|
}
|
|
.outer-wrapper .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder) .img-wrapper .img img,
|
|
.outer-wrapper.newtab-experience .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder) .img-wrapper .img img {
|
|
border-radius: var(--border-radius-medium);
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
|
}
|
|
.outer-wrapper .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder) .meta,
|
|
.outer-wrapper.newtab-experience .ds-card-grid.ds-card-grid-hide-background .ds-card:not(.placeholder) .meta {
|
|
padding: var(--space-medium) 0 0;
|
|
}
|
|
|
|
.nova-enabled .content .ds-card-grid-container .ds-header {
|
|
grid-column: 1/-1;
|
|
}
|
|
|
|
.nova-enabled .content .ds-card-grid-container .ds-card-grid {
|
|
grid-column: 1/-1;
|
|
grid-template-columns: subgrid;
|
|
row-gap: var(--space-xlarge);
|
|
}
|
|
|
|
.ds-layout .ds-sub-header {
|
|
margin-block-start: var(--space-xlarge);
|
|
}
|
|
.ds-layout .ds-sub-header .section-title-container {
|
|
flex-direction: row;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
display: flex;
|
|
}
|
|
.ds-layout .ds-sub-header .section-sub-link {
|
|
color: var(--newtab-primary-action-background);
|
|
font-size: inherit;
|
|
cursor: pointer;
|
|
}
|
|
.ds-layout .ds-sub-header .section-sub-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
.ds-layout .ds-sub-header .section-sub-link:active {
|
|
color: var(--newtab-primary-element-active-color);
|
|
}
|
|
|
|
.has-sections-grid .ds-outer-wrapper-breakpoint-override .ds-layout-topsites {
|
|
position: relative;
|
|
}
|
|
.has-sections-grid .ds-outer-wrapper-breakpoint-override .ds-layout-topsites .top-sites-list-wrapper {
|
|
margin-inline: auto;
|
|
width: 100%;
|
|
}
|
|
.has-sections-grid .ds-outer-wrapper-breakpoint-override .ds-layout-topsites .hide-for-narrow {
|
|
display: none;
|
|
}
|
|
@media (min-width: 866px) {
|
|
.has-sections-grid .ds-outer-wrapper-breakpoint-override .ds-layout-topsites .hide-for-narrow {
|
|
display: none;
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.has-sections-grid .ds-outer-wrapper-breakpoint-override .ds-layout-topsites .hide-for-narrow {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
.has-sections-grid .ds-outer-wrapper-breakpoint-override main {
|
|
width: auto;
|
|
}
|
|
.has-sections-grid .ds-outer-wrapper-breakpoint-override main .ds-card {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.has-sections-grid .ds-outer-wrapper-breakpoint-override main .body-wrapper {
|
|
width: 346px;
|
|
margin: 0 auto;
|
|
}
|
|
@media (min-width: 610px) {
|
|
.has-sections-grid .ds-outer-wrapper-breakpoint-override main {
|
|
width: auto;
|
|
}
|
|
.has-sections-grid .ds-outer-wrapper-breakpoint-override main .body-wrapper {
|
|
width: 346px;
|
|
}
|
|
}
|
|
@media (min-width: 724px) {
|
|
.has-sections-grid .ds-outer-wrapper-breakpoint-override main {
|
|
width: auto;
|
|
}
|
|
.has-sections-grid .ds-outer-wrapper-breakpoint-override main .body-wrapper {
|
|
width: 659px;
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.has-sections-grid .ds-outer-wrapper-breakpoint-override main {
|
|
width: auto;
|
|
}
|
|
.has-sections-grid .ds-outer-wrapper-breakpoint-override main .body-wrapper {
|
|
width: 975px;
|
|
}
|
|
}
|
|
@media (min-width: 1390px) {
|
|
.has-sections-grid .ds-outer-wrapper-breakpoint-override main {
|
|
width: auto;
|
|
}
|
|
.has-sections-grid .ds-outer-wrapper-breakpoint-override main .body-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 1290px;
|
|
}
|
|
.has-sections-grid .ds-outer-wrapper-breakpoint-override main .ds-highlights .card-outer {
|
|
min-width: 216px;
|
|
}
|
|
}
|
|
|
|
.ds-section-wrapper {
|
|
padding-inline: 0;
|
|
position: relative;
|
|
}
|
|
.ds-section-wrapper .ds-section {
|
|
padding-block-end: var(--space-medium);
|
|
}
|
|
.ds-section-wrapper .ds-section:last-child {
|
|
padding-block-end: 0;
|
|
}
|
|
.ds-section-wrapper .ds-section .section-heading {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-block: var(--space-small) var(--space-medium);
|
|
}
|
|
.ds-section-wrapper .ds-section .section-title {
|
|
font-weight: var(--font-weight-heading);
|
|
font-size: var(--font-size-xlarge);
|
|
color: var(--newtab-contextual-text-primary-color);
|
|
margin-block: 0;
|
|
}
|
|
.lightWallpaper .ds-section-wrapper .ds-section .section-title {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .ds-section-wrapper .ds-section .section-title {
|
|
color-scheme: dark;
|
|
}
|
|
@media (min-width: 724px) {
|
|
.ds-section-wrapper .ds-section .section-title {
|
|
font-size: var(--font-size-xxlarge);
|
|
}
|
|
}
|
|
.ds-section-wrapper .ds-section .section-subtitle {
|
|
color: var(--newtab-contextual-text-primary-color);
|
|
margin-block: var(--space-xsmall) 0;
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.lightWallpaper .ds-section-wrapper .ds-section .section-subtitle {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .ds-section-wrapper .ds-section .section-subtitle {
|
|
color-scheme: dark;
|
|
}
|
|
.nova-enabled .ds-section-wrapper .ds-section {
|
|
display: grid;
|
|
grid-template-columns: subgrid;
|
|
grid-column: 1/-1;
|
|
}
|
|
.ds-section-wrapper .section-context-wrapper {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
column-gap: var(--space-small);
|
|
}
|
|
.lightWallpaper .ds-section-wrapper .section-context-wrapper {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .ds-section-wrapper .section-context-wrapper {
|
|
color-scheme: dark;
|
|
}
|
|
.ds-section-wrapper .section-follow {
|
|
position: relative;
|
|
}
|
|
.ds-section-wrapper .section-follow .section-button-following-text {
|
|
display: none;
|
|
}
|
|
.ds-section-wrapper .section-follow .section-button-unfollow-text {
|
|
display: none;
|
|
}
|
|
.ds-section-wrapper .section-follow.following .section-button-follow-text {
|
|
display: none;
|
|
}
|
|
.ds-section-wrapper .section-follow.following .section-button-following-text {
|
|
display: block;
|
|
}
|
|
.ds-section-wrapper .section-follow.following:hover .section-button-following-text {
|
|
display: none;
|
|
}
|
|
.ds-section-wrapper .section-follow.following:hover .section-button-unfollow-text {
|
|
display: block;
|
|
}
|
|
|
|
.nova-enabled .ds-section-wrapper .ds-section .section-heading {
|
|
grid-column: 1/-1;
|
|
}
|
|
.nova-enabled .ds-section-wrapper .ds-section .section-heading .section-title {
|
|
font-size: var(--font-size-heading-large);
|
|
}
|
|
@container content-grid (inline-size >= calc(12 * 75px + 11 * 0.75rem)) {
|
|
.nova-enabled .ds-section-wrapper .ds-section .section-heading .section-title {
|
|
font-size: var(--font-size-heading-xlarge);
|
|
}
|
|
}
|
|
|
|
.ds-section-grid.ds-card-grid {
|
|
grid-gap: var(--space-large);
|
|
grid-template-columns: repeat(1, 300px);
|
|
}
|
|
.ds-section-grid.ds-card-grid .ds-image.image-2, .ds-section-grid.ds-card-grid .ds-image.image-3, .ds-section-grid.ds-card-grid .ds-image.image-4 {
|
|
display: none;
|
|
}
|
|
.ds-section-grid.ds-card-grid .ds-image.image-1 {
|
|
display: block;
|
|
}
|
|
@media (max-width: 724px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-position-0 {
|
|
order: 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-position-1 {
|
|
order: 1;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-position-2 {
|
|
order: 2;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-position-3 {
|
|
order: 3;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-position-4 {
|
|
order: 4;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-position-5 {
|
|
order: 5;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-position-6 {
|
|
order: 6;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-position-7 {
|
|
order: 7;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-position-8 {
|
|
order: 8;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-position-9 {
|
|
order: 9;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-position-10 {
|
|
order: 10;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-position-11 {
|
|
order: 11;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-position-12 {
|
|
order: 12;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-position-13 {
|
|
order: 13;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-position-14 {
|
|
order: 14;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-position-15 {
|
|
order: 15;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-position-16 {
|
|
order: 16;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-hidden {
|
|
display: none;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-small {
|
|
grid-row: span 1;
|
|
grid-column: span 1;
|
|
padding: var(--space-large);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-small.ds-card.sections-card-ui {
|
|
padding: unset;
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-small.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-small.ds-card.sections-card-ui:not(.placeholder) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-small .meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
align-self: flex-start;
|
|
min-height: 125px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-small .meta .info-wrap {
|
|
flex-grow: 0;
|
|
max-width: 150px;
|
|
margin-block-start: var(--space-xsmall);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-small .meta .info-wrap .title {
|
|
font-size: var(--font-size-small);
|
|
margin-block: 0;
|
|
-webkit-line-clamp: 4;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-small .meta .sections-card-footer {
|
|
margin-block-start: auto;
|
|
margin-block-end: var(--space-small);
|
|
max-width: 150px;
|
|
min-width: auto;
|
|
min-height: unset;
|
|
position: initial;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-small.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-xsmall);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-small .context-menu-position-container .context-menu-button {
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-small .ds-card-link {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-grow: 0;
|
|
position: relative;
|
|
align-items: center;
|
|
gap: var(--space-medium);
|
|
padding: var(--space-xsmall) var(--space-small);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-small .img-wrapper {
|
|
width: 110px;
|
|
height: 117px;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
aspect-ratio: 5/6;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-small .img-wrapper .ds-image.img {
|
|
width: 100%;
|
|
height: 100%;
|
|
padding-block-start: 0;
|
|
min-width: 100%;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-small .img-wrapper .ds-image.img img {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: var(--border-radius-medium);
|
|
object-fit: cover;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-small .card-stp-button-hover-background {
|
|
background: transparent;
|
|
padding-block-start: unset;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium {
|
|
grid-row: span 2;
|
|
grid-column: span 1;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
align-items: initial;
|
|
gap: initial;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium.ds-card.sections-card-ui {
|
|
height: unset;
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium .img-wrapper {
|
|
width: 100%;
|
|
height: 160px;
|
|
position: relative;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
aspect-ratio: initial;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium.ds-spoc-rectangle .img-wrapper {
|
|
height: 250px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium .meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: var(--space-large) var(--space-large) var(--space-small);
|
|
min-height: unset;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium .meta .info-wrap {
|
|
flex-grow: initial;
|
|
max-width: unset;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium .meta .info-wrap .title {
|
|
-webkit-line-clamp: 3;
|
|
margin-block: 0 var(--space-small);
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium .meta .info-wrap .excerpt {
|
|
display: block;
|
|
-webkit-line-clamp: 3;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium .meta .sections-card-footer {
|
|
margin-block-start: auto;
|
|
margin-block-end: unset;
|
|
inset-inline-end: initial;
|
|
min-height: 28px;
|
|
padding-inline-end: var(--space-xxlarge);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium .meta .sections-card-footer .source-wrapper {
|
|
max-width: none;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium .meta:has(.story-footer .story-sponsored-label) .sections-card-footer {
|
|
display: none;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium .meta:has(.story-footer .story-sponsored-label) .story-footer {
|
|
margin-block: auto 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium .context-menu-position-container .context-menu-button {
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-small);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium .card-stp-button-hover-background {
|
|
background: transparent;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium:hover .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium:active .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium:focus-within .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium.active .meta .source-wrapper .source {
|
|
display: block;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium .ds-card-link {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
padding: 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-medium:not(.placeholder, .ds-spoc-rectangle) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large {
|
|
grid-row: span 2;
|
|
grid-column: span 2;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
}
|
|
@media (max-width: 724px) and (724px <= width < 1122px), (max-width: 724px) and (min-width: 1390px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui .ds-card-link {
|
|
gap: var(--space-large);
|
|
padding: var(--space-large);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui .meta {
|
|
padding: 0;
|
|
color: var(--newtab-text-primary-color);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui .meta .info-wrap .excerpt {
|
|
color: var(--text-color-deemphasized);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
max-width: 334px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui .meta .sections-card-footer .source-wrapper {
|
|
max-width: 245px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-large);
|
|
inset-block-end: var(--space-large);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui:hover .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui:active .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui:focus-visible .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui.active .meta .source-wrapper .source {
|
|
display: block;
|
|
}
|
|
}
|
|
@media (max-width: 724px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
}
|
|
@media (max-width: 724px) and (min-width: 724px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui {
|
|
align-content: flex-start;
|
|
justify-content: center;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui .ds-card-link {
|
|
flex-direction: row;
|
|
gap: var(--space-large);
|
|
padding: var(--space-large);
|
|
flex-grow: 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui .img-wrapper {
|
|
width: 190px;
|
|
height: 250px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui .ds-image.img {
|
|
aspect-ratio: 1/1;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui .ds-image.img img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui .meta {
|
|
padding: 0;
|
|
min-height: 220px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui .meta .title {
|
|
-webkit-line-clamp: 3;
|
|
font-size: var(--font-size-large);
|
|
font-weight: var(--font-weight-heading);
|
|
margin-block: 0 var(--space-small);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui .meta .excerpt {
|
|
-webkit-line-clamp: 4;
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
max-width: 380px;
|
|
margin-block-start: auto;
|
|
margin-block-end: var(--space-xxsmall);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui .card-stp-button-hover-background {
|
|
background: transparent;
|
|
inset-inline-start: 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-large.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-block-end: var(--space-large);
|
|
}
|
|
}
|
|
@media (max-width: 724px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-show-excerpt .meta .info-wrap .excerpt {
|
|
display: block;
|
|
}
|
|
}
|
|
@media (max-width: 724px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-1-hide-excerpt .meta .info-wrap .excerpt {
|
|
display: none;
|
|
}
|
|
}
|
|
@media (724px <= width < 1122px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) {
|
|
grid-template-columns: repeat(2, 300px);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-position-0 {
|
|
order: 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-position-1 {
|
|
order: 1;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-position-2 {
|
|
order: 2;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-position-3 {
|
|
order: 3;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-position-4 {
|
|
order: 4;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-position-5 {
|
|
order: 5;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-position-6 {
|
|
order: 6;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-position-7 {
|
|
order: 7;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-position-8 {
|
|
order: 8;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-position-9 {
|
|
order: 9;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-position-10 {
|
|
order: 10;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-position-11 {
|
|
order: 11;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-position-12 {
|
|
order: 12;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-position-13 {
|
|
order: 13;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-position-14 {
|
|
order: 14;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-position-15 {
|
|
order: 15;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-position-16 {
|
|
order: 16;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-hidden {
|
|
display: none;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-small {
|
|
grid-row: span 1;
|
|
grid-column: span 1;
|
|
padding: var(--space-large);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-small.ds-card.sections-card-ui {
|
|
padding: unset;
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-small.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-small.ds-card.sections-card-ui:not(.placeholder) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-small .meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
align-self: flex-start;
|
|
min-height: 125px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-small .meta .info-wrap {
|
|
flex-grow: 0;
|
|
max-width: 150px;
|
|
margin-block-start: var(--space-xsmall);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-small .meta .info-wrap .title {
|
|
font-size: var(--font-size-small);
|
|
margin-block: 0;
|
|
-webkit-line-clamp: 4;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-small .meta .sections-card-footer {
|
|
margin-block-start: auto;
|
|
margin-block-end: var(--space-small);
|
|
max-width: 150px;
|
|
min-width: auto;
|
|
min-height: unset;
|
|
position: initial;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-small.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-xsmall);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-small .context-menu-position-container .context-menu-button {
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-small .ds-card-link {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-grow: 0;
|
|
position: relative;
|
|
align-items: center;
|
|
gap: var(--space-medium);
|
|
padding: var(--space-xsmall) var(--space-small);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-small .img-wrapper {
|
|
width: 110px;
|
|
height: 117px;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
aspect-ratio: 5/6;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-small .img-wrapper .ds-image.img {
|
|
width: 100%;
|
|
height: 100%;
|
|
padding-block-start: 0;
|
|
min-width: 100%;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-small .img-wrapper .ds-image.img img {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: var(--border-radius-medium);
|
|
object-fit: cover;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-small .card-stp-button-hover-background {
|
|
background: transparent;
|
|
padding-block-start: unset;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium {
|
|
grid-row: span 2;
|
|
grid-column: span 1;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
align-items: initial;
|
|
gap: initial;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium.ds-card.sections-card-ui {
|
|
height: unset;
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium .img-wrapper {
|
|
width: 100%;
|
|
height: 160px;
|
|
position: relative;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
aspect-ratio: initial;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium.ds-spoc-rectangle .img-wrapper {
|
|
height: 250px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium .meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: var(--space-large) var(--space-large) var(--space-small);
|
|
min-height: unset;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium .meta .info-wrap {
|
|
flex-grow: initial;
|
|
max-width: unset;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium .meta .info-wrap .title {
|
|
-webkit-line-clamp: 3;
|
|
margin-block: 0 var(--space-small);
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium .meta .info-wrap .excerpt {
|
|
display: block;
|
|
-webkit-line-clamp: 3;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium .meta .sections-card-footer {
|
|
margin-block-start: auto;
|
|
margin-block-end: unset;
|
|
inset-inline-end: initial;
|
|
min-height: 28px;
|
|
padding-inline-end: var(--space-xxlarge);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium .meta .sections-card-footer .source-wrapper {
|
|
max-width: none;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium .meta:has(.story-footer .story-sponsored-label) .sections-card-footer {
|
|
display: none;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium .meta:has(.story-footer .story-sponsored-label) .story-footer {
|
|
margin-block: auto 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium .context-menu-position-container .context-menu-button {
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-small);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium .card-stp-button-hover-background {
|
|
background: transparent;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium:hover .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium:active .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium:focus-within .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium.active .meta .source-wrapper .source {
|
|
display: block;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium .ds-card-link {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
padding: 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-medium:not(.placeholder, .ds-spoc-rectangle) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large {
|
|
grid-row: span 2;
|
|
grid-column: span 2;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
}
|
|
@media (724px <= width < 1122px) and (724px <= width < 1122px), (724px <= width < 1122px) and (min-width: 1390px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui .ds-card-link {
|
|
gap: var(--space-large);
|
|
padding: var(--space-large);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui .meta {
|
|
padding: 0;
|
|
color: var(--newtab-text-primary-color);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui .meta .info-wrap .excerpt {
|
|
color: var(--text-color-deemphasized);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
max-width: 334px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui .meta .sections-card-footer .source-wrapper {
|
|
max-width: 245px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-large);
|
|
inset-block-end: var(--space-large);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui:hover .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui:active .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui:focus-visible .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui.active .meta .source-wrapper .source {
|
|
display: block;
|
|
}
|
|
}
|
|
@media (724px <= width < 1122px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
}
|
|
@media (724px <= width < 1122px) and (min-width: 724px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui {
|
|
align-content: flex-start;
|
|
justify-content: center;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui .ds-card-link {
|
|
flex-direction: row;
|
|
gap: var(--space-large);
|
|
padding: var(--space-large);
|
|
flex-grow: 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui .img-wrapper {
|
|
width: 190px;
|
|
height: 250px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui .ds-image.img {
|
|
aspect-ratio: 1/1;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui .ds-image.img img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui .meta {
|
|
padding: 0;
|
|
min-height: 220px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui .meta .title {
|
|
-webkit-line-clamp: 3;
|
|
font-size: var(--font-size-large);
|
|
font-weight: var(--font-weight-heading);
|
|
margin-block: 0 var(--space-small);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui .meta .excerpt {
|
|
-webkit-line-clamp: 4;
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
max-width: 380px;
|
|
margin-block-start: auto;
|
|
margin-block-end: var(--space-xxsmall);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui .card-stp-button-hover-background {
|
|
background: transparent;
|
|
inset-inline-start: 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-large.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-block-end: var(--space-large);
|
|
}
|
|
}
|
|
@media (724px <= width < 1122px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-show-excerpt .meta .info-wrap .excerpt {
|
|
display: block;
|
|
}
|
|
}
|
|
@media (724px <= width < 1122px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-hide-excerpt .meta .info-wrap .excerpt {
|
|
display: none;
|
|
}
|
|
}
|
|
@media (724px <= width < 1122px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .ds-image.image-1, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .ds-image.image-3, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .ds-image.image-4 {
|
|
display: none;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .ds-image.image-2 {
|
|
display: block;
|
|
}
|
|
}
|
|
@media (724px <= width < 1122px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-small .meta .info-wrap {
|
|
max-width: 150px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-2-small .meta .sections-card-footer {
|
|
max-width: 150px;
|
|
min-width: unset;
|
|
}
|
|
}
|
|
@media (1122px <= width < 1390px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) {
|
|
grid-template-columns: repeat(3, 300px);
|
|
gap: var(--space-large);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-position-0 {
|
|
order: 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-position-1 {
|
|
order: 1;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-position-2 {
|
|
order: 2;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-position-3 {
|
|
order: 3;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-position-4 {
|
|
order: 4;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-position-5 {
|
|
order: 5;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-position-6 {
|
|
order: 6;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-position-7 {
|
|
order: 7;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-position-8 {
|
|
order: 8;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-position-9 {
|
|
order: 9;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-position-10 {
|
|
order: 10;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-position-11 {
|
|
order: 11;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-position-12 {
|
|
order: 12;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-position-13 {
|
|
order: 13;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-position-14 {
|
|
order: 14;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-position-15 {
|
|
order: 15;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-position-16 {
|
|
order: 16;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-hidden {
|
|
display: none;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-small {
|
|
grid-row: span 1;
|
|
grid-column: span 1;
|
|
padding: var(--space-large);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-small.ds-card.sections-card-ui {
|
|
padding: unset;
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-small.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-small.ds-card.sections-card-ui:not(.placeholder) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-small .meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
align-self: flex-start;
|
|
min-height: 125px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-small .meta .info-wrap {
|
|
flex-grow: 0;
|
|
max-width: 150px;
|
|
margin-block-start: var(--space-xsmall);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-small .meta .info-wrap .title {
|
|
font-size: var(--font-size-small);
|
|
margin-block: 0;
|
|
-webkit-line-clamp: 4;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-small .meta .sections-card-footer {
|
|
margin-block-start: auto;
|
|
margin-block-end: var(--space-small);
|
|
max-width: 150px;
|
|
min-width: auto;
|
|
min-height: unset;
|
|
position: initial;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-small.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-xsmall);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-small .context-menu-position-container .context-menu-button {
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-small .ds-card-link {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-grow: 0;
|
|
position: relative;
|
|
align-items: center;
|
|
gap: var(--space-medium);
|
|
padding: var(--space-xsmall) var(--space-small);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-small .img-wrapper {
|
|
width: 110px;
|
|
height: 117px;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
aspect-ratio: 5/6;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-small .img-wrapper .ds-image.img {
|
|
width: 100%;
|
|
height: 100%;
|
|
padding-block-start: 0;
|
|
min-width: 100%;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-small .img-wrapper .ds-image.img img {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: var(--border-radius-medium);
|
|
object-fit: cover;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-small .card-stp-button-hover-background {
|
|
background: transparent;
|
|
padding-block-start: unset;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium {
|
|
grid-row: span 2;
|
|
grid-column: span 1;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
align-items: initial;
|
|
gap: initial;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium.ds-card.sections-card-ui {
|
|
height: unset;
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium .img-wrapper {
|
|
width: 100%;
|
|
height: 160px;
|
|
position: relative;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
aspect-ratio: initial;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium.ds-spoc-rectangle .img-wrapper {
|
|
height: 250px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium .meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: var(--space-large) var(--space-large) var(--space-small);
|
|
min-height: unset;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium .meta .info-wrap {
|
|
flex-grow: initial;
|
|
max-width: unset;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium .meta .info-wrap .title {
|
|
-webkit-line-clamp: 3;
|
|
margin-block: 0 var(--space-small);
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium .meta .info-wrap .excerpt {
|
|
display: block;
|
|
-webkit-line-clamp: 3;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium .meta .sections-card-footer {
|
|
margin-block-start: auto;
|
|
margin-block-end: unset;
|
|
inset-inline-end: initial;
|
|
min-height: 28px;
|
|
padding-inline-end: var(--space-xxlarge);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium .meta .sections-card-footer .source-wrapper {
|
|
max-width: none;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium .meta:has(.story-footer .story-sponsored-label) .sections-card-footer {
|
|
display: none;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium .meta:has(.story-footer .story-sponsored-label) .story-footer {
|
|
margin-block: auto 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium .context-menu-position-container .context-menu-button {
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-small);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium .card-stp-button-hover-background {
|
|
background: transparent;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium:hover .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium:active .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium:focus-within .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium.active .meta .source-wrapper .source {
|
|
display: block;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium .ds-card-link {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
padding: 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium:not(.placeholder, .ds-spoc-rectangle) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large {
|
|
grid-row: span 2;
|
|
grid-column: span 2;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
}
|
|
@media (1122px <= width < 1390px) and (724px <= width < 1122px), (1122px <= width < 1390px) and (min-width: 1390px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui .ds-card-link {
|
|
gap: var(--space-large);
|
|
padding: var(--space-large);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui .meta {
|
|
padding: 0;
|
|
color: var(--newtab-text-primary-color);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui .meta .info-wrap .excerpt {
|
|
color: var(--text-color-deemphasized);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
max-width: 334px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui .meta .sections-card-footer .source-wrapper {
|
|
max-width: 245px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-large);
|
|
inset-block-end: var(--space-large);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui:hover .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui:active .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui:focus-visible .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui.active .meta .source-wrapper .source {
|
|
display: block;
|
|
}
|
|
}
|
|
@media (1122px <= width < 1390px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
}
|
|
@media (1122px <= width < 1390px) and (min-width: 724px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui {
|
|
align-content: flex-start;
|
|
justify-content: center;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui .ds-card-link {
|
|
flex-direction: row;
|
|
gap: var(--space-large);
|
|
padding: var(--space-large);
|
|
flex-grow: 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui .img-wrapper {
|
|
width: 190px;
|
|
height: 250px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui .ds-image.img {
|
|
aspect-ratio: 1/1;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui .ds-image.img img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui .meta {
|
|
padding: 0;
|
|
min-height: 220px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui .meta .title {
|
|
-webkit-line-clamp: 3;
|
|
font-size: var(--font-size-large);
|
|
font-weight: var(--font-weight-heading);
|
|
margin-block: 0 var(--space-small);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui .meta .excerpt {
|
|
-webkit-line-clamp: 4;
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
max-width: 380px;
|
|
margin-block-start: auto;
|
|
margin-block-end: var(--space-xxsmall);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui .card-stp-button-hover-background {
|
|
background: transparent;
|
|
inset-inline-start: 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-large.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-block-end: var(--space-large);
|
|
}
|
|
}
|
|
@media (1122px <= width < 1390px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-show-excerpt .meta .info-wrap .excerpt {
|
|
display: block;
|
|
}
|
|
}
|
|
@media (1122px <= width < 1390px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-hide-excerpt .meta .info-wrap .excerpt {
|
|
display: none;
|
|
}
|
|
}
|
|
@media (1122px <= width < 1390px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .ds-image.image-1, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .ds-image.image-2, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .ds-image.image-4 {
|
|
display: none;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .ds-image.image-3 {
|
|
display: block;
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-small .meta .info-wrap {
|
|
max-width: 150px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-3-medium .meta .info-wrap {
|
|
max-width: unset;
|
|
}
|
|
}
|
|
@media (min-width: 1390px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) {
|
|
grid-template-columns: repeat(4, 300px);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-position-0 {
|
|
order: 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-position-1 {
|
|
order: 1;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-position-2 {
|
|
order: 2;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-position-3 {
|
|
order: 3;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-position-4 {
|
|
order: 4;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-position-5 {
|
|
order: 5;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-position-6 {
|
|
order: 6;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-position-7 {
|
|
order: 7;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-position-8 {
|
|
order: 8;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-position-9 {
|
|
order: 9;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-position-10 {
|
|
order: 10;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-position-11 {
|
|
order: 11;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-position-12 {
|
|
order: 12;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-position-13 {
|
|
order: 13;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-position-14 {
|
|
order: 14;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-position-15 {
|
|
order: 15;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-position-16 {
|
|
order: 16;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-hidden {
|
|
display: none;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-small {
|
|
grid-row: span 1;
|
|
grid-column: span 1;
|
|
padding: var(--space-large);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-small.ds-card.sections-card-ui {
|
|
padding: unset;
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-small.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-small.ds-card.sections-card-ui:not(.placeholder) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-small .meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
align-self: flex-start;
|
|
min-height: 125px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-small .meta .info-wrap {
|
|
flex-grow: 0;
|
|
max-width: 150px;
|
|
margin-block-start: var(--space-xsmall);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-small .meta .info-wrap .title {
|
|
font-size: var(--font-size-small);
|
|
margin-block: 0;
|
|
-webkit-line-clamp: 4;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-small .meta .sections-card-footer {
|
|
margin-block-start: auto;
|
|
margin-block-end: var(--space-small);
|
|
max-width: 150px;
|
|
min-width: auto;
|
|
min-height: unset;
|
|
position: initial;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-small.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-xsmall);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-small .context-menu-position-container .context-menu-button {
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-small .ds-card-link {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-grow: 0;
|
|
position: relative;
|
|
align-items: center;
|
|
gap: var(--space-medium);
|
|
padding: var(--space-xsmall) var(--space-small);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-small .img-wrapper {
|
|
width: 110px;
|
|
height: 117px;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
aspect-ratio: 5/6;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-small .img-wrapper .ds-image.img {
|
|
width: 100%;
|
|
height: 100%;
|
|
padding-block-start: 0;
|
|
min-width: 100%;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-small .img-wrapper .ds-image.img img {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: var(--border-radius-medium);
|
|
object-fit: cover;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-small .card-stp-button-hover-background {
|
|
background: transparent;
|
|
padding-block-start: unset;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium {
|
|
grid-row: span 2;
|
|
grid-column: span 1;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
align-items: initial;
|
|
gap: initial;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium.ds-card.sections-card-ui {
|
|
height: unset;
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium .img-wrapper {
|
|
width: 100%;
|
|
height: 160px;
|
|
position: relative;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
aspect-ratio: initial;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium.ds-spoc-rectangle .img-wrapper {
|
|
height: 250px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium .meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: var(--space-large) var(--space-large) var(--space-small);
|
|
min-height: unset;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium .meta .info-wrap {
|
|
flex-grow: initial;
|
|
max-width: unset;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium .meta .info-wrap .title {
|
|
-webkit-line-clamp: 3;
|
|
margin-block: 0 var(--space-small);
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium .meta .info-wrap .excerpt {
|
|
display: block;
|
|
-webkit-line-clamp: 3;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium .meta .sections-card-footer {
|
|
margin-block-start: auto;
|
|
margin-block-end: unset;
|
|
inset-inline-end: initial;
|
|
min-height: 28px;
|
|
padding-inline-end: var(--space-xxlarge);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium .meta .sections-card-footer .source-wrapper {
|
|
max-width: none;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium .meta:has(.story-footer .story-sponsored-label) .sections-card-footer {
|
|
display: none;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium .meta:has(.story-footer .story-sponsored-label) .story-footer {
|
|
margin-block: auto 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium .context-menu-position-container .context-menu-button {
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-small);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium .card-stp-button-hover-background {
|
|
background: transparent;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium:hover .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium:active .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium:focus-within .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium.active .meta .source-wrapper .source {
|
|
display: block;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium .ds-card-link {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
padding: 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-medium:not(.placeholder, .ds-spoc-rectangle) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large {
|
|
grid-row: span 2;
|
|
grid-column: span 2;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
}
|
|
@media (min-width: 1390px) and (724px <= width < 1122px), (min-width: 1390px) and (min-width: 1390px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui .ds-card-link {
|
|
gap: var(--space-large);
|
|
padding: var(--space-large);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui .meta {
|
|
padding: 0;
|
|
color: var(--newtab-text-primary-color);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui .meta .info-wrap .excerpt {
|
|
color: var(--text-color-deemphasized);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
max-width: 334px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui .meta .sections-card-footer .source-wrapper {
|
|
max-width: 245px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-large);
|
|
inset-block-end: var(--space-large);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui:hover .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui:active .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui:focus-visible .meta .source-wrapper .source, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui.active .meta .source-wrapper .source {
|
|
display: block;
|
|
}
|
|
}
|
|
@media (min-width: 1390px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
}
|
|
@media (min-width: 1390px) and (min-width: 724px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui {
|
|
align-content: flex-start;
|
|
justify-content: center;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui .ds-card-link {
|
|
flex-direction: row;
|
|
gap: var(--space-large);
|
|
padding: var(--space-large);
|
|
flex-grow: 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui .img-wrapper {
|
|
width: 190px;
|
|
height: 250px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui .ds-image.img {
|
|
aspect-ratio: 1/1;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui .ds-image.img img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui .meta {
|
|
padding: 0;
|
|
min-height: 220px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui .meta .title {
|
|
-webkit-line-clamp: 3;
|
|
font-size: var(--font-size-large);
|
|
font-weight: var(--font-weight-heading);
|
|
margin-block: 0 var(--space-small);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui .meta .excerpt {
|
|
-webkit-line-clamp: 4;
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
max-width: 380px;
|
|
margin-block-start: auto;
|
|
margin-block-end: var(--space-xxsmall);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui .card-stp-button-hover-background {
|
|
background: transparent;
|
|
inset-inline-start: 0;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-large.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-block-end: var(--space-large);
|
|
}
|
|
}
|
|
@media (min-width: 1390px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-show-excerpt .meta .info-wrap .excerpt {
|
|
display: block;
|
|
}
|
|
}
|
|
@media (min-width: 1390px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-hide-excerpt .meta .info-wrap .excerpt {
|
|
display: none;
|
|
}
|
|
}
|
|
@media (min-width: 1390px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .ds-image.image-1, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .ds-image.image-2, .ds-section-grid.ds-card-grid:not(.nova-enabled *) .ds-image.image-3 {
|
|
display: none;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .ds-image.image-4 {
|
|
display: block;
|
|
}
|
|
}
|
|
@media (min-width: 1390px) {
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-small .meta .info-wrap {
|
|
max-width: 150px;
|
|
}
|
|
.ds-section-grid.ds-card-grid:not(.nova-enabled *) .col-4-small .meta .sections-card-footer {
|
|
max-width: 150px;
|
|
min-width: unset;
|
|
}
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid {
|
|
grid-template-columns: subgrid;
|
|
grid-column: 1/-1;
|
|
row-gap: var(--space-medium);
|
|
margin-block-end: var(--space-xlarge);
|
|
}
|
|
@container content-grid (inline-size < calc(8 * 75px + 7 * 0.75rem)) {
|
|
.nova-enabled .ds-section-grid.ds-card-grid {
|
|
--sections-col-count: 1;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-position-0 {
|
|
order: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-position-1 {
|
|
order: 1;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-position-2 {
|
|
order: 2;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-position-3 {
|
|
order: 3;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-position-4 {
|
|
order: 4;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-position-5 {
|
|
order: 5;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-position-6 {
|
|
order: 6;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-position-7 {
|
|
order: 7;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-position-8 {
|
|
order: 8;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-position-9 {
|
|
order: 9;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-position-10 {
|
|
order: 10;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-position-11 {
|
|
order: 11;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-position-12 {
|
|
order: 12;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-position-13 {
|
|
order: 13;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-position-14 {
|
|
order: 14;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-position-15 {
|
|
order: 15;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-position-16 {
|
|
order: 16;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-hidden {
|
|
display: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small {
|
|
grid-row: span 1;
|
|
grid-column: span 1;
|
|
padding: var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui {
|
|
padding: unset;
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui:not(.placeholder) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small .meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
align-self: flex-start;
|
|
min-height: 125px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small .meta .info-wrap {
|
|
flex-grow: 0;
|
|
max-width: 150px;
|
|
margin-block-start: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small .meta .info-wrap .title {
|
|
font-size: var(--font-size-small);
|
|
margin-block: 0;
|
|
-webkit-line-clamp: 4;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small .meta .sections-card-footer {
|
|
margin-block-start: auto;
|
|
margin-block-end: var(--space-small);
|
|
max-width: 150px;
|
|
min-width: auto;
|
|
min-height: unset;
|
|
position: initial;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small .context-menu-position-container .context-menu-button {
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small .ds-card-link {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-grow: 0;
|
|
position: relative;
|
|
align-items: center;
|
|
gap: var(--space-medium);
|
|
padding: var(--space-xsmall) var(--space-small);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small .img-wrapper {
|
|
width: 110px;
|
|
height: 117px;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
aspect-ratio: 5/6;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small .img-wrapper .ds-image.img {
|
|
width: 100%;
|
|
height: 100%;
|
|
padding-block-start: 0;
|
|
min-width: 100%;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small .img-wrapper .ds-image.img img {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: var(--border-radius-medium);
|
|
object-fit: cover;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small .card-stp-button-hover-background {
|
|
background: transparent;
|
|
padding-block-start: unset;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium {
|
|
grid-row: span 2;
|
|
grid-column: span 1;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
align-items: initial;
|
|
gap: initial;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.ds-card.sections-card-ui {
|
|
height: unset;
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium .img-wrapper {
|
|
width: 100%;
|
|
height: 160px;
|
|
position: relative;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
aspect-ratio: initial;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.ds-spoc-rectangle .img-wrapper {
|
|
height: 250px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium .meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: var(--space-large) var(--space-large) var(--space-small);
|
|
min-height: unset;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium .meta .info-wrap {
|
|
flex-grow: initial;
|
|
max-width: unset;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium .meta .info-wrap .title {
|
|
-webkit-line-clamp: 3;
|
|
margin-block: 0 var(--space-small);
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium .meta .info-wrap .excerpt {
|
|
display: block;
|
|
-webkit-line-clamp: 3;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium .meta .sections-card-footer {
|
|
margin-block-start: auto;
|
|
margin-block-end: unset;
|
|
inset-inline-end: initial;
|
|
min-height: 28px;
|
|
padding-inline-end: var(--space-xxlarge);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium .meta .sections-card-footer .source-wrapper {
|
|
max-width: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium .meta:has(.story-footer .story-sponsored-label) .sections-card-footer {
|
|
display: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium .meta:has(.story-footer .story-sponsored-label) .story-footer {
|
|
margin-block: auto 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium .context-menu-position-container .context-menu-button {
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-small);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium .card-stp-button-hover-background {
|
|
background: transparent;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium:hover .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-1-medium:active .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-1-medium:focus-within .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.active .meta .source-wrapper .source {
|
|
display: block;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium .ds-card-link {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
padding: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium:not(.placeholder, .ds-spoc-rectangle) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large {
|
|
grid-row: span 2;
|
|
grid-column: span 1;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
align-items: initial;
|
|
gap: initial;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui {
|
|
height: unset;
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large .img-wrapper {
|
|
width: 100%;
|
|
height: 160px;
|
|
position: relative;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
aspect-ratio: initial;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large.ds-spoc-rectangle .img-wrapper {
|
|
height: 250px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large .meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: var(--space-large) var(--space-large) var(--space-small);
|
|
min-height: unset;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large .meta .info-wrap {
|
|
flex-grow: initial;
|
|
max-width: unset;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large .meta .info-wrap .title {
|
|
-webkit-line-clamp: 3;
|
|
margin-block: 0 var(--space-small);
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large .meta .info-wrap .excerpt {
|
|
display: block;
|
|
-webkit-line-clamp: 3;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large .meta .sections-card-footer {
|
|
margin-block-start: auto;
|
|
margin-block-end: unset;
|
|
inset-inline-end: initial;
|
|
min-height: 28px;
|
|
padding-inline-end: var(--space-xxlarge);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large .meta .sections-card-footer .source-wrapper {
|
|
max-width: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large .meta:has(.story-footer .story-sponsored-label) .sections-card-footer {
|
|
display: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large .meta:has(.story-footer .story-sponsored-label) .story-footer {
|
|
margin-block: auto 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large .context-menu-position-container .context-menu-button {
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-small);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large .card-stp-button-hover-background {
|
|
background: transparent;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large:hover .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-1-large:active .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-1-large:focus-within .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-1-large.active .meta .source-wrapper .source {
|
|
display: block;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large .ds-card-link {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
padding: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large:not(.placeholder, .ds-spoc-rectangle) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large {
|
|
grid-column: span 1;
|
|
}
|
|
}
|
|
@container content-grid ((inline-size >= calc(8 * 75px + 7 * 0.75rem)) and (inline-size < calc(12 * 75px + 11 * 0.75rem))) {
|
|
.nova-enabled .ds-section-grid.ds-card-grid {
|
|
--sections-col-count: 2;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-position-0 {
|
|
order: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-position-1 {
|
|
order: 1;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-position-2 {
|
|
order: 2;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-position-3 {
|
|
order: 3;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-position-4 {
|
|
order: 4;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-position-5 {
|
|
order: 5;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-position-6 {
|
|
order: 6;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-position-7 {
|
|
order: 7;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-position-8 {
|
|
order: 8;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-position-9 {
|
|
order: 9;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-position-10 {
|
|
order: 10;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-position-11 {
|
|
order: 11;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-position-12 {
|
|
order: 12;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-position-13 {
|
|
order: 13;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-position-14 {
|
|
order: 14;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-position-15 {
|
|
order: 15;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-position-16 {
|
|
order: 16;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-hidden {
|
|
display: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small {
|
|
grid-row: span 1;
|
|
grid-column: span 1;
|
|
padding: var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui {
|
|
padding: unset;
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui:not(.placeholder) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small .meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
align-self: flex-start;
|
|
min-height: 125px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small .meta .info-wrap {
|
|
flex-grow: 0;
|
|
max-width: 150px;
|
|
margin-block-start: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small .meta .info-wrap .title {
|
|
font-size: var(--font-size-small);
|
|
margin-block: 0;
|
|
-webkit-line-clamp: 4;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small .meta .sections-card-footer {
|
|
margin-block-start: auto;
|
|
margin-block-end: var(--space-small);
|
|
max-width: 150px;
|
|
min-width: auto;
|
|
min-height: unset;
|
|
position: initial;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small .context-menu-position-container .context-menu-button {
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small .ds-card-link {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-grow: 0;
|
|
position: relative;
|
|
align-items: center;
|
|
gap: var(--space-medium);
|
|
padding: var(--space-xsmall) var(--space-small);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small .img-wrapper {
|
|
width: 110px;
|
|
height: 117px;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
aspect-ratio: 5/6;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small .img-wrapper .ds-image.img {
|
|
width: 100%;
|
|
height: 100%;
|
|
padding-block-start: 0;
|
|
min-width: 100%;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small .img-wrapper .ds-image.img img {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: var(--border-radius-medium);
|
|
object-fit: cover;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small .card-stp-button-hover-background {
|
|
background: transparent;
|
|
padding-block-start: unset;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium {
|
|
grid-row: span 2;
|
|
grid-column: span 1;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
align-items: initial;
|
|
gap: initial;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.ds-card.sections-card-ui {
|
|
height: unset;
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium .img-wrapper {
|
|
width: 100%;
|
|
height: 160px;
|
|
position: relative;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
aspect-ratio: initial;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.ds-spoc-rectangle .img-wrapper {
|
|
height: 250px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium .meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: var(--space-large) var(--space-large) var(--space-small);
|
|
min-height: unset;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium .meta .info-wrap {
|
|
flex-grow: initial;
|
|
max-width: unset;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium .meta .info-wrap .title {
|
|
-webkit-line-clamp: 3;
|
|
margin-block: 0 var(--space-small);
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium .meta .info-wrap .excerpt {
|
|
display: block;
|
|
-webkit-line-clamp: 3;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium .meta .sections-card-footer {
|
|
margin-block-start: auto;
|
|
margin-block-end: unset;
|
|
inset-inline-end: initial;
|
|
min-height: 28px;
|
|
padding-inline-end: var(--space-xxlarge);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium .meta .sections-card-footer .source-wrapper {
|
|
max-width: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium .meta:has(.story-footer .story-sponsored-label) .sections-card-footer {
|
|
display: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium .meta:has(.story-footer .story-sponsored-label) .story-footer {
|
|
margin-block: auto 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium .context-menu-position-container .context-menu-button {
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-small);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium .card-stp-button-hover-background {
|
|
background: transparent;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium:hover .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-2-medium:active .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-2-medium:focus-within .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.active .meta .source-wrapper .source {
|
|
display: block;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium .ds-card-link {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
padding: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium:not(.placeholder, .ds-spoc-rectangle) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large {
|
|
grid-row: span 2;
|
|
grid-column: span 2;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
@media (724px <= width < 1122px), (min-width: 1390px) {
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .ds-card-link {
|
|
gap: var(--space-large);
|
|
padding: var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .meta {
|
|
padding: 0;
|
|
color: var(--newtab-text-primary-color);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .meta .info-wrap .excerpt {
|
|
color: var(--text-color-deemphasized);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
max-width: 334px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .meta .sections-card-footer .source-wrapper {
|
|
max-width: 245px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-large);
|
|
inset-block-end: var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui:hover .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui:active .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui:focus-visible .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui.active .meta .source-wrapper .source {
|
|
display: block;
|
|
}
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
@media (min-width: 724px) {
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui {
|
|
align-content: flex-start;
|
|
justify-content: center;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .ds-card-link {
|
|
flex-direction: row;
|
|
gap: var(--space-large);
|
|
padding: var(--space-large);
|
|
flex-grow: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .img-wrapper {
|
|
width: 190px;
|
|
height: 250px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .ds-image.img {
|
|
aspect-ratio: 1/1;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .ds-image.img img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .meta {
|
|
padding: 0;
|
|
min-height: 220px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .meta .title {
|
|
-webkit-line-clamp: 3;
|
|
font-size: var(--font-size-large);
|
|
font-weight: var(--font-weight-heading);
|
|
margin-block: 0 var(--space-small);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .meta .excerpt {
|
|
-webkit-line-clamp: 4;
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
max-width: 380px;
|
|
margin-block-start: auto;
|
|
margin-block-end: var(--space-xxsmall);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .card-stp-button-hover-background {
|
|
background: transparent;
|
|
inset-inline-start: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-block-end: var(--space-large);
|
|
}
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium {
|
|
grid-column: span 1;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large {
|
|
grid-column: span 2;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .ds-image.image-1, .nova-enabled .ds-section-grid.ds-card-grid .ds-image.image-3, .nova-enabled .ds-section-grid.ds-card-grid .ds-image.image-4 {
|
|
display: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .ds-image.image-2 {
|
|
display: block;
|
|
}
|
|
}
|
|
@container content-grid ((inline-size >= calc(12 * 75px + 11 * 0.75rem)) and (inline-size < calc(16 * 75px + 15 * 0.75rem))) {
|
|
.nova-enabled .ds-section-grid.ds-card-grid {
|
|
--sections-col-count: 3;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-position-0 {
|
|
order: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-position-1 {
|
|
order: 1;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-position-2 {
|
|
order: 2;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-position-3 {
|
|
order: 3;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-position-4 {
|
|
order: 4;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-position-5 {
|
|
order: 5;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-position-6 {
|
|
order: 6;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-position-7 {
|
|
order: 7;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-position-8 {
|
|
order: 8;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-position-9 {
|
|
order: 9;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-position-10 {
|
|
order: 10;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-position-11 {
|
|
order: 11;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-position-12 {
|
|
order: 12;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-position-13 {
|
|
order: 13;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-position-14 {
|
|
order: 14;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-position-15 {
|
|
order: 15;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-position-16 {
|
|
order: 16;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-hidden {
|
|
display: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small {
|
|
grid-row: span 1;
|
|
grid-column: span 1;
|
|
padding: var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui {
|
|
padding: unset;
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui:not(.placeholder) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small .meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
align-self: flex-start;
|
|
min-height: 125px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small .meta .info-wrap {
|
|
flex-grow: 0;
|
|
max-width: 150px;
|
|
margin-block-start: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small .meta .info-wrap .title {
|
|
font-size: var(--font-size-small);
|
|
margin-block: 0;
|
|
-webkit-line-clamp: 4;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small .meta .sections-card-footer {
|
|
margin-block-start: auto;
|
|
margin-block-end: var(--space-small);
|
|
max-width: 150px;
|
|
min-width: auto;
|
|
min-height: unset;
|
|
position: initial;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small .context-menu-position-container .context-menu-button {
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small .ds-card-link {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-grow: 0;
|
|
position: relative;
|
|
align-items: center;
|
|
gap: var(--space-medium);
|
|
padding: var(--space-xsmall) var(--space-small);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small .img-wrapper {
|
|
width: 110px;
|
|
height: 117px;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
aspect-ratio: 5/6;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small .img-wrapper .ds-image.img {
|
|
width: 100%;
|
|
height: 100%;
|
|
padding-block-start: 0;
|
|
min-width: 100%;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small .img-wrapper .ds-image.img img {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: var(--border-radius-medium);
|
|
object-fit: cover;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small .card-stp-button-hover-background {
|
|
background: transparent;
|
|
padding-block-start: unset;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium {
|
|
grid-row: span 2;
|
|
grid-column: span 1;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
align-items: initial;
|
|
gap: initial;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.ds-card.sections-card-ui {
|
|
height: unset;
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium .img-wrapper {
|
|
width: 100%;
|
|
height: 160px;
|
|
position: relative;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
aspect-ratio: initial;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.ds-spoc-rectangle .img-wrapper {
|
|
height: 250px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium .meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: var(--space-large) var(--space-large) var(--space-small);
|
|
min-height: unset;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium .meta .info-wrap {
|
|
flex-grow: initial;
|
|
max-width: unset;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium .meta .info-wrap .title {
|
|
-webkit-line-clamp: 3;
|
|
margin-block: 0 var(--space-small);
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium .meta .info-wrap .excerpt {
|
|
display: block;
|
|
-webkit-line-clamp: 3;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium .meta .sections-card-footer {
|
|
margin-block-start: auto;
|
|
margin-block-end: unset;
|
|
inset-inline-end: initial;
|
|
min-height: 28px;
|
|
padding-inline-end: var(--space-xxlarge);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium .meta .sections-card-footer .source-wrapper {
|
|
max-width: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium .meta:has(.story-footer .story-sponsored-label) .sections-card-footer {
|
|
display: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium .meta:has(.story-footer .story-sponsored-label) .story-footer {
|
|
margin-block: auto 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium .context-menu-position-container .context-menu-button {
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-small);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium .card-stp-button-hover-background {
|
|
background: transparent;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium:hover .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-3-medium:active .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-3-medium:focus-within .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.active .meta .source-wrapper .source {
|
|
display: block;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium .ds-card-link {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
padding: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium:not(.placeholder, .ds-spoc-rectangle) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large {
|
|
grid-row: span 2;
|
|
grid-column: span 2;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
@media (724px <= width < 1122px), (min-width: 1390px) {
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .ds-card-link {
|
|
gap: var(--space-large);
|
|
padding: var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .meta {
|
|
padding: 0;
|
|
color: var(--newtab-text-primary-color);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .meta .info-wrap .excerpt {
|
|
color: var(--text-color-deemphasized);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
max-width: 334px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .meta .sections-card-footer .source-wrapper {
|
|
max-width: 245px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-large);
|
|
inset-block-end: var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui:hover .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui:active .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui:focus-visible .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui.active .meta .source-wrapper .source {
|
|
display: block;
|
|
}
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
@media (min-width: 724px) {
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui {
|
|
align-content: flex-start;
|
|
justify-content: center;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .ds-card-link {
|
|
flex-direction: row;
|
|
gap: var(--space-large);
|
|
padding: var(--space-large);
|
|
flex-grow: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .img-wrapper {
|
|
width: 190px;
|
|
height: 250px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .ds-image.img {
|
|
aspect-ratio: 1/1;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .ds-image.img img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .meta {
|
|
padding: 0;
|
|
min-height: 220px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .meta .title {
|
|
-webkit-line-clamp: 3;
|
|
font-size: var(--font-size-large);
|
|
font-weight: var(--font-weight-heading);
|
|
margin-block: 0 var(--space-small);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .meta .excerpt {
|
|
-webkit-line-clamp: 4;
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
max-width: 380px;
|
|
margin-block-start: auto;
|
|
margin-block-end: var(--space-xxsmall);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .card-stp-button-hover-background {
|
|
background: transparent;
|
|
inset-inline-start: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-block-end: var(--space-large);
|
|
}
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium {
|
|
grid-column: span 1;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large {
|
|
grid-column: span 2;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .ds-image.image-1, .nova-enabled .ds-section-grid.ds-card-grid .ds-image.image-2, .nova-enabled .ds-section-grid.ds-card-grid .ds-image.image-4 {
|
|
display: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .ds-image.image-3 {
|
|
display: block;
|
|
}
|
|
}
|
|
@container content-grid (inline-size >= calc(16 * 75px + 15 * 0.75rem)) {
|
|
.nova-enabled .ds-section-grid.ds-card-grid {
|
|
--sections-col-count: 4;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-position-0 {
|
|
order: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-position-1 {
|
|
order: 1;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-position-2 {
|
|
order: 2;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-position-3 {
|
|
order: 3;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-position-4 {
|
|
order: 4;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-position-5 {
|
|
order: 5;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-position-6 {
|
|
order: 6;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-position-7 {
|
|
order: 7;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-position-8 {
|
|
order: 8;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-position-9 {
|
|
order: 9;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-position-10 {
|
|
order: 10;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-position-11 {
|
|
order: 11;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-position-12 {
|
|
order: 12;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-position-13 {
|
|
order: 13;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-position-14 {
|
|
order: 14;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-position-15 {
|
|
order: 15;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-position-16 {
|
|
order: 16;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-hidden {
|
|
display: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small {
|
|
grid-row: span 1;
|
|
grid-column: span 1;
|
|
padding: var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui {
|
|
padding: unset;
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui:not(.placeholder) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small .meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
align-self: flex-start;
|
|
min-height: 125px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small .meta .info-wrap {
|
|
flex-grow: 0;
|
|
max-width: 150px;
|
|
margin-block-start: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small .meta .info-wrap .title {
|
|
font-size: var(--font-size-small);
|
|
margin-block: 0;
|
|
-webkit-line-clamp: 4;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small .meta .sections-card-footer {
|
|
margin-block-start: auto;
|
|
margin-block-end: var(--space-small);
|
|
max-width: 150px;
|
|
min-width: auto;
|
|
min-height: unset;
|
|
position: initial;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small .context-menu-position-container .context-menu-button {
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small .ds-card-link {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-grow: 0;
|
|
position: relative;
|
|
align-items: center;
|
|
gap: var(--space-medium);
|
|
padding: var(--space-xsmall) var(--space-small);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small .img-wrapper {
|
|
width: 110px;
|
|
height: 117px;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
aspect-ratio: 5/6;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small .img-wrapper .ds-image.img {
|
|
width: 100%;
|
|
height: 100%;
|
|
padding-block-start: 0;
|
|
min-width: 100%;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small .img-wrapper .ds-image.img img {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: var(--border-radius-medium);
|
|
object-fit: cover;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small .card-stp-button-hover-background {
|
|
background: transparent;
|
|
padding-block-start: unset;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium {
|
|
grid-row: span 2;
|
|
grid-column: span 1;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
align-items: initial;
|
|
gap: initial;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.ds-card.sections-card-ui {
|
|
height: unset;
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium .img-wrapper {
|
|
width: 100%;
|
|
height: 160px;
|
|
position: relative;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
aspect-ratio: initial;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.ds-spoc-rectangle .img-wrapper {
|
|
height: 250px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium .meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: var(--space-large) var(--space-large) var(--space-small);
|
|
min-height: unset;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium .meta .info-wrap {
|
|
flex-grow: initial;
|
|
max-width: unset;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium .meta .info-wrap .title {
|
|
-webkit-line-clamp: 3;
|
|
margin-block: 0 var(--space-small);
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium .meta .info-wrap .excerpt {
|
|
display: block;
|
|
-webkit-line-clamp: 3;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium .meta .sections-card-footer {
|
|
margin-block-start: auto;
|
|
margin-block-end: unset;
|
|
inset-inline-end: initial;
|
|
min-height: 28px;
|
|
padding-inline-end: var(--space-xxlarge);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium .meta .sections-card-footer .source-wrapper {
|
|
max-width: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium .meta:has(.story-footer .story-sponsored-label) .sections-card-footer {
|
|
display: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium .meta:has(.story-footer .story-sponsored-label) .story-footer {
|
|
margin-block: auto 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium .context-menu-position-container .context-menu-button {
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-small);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium .card-stp-button-hover-background {
|
|
background: transparent;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium:hover .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-4-medium:active .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-4-medium:focus-within .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.active .meta .source-wrapper .source {
|
|
display: block;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium .ds-card-link {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
padding: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium:not(.placeholder, .ds-spoc-rectangle) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large {
|
|
grid-row: span 2;
|
|
grid-column: span 2;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
@media (724px <= width < 1122px), (min-width: 1390px) {
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .ds-card-link {
|
|
gap: var(--space-large);
|
|
padding: var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .meta {
|
|
padding: 0;
|
|
color: var(--newtab-text-primary-color);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .meta .info-wrap .excerpt {
|
|
color: var(--text-color-deemphasized);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
max-width: 334px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .meta .sections-card-footer .source-wrapper {
|
|
max-width: 245px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-large);
|
|
inset-block-end: var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui:hover .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui:active .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui:focus-visible .meta .source-wrapper .source, .nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui.active .meta .source-wrapper .source {
|
|
display: block;
|
|
}
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
@media (min-width: 724px) {
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui {
|
|
align-content: flex-start;
|
|
justify-content: center;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .ds-card-link {
|
|
flex-direction: row;
|
|
gap: var(--space-large);
|
|
padding: var(--space-large);
|
|
flex-grow: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .img-wrapper {
|
|
width: 190px;
|
|
height: 250px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .ds-image.img {
|
|
aspect-ratio: 1/1;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .ds-image.img img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .meta {
|
|
padding: 0;
|
|
min-height: 220px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .meta .title {
|
|
-webkit-line-clamp: 3;
|
|
font-size: var(--font-size-large);
|
|
font-weight: var(--font-weight-heading);
|
|
margin-block: 0 var(--space-small);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .meta .excerpt {
|
|
-webkit-line-clamp: 4;
|
|
font-size: var(--font-size-root);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
max-width: 380px;
|
|
margin-block-start: auto;
|
|
margin-block-end: var(--space-xxsmall);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .card-stp-button-hover-background {
|
|
background: transparent;
|
|
inset-inline-start: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-block-end: var(--space-large);
|
|
}
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium {
|
|
grid-column: span 1;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large {
|
|
grid-column: span 2;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .ds-image.image-1, .nova-enabled .ds-section-grid.ds-card-grid .ds-image.image-2, .nova-enabled .ds-section-grid.ds-card-grid .ds-image.image-3 {
|
|
display: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .ds-image.image-4 {
|
|
display: block;
|
|
}
|
|
}
|
|
.nova-enabled .ds-section:last-child .ds-section-grid.ds-card-grid {
|
|
margin-block-end: 0;
|
|
}
|
|
|
|
/* stylelint-disable max-nesting-depth */
|
|
.ds-highlights .section .section-list {
|
|
grid-gap: var(--gridRowGap);
|
|
}
|
|
.ds-highlights .section .section-list:not(.nova-enabled *) {
|
|
grid-template-columns: repeat(1, 1fr);
|
|
}
|
|
@media (min-width: 610px) {
|
|
.ds-highlights .section .section-list:not(.nova-enabled *) {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
@media (min-width: 866px) {
|
|
.ds-highlights .section .section-list:not(.nova-enabled *) {
|
|
grid-template-columns: repeat(4, 1fr);
|
|
}
|
|
}
|
|
.ds-highlights .section .section-list .card-outer {
|
|
height: 175px;
|
|
}
|
|
.ds-highlights .section .section-list .card-outer .card-host-name {
|
|
font-size: var(--font-size-small);
|
|
line-height: 20px;
|
|
padding-block-end: 0;
|
|
margin-block-end: var(--space-xxsmall);
|
|
text-transform: unset;
|
|
}
|
|
.ds-highlights .section .section-list .card-outer .card-title {
|
|
font-size: var(--font-size-small);
|
|
font-weight: var(--font-weight-heading);
|
|
line-height: 20px;
|
|
max-height: 20px;
|
|
}
|
|
.ds-highlights .section .section-list .card-outer a {
|
|
text-decoration: none;
|
|
}
|
|
.ds-highlights .section .section-list .card-outer .context-menu-button {
|
|
background-color: var(--newtab-button-static-background);
|
|
}
|
|
.ds-highlights .section .section-list .card-outer .context-menu-button:hover {
|
|
background-color: var(--newtab-button-static-hover-background);
|
|
}
|
|
.ds-highlights .section .section-list .card-outer .context-menu-button:hover:active {
|
|
background-color: var(--newtab-button-static-active-background);
|
|
}
|
|
.ds-highlights .section .section-list .card-outer .context-menu-button:focus-visible {
|
|
background-color: var(--newtab-button-static-focus-background);
|
|
}
|
|
.ds-highlights .hide-for-narrow {
|
|
display: block;
|
|
}
|
|
.nova-enabled .ds-highlights {
|
|
display: grid;
|
|
grid-column: 1/-1;
|
|
grid-template-columns: repeat(2, var(--col-span-2));
|
|
gap: var(--space-medium);
|
|
justify-content: center;
|
|
}
|
|
@container content-grid (inline-size >= calc(8 * 75px + 7 * 0.75rem)) {
|
|
.nova-enabled .ds-highlights {
|
|
grid-template-columns: repeat(4, var(--col-span-2));
|
|
}
|
|
}
|
|
@container content-grid (inline-size >= calc(12 * 75px + 11 * 0.75rem)) {
|
|
.nova-enabled .ds-highlights {
|
|
grid-template-columns: repeat(4, var(--col-span-3));
|
|
}
|
|
}
|
|
.nova-enabled .ds-highlights .ds-highlights-title {
|
|
grid-column: 1/-1;
|
|
font-weight: var(--font-weight-heading);
|
|
font-size: var(--font-size-heading-large);
|
|
color: var(--newtab-contextual-text-primary-color);
|
|
margin-block: var(--space-small) 0;
|
|
}
|
|
.lightWallpaper .nova-enabled .ds-highlights .ds-highlights-title {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .nova-enabled .ds-highlights .ds-highlights-title {
|
|
color-scheme: dark;
|
|
}
|
|
@container content-grid (inline-size >= calc(12 * 75px + 11 * 0.75rem)) {
|
|
.nova-enabled .ds-highlights .ds-highlights-title {
|
|
font-size: var(--font-size-heading-xlarge);
|
|
}
|
|
}
|
|
.nova-enabled .ds-highlights .section {
|
|
display: contents;
|
|
}
|
|
.nova-enabled .ds-highlights .section > div {
|
|
display: contents;
|
|
}
|
|
.nova-enabled .ds-highlights .section-list {
|
|
grid-column: 1/-1;
|
|
padding-block-end: var(--space-xxlarge);
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
@container content-grid (inline-size >= calc(8 * 75px + 7 * 0.75rem)) {
|
|
.nova-enabled .ds-highlights .section-list {
|
|
grid-template-columns: repeat(4, 1fr);
|
|
}
|
|
}
|
|
|
|
.ds-hr {
|
|
border: 0;
|
|
border-block-start: 1px solid #D7D7DB;
|
|
height: 0;
|
|
}
|
|
[lwt-newtab-brighttext] .ds-hr {
|
|
border-block-start: 1px solid #4A4A4F;
|
|
}
|
|
|
|
/* stylelint-disable max-nesting-depth */
|
|
.ds-navigation {
|
|
color: var(--newtab-contextual-text-primary-color);
|
|
font-size: var(--font-size-small);
|
|
font-weight: var(--font-weight-semibold);
|
|
padding: var(--space-xsmall) 0;
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.ds-navigation {
|
|
line-height: 32px;
|
|
}
|
|
}
|
|
.ds-navigation.ds-navigation-centered {
|
|
text-align: center;
|
|
}
|
|
.ds-navigation.ds-navigation-right-aligned {
|
|
text-align: end;
|
|
}
|
|
.lightWallpaper .ds-navigation {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .ds-navigation {
|
|
color-scheme: dark;
|
|
}
|
|
.ds-navigation ul {
|
|
display: inline;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.ds-navigation ul li {
|
|
display: inline-block;
|
|
}
|
|
.ds-navigation ul li::after {
|
|
content: "·";
|
|
padding: var(--space-xsmall);
|
|
}
|
|
.ds-navigation ul li:last-child::after {
|
|
content: none;
|
|
}
|
|
.ds-navigation ul li a:hover, .ds-navigation ul li a:active {
|
|
text-decoration: none;
|
|
}
|
|
.ds-navigation ul li a:active {
|
|
color: var(--newtab-primary-element-active-color);
|
|
}
|
|
.ds-navigation .ds-navigation-header {
|
|
padding-inline-end: var(--space-xsmall);
|
|
}
|
|
.ds-navigation .ds-navigation-privacy {
|
|
padding-inline-start: var(--space-xsmall);
|
|
float: inline-end;
|
|
}
|
|
.ds-navigation .ds-navigation-privacy:hover {
|
|
text-decoration: none;
|
|
}
|
|
.ds-navigation .ds-navigation-privacy:focus-visible {
|
|
outline: var(--focus-outline);
|
|
}
|
|
.nova-enabled .content .ds-navigation {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, calc(4 * var(--col-width) + 3 * var(--space-medium)));
|
|
gap: var(--space-medium);
|
|
justify-content: center;
|
|
grid-column: 1/-1;
|
|
padding-block-end: var(--space-xxlarge);
|
|
}
|
|
.nova-enabled .content .ds-navigation .ds-navigation-privacy {
|
|
grid-column: 1/-1;
|
|
justify-self: end;
|
|
color: var(--link-color);
|
|
}
|
|
.ds-navigation.ds-navigation-new-topics {
|
|
display: block;
|
|
padding-block-start: var(--space-xxlarge);
|
|
}
|
|
.ds-navigation.ds-navigation-new-topics .ds-navigation-header {
|
|
font-size: var(--font-size-small);
|
|
font-weight: var(--font-weight-heading);
|
|
display: inline-block;
|
|
margin-block-end: var(--space-small);
|
|
}
|
|
.ds-navigation.ds-navigation-new-topics .ds-navigation-family {
|
|
text-align: center;
|
|
font-size: var(--font-size-small);
|
|
margin: var(--space-large) auto var(--space-xlarge);
|
|
}
|
|
.ds-navigation.ds-navigation-new-topics .ds-navigation-family span {
|
|
margin: 0 var(--space-small);
|
|
}
|
|
.ds-navigation.ds-navigation-new-topics .ds-navigation-family .firefox-logo,
|
|
.ds-navigation.ds-navigation-new-topics .ds-navigation-family .pocket-logo {
|
|
height: 20px;
|
|
width: 20px;
|
|
background-size: cover;
|
|
}
|
|
.ds-navigation.ds-navigation-new-topics .ds-navigation-family .firefox-logo {
|
|
background-image: url("chrome://newtab/content/data/content/assets/firefox.svg");
|
|
}
|
|
.ds-navigation.ds-navigation-new-topics .ds-navigation-family .pocket-logo {
|
|
background-image: url("chrome://global/skin/icons/help.svg");
|
|
fill: #EF4056;
|
|
}
|
|
.ds-navigation.ds-navigation-new-topics .ds-navigation-family .ds-navigation-family-message {
|
|
display: block;
|
|
}
|
|
@media (min-width: 610px) {
|
|
.ds-navigation.ds-navigation-new-topics .ds-navigation-family .ds-navigation-family-message {
|
|
display: inline;
|
|
}
|
|
}
|
|
@media (min-width: 610px) {
|
|
.ds-navigation.ds-navigation-new-topics .ds-navigation-family {
|
|
margin-block-start: calc(var(--space-large) + var(--space-xlarge));
|
|
}
|
|
}
|
|
.ds-navigation.ds-navigation-new-topics ul {
|
|
display: grid;
|
|
grid-gap: 0 var(--space-xlarge);
|
|
grid-auto-flow: column;
|
|
grid-template: repeat(8, 1fr)/repeat(1, 1fr);
|
|
}
|
|
.ds-navigation.ds-navigation-new-topics ul li {
|
|
border-block-start: 1px solid var(--border-color);
|
|
line-height: 24px;
|
|
font-size: var(--font-size-small);
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
.ds-navigation.ds-navigation-new-topics ul li::after {
|
|
content: "";
|
|
padding: 0;
|
|
}
|
|
.ds-navigation.ds-navigation-new-topics ul li:nth-last-child(2), .ds-navigation.ds-navigation-new-topics ul li:nth-last-child(3) {
|
|
display: none;
|
|
}
|
|
.ds-navigation.ds-navigation-new-topics ul li:nth-last-child(1) {
|
|
border-block-end: 1px solid var(--border-color);
|
|
}
|
|
@media (min-width: 610px) {
|
|
.ds-navigation.ds-navigation-new-topics ul {
|
|
grid-template: repeat(3, 1fr)/repeat(2, 1fr);
|
|
}
|
|
.ds-navigation.ds-navigation-new-topics ul li:nth-child(3) {
|
|
border-block-end: 1px solid var(--border-color);
|
|
}
|
|
}
|
|
@media (min-width: 866px) {
|
|
.ds-navigation.ds-navigation-new-topics ul {
|
|
grid-template: repeat(2, 1fr)/repeat(3, 1fr);
|
|
}
|
|
.ds-navigation.ds-navigation-new-topics ul li:nth-child(odd) {
|
|
border-block-end: 0;
|
|
}
|
|
.ds-navigation.ds-navigation-new-topics ul li:nth-child(even) {
|
|
border-block-end: 1px solid var(--border-color);
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.ds-navigation.ds-navigation-new-topics ul {
|
|
grid-template: repeat(2, 1fr)/repeat(4, 1fr);
|
|
}
|
|
.ds-navigation.ds-navigation-new-topics ul li:nth-last-child(2), .ds-navigation.ds-navigation-new-topics ul li:nth-last-child(3) {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.ds-section-title {
|
|
text-align: center;
|
|
margin-block-start: var(--space-xlarge);
|
|
}
|
|
.ds-section-title .title {
|
|
color: var(--newtab-text-primary-color);
|
|
font-size: var(--font-size-xxlarge);
|
|
font-weight: var(--font-weight);
|
|
}
|
|
.ds-section-title .subtitle {
|
|
font-size: inherit;
|
|
color: var(--newtab-text-secondary-color);
|
|
margin-block-start: var(--space-xsmall);
|
|
}
|
|
|
|
/* stylelint-disable max-nesting-depth */
|
|
.outer-wrapper .ds-top-sites .top-sites {
|
|
margin-block-end: var(--space-large);
|
|
}
|
|
.outer-wrapper .ds-top-sites .top-sites .top-site-outer .top-site-inner > a:is(.active, :focus) .tile {
|
|
border: 0;
|
|
outline: var(--focus-outline);
|
|
}
|
|
.outer-wrapper .ds-top-sites .top-sites .top-site-outer .top-site-inner > a:is(.active, :focus) .icon-pin-small {
|
|
opacity: 1;
|
|
}
|
|
.outer-wrapper .ds-top-sites .top-sites .top-site-outer .top-site-inner > a:is(:hover) .top-site-inner {
|
|
box-shadow: 0 0 0 5px var(--newtab-background-color-secondary);
|
|
transition: box-shadow 150ms;
|
|
border-radius: var(--border-radius-small);
|
|
outline: none;
|
|
}
|
|
.outer-wrapper .ds-top-sites .top-sites .top-sites-list {
|
|
width: fit-content;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.ds-column-5 .ds-top-sites .top-site-outer,
|
|
.ds-column-6 .ds-top-sites .top-site-outer,
|
|
.ds-column-7 .ds-top-sites .top-site-outer,
|
|
.ds-column-8 .ds-top-sites .top-site-outer {
|
|
padding: 0 var(--space-small);
|
|
}
|
|
.ds-column-5 .ds-top-sites .top-sites-list,
|
|
.ds-column-6 .ds-top-sites .top-sites-list,
|
|
.ds-column-7 .ds-top-sites .top-sites-list,
|
|
.ds-column-8 .ds-top-sites .top-sites-list {
|
|
margin: 0 calc(var(--space-small) * -1);
|
|
}
|
|
.ds-column-5 .ds-top-sites .top-site-inner,
|
|
.ds-column-6 .ds-top-sites .top-site-inner,
|
|
.ds-column-7 .ds-top-sites .top-site-inner,
|
|
.ds-column-8 .ds-top-sites .top-site-inner {
|
|
--leftPanelIconWidth: 84.67px;
|
|
}
|
|
.ds-column-5 .ds-top-sites .top-site-inner .tile,
|
|
.ds-column-6 .ds-top-sites .top-site-inner .tile,
|
|
.ds-column-7 .ds-top-sites .top-site-inner .tile,
|
|
.ds-column-8 .ds-top-sites .top-site-inner .tile {
|
|
width: var(--leftPanelIconWidth);
|
|
height: var(--leftPanelIconWidth);
|
|
}
|
|
.ds-column-5 .ds-top-sites .top-site-inner .title,
|
|
.ds-column-6 .ds-top-sites .top-site-inner .title,
|
|
.ds-column-7 .ds-top-sites .top-site-inner .title,
|
|
.ds-column-8 .ds-top-sites .top-site-inner .title {
|
|
width: var(--leftPanelIconWidth);
|
|
}
|
|
|
|
.ds-column-1 .ds-top-sites .top-site-outer,
|
|
.ds-column-2 .ds-top-sites .top-site-outer,
|
|
.ds-column-3 .ds-top-sites .top-site-outer,
|
|
.ds-column-4 .ds-top-sites .top-site-outer {
|
|
padding: 0 var(--space-small);
|
|
}
|
|
.ds-column-1 .ds-top-sites .top-sites-list,
|
|
.ds-column-2 .ds-top-sites .top-sites-list,
|
|
.ds-column-3 .ds-top-sites .top-sites-list,
|
|
.ds-column-4 .ds-top-sites .top-sites-list {
|
|
margin: 0 calc(var(--space-small) * -1);
|
|
}
|
|
.ds-column-1 .ds-top-sites .top-site-inner,
|
|
.ds-column-2 .ds-top-sites .top-site-inner,
|
|
.ds-column-3 .ds-top-sites .top-site-inner,
|
|
.ds-column-4 .ds-top-sites .top-site-inner {
|
|
--rightPanelIconWidth: 82.67px;
|
|
}
|
|
.ds-column-1 .ds-top-sites .top-site-inner .tile,
|
|
.ds-column-2 .ds-top-sites .top-site-inner .tile,
|
|
.ds-column-3 .ds-top-sites .top-site-inner .tile,
|
|
.ds-column-4 .ds-top-sites .top-site-inner .tile {
|
|
width: var(--rightPanelIconWidth);
|
|
height: var(--rightPanelIconWidth);
|
|
}
|
|
.ds-column-1 .ds-top-sites .top-site-inner .title,
|
|
.ds-column-2 .ds-top-sites .top-site-inner .title,
|
|
.ds-column-3 .ds-top-sites .top-site-inner .title,
|
|
.ds-column-4 .ds-top-sites .top-site-inner .title {
|
|
width: var(--rightPanelIconWidth);
|
|
}
|
|
|
|
.ds-card .context-menu-button {
|
|
background-clip: padding-box;
|
|
background-color: var(--newtab-button-background);
|
|
background-image: url("chrome://global/skin/icons/more.svg");
|
|
background-position: 50.1%;
|
|
border: 0;
|
|
outline: 1px solid var(--border-color);
|
|
outline-width: 0;
|
|
border-radius: var(--border-radius-circle);
|
|
cursor: pointer;
|
|
color: var(--button-text-color);
|
|
fill: var(--newtab-button-text);
|
|
height: 27px;
|
|
inset-inline-end: calc(var(--space-medium) * -1);
|
|
opacity: 0;
|
|
position: absolute;
|
|
inset-block-start: calc(var(--space-medium) * -1);
|
|
transform: scale(0.25);
|
|
transition-duration: 150ms;
|
|
transition-property: transform, opacity;
|
|
width: 27px;
|
|
}
|
|
.ds-card .context-menu-button:is(:active, :focus-visible, :hover) {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
.ds-card .context-menu-button:is(:hover) {
|
|
background-color: var(--newtab-button-hover-background);
|
|
}
|
|
.ds-card .context-menu-button:is(:focus-visible) {
|
|
outline-color: var(--newtab-button-focus-border);
|
|
background-color: var(--newtab-button-focus-background);
|
|
outline-width: 4px;
|
|
}
|
|
.ds-card .context-menu-button:is(:active) {
|
|
background-color: var(--newtab-button-active-background);
|
|
}
|
|
.ds-card .context-menu {
|
|
opacity: 0;
|
|
}
|
|
.ds-card.active .context-menu {
|
|
opacity: 1;
|
|
}
|
|
.ds-card.last-item .context-menu {
|
|
margin-inline-end: var(--space-xsmall);
|
|
margin-inline-start: auto;
|
|
inset-inline-end: 0;
|
|
inset-inline-start: auto;
|
|
}
|
|
.ds-card.last-item .context-menu {
|
|
opacity: 1;
|
|
}
|
|
.ds-card:is(:hover, :focus, .active) {
|
|
outline: none;
|
|
}
|
|
.ds-card:is(:hover, :focus, .active) .context-menu-button {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
transition-delay: 333ms;
|
|
}
|
|
|
|
.ds-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
z-index: auto;
|
|
}
|
|
.ds-card.placeholder {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-small);
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
|
border-radius: var(--border-radius-medium);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.ds-card.placeholder .placeholder-fill {
|
|
background: var(--newtab-card-placeholder-background-color);
|
|
border-radius: var(--border-radius-small);
|
|
}
|
|
.ds-card.placeholder .placeholder-image {
|
|
width: 100%;
|
|
height: 150px;
|
|
border-radius: var(--border-radius-medium) var(--border-radius-medium) 0 0;
|
|
}
|
|
.ds-card.placeholder .placeholder-label {
|
|
width: 40%;
|
|
height: var(--size-item-small);
|
|
margin-block-end: var(--space-small);
|
|
margin-inline: var(--space-large);
|
|
}
|
|
.ds-card.placeholder .placeholder-header {
|
|
width: 80%;
|
|
height: 20px;
|
|
margin-inline: var(--space-large);
|
|
}
|
|
.ds-card.placeholder .placeholder-description {
|
|
height: 60px;
|
|
margin-inline: var(--space-large);
|
|
margin-block-end: var(--space-small);
|
|
}
|
|
.ds-card.placeholder .placeholder-header {
|
|
width: initial;
|
|
margin-block-end: var(--space-large);
|
|
}
|
|
.ds-card.placeholder-seen::before {
|
|
content: "";
|
|
display: block;
|
|
position: absolute;
|
|
inset-block-start: 0;
|
|
inset-inline-start: -100%;
|
|
height: 100%;
|
|
width: 100%;
|
|
background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--newtab-background-color-secondary) 50%, rgba(255, 255, 255, 0) 100%);
|
|
z-index: 2;
|
|
}
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.ds-card.placeholder-seen::before {
|
|
animation: loading 1.5s infinite;
|
|
}
|
|
}
|
|
@keyframes loading {
|
|
0% {
|
|
inset-inline-start: -100%;
|
|
}
|
|
50%, 100% {
|
|
inset-inline-start: 100%;
|
|
}
|
|
}
|
|
.ds-card .img-wrapper {
|
|
width: 100%;
|
|
position: relative;
|
|
}
|
|
.ds-card .card-stp-button-hover-background {
|
|
opacity: 0;
|
|
width: 100%;
|
|
position: absolute;
|
|
inset-block-start: 0;
|
|
transition: opacity;
|
|
transition-duration: 0s;
|
|
padding-block-start: 50%;
|
|
pointer-events: none;
|
|
background: rgba(0, 0, 0, 0.4);
|
|
border-radius: var(--border-radius-medium) var(--border-radius-medium) 0 0;
|
|
}
|
|
.ds-card .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
position: absolute;
|
|
inset-inline-end: var(--space-small);
|
|
inset-block-start: var(--space-small);
|
|
display: flex;
|
|
justify-content: end;
|
|
align-items: center;
|
|
}
|
|
.ds-card .card-stp-button-hover-background .context-menu-position-container {
|
|
position: relative;
|
|
}
|
|
.ds-card .card-stp-button-hover-background .context-menu {
|
|
margin-inline-start: var(--space-large);
|
|
inset-inline-start: auto;
|
|
position: absolute;
|
|
inset-block-start: calc(var(--space-xsmall) + var(--space-large));
|
|
}
|
|
.ds-card .card-stp-button-hover-background button,
|
|
.ds-card .card-stp-button-hover-background .context-menu {
|
|
pointer-events: auto;
|
|
}
|
|
.ds-card .card-stp-button-hover-background button {
|
|
cursor: pointer;
|
|
}
|
|
.ds-card .context-menu-button {
|
|
position: static;
|
|
transition: none;
|
|
border-radius: var(--border-radius-small);
|
|
background-color: var(--newtab-button-static-background);
|
|
}
|
|
.ds-card .context-menu-button:hover {
|
|
background-color: var(--newtab-button-static-hover-background);
|
|
}
|
|
.ds-card .context-menu-button:hover:active {
|
|
background-color: var(--newtab-button-static-active-background);
|
|
}
|
|
.ds-card .context-menu-button:focus-visible {
|
|
outline: 2px solid var(--newtab-button-focus-border);
|
|
background-color: var(--newtab-button-static-focus-background);
|
|
}
|
|
.ds-card.last-item .card-stp-button-hover-background .context-menu {
|
|
margin-inline-start: auto;
|
|
margin-inline-end: var(--space-large);
|
|
}
|
|
.ds-card.active .card-stp-button-hover-background, .ds-card:focus-within .card-stp-button-hover-background, .ds-card:hover .card-stp-button-hover-background {
|
|
display: block;
|
|
opacity: 1;
|
|
transition-duration: 0.3s;
|
|
}
|
|
.ds-card.active .card-stp-button-hover-background .context-menu-button, .ds-card:focus-within .card-stp-button-hover-background .context-menu-button, .ds-card:hover .card-stp-button-hover-background .context-menu-button {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
.ds-card.active h3, .ds-card:focus-within h3, .ds-card:hover h3 {
|
|
color: var(--newtab-primary-action-background);
|
|
}
|
|
.ds-card:active h3 {
|
|
color: var(--newtab-primary-element-active-color);
|
|
}
|
|
.ds-card .img {
|
|
aspect-ratio: 2/1;
|
|
}
|
|
.ds-card .img img {
|
|
border-radius: var(--border-radius-small);
|
|
box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15);
|
|
}
|
|
.ds-card .ds-card-link {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: initial;
|
|
text-decoration: none;
|
|
grid-template-columns: auto 1fr;
|
|
gap: inherit;
|
|
flex-grow: 1;
|
|
}
|
|
.ds-card .ds-card-link:focus {
|
|
border: 0;
|
|
outline: var(--focus-outline);
|
|
transition: none;
|
|
}
|
|
.ds-card .ds-card-topic {
|
|
position: absolute;
|
|
z-index: 1;
|
|
background: light-dark(#F0F0F4, var(--newtab-background-color-secondary));
|
|
border-radius: var(--border-radius-small);
|
|
color: var(--newtab-text-primary-color);
|
|
padding: var(--space-small);
|
|
margin: var(--space-small);
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.ds-card .ds-card-daily-brief-topic {
|
|
position: absolute;
|
|
inset-block-end: var(--space-xsmall);
|
|
inset-inline-start: var(--space-xsmall);
|
|
background: var(--background-color-canvas);
|
|
border-radius: var(--border-radius-small);
|
|
color: var(--newtab-text-primary-color);
|
|
padding: var(--space-xsmall);
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.ds-card .meta {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
flex-direction: column;
|
|
padding: var(--space-medium) var(--space-large);
|
|
flex-grow: 1;
|
|
}
|
|
.ds-card .meta .info-wrap {
|
|
flex-grow: 1;
|
|
}
|
|
.ds-card .meta .title {
|
|
font-size: var(--font-size-large);
|
|
-webkit-line-clamp: 3;
|
|
line-height: normal;
|
|
margin-block: 0;
|
|
font-weight: var(--font-weight-heading);
|
|
}
|
|
.ds-card .meta .excerpt {
|
|
font-size: var(--font-size-small);
|
|
-webkit-line-clamp: 3;
|
|
line-height: normal;
|
|
}
|
|
.ds-card .meta .source-wrapper {
|
|
color: var(--newtab-text-secondary-text);
|
|
display: flex;
|
|
margin-block-end: var(--space-xxsmall);
|
|
align-items: center;
|
|
}
|
|
.ds-card .meta .source-wrapper img {
|
|
border-radius: var(--border-radius-small);
|
|
margin-inline-end: var(--space-small);
|
|
}
|
|
.ds-card .meta .source {
|
|
-webkit-line-clamp: 1;
|
|
font-size: var(--font-size-small);
|
|
color: var(--newtab-text-secondary-color);
|
|
}
|
|
.ds-card .meta .source span {
|
|
display: inline-block;
|
|
}
|
|
.ds-card .meta .new-sponsored-label {
|
|
font-size: var(--font-size-small);
|
|
margin-block-end: var(--space-xxsmall);
|
|
}
|
|
.ds-card.ds-card-title-lines-2 .meta .title {
|
|
font-size: var(--font-size-large);
|
|
-webkit-line-clamp: 2;
|
|
line-height: normal;
|
|
}
|
|
.ds-card.ds-card-title-lines-1 .meta .title {
|
|
font-size: var(--font-size-large);
|
|
-webkit-line-clamp: 1;
|
|
line-height: normal;
|
|
}
|
|
.ds-card.ds-card-desc-lines-2 .meta .excerpt {
|
|
font-size: var(--font-size-small);
|
|
-webkit-line-clamp: 2;
|
|
line-height: normal;
|
|
}
|
|
.ds-card.ds-card-desc-lines-1 .meta .excerpt {
|
|
font-size: var(--font-size-small);
|
|
-webkit-line-clamp: 1;
|
|
line-height: normal;
|
|
}
|
|
.ds-card.ds-card-compact-image .img {
|
|
padding-block-start: 47%;
|
|
}
|
|
.ds-card.ds-card-image-gradient img {
|
|
mask-image: linear-gradient(to top, rgba(0, 0, 0, 0), black 40px);
|
|
}
|
|
.ds-card.ds-card-image-gradient .meta {
|
|
padding: var(--space-xxsmall) var(--space-large) var(--space-medium);
|
|
}
|
|
.ds-card.ds-card-cta-button.variant-a .img, .ds-card.ds-card-cta-button.variant-b .img {
|
|
padding-block-start: 52.4%;
|
|
}
|
|
.ds-card.ds-card-cta-button.variant-a .story-sponsored-label, .ds-card.ds-card-cta-button.variant-b .story-sponsored-label {
|
|
margin: var(--space-small) 0 0;
|
|
}
|
|
.ds-card.ds-card-cta-button.variant-a .source, .ds-card.ds-card-cta-button.variant-b .source {
|
|
text-decoration: underline;
|
|
}
|
|
.ds-card.ds-card-cta-button.variant-a .story-footer, .ds-card.ds-card-cta-button.variant-b .story-footer {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 0 var(--space-small);
|
|
margin-block-start: 0;
|
|
}
|
|
.ds-card.ds-card-cta-button.variant-a .story-cta-button, .ds-card.ds-card-cta-button.variant-b .story-cta-button {
|
|
cursor: inherit;
|
|
background: var(--button-background-color);
|
|
border-radius: var(--border-radius-small);
|
|
border: none;
|
|
padding: var(--space-xsmall) var(--space-large);
|
|
font-size: var(--font-size-small);
|
|
font-weight: var(--font-weight-semibold);
|
|
min-height: var(--size-item-large);
|
|
min-width: 97px;
|
|
color: var(--newtab-text-primary-color);
|
|
margin-block-start: var(--space-small);
|
|
}
|
|
.ds-card.ds-card-cta-button.variant-a .story-cta-button:hover, .ds-card.ds-card-cta-button.variant-b .story-cta-button:hover {
|
|
background: var(--button-background-color-hover);
|
|
}
|
|
.ds-card.ds-card-cta-button.variant-a .cta-header, .ds-card.ds-card-cta-button.variant-b .cta-header {
|
|
background: var(--button-background-color);
|
|
font-size: var(--font-size-root);
|
|
font-weight: var(--font-weight-heading);
|
|
text-align: end;
|
|
padding: var(--space-xsmall) var(--space-large);
|
|
color: var(--newtab-text-primary-color);
|
|
min-height: var(--size-item-large);
|
|
}
|
|
.ds-card h3 {
|
|
font-size: var(--font-size-large);
|
|
color: var(--newtab-text-primary-color);
|
|
}
|
|
.ds-card p {
|
|
font-size: var(--font-size-small);
|
|
color: var(--newtab-text-primary-color);
|
|
margin: 0;
|
|
}
|
|
|
|
.sections-card-ui.placeholder {
|
|
box-shadow: 0 2px 6px #15141A24;
|
|
border-radius: var(--border-radius-large);
|
|
}
|
|
.ds-card-grid .sections-card-ui {
|
|
background: var(--newtab-background-card);
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
.ds-card-grid .sections-card-ui:hover {
|
|
background: var(--newtab-background-color-secondary);
|
|
}
|
|
.ds-card-grid .sections-card-ui:not(.placeholder) {
|
|
box-shadow: 0 1px 2px 0 rgba(58, 57, 68, 0.2);
|
|
border-radius: var(--border-radius-large);
|
|
}
|
|
.ds-card-grid .sections-card-ui:not(.placeholder).active, .ds-card-grid .sections-card-ui:not(.placeholder):focus-within, .ds-card-grid .sections-card-ui:not(.placeholder):hover {
|
|
box-shadow: 0 2px 14px 0 var(--newtab-section-card-box-shadow-color);
|
|
z-index: 1;
|
|
}
|
|
.ds-card-grid .sections-card-ui:not(.placeholder).active {
|
|
z-index: 2;
|
|
}
|
|
.ds-card-grid .sections-card-ui:not(.placeholder) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
|
|
}
|
|
@media (forced-colors: active) {
|
|
.ds-card-grid .sections-card-ui:not(.placeholder) {
|
|
border: var(--border-width) solid var(--card-border-color);
|
|
}
|
|
.ds-card-grid .sections-card-ui:not(.placeholder):hover {
|
|
--newtab-background-color-secondary: SelectedItemText;
|
|
--newtab-text-secondary-color: SelectedItem;
|
|
color: SelectedItem;
|
|
border-color: var(--border-color-interactive-hover);
|
|
}
|
|
.ds-card-grid .sections-card-ui:not(.placeholder):hover .meta .title {
|
|
color: var(--link-color-hover);
|
|
}
|
|
.ds-card-grid .sections-card-ui .meta .title {
|
|
text-decoration: underline;
|
|
color: var(--link-color);
|
|
}
|
|
}
|
|
.ds-card-grid .sections-card-ui .meta {
|
|
padding: var(--space-large);
|
|
}
|
|
.ds-card-grid .sections-card-ui .meta .title {
|
|
-webkit-line-clamp: 3;
|
|
font-size: var(--font-size-root);
|
|
margin-block-end: var(--space-small);
|
|
font-weight: var(--font-weight-heading);
|
|
}
|
|
.ds-card-grid .sections-card-ui .meta .excerpt {
|
|
-webkit-line-clamp: 3;
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.ds-card-grid .sections-card-ui .meta .source {
|
|
-webkit-line-clamp: 1;
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.ds-card-grid .sections-card-ui .meta .story-footer {
|
|
justify-content: flex-start;
|
|
display: grid;
|
|
height: 28px;
|
|
align-content: center;
|
|
margin-block-start: var(--space-small);
|
|
}
|
|
.ds-card-grid .sections-card-ui .meta .story-sponsored-label {
|
|
line-height: unset;
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.ds-card-grid .sections-card-ui .sections-card-footer {
|
|
margin-block-start: var(--space-small);
|
|
position: relative;
|
|
min-height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.ds-card-grid .sections-card-ui .ds-card-topic {
|
|
display: grid;
|
|
align-content: center;
|
|
height: 28px;
|
|
font-size: var(--font-size-small);
|
|
color: var(--newtab-text-topic-label-color);
|
|
margin: initial;
|
|
padding: initial;
|
|
background-color: initial;
|
|
}
|
|
.ds-card-grid .sections-card-ui .card-stp-button-hover-background {
|
|
border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
|
|
background-color: var(--button-background-color-ghost);
|
|
}
|
|
.ds-card-grid .sections-card-ui .ds-card-link:focus {
|
|
border-radius: var(--border-radius-large);
|
|
}
|
|
|
|
.ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle,
|
|
.ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle {
|
|
box-shadow: none;
|
|
background: none;
|
|
background: var(--newtab-background-card);
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
.ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .ds-image,
|
|
.ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .ds-image {
|
|
padding-block-start: 83.4%;
|
|
}
|
|
.ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .card-stp-button-hover-background,
|
|
.ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .card-stp-button-hover-background {
|
|
padding-block-start: 83.4%;
|
|
}
|
|
.ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .img-wrapper .ds-image img,
|
|
.ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .img-wrapper .ds-image img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .meta,
|
|
.ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .meta {
|
|
padding: var(--space-small) var(--space-large);
|
|
padding-block-end: 0;
|
|
}
|
|
.ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .meta .title,
|
|
.ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .meta .title {
|
|
font-size: var(--font-size-small);
|
|
font-weight: var(--font-weight);
|
|
color: var(--newtab-text-secondary-color);
|
|
}
|
|
.ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .meta .excerpt,
|
|
.ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .meta .excerpt {
|
|
display: none;
|
|
}
|
|
.ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .card-stp-button-hover-background,
|
|
.ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .card-stp-button-hover-background {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle.sections-card-ui .img-wrapper .ds-image img,
|
|
.ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle.sections-card-ui .img-wrapper .ds-image img {
|
|
border-radius: var(--border-radius-large);
|
|
border-end-start-radius: 0;
|
|
border-end-end-radius: 0;
|
|
}
|
|
.ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle:hover,
|
|
.ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle:hover {
|
|
background: var(--newtab-background-color-secondary);
|
|
}
|
|
.ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .img-wrapper .ds-image img,
|
|
.ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .img-wrapper .ds-image img {
|
|
border-end-start-radius: 0;
|
|
border-end-end-radius: 0;
|
|
}
|
|
.ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle:hover .img-wrapper .ds-image img,
|
|
.ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle:hover .img-wrapper .ds-image img {
|
|
box-shadow: none;
|
|
}
|
|
.ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .info-wrap,
|
|
.ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .info-wrap {
|
|
margin-block-start: auto;
|
|
}
|
|
.ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .sections-card-footer,
|
|
.ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .sections-card-footer {
|
|
display: none;
|
|
}
|
|
.ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .card-stp-button-position-wrapper,
|
|
.ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .card-stp-button-position-wrapper {
|
|
z-index: 10;
|
|
inset-block-end: 0;
|
|
position: absolute;
|
|
}
|
|
.ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .card-stp-button-position-wrapper .context-menu-position-container,
|
|
.ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .card-stp-button-position-wrapper .context-menu-position-container {
|
|
align-self: flex-start;
|
|
padding-block-start: var(--space-medium);
|
|
}
|
|
|
|
.ds-card-grid .ds-card .meta {
|
|
color: var(--newtab-text-primary-color);
|
|
padding: var(--space-small) var(--space-large);
|
|
}
|
|
.ds-card-grid .ds-card .meta .excerpt {
|
|
display: none;
|
|
}
|
|
.ds-card-grid .ds-card .sections-card-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
pointer-events: none;
|
|
margin-block-start: var(--space-xsmall);
|
|
padding-inline-end: var(--space-large);
|
|
}
|
|
.ds-card-grid .ds-card .sections-card-footer .source-wrapper {
|
|
margin-block-end: 0;
|
|
margin-inline-end: var(--space-xxsmall);
|
|
min-width: 0;
|
|
max-width: min(170px, 100%);
|
|
}
|
|
.ds-card-grid .ds-card .sections-card-footer .card-stp-button-hover-background {
|
|
position: static;
|
|
width: auto;
|
|
padding-block-start: 0;
|
|
background: transparent;
|
|
border-radius: 0;
|
|
}
|
|
.ds-card-grid .ds-card .sections-card-footer .card-stp-button-position-wrapper {
|
|
position: static;
|
|
inset: auto;
|
|
}
|
|
.ds-card-grid .ds-card:has(.story-footer .story-sponsored-label) .sections-card-footer {
|
|
display: none;
|
|
}
|
|
.ds-card-grid .ds-card:has(.story-footer .story-sponsored-label) .card-stp-button-position-wrapper {
|
|
inset-block-end: var(--space-small);
|
|
}
|
|
.ds-card-grid .ds-card .story-footer {
|
|
margin-block: 0 var(--space-xsmall);
|
|
}
|
|
.ds-card-grid .ds-card .card-stp-button-hover-background {
|
|
height: 100%;
|
|
padding-block-start: 0;
|
|
background: transparent;
|
|
}
|
|
.ds-card-grid .ds-card .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-block-start: unset;
|
|
inset-block-end: var(--space-xsmall);
|
|
inset-inline-end: var(--space-large);
|
|
background: var(--button-background-color-ghost);
|
|
}
|
|
.ds-card-grid .ds-card .context-menu-button {
|
|
background-color: var(--button-background-color-ghost);
|
|
}
|
|
@media (forced-colors: active) {
|
|
.ds-card-grid .ds-card .context-menu-button {
|
|
border: var(--border-width) solid var(--button-border-color-ghost);
|
|
}
|
|
}
|
|
.ds-card-grid .ds-card:hover h3, .ds-card-grid .ds-card.active h3 {
|
|
color: var(--color-accent-primary);
|
|
}
|
|
.ds-card-grid .ds-card:hover .context-menu-button:hover,
|
|
.ds-card-grid .ds-card:hover .context-menu-button[aria-expanded=true], .ds-card-grid .ds-card.active .context-menu-button:hover,
|
|
.ds-card-grid .ds-card.active .context-menu-button[aria-expanded=true] {
|
|
background-color: var(--button-background-color-ghost-hover);
|
|
}
|
|
@media (forced-colors: active) {
|
|
.ds-card-grid .ds-card:hover .context-menu-button:hover,
|
|
.ds-card-grid .ds-card:hover .context-menu-button[aria-expanded=true], .ds-card-grid .ds-card.active .context-menu-button:hover,
|
|
.ds-card-grid .ds-card.active .context-menu-button[aria-expanded=true] {
|
|
border-color: var(--button-border-color-ghost-hover);
|
|
fill: var(--button-text-color-ghost-hover);
|
|
}
|
|
}
|
|
.ds-card-grid .ds-card:hover .context-menu-button:hover:active,
|
|
.ds-card-grid .ds-card:hover .context-menu-button[aria-expanded=true]:active, .ds-card-grid .ds-card.active .context-menu-button:hover:active,
|
|
.ds-card-grid .ds-card.active .context-menu-button[aria-expanded=true]:active {
|
|
background-color: var(--button-background-color-ghost-active);
|
|
}
|
|
.ds-card-grid .ds-card:hover .context-menu-button:focus-visible, .ds-card-grid .ds-card.active .context-menu-button:focus-visible {
|
|
outline: 2px solid var(--newtab-button-focus-border);
|
|
background-color: var(--newtab-button-static-focus-background);
|
|
}
|
|
.ds-card-grid .ds-card .sections-card-footer .source {
|
|
display: block;
|
|
}
|
|
|
|
.story-footer {
|
|
color: var(--newtab-text-secondary-color);
|
|
inset-inline-start: 0;
|
|
margin-block-start: var(--space-medium);
|
|
display: flex;
|
|
gap: var(--space-large);
|
|
position: relative;
|
|
pointer-events: none;
|
|
}
|
|
.story-footer .story-sponsored-label span {
|
|
display: inline-block;
|
|
}
|
|
.story-footer .story-sponsored-label,
|
|
.story-footer .status-message {
|
|
-webkit-line-clamp: 1;
|
|
font-size: var(--font-size-small);
|
|
color: var(--newtab-text-secondary-color);
|
|
}
|
|
.story-footer .status-message {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 24px;
|
|
}
|
|
.story-footer .status-message .story-badge-icon {
|
|
fill: var(--newtab-text-secondary-color);
|
|
height: 16px;
|
|
margin-inline-end: var(--space-small);
|
|
}
|
|
.story-footer .status-message .story-badge-icon.icon-bookmark-removed {
|
|
background-image: url("chrome://newtab/content/data/content/assets/icon-removed-bookmark.svg");
|
|
}
|
|
.story-footer .status-message .story-context-label {
|
|
color: var(--newtab-text-secondary-color);
|
|
flex-grow: 1;
|
|
font-size: var(--font-size-small);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.story-animate-enter {
|
|
opacity: 0;
|
|
}
|
|
|
|
.story-animate-enter-active {
|
|
opacity: 1;
|
|
transition: opacity 150ms ease-in 300ms;
|
|
}
|
|
.story-animate-enter-active .story-badge-icon,
|
|
.story-animate-enter-active .story-context-label {
|
|
animation: color 3s ease-out 0.3s;
|
|
}
|
|
@keyframes color {
|
|
0% {
|
|
color: var(--newtab-status-success);
|
|
fill: var(--newtab-status-success);
|
|
}
|
|
100% {
|
|
color: var(--newtab-text-secondary-color);
|
|
fill: var(--newtab-text-secondary-color);
|
|
}
|
|
}
|
|
|
|
.story-animate-exit {
|
|
position: absolute;
|
|
inset-block-start: 0;
|
|
opacity: 1;
|
|
}
|
|
|
|
.story-animate-exit-active {
|
|
opacity: 0;
|
|
transition: opacity 250ms ease-in;
|
|
}
|
|
|
|
.ds-image {
|
|
display: block;
|
|
position: relative;
|
|
opacity: 0;
|
|
}
|
|
.ds-image.use-transition {
|
|
transition: opacity 0.8s;
|
|
}
|
|
.ds-image.loaded {
|
|
opacity: 1;
|
|
}
|
|
.ds-image img,
|
|
.ds-image .placeholder-image,
|
|
.ds-image .broken-image {
|
|
background-color: var(--newtab-element-secondary-color);
|
|
position: absolute;
|
|
inset-block-start: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
|
|
}
|
|
.ds-image .placeholder-image {
|
|
overflow: hidden;
|
|
background-color: var(--placeholderBackgroundColor);
|
|
}
|
|
.ds-image .placeholder-image::before {
|
|
content: "";
|
|
background-image: url("chrome://newtab/content/data/content/assets/pocket-swoosh.svg");
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
transform: rotate(var(--placeholderBackgroundRotation));
|
|
position: absolute;
|
|
inset-block-start: -50%;
|
|
inset-inline-start: -50%;
|
|
width: 200%;
|
|
height: 200%;
|
|
margin-inline-start: var(--placeholderBackgroundOffsetx);
|
|
margin-block-start: var(--placeholderBackgroundOffsety);
|
|
background-size: var(--placeholderBackgroundScale);
|
|
}
|
|
|
|
.nova-enabled .ds-image .broken-image {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
|
|
.impression-observer {
|
|
position: absolute;
|
|
inset-block-start: 0;
|
|
inset-inline-end: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.section-empty-state {
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--border-radius-small);
|
|
display: flex;
|
|
height: 160px;
|
|
width: 100%;
|
|
}
|
|
@media (min-width: 1390px) {
|
|
.section-empty-state {
|
|
width: 936px;
|
|
}
|
|
}
|
|
.section-empty-state .empty-state-message {
|
|
color: var(--newtab-text-secondary-color);
|
|
font-size: var(--font-size-small);
|
|
text-align: center;
|
|
margin: auto;
|
|
max-width: 936px;
|
|
}
|
|
.section-empty-state .try-again-button {
|
|
margin-block-start: var(--space-medium);
|
|
padding: var(--space-small) var(--space-xxlarge);
|
|
border-radius: var(--border-radius-small);
|
|
border: 0;
|
|
background: var(--newtab-button-secondary-color);
|
|
color: var(--newtab-text-primary-color);
|
|
cursor: pointer;
|
|
position: relative;
|
|
transition: background 0.2s ease, color 0.2s ease;
|
|
}
|
|
.section-empty-state .try-again-button:not(.waiting):focus {
|
|
box-shadow: 0 0 0 5px oklch(from var(--color-blue-50)/lch 30%);
|
|
transition: box-shadow 150ms;
|
|
border-radius: var(--border-radius-small);
|
|
outline: none;
|
|
}
|
|
[lwt-newtab-brighttext] .section-empty-state .try-again-button:not(.waiting):focus {
|
|
box-shadow: 0 0 0 5px oklch(from var(--color-blue-40)/lch 40%);
|
|
transition: box-shadow 150ms;
|
|
border-radius: var(--border-radius-small);
|
|
outline: none;
|
|
}
|
|
.section-empty-state .try-again-button:not(.waiting):hover {
|
|
box-shadow: 0 0 0 5px var(--newtab-element-secondary-color);
|
|
transition: box-shadow 150ms;
|
|
border-radius: var(--border-radius-small);
|
|
outline: none;
|
|
}
|
|
.section-empty-state .try-again-button::after {
|
|
content: "";
|
|
height: 20px;
|
|
width: 20px;
|
|
animation: spinner 1s linear infinite;
|
|
opacity: 0;
|
|
position: absolute;
|
|
inset-block-start: 50%;
|
|
inset-inline-start: 50%;
|
|
margin: calc(var(--space-small) * -1) 0 0 calc(var(--space-small) * -1);
|
|
mask-image: url("chrome://newtab/content/data/content/assets/spinner.svg");
|
|
mask-size: 20px;
|
|
background: var(--newtab-text-secondary-color);
|
|
}
|
|
.section-empty-state .try-again-button.waiting {
|
|
cursor: initial;
|
|
background: var(--newtab-element-secondary-color);
|
|
color: transparent;
|
|
transition: background 0.2s ease;
|
|
}
|
|
.section-empty-state .try-again-button.waiting::after {
|
|
transition: opacity 0.2s ease;
|
|
opacity: 1;
|
|
}
|
|
.section-empty-state h2 {
|
|
font-size: inherit;
|
|
font-weight: var(--font-weight-heading);
|
|
margin: 0;
|
|
}
|
|
.section-empty-state p {
|
|
margin: 0;
|
|
}
|
|
|
|
@keyframes spinner {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
.ds-privacy-link {
|
|
text-align: center;
|
|
font-size: var(--font-size-small);
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
.ds-privacy-link a:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* stylelint-disable max-nesting-depth */
|
|
.ds-topics-widget {
|
|
display: flex;
|
|
position: relative;
|
|
flex-direction: column;
|
|
}
|
|
.ds-topics-widget .ds-topics-widget-header {
|
|
font-size: var(--font-size-large);
|
|
}
|
|
.ds-topics-widget hr {
|
|
background-color: var(--border-color-deemphasized);
|
|
height: 1px;
|
|
border: 0;
|
|
margin: var(--space-small) 0 0;
|
|
}
|
|
.ds-topics-widget .ds-topics-widget-list-container {
|
|
flex-grow: 1;
|
|
}
|
|
.ds-topics-widget .ds-topics-widget-list-container ul {
|
|
margin: var(--space-large) 0 0;
|
|
padding: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
grid-gap: var(--space-small);
|
|
flex-wrap: wrap;
|
|
}
|
|
.ds-topics-widget .ds-topics-widget-list-container ul li {
|
|
display: flex;
|
|
}
|
|
.ds-topics-widget .ds-topics-widget-list-container ul li a {
|
|
font-size: var(--font-size-small);
|
|
text-decoration: none;
|
|
padding: var(--space-small) var(--space-medium);
|
|
background: var(--newtab-background-color-secondary);
|
|
border: 1px solid var(--border-color-deemphasized);
|
|
color: var(--newtab-text-primary-color);
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.ds-topics-widget .ds-topics-widget-list-container ul li a:hover {
|
|
background: var(--newtab-element-hover-color);
|
|
}
|
|
.ds-topics-widget .ds-topics-widget-list-container ul li a:focus {
|
|
outline: 0;
|
|
box-shadow: 0 0 0 3px var(--newtab-primary-action-background-dimmed), 0 0 0 1px var(--newtab-primary-action-background);
|
|
transition: box-shadow 150ms;
|
|
}
|
|
.ds-topics-widget .ds-topics-widget-list-container ul .ds-topics-widget-list-overflow-item {
|
|
display: flex;
|
|
}
|
|
@media (min-width: 610px) {
|
|
.ds-topics-widget .ds-topics-widget-list-container ul .ds-topics-widget-list-overflow-item {
|
|
display: none;
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.ds-topics-widget .ds-topics-widget-list-container ul .ds-topics-widget-list-overflow-item {
|
|
display: flex;
|
|
}
|
|
}
|
|
.ds-topics-widget .ds-topics-widget-button {
|
|
margin: var(--space-large) 0 0;
|
|
font-size: inherit;
|
|
text-align: center;
|
|
padding: var(--space-small);
|
|
border-radius: var(--border-radius-small);
|
|
background-color: var(--newtab-primary-action-background-pocket);
|
|
border: 0;
|
|
}
|
|
.ds-topics-widget .ds-topics-widget-button:hover {
|
|
background: var(--newtab-primary-element-hover-pocket-color);
|
|
}
|
|
.ds-topics-widget .ds-topics-widget-button:focus {
|
|
outline: 0;
|
|
box-shadow: 0 0 0 3px var(--newtab-primary-action-background-pocket-dimmed), 0 0 0 1px var(--newtab-primary-action-background-pocket);
|
|
transition: box-shadow 150ms;
|
|
}
|
|
|
|
.feature-highlight {
|
|
position: relative;
|
|
pointer-events: auto;
|
|
z-index: 2;
|
|
}
|
|
.feature-highlight .feature-highlight-modal {
|
|
position: absolute;
|
|
display: flex;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
cursor: default;
|
|
justify-content: space-between;
|
|
border-radius: var(--border-radius-small);
|
|
background: var(--newtab-background-color-secondary);
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
|
width: 298px;
|
|
transition: opacity 0.3s, visibility 0.3s;
|
|
}
|
|
.feature-highlight .feature-highlight-modal > moz-button {
|
|
margin-inline-start: var(--space-xsmall);
|
|
z-index: 1;
|
|
}
|
|
.feature-highlight .feature-highlight-modal .message-icon {
|
|
margin-block: var(--space-large);
|
|
margin-inline: var(--space-large) var(--space-medium);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.opened {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
.feature-highlight .feature-highlight-modal::after {
|
|
content: "";
|
|
position: absolute;
|
|
height: 24px;
|
|
width: 24px;
|
|
background: var(--newtab-background-color-secondary);
|
|
box-shadow: 4px 4px 6px -2px rgba(0, 0, 0, 0.15);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.inset-block-start {
|
|
inset-block-end: 100%;
|
|
margin-block-end: var(--space-xlarge);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.inset-block-start::after {
|
|
inset-block-end: calc(var(--space-medium) * -1);
|
|
transform: rotate(45deg);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.inset-block-start:dir(rtl)::after {
|
|
transform: rotate(225deg);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.inset-block-end {
|
|
inset-block-start: 100%;
|
|
margin-block-start: var(--space-xlarge);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.inset-block-end::after {
|
|
inset-block-start: calc(var(--space-medium) * -1);
|
|
transform: rotate(225deg);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.inset-inline-start {
|
|
inset-inline-end: calc(var(--space-xxlarge) * -1);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.inset-inline-start::after {
|
|
inset-inline-end: calc(var(--space-xxlarge) - var(--space-medium));
|
|
}
|
|
.feature-highlight .feature-highlight-modal.inset-inline-center {
|
|
transform: translateX(-50%);
|
|
inset-inline-start: 50%;
|
|
}
|
|
.feature-highlight .feature-highlight-modal.inset-inline-center:dir(rtl) {
|
|
transform: translateX(50%);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.inset-inline-end {
|
|
inset-inline-start: calc(var(--space-xxlarge) * -1);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.inset-inline-end::after {
|
|
inset-inline-start: calc(var(--space-xxlarge) - var(--space-medium));
|
|
}
|
|
.feature-highlight .feature-highlight-modal.arrow-inline-start::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset-block-start: 50%;
|
|
inset-inline-end: calc(var(--space-small) * -1);
|
|
transform: translateY(-50%) rotate(225deg);
|
|
height: 16px;
|
|
width: 16px;
|
|
background: var(--newtab-background-color-secondary);
|
|
box-shadow: -4px 4px 6px -2px rgba(0, 0, 0, 0.15);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.arrow-inline-end::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset-block-start: 50%;
|
|
inset-inline-start: calc(var(--space-small) * -1);
|
|
transform: translateY(-50%) rotate(135deg);
|
|
height: 16px;
|
|
width: 16px;
|
|
background: var(--newtab-background-color-secondary);
|
|
box-shadow: 4px 4px 6px -2px rgba(0, 0, 0, 0.15);
|
|
}
|
|
.feature-highlight .feature-highlight-modal.arrow-top-center::after {
|
|
inset-block-start: calc(var(--space-small) * -1);
|
|
inset-inline-start: 50%;
|
|
transform: translateX(-50%) rotate(225deg);
|
|
height: 16px;
|
|
width: 16px;
|
|
}
|
|
.feature-highlight .feature-highlight-modal.arrow-top-start::after {
|
|
inset-block-start: calc(var(--space-small) * -1);
|
|
inset-inline-start: calc(var(--space-xlarge) * 2);
|
|
transform: translateX(-50%) rotate(225deg);
|
|
height: 16px;
|
|
width: 16px;
|
|
}
|
|
.feature-highlight .feature-highlight-modal p {
|
|
font-size: var(--font-size-small);
|
|
font-weight: var(--font-weight);
|
|
margin: var(--space-large) 0;
|
|
flex-grow: 1;
|
|
}
|
|
.feature-highlight .toggle-button {
|
|
border: none;
|
|
padding: 0;
|
|
}
|
|
.feature-highlight .toggle-button.isHidden {
|
|
display: none;
|
|
}
|
|
|
|
.download-firefox-feature-highlight .icon.icon-dismiss {
|
|
background: transparent url("chrome://global/skin/icons/close.svg");
|
|
background-size: var(--size-item-small);
|
|
height: var(--size-item-small);
|
|
width: var(--size-item-small);
|
|
position: absolute;
|
|
margin: 0;
|
|
inset-block-start: calc(var(--space-medium) + 2px);
|
|
inset-inline-end: calc(var(--space-medium) + 2px);
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
.download-firefox-feature-highlight .icon.icon-dismiss {
|
|
--dark-icon-color: var(--color-gray-70);
|
|
color: var(--dark-icon-color);
|
|
}
|
|
}
|
|
.download-firefox-feature-highlight .icon.icon-dismiss:hover {
|
|
--dark-icon-hover: var(--color-gray-60);
|
|
color: var(--dark-icon-hover);
|
|
}
|
|
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal {
|
|
--arrow-size: 24px;
|
|
padding: var(--space-large);
|
|
width: 271px;
|
|
}
|
|
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal .content-wrapper {
|
|
margin-block: 0;
|
|
}
|
|
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal .content-wrapper img {
|
|
display: block;
|
|
margin: 0 auto var(--space-large);
|
|
}
|
|
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal .message-icon {
|
|
display: none;
|
|
}
|
|
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal.inset-block-end {
|
|
margin-block-start: var(--space-xxlarge);
|
|
}
|
|
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal.inset-inline-end {
|
|
inset-inline-start: calc(var(--arrow-size) * -2);
|
|
}
|
|
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal.inset-inline-end::after {
|
|
inset-inline-start: calc(var(--space-xxlarge) - 14px);
|
|
}
|
|
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal.inset-inline-start {
|
|
inset-inline-end: calc(var(--arrow-size) / 2 * -1 - 6px);
|
|
}
|
|
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal.inset-inline-start::after {
|
|
inset-inline-end: calc(var(--space-xxlarge) - 12px);
|
|
}
|
|
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal::after {
|
|
height: var(--arrow-size);
|
|
width: var(--arrow-size);
|
|
box-shadow: 4px -4px 6px -2px rgba(0, 0, 0, 0.15);
|
|
transform: rotate(-45deg);
|
|
pointer-events: none;
|
|
}
|
|
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal p {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal .title {
|
|
font-weight: var(--font-weight-heading);
|
|
margin-block: var(--space-small);
|
|
}
|
|
.download-firefox-feature-highlight .feature-highlight .feature-highlight-modal .subtitle {
|
|
margin-block: 0;
|
|
}
|
|
|
|
.follow-section-button-highlight .feature-highlight-modal {
|
|
padding: var(--space-large);
|
|
width: auto;
|
|
}
|
|
.follow-section-button-highlight .feature-highlight-modal p {
|
|
margin: 0;
|
|
}
|
|
.follow-section-button-highlight .feature-highlight-modal .message-icon {
|
|
display: none;
|
|
}
|
|
.follow-section-button-highlight .feature-highlight-modal .icon-dismiss {
|
|
margin-block-start: 0;
|
|
margin-inline-end: 0;
|
|
}
|
|
.follow-section-button-highlight .feature-highlight-modal > moz-button {
|
|
position: absolute;
|
|
inset-inline-end: var(--space-large);
|
|
inset-block-start: var(--space-large);
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
.follow-section-button-highlight.is-inverted-dark-dismiss-button .feature-highlight-modal > moz-button {
|
|
--button-icon-fill: var(--color-gray-70);
|
|
}
|
|
}
|
|
.follow-section-button-highlight .feature-highlight-modal.arrow-inline-start {
|
|
inset-block-start: calc(100% + var(--space-large));
|
|
inset-inline-start: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
.follow-section-button-highlight .feature-highlight-modal.arrow-inline-start::after {
|
|
inset-block-start: calc(var(--space-small) * -1);
|
|
inset-inline-end: 50%;
|
|
transform: translateX(50%) rotate(135deg);
|
|
}
|
|
@media (min-width: 724px) {
|
|
.follow-section-button-highlight .feature-highlight-modal.arrow-inline-start {
|
|
min-width: auto;
|
|
inset-inline-start: auto;
|
|
inset-inline-end: calc(100% + var(--space-large));
|
|
inset-block-start: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
.follow-section-button-highlight .feature-highlight-modal.arrow-inline-start::after {
|
|
inset-block-start: 50%;
|
|
inset-inline-end: calc(var(--space-small) * -1);
|
|
transform: translateY(-50%) rotate(225deg);
|
|
}
|
|
}
|
|
.follow-section-button-highlight .inset-block-center {
|
|
position: absolute;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
.follow-section-button-highlight .follow-section-button-highlight-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-medium);
|
|
}
|
|
.follow-section-button-highlight .follow-section-button-highlight-copy {
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.follow-section-button-highlight .follow-section-button-highlight-copy .title {
|
|
font-weight: var(--font-weight-heading);
|
|
margin-block-end: var(--space-xsmall);
|
|
}
|
|
|
|
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal {
|
|
width: auto;
|
|
padding: var(--space-large);
|
|
}
|
|
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal .message-icon {
|
|
display: none;
|
|
}
|
|
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal.inset-inline-end {
|
|
inset-inline-start: 0;
|
|
}
|
|
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal.inset-inline-end::after {
|
|
inset-inline-start: 0;
|
|
}
|
|
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal.inset-inline-start {
|
|
inset-inline-end: calc(var(--space-xxlarge) * 2);
|
|
}
|
|
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal.inset-inline-start::after {
|
|
inset-inline-end: calc(var(--space-xlarge) / -2);
|
|
}
|
|
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal.inset-block-end {
|
|
margin-block-start: 0;
|
|
}
|
|
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal.inset-block-end::after {
|
|
inset-block-start: 0;
|
|
}
|
|
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal.inset-block-start {
|
|
inset-block-end: 0;
|
|
margin-block-end: calc(-4 * var(--space-xsmall));
|
|
}
|
|
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal.inset-block-start::after {
|
|
inset-block-end: calc(var(--space-xlarge) - var(--space-xxsmall));
|
|
}
|
|
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal .title {
|
|
font-weight: var(--font-weight-heading);
|
|
margin-block: var(--space-medium);
|
|
}
|
|
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal .subtitle {
|
|
margin-block: 0 var(--space-medium);
|
|
}
|
|
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal .button-wrapper {
|
|
display: block;
|
|
text-align: end;
|
|
}
|
|
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal::after {
|
|
height: var(--space-xlarge);
|
|
width: var(--space-xlarge);
|
|
box-shadow: 4px -4px 6px -2px rgba(0, 0, 0, 0.15);
|
|
pointer-events: none;
|
|
}
|
|
.wallpaper-feature-highlight .feature-highlight .feature-highlight-modal > moz-button {
|
|
position: absolute;
|
|
inset-inline-end: var(--space-large);
|
|
inset-block-start: var(--space-large);
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
.wallpaper-feature-highlight.is-inverted-dark-dismiss-button .feature-highlight-modal > moz-button {
|
|
--button-icon-fill: var(--color-gray-70);
|
|
}
|
|
}
|
|
|
|
.nova-enabled .wallpaper-feature-highlight .feature-highlight .wallpaper-feature-highlight-modal {
|
|
--nova-highlight-border-gradient-start: light-dark(#B58CFF, #A67CE5);
|
|
--nova-highlight-border-gradient-end: light-dark(#FF8A5B, #764EDD);
|
|
--nova-highlight-shadow:
|
|
-10px -10px 28px rgba(231, 217, 255, 70%),
|
|
8px 8px 28px rgba(255, 211, 183, 70%),
|
|
0 3px 12px rgba(0, 0, 0, 4%),
|
|
0 0.375px 1px rgba(0, 0, 0, 1.5%);
|
|
border: var(--border-width) solid var(--border-color-transparent);
|
|
border-radius: var(--border-radius-large);
|
|
background: linear-gradient(var(--background-color-box), var(--background-color-box)) padding-box, linear-gradient(135deg, var(--nova-highlight-border-gradient-start), var(--nova-highlight-border-gradient-end)) border-box;
|
|
box-shadow: var(--nova-highlight-shadow);
|
|
--wallpaper-highlight-image-background: #FCF5F0;
|
|
width: 352px;
|
|
min-height: 382px;
|
|
padding: var(--space-xlarge);
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
.nova-enabled .wallpaper-feature-highlight .feature-highlight .wallpaper-feature-highlight-modal {
|
|
--nova-highlight-shadow:
|
|
-10px -10px 28px rgba(99, 47, 200, 28%),
|
|
8px 8px 28px rgba(255, 138, 87, 24%),
|
|
0 3px 12px rgba(0, 0, 0, 32%),
|
|
0 0.375px 1.5px rgba(0, 0, 0, 16%);
|
|
}
|
|
}
|
|
@media (forced-colors: active) {
|
|
.nova-enabled .wallpaper-feature-highlight .feature-highlight .wallpaper-feature-highlight-modal {
|
|
background: Canvas;
|
|
}
|
|
}
|
|
.nova-enabled .wallpaper-feature-highlight .feature-highlight .wallpaper-feature-highlight-modal .content-wrapper {
|
|
width: 100%;
|
|
}
|
|
.nova-enabled .wallpaper-feature-highlight .feature-highlight .wallpaper-feature-highlight-modal .wallpaper-feature-highlight-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-large);
|
|
}
|
|
.nova-enabled .wallpaper-feature-highlight .feature-highlight .wallpaper-feature-highlight-modal .wallpaper-feature-highlight-image {
|
|
display: flex;
|
|
justify-content: center;
|
|
border-radius: var(--border-radius-large);
|
|
background-color: var(--wallpaper-highlight-image-background);
|
|
background-image: url("chrome://newtab/content/data/content/assets/highlights/firefox-wallpaper-desktop-hills-light-rgb.svg");
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
height: 222px;
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
padding-block-start: 44px;
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
padding-block-end: 22px;
|
|
}
|
|
.nova-enabled .wallpaper-feature-highlight .feature-highlight .wallpaper-feature-highlight-modal .wallpaper-feature-highlight-image img {
|
|
display: block;
|
|
width: 207px;
|
|
height: 156px;
|
|
object-fit: contain;
|
|
}
|
|
.nova-enabled .wallpaper-feature-highlight .feature-highlight .wallpaper-feature-highlight-modal .wallpaper-feature-highlight-copy {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-small);
|
|
}
|
|
.nova-enabled .wallpaper-feature-highlight .feature-highlight .wallpaper-feature-highlight-modal .title {
|
|
font-size: var(--font-size-root, 13px);
|
|
font-weight: var(--font-weight-heading, var(--heading-font-weight));
|
|
margin: 0;
|
|
}
|
|
.nova-enabled .wallpaper-feature-highlight .feature-highlight .wallpaper-feature-highlight-modal .subtitle {
|
|
font-size: var(--font-size-root, 13px);
|
|
margin: 0;
|
|
}
|
|
.nova-enabled .wallpaper-feature-highlight .feature-highlight .wallpaper-feature-highlight-modal.inset-block-start::after {
|
|
inset-inline-end: calc(var(--space-xlarge) / -2 + var(--border-width));
|
|
background: var(--background-color-box);
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
border: var(--border-width) solid var(--nova-highlight-border-gradient-end);
|
|
border-start-end-radius: var(--border-radius-small);
|
|
box-shadow: none;
|
|
clip-path: polygon(0% 0%, 100% 0%, 100% 100%);
|
|
}
|
|
.nova-enabled .wallpaper-feature-highlight .feature-highlight .wallpaper-feature-highlight-modal > moz-button {
|
|
inset-inline-end: var(--space-xsmall);
|
|
inset-block-start: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .wallpaper-feature-highlight.world-cup-variant .feature-highlight .wallpaper-feature-highlight-modal {
|
|
min-height: 355px;
|
|
}
|
|
.nova-enabled .wallpaper-feature-highlight.world-cup-variant .feature-highlight .wallpaper-feature-highlight-modal .wallpaper-feature-highlight-content {
|
|
gap: var(--space-small);
|
|
}
|
|
.nova-enabled .wallpaper-feature-highlight.world-cup-variant .feature-highlight .wallpaper-feature-highlight-modal .wallpaper-feature-highlight-image {
|
|
--wallpaper-highlight-image-background: transparent;
|
|
background-image: none;
|
|
height: auto;
|
|
padding-block: 0;
|
|
}
|
|
.nova-enabled .wallpaper-feature-highlight.world-cup-variant .feature-highlight .wallpaper-feature-highlight-modal .wallpaper-feature-highlight-image img {
|
|
width: 100%;
|
|
height: auto;
|
|
max-width: 304px;
|
|
object-fit: contain;
|
|
}
|
|
.nova-enabled .wallpaper-feature-highlight.world-cup-variant .feature-highlight .wallpaper-feature-highlight-modal .title {
|
|
color: var(--text-color);
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.nova-enabled .wallpaper-feature-highlight.world-cup-variant .feature-highlight .wallpaper-feature-highlight-modal .subtitle {
|
|
color: var(--text-color);
|
|
font-size: var(--font-size-small);
|
|
font-weight: var(--font-weight);
|
|
}
|
|
.nova-enabled .wallpaper-feature-highlight.world-cup-variant .feature-highlight .wallpaper-feature-highlight-modal .button-wrapper {
|
|
margin-block-start: var(--space-medium);
|
|
}
|
|
|
|
.shortcut-feature-highlight .feature-highlight-modal {
|
|
padding: var(--space-large);
|
|
width: auto;
|
|
}
|
|
.shortcut-feature-highlight .feature-highlight-modal p {
|
|
margin: 0;
|
|
padding-block-start: 0;
|
|
}
|
|
.shortcut-feature-highlight .feature-highlight-modal p, .shortcut-feature-highlight .feature-highlight-modal p:hover {
|
|
color: inherit;
|
|
}
|
|
.shortcut-feature-highlight .feature-highlight-modal .message-icon {
|
|
display: none;
|
|
}
|
|
.shortcut-feature-highlight .feature-highlight-modal.inset-block-end {
|
|
margin-block-start: var(--space-large);
|
|
inset-inline-end: var(--space-xlarge);
|
|
}
|
|
.shortcut-feature-highlight .feature-highlight-modal > moz-button {
|
|
position: absolute;
|
|
inset-inline-end: var(--space-large);
|
|
inset-block-start: var(--space-large);
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
.shortcut-feature-highlight.is-inverted-dark-dismiss-button .feature-highlight-modal > moz-button {
|
|
--button-icon-fill: var(--color-gray-70);
|
|
}
|
|
}
|
|
.shortcut-feature-highlight .shortcut-feature-highlight-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-medium);
|
|
}
|
|
.shortcut-feature-highlight .shortcut-feature-highlight-copy {
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.shortcut-feature-highlight .shortcut-feature-highlight-copy .title {
|
|
font-weight: var(--font-weight-heading);
|
|
margin-block-end: var(--space-xsmall);
|
|
text-align: inherit;
|
|
}
|
|
|
|
.nova-enabled .widgets-row-highlight-anchor {
|
|
grid-column: 1/-1;
|
|
}
|
|
.nova-enabled .widgets-row-feature-highlight .feature-highlight .widgets-row-highlight-modal {
|
|
--nova-highlight-border-gradient-start: light-dark(#B58CFF, #A67CE5);
|
|
--nova-highlight-border-gradient-end: light-dark(#FF8A5B, #764EDD);
|
|
--nova-highlight-shadow:
|
|
-10px -10px 28px rgba(231, 217, 255, 70%),
|
|
8px 8px 28px rgba(255, 211, 183, 70%),
|
|
0 3px 12px rgba(0, 0, 0, 4%),
|
|
0 0.375px 1px rgba(0, 0, 0, 1.5%);
|
|
border: var(--border-width) solid var(--border-color-transparent);
|
|
border-radius: var(--border-radius-large);
|
|
background: linear-gradient(var(--background-color-box), var(--background-color-box)) padding-box, linear-gradient(135deg, var(--nova-highlight-border-gradient-start), var(--nova-highlight-border-gradient-end)) border-box;
|
|
box-shadow: var(--nova-highlight-shadow);
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
width: 320px;
|
|
padding: calc(var(--space-large) + var(--space-xsmall));
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
.nova-enabled .widgets-row-feature-highlight .feature-highlight .widgets-row-highlight-modal {
|
|
--nova-highlight-shadow:
|
|
-10px -10px 28px rgba(99, 47, 200, 28%),
|
|
8px 8px 28px rgba(255, 138, 87, 24%),
|
|
0 3px 12px rgba(0, 0, 0, 32%),
|
|
0 0.375px 1.5px rgba(0, 0, 0, 16%);
|
|
}
|
|
}
|
|
@media (forced-colors: active) {
|
|
.nova-enabled .widgets-row-feature-highlight .feature-highlight .widgets-row-highlight-modal {
|
|
background: Canvas;
|
|
}
|
|
}
|
|
.nova-enabled .widgets-row-feature-highlight .feature-highlight .widgets-row-highlight-modal .message-icon {
|
|
display: none;
|
|
}
|
|
.nova-enabled .widgets-row-feature-highlight .feature-highlight .widgets-row-highlight-modal .content-wrapper {
|
|
width: 100%;
|
|
}
|
|
.nova-enabled .widgets-row-feature-highlight .feature-highlight .widgets-row-highlight-modal::after {
|
|
background: var(--background-color-box);
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
border: var(--border-width) solid var(--nova-highlight-border-gradient-start);
|
|
border-end-end-radius: var(--border-radius-small);
|
|
box-shadow: none;
|
|
clip-path: polygon(100% 100%, 100% 2%, 2% 100%);
|
|
}
|
|
.nova-enabled .widgets-row-feature-highlight .feature-highlight .widgets-row-highlight-modal > moz-button {
|
|
position: absolute;
|
|
inset-inline-end: var(--space-small);
|
|
inset-block-start: var(--space-small);
|
|
}
|
|
.nova-enabled .widgets-row-feature-highlight .widgets-row-highlight-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-small);
|
|
}
|
|
.nova-enabled .widgets-row-feature-highlight .widgets-row-highlight-content .title {
|
|
font-size: var(--font-size-root);
|
|
font-weight: var(--font-weight-heading);
|
|
margin: 0;
|
|
}
|
|
.nova-enabled .widgets-row-feature-highlight .widgets-row-highlight-content .subtitle {
|
|
font-size: var(--font-size-root);
|
|
margin: 0;
|
|
}
|
|
.nova-enabled .widgets-row-feature-highlight .widgets-row-highlight-content .button-wrapper {
|
|
margin-block-start: var(--space-small);
|
|
text-align: end;
|
|
}
|
|
|
|
.nova-enabled .highlight-popover-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-small);
|
|
}
|
|
.nova-enabled .highlight-popover-body .title {
|
|
font-weight: var(--font-weight-heading);
|
|
margin: 0;
|
|
}
|
|
.nova-enabled .highlight-popover-body .subtitle {
|
|
font-size: var(--font-size-root);
|
|
margin: 0;
|
|
}
|
|
.nova-enabled .highlight-popover-body .button-wrapper {
|
|
align-self: flex-start;
|
|
}
|
|
.nova-enabled .highlight-popover-image {
|
|
width: 100%;
|
|
height: auto;
|
|
border-radius: var(--border-radius-small);
|
|
}
|
|
.nova-enabled .widgets-survey-callout .highlight-popover-image {
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
width: 169px;
|
|
align-self: center;
|
|
}
|
|
|
|
.nova-enabled .omc-highlight-slot {
|
|
grid-column: 1/-1;
|
|
}
|
|
.nova-enabled .omc-highlight-slot .feature-highlight {
|
|
z-index: 4;
|
|
}
|
|
.nova-enabled .feature-highlight .widgets-callout {
|
|
--nova-highlight-border-gradient-start: light-dark(#B58CFF, #A67CE5);
|
|
--nova-highlight-border-gradient-end: light-dark(#FF8A5B, #764EDD);
|
|
--nova-highlight-shadow:
|
|
-10px -10px 28px rgba(231, 217, 255, 70%),
|
|
8px 8px 28px rgba(255, 211, 183, 70%),
|
|
0 3px 12px rgba(0, 0, 0, 4%),
|
|
0 0.375px 1px rgba(0, 0, 0, 1.5%);
|
|
border: var(--border-width) solid var(--border-color-transparent);
|
|
border-radius: var(--border-radius-large);
|
|
background: linear-gradient(var(--background-color-box), var(--background-color-box)) padding-box, linear-gradient(135deg, var(--nova-highlight-border-gradient-start), var(--nova-highlight-border-gradient-end)) border-box;
|
|
box-shadow: var(--nova-highlight-shadow);
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
width: 360px;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
max-width: calc(100vw - var(--space-large) * 2);
|
|
padding: calc(var(--space-large) + var(--space-xsmall));
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
.nova-enabled .feature-highlight .widgets-callout {
|
|
--nova-highlight-shadow:
|
|
-10px -10px 28px rgba(99, 47, 200, 28%),
|
|
8px 8px 28px rgba(255, 138, 87, 24%),
|
|
0 3px 12px rgba(0, 0, 0, 32%),
|
|
0 0.375px 1.5px rgba(0, 0, 0, 16%);
|
|
}
|
|
}
|
|
@media (forced-colors: active) {
|
|
.nova-enabled .feature-highlight .widgets-callout {
|
|
background: Canvas;
|
|
}
|
|
}
|
|
.nova-enabled .feature-highlight .widgets-callout .message-icon {
|
|
display: none;
|
|
}
|
|
.nova-enabled .feature-highlight .widgets-callout .content-wrapper {
|
|
width: 100%;
|
|
}
|
|
.nova-enabled .feature-highlight .widgets-callout > moz-button {
|
|
position: absolute;
|
|
inset-inline-end: var(--space-small);
|
|
inset-block-start: var(--space-small);
|
|
}
|
|
.nova-enabled .feature-highlight .widgets-callout::after {
|
|
background: linear-gradient(var(--background-color-box), var(--background-color-box)) padding-box, linear-gradient(90deg, var(--nova-highlight-border-gradient-start), var(--nova-highlight-border-gradient-end)) border-box;
|
|
border: var(--border-width) solid var(--border-color-transparent);
|
|
border-end-end-radius: var(--border-radius-small);
|
|
box-shadow: none;
|
|
clip-path: polygon(100% 100%, 100% 2%, 2% 100%);
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens, declaration-property-value-disallowed-list */
|
|
inset-block-end: calc(var(--space-medium) * -1 + 0.125px);
|
|
inset-inline-start: 50%;
|
|
transform: translateX(-50%) rotate(45deg);
|
|
}
|
|
.nova-enabled .highlight-popover-body .title {
|
|
font-size: var(--font-size-root);
|
|
}
|
|
|
|
/* stylelint-disable max-nesting-depth */
|
|
.topic-selection-container {
|
|
--transition: 0.6s opacity, 0.6s scale, 0.6s rotate, 0.6s translate;
|
|
position: relative;
|
|
padding: var(--space-xxlarge);
|
|
max-width: 745px;
|
|
height: auto;
|
|
}
|
|
.topic-selection-container .dismiss-button {
|
|
position: absolute;
|
|
appearance: none;
|
|
border: none;
|
|
z-index: 2;
|
|
inset-block-start: 0;
|
|
inset-inline: auto 0;
|
|
border-radius: var(--border-radius-small);
|
|
padding: 0;
|
|
margin: var(--space-small);
|
|
display: block;
|
|
float: inline-end;
|
|
background: url("chrome://global/skin/icons/close.svg") no-repeat center/16px;
|
|
height: var(--size-item-large);
|
|
width: var(--size-item-large);
|
|
align-self: end;
|
|
min-height: var(--size-item-large);
|
|
min-width: var(--size-item-large);
|
|
-moz-context-properties: fill;
|
|
fill: currentColor;
|
|
transition: var(--transition);
|
|
}
|
|
.topic-selection-container .dismiss-button:hover {
|
|
background-color: var(--button-background-color-hover);
|
|
}
|
|
.topic-selection-container .dismiss-button:hover:active {
|
|
background-color: var(--button-background-color-active);
|
|
}
|
|
.topic-selection-container .title {
|
|
text-align: center;
|
|
font-size: var(--font-size-xlarge);
|
|
font-weight: var(--font-weight-heading);
|
|
margin-block-end: var(--space-small);
|
|
}
|
|
.topic-selection-container .subtitle {
|
|
text-align: center;
|
|
margin-block: 0 var(--space-xlarge);
|
|
}
|
|
.topic-selection-container .modal-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.topic-selection-container .modal-footer .button-group {
|
|
gap: var(--space-medium);
|
|
display: flex;
|
|
}
|
|
|
|
.topic-list {
|
|
list-style: none;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-large);
|
|
margin: var(--space-xxlarge) auto;
|
|
justify-content: center;
|
|
width: fit-content;
|
|
}
|
|
.topic-list .topic-item {
|
|
align-items: center;
|
|
border-radius: var(--border-radius-circle);
|
|
border: var(--border-width) solid var(--border-color-interactive);
|
|
display: flex;
|
|
justify-self: center;
|
|
max-width: fit-content;
|
|
padding-block: var(--space-xsmall);
|
|
padding-inline: var(--space-xsmall) var(--space-large);
|
|
position: relative;
|
|
}
|
|
.topic-list .topic-item:hover {
|
|
cursor: pointer;
|
|
background-color: var(--button-background-color-hover);
|
|
}
|
|
.topic-list .topic-item:active {
|
|
background-color: var(--button-background-color-active);
|
|
}
|
|
.topic-list .topic-item:has(input:checked) {
|
|
border-color: var(--border-color-selected);
|
|
}
|
|
.topic-list .topic-item:focus-within {
|
|
outline-offset: 2px;
|
|
outline: 2px solid var(--border-color-selected);
|
|
}
|
|
.topic-list .topic-item .topic-item-label {
|
|
margin-inline-end: var(--space-small);
|
|
}
|
|
.topic-list .topic-item .topic-custom-checkbox {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: var(--border-radius-circle);
|
|
background-color: var(--newtab-button-static-background);
|
|
margin-inline-end: var(--space-large);
|
|
}
|
|
.topic-list .topic-item .topic-custom-checkbox .topic-icon {
|
|
font-size: var(--font-size-xlarge);
|
|
}
|
|
.topic-list .topic-item .topic-custom-checkbox .topic-checked {
|
|
display: none;
|
|
}
|
|
.topic-list .topic-item input[type=checkbox] {
|
|
height: 100%;
|
|
opacity: 0;
|
|
position: absolute;
|
|
width: 90%;
|
|
}
|
|
.topic-list .topic-item input[type=checkbox]:checked ~ .topic-custom-checkbox {
|
|
background-color: var(--color-accent-primary);
|
|
position: relative;
|
|
}
|
|
.topic-list .topic-item input[type=checkbox]:checked ~ .topic-custom-checkbox .topic-icon {
|
|
display: none;
|
|
}
|
|
.topic-list .topic-item input[type=checkbox]:checked ~ .topic-custom-checkbox .topic-checked {
|
|
color: var(--color-white);
|
|
-moz-context-properties: fill;
|
|
display: block;
|
|
fill: currentColor;
|
|
background: url("chrome://global/skin/icons/check.svg");
|
|
background-size: cover;
|
|
width: 26px;
|
|
height: 26px;
|
|
}
|
|
|
|
.ad-banner-wrapper {
|
|
--banner-padding: var(--space-large);
|
|
--billboard-width: 970px;
|
|
--billboard-container-width: calc( var(--billboard-width) + ( var(--banner-padding) * 2 ));
|
|
--billboard-height: 250px;
|
|
--leaderboard-width: 728px;
|
|
--leaderboard-container-width: calc(var(--leaderboard-width) + ( var(--banner-padding) * 2 ));
|
|
--leaderboard-height: 90px;
|
|
position: relative;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
grid-column: 1/-1;
|
|
width: 100%;
|
|
inset-inline-start: 50%;
|
|
transform: translate3d(-50%, 0, 0);
|
|
margin-block-start: var(--space-medium);
|
|
margin-block-end: var(--space-xlarge);
|
|
}
|
|
@media (min-width: 1390px) {
|
|
.ad-banner-wrapper.promo-card {
|
|
justify-content: space-between;
|
|
}
|
|
}
|
|
.ad-banner-wrapper:has(.ad-banner-inner.billboard) {
|
|
min-width: var(--billboard-container-width);
|
|
}
|
|
@media (width <= 1015px) {
|
|
.ad-banner-wrapper:has(.ad-banner-inner.billboard) {
|
|
min-width: auto;
|
|
}
|
|
}
|
|
.ad-banner-wrapper:has(.ad-banner-inner.leaderboard) {
|
|
min-width: var(--leaderboard-container-width);
|
|
}
|
|
@media (width <= 758px) {
|
|
.ad-banner-wrapper:has(.ad-banner-inner.leaderboard) {
|
|
min-width: auto;
|
|
}
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner {
|
|
background: var(--newtab-background-card);
|
|
transition: opacity 0.2s ease;
|
|
position: relative;
|
|
box-shadow: var(--card-box-shadow);
|
|
border-radius: var(--border-radius-large);
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner:hover {
|
|
background: var(--newtab-background-color-secondary);
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner:hover {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner .ad-banner-link {
|
|
text-decoration: none;
|
|
padding-block-start: var(--banner-padding);
|
|
padding-inline: var(--banner-padding);
|
|
display: inline-block;
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner .ad-banner-link:focus {
|
|
outline: var(--focus-outline);
|
|
border-radius: var(--border-radius-large);
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner .ad-banner-link:hover + .ad-banner-hover-background, .ad-banner-wrapper .ad-banner-inner .ad-banner-link:focus + .ad-banner-hover-background {
|
|
opacity: 1;
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner .ad-banner-hover-background {
|
|
opacity: 0;
|
|
position: absolute;
|
|
inset-block-start: 0;
|
|
pointer-events: none;
|
|
height: 100%;
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner .ad-banner-hover-background:hover, .ad-banner-wrapper .ad-banner-inner .ad-banner-hover-background:focus-within {
|
|
opacity: 1;
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner .ad-banner-hover-background .ads-context-menu-wrapper {
|
|
pointer-events: auto;
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner.leaderboard {
|
|
max-width: var(--leaderboard-container-width);
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner.leaderboard .ad-banner-content {
|
|
height: var(--leaderboard-height);
|
|
width: var(--leaderboard-width);
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner.leaderboard .ad-banner-hover-background {
|
|
width: var(--leaderboard-container-width);
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner.leaderboard .ad-banner-sponsored {
|
|
width: var(--leaderboard-width);
|
|
}
|
|
@media (width <= 758px) {
|
|
.ad-banner-wrapper .ad-banner-inner.leaderboard {
|
|
display: none;
|
|
}
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner.billboard {
|
|
width: var(--billboard-container-width);
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner.billboard .ad-banner-content {
|
|
height: var(--billboard-height);
|
|
width: var(--billboard-width);
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner.billboard .ad-banner-hover-background {
|
|
width: var(--billboard-container-width);
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner.billboard .ad-banner-sponsored {
|
|
width: var(--billboard-width);
|
|
}
|
|
@media (width <= 1015px) {
|
|
.ad-banner-wrapper .ad-banner-inner.billboard {
|
|
display: none;
|
|
}
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner .ad-banner-sponsored {
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.ad-banner-wrapper .ad-banner-inner .ad-banner-sponsored span {
|
|
font-size: var(--font-size-small);
|
|
color: var(--newtab-contextual-text-secondary-color);
|
|
}
|
|
.ad-banner-wrapper.active {
|
|
z-index: 1;
|
|
}
|
|
.ad-banner-wrapper.active .ad-banner-hover-background {
|
|
opacity: 1;
|
|
}
|
|
|
|
.nova-enabled .ad-banner-wrapper .ad-banner-inner.billboard {
|
|
--billboard-container-width: var(--col-span-12);
|
|
}
|
|
.nova-enabled .ad-banner-wrapper .ad-banner-inner.billboard .ad-banner-link {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding-block-start: var(--space-small);
|
|
}
|
|
.nova-enabled .ad-banner-wrapper .ad-banner-inner.billboard .ad-banner-link .ad-banner-sponsored {
|
|
height: 19px;
|
|
}
|
|
|
|
.ads-context-menu-wrapper {
|
|
text-align: end;
|
|
}
|
|
|
|
.ads-context-menu {
|
|
z-index: 10;
|
|
position: absolute;
|
|
inset-inline-end: var(--space-large);
|
|
inset-block-end: 0;
|
|
}
|
|
.ads-context-menu .context-menu {
|
|
/* Position the menu just under and to the right of the context menu button */
|
|
inset-inline-end: 100%;
|
|
inset-inline-start: auto;
|
|
margin-inline-end: calc(-0.98 * var(--size-item-large));
|
|
inset-block-start: calc(2.25 * var(--size-item-small));
|
|
}
|
|
.ads-context-menu > moz-button::part(button) {
|
|
background-color: transparent;
|
|
}
|
|
.ads-context-menu > moz-button::part(button):hover {
|
|
background-color: var(--button-background-color-hover);
|
|
}
|
|
.ads-context-menu > moz-button::part(button):active {
|
|
background-color: var(--button-background-color-active);
|
|
}
|
|
|
|
.context-menu-open > moz-button::part(button) {
|
|
background-color: var(--button-background-color);
|
|
}
|
|
|
|
.nova-enabled .ads-context-menu {
|
|
inset-inline-end: var(--space-xlarge);
|
|
}
|
|
.nova-enabled .context-menu-open > moz-button::part(button) {
|
|
background-color: var(--button-background-color-ghost-hover);
|
|
}
|
|
|
|
.promo-card-wrapper {
|
|
background: var(--newtab-background-card);
|
|
transition: opacity 0.2s ease;
|
|
display: none;
|
|
box-shadow: var(--card-box-shadow);
|
|
border-radius: var(--border-radius-large);
|
|
height: 298px;
|
|
width: 228px;
|
|
position: relative;
|
|
padding: var(--space-large);
|
|
color: var(--newtab-contextual-text-primary-color);
|
|
}
|
|
.promo-card-wrapper:hover {
|
|
background: var(--newtab-background-color-secondary);
|
|
}
|
|
.promo-card-wrapper .promo-card-inner {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-large);
|
|
height: 100%;
|
|
}
|
|
.promo-card-wrapper .promo-card-content {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
.promo-card-wrapper .promo-card-dismiss-button {
|
|
position: absolute;
|
|
inset-block-start: var(--space-small);
|
|
inset-inline-end: var(--space-small);
|
|
margin: 0;
|
|
}
|
|
.promo-card-wrapper .promo-card-copy {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
gap: var(--space-xxsmall);
|
|
}
|
|
.promo-card-wrapper .promo-card-title-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-small);
|
|
}
|
|
.promo-card-wrapper .promo-card-title {
|
|
display: block;
|
|
font-size: var(--font-size-root, 15px);
|
|
font-style: normal;
|
|
font-weight: var(--font-weight-heading);
|
|
line-height: normal;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.promo-card-wrapper .promo-card-body {
|
|
display: block;
|
|
font-size: var(--font-size-small);
|
|
font-style: normal;
|
|
font-weight: var(--font-weight);
|
|
line-height: normal;
|
|
margin: 0;
|
|
}
|
|
.promo-card-wrapper .promo-card-cta-wrapper {
|
|
display: flex;
|
|
width: 100%;
|
|
justify-content: flex-end;
|
|
margin-block-start: auto;
|
|
}
|
|
.promo-card-wrapper .img-wrapper {
|
|
height: 132px;
|
|
overflow: hidden;
|
|
width: 196px;
|
|
}
|
|
.promo-card-wrapper .img-wrapper img {
|
|
display: block;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
object-position: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.nova-enabled .promo-card-wrapper {
|
|
display: flex;
|
|
height: 276px;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding-block-start: 0;
|
|
width: 332px;
|
|
border-radius: var(--border-radius-large);
|
|
}
|
|
.nova-enabled .promo-card-wrapper .promo-card-inner {
|
|
width: 100%;
|
|
}
|
|
.nova-enabled .promo-card-wrapper .img-wrapper {
|
|
display: flex;
|
|
height: 155px;
|
|
justify-content: center;
|
|
align-items: flex-end;
|
|
width: 100%;
|
|
}
|
|
.nova-enabled .promo-card-wrapper .img-wrapper img {
|
|
height: auto;
|
|
flex-shrink: 0;
|
|
object-fit: initial;
|
|
object-position: initial;
|
|
width: 80%;
|
|
}
|
|
.nova-enabled .promo-card-wrapper .promo-card-content {
|
|
margin-block-start: calc(-1 * (var(--space-xsmall) + var(--space-xxsmall)));
|
|
width: 100%;
|
|
}
|
|
|
|
.nova-enabled .ds-card-grid .promo-card-wrapper,
|
|
.nova-enabled .ds-section-wrapper .promo-card-wrapper {
|
|
display: none;
|
|
}
|
|
@container content-grid (inline-size >= calc(16 * 75px + 15 * 0.75rem)) {
|
|
.nova-enabled .ds-card-grid .promo-card-wrapper,
|
|
.nova-enabled .ds-section-wrapper .promo-card-wrapper {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1698px) {
|
|
.ds-card-grid .promo-card-wrapper {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1390px) {
|
|
.ds-section-wrapper .promo-card-wrapper {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.ds-section-grid.ds-card-grid .briefing-card {
|
|
background: var(--newtab-background-card);
|
|
transition: opacity 0.2s ease;
|
|
border-radius: var(--border-radius-medium);
|
|
box-shadow: var(--card-box-shadow);
|
|
padding: var(--space-large);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-medium);
|
|
position: relative;
|
|
}
|
|
.ds-section-grid.ds-card-grid .briefing-card:hover {
|
|
background: var(--newtab-background-color-secondary);
|
|
}
|
|
.ds-section-grid.ds-card-grid .briefing-card:not(.nova-enabled *) {
|
|
padding: var(--space-large);
|
|
gap: var(--space-medium);
|
|
}
|
|
.ds-section-grid.ds-card-grid .briefing-card moz-button {
|
|
position: absolute;
|
|
inset-inline-end: var(--space-medium);
|
|
inset-block-start: var(--space-medium);
|
|
opacity: 0;
|
|
transition: opacity 0.2s;
|
|
}
|
|
.ds-section-grid.ds-card-grid .briefing-card:hover moz-button, .ds-section-grid.ds-card-grid .briefing-card:focus-within moz-button {
|
|
opacity: 1;
|
|
}
|
|
.ds-section-grid.ds-card-grid .briefing-card:has(panel-list[open]) moz-button {
|
|
opacity: 1;
|
|
}
|
|
@media (forced-colors: active) {
|
|
.ds-section-grid.ds-card-grid .briefing-card {
|
|
border: var(--border-width) solid var(--card-border-color);
|
|
}
|
|
}
|
|
|
|
.briefing-card-header {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
align-items: baseline;
|
|
gap: var(--space-medium);
|
|
}
|
|
|
|
.briefing-card-title {
|
|
font-size: var(--font-size-root);
|
|
font-weight: var(--font-weight-heading);
|
|
color: var(--text-color);
|
|
margin: 0;
|
|
margin-block-start: var(--space-xxsmall);
|
|
}
|
|
|
|
.briefing-card-timestamp {
|
|
font-size: var(--font-size-small);
|
|
color: var(--link-color);
|
|
}
|
|
|
|
hr {
|
|
border: 0;
|
|
border-block-start: 1px solid var(--border-color);
|
|
margin: 0;
|
|
}
|
|
|
|
.briefing-card-headlines {
|
|
list-style: none;
|
|
counter-reset: headline-counter;
|
|
margin: 0;
|
|
margin-block: var(--space-xsmall);
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-large);
|
|
}
|
|
|
|
.briefing-card-headline {
|
|
counter-increment: headline-counter;
|
|
position: relative;
|
|
padding-inline-start: var(--space-large);
|
|
}
|
|
.briefing-card-headline::before {
|
|
content: counter(headline-counter) ".";
|
|
position: absolute;
|
|
inset-inline-start: 0;
|
|
font-size: var(--font-size-small);
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
|
|
.briefing-card-headline-link {
|
|
text-decoration: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xsmall);
|
|
}
|
|
.briefing-card-headline-link:hover .briefing-card-headline-title, .briefing-card-headline-link:focus .briefing-card-headline-title {
|
|
color: var(--link-color);
|
|
}
|
|
.briefing-card-headline-link:focus-visible {
|
|
outline: var(--focus-outline);
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/no-non-semantic-token-usage */
|
|
outline-offset: var(--focus-outline-offset);
|
|
border-radius: var(--border-radius-small);
|
|
}
|
|
|
|
.briefing-card-headline-title {
|
|
font-size: var(--font-size-small);
|
|
font-weight: var(--font-weight-heading);
|
|
color: var(--text-color);
|
|
-webkit-line-clamp: 2;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.briefing-card-headline-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-small);
|
|
margin-block-start: var(--space-xxsmall);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.briefing-card-headline-icon {
|
|
width: var(--size-item-xsmall);
|
|
height: var(--size-item-xsmall);
|
|
border-radius: var(--border-radius-xsmall);
|
|
}
|
|
|
|
.briefing-card-headline-source {
|
|
font-size: var(--font-size-small);
|
|
color: var(--text-color-deemphasized);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
padding-inline-end: var(--space-xxlarge);
|
|
}
|
|
|
|
.nova-enabled .ds-section-grid.ds-card-grid .briefing-card {
|
|
padding: var(--space-large);
|
|
gap: var(--space-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .briefing-card .briefing-card-headlines {
|
|
gap: var(--space-xlarge);
|
|
}
|
|
|
|
.section-context-menu {
|
|
position: relative;
|
|
}
|
|
.section-context-menu.context-menu-open > moz-button::part(button) {
|
|
background-color: var(--button-background-color-ghost-hover);
|
|
}
|
|
.section-context-menu .context-menu {
|
|
/* Fix the context menu width */
|
|
width: calc(4 * var(--size-item-large));
|
|
/* Position the context menu on top of the card grid, below the menu button. */
|
|
inset-block-start: calc(2.5 * var(--size-item-small));
|
|
inset-inline-start: calc(-6.25 * var(--size-item-small));
|
|
}
|
|
|
|
.inline-selection-wrapper.ds-section .section-heading {
|
|
margin-block: var(--space-medium);
|
|
}
|
|
.inline-selection-wrapper.ds-section .section-subtitle {
|
|
color: var(--newtab-contextual-text-primary-color);
|
|
}
|
|
.inline-selection-wrapper.ds-section .learn-more-copy {
|
|
margin-block-end: 0;
|
|
}
|
|
.lightWallpaper .inline-selection-wrapper.ds-section .learn-more-copy {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .inline-selection-wrapper.ds-section .learn-more-copy {
|
|
color-scheme: dark;
|
|
}
|
|
.inline-selection-wrapper.ds-section .learn-more-copy a:focus-visible {
|
|
outline: var(--focus-outline);
|
|
outline-offset: var(--focus-outline-offset);
|
|
}
|
|
.inline-selection-wrapper.ds-section .topic-list {
|
|
list-style: none;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
row-gap: calc(1.25 * var(--space-small));
|
|
column-gap: var(--space-small);
|
|
justify-content: flex-start;
|
|
margin: var(--space-small) 0;
|
|
padding-inline-start: 0;
|
|
width: fit-content;
|
|
}
|
|
.inline-selection-wrapper.ds-section .topic-list li {
|
|
align-items: center;
|
|
display: flex;
|
|
justify-self: flex-start;
|
|
max-width: fit-content;
|
|
position: relative;
|
|
}
|
|
.inline-selection-wrapper.ds-section .topic-list li > label {
|
|
background-color: var(--newtab-background-card);
|
|
border: var(--border-width) solid var(--border-color-interactive);
|
|
border-radius: var(--border-radius-circle);
|
|
color: var(--newtab-text-primary-color);
|
|
padding: var(--space-small) calc(1.25 * var(--space-small)) var(--space-small) var(--space-xsmall);
|
|
}
|
|
.inline-selection-wrapper.ds-section .topic-list li > label input[type=checkbox] {
|
|
outline: none;
|
|
appearance: none;
|
|
}
|
|
.inline-selection-wrapper.ds-section .topic-list li > label .topic-item-icon {
|
|
-moz-context-properties: fill;
|
|
color: var(--newtab-text-primary-color);
|
|
fill: currentColor;
|
|
margin-inline-start: var(--space-small);
|
|
margin-block-start: calc(-0.75 * var(--space-xsmall));
|
|
}
|
|
.inline-selection-wrapper.ds-section .topic-list li > label:hover {
|
|
background-color: var(--newtab-button-static-hover-background);
|
|
cursor: pointer;
|
|
}
|
|
.inline-selection-wrapper.ds-section .topic-list li > label:hover:active {
|
|
background-color: var(--newtab-button-static-active-background);
|
|
}
|
|
.inline-selection-wrapper.ds-section .topic-list li > label:has(input:checked) {
|
|
background-color: var(--color-accent-primary);
|
|
border-color: var(--border-color-selected);
|
|
color: var(--button-text-color-primary);
|
|
}
|
|
.inline-selection-wrapper.ds-section .topic-list li > label:has(input:checked) .topic-item-icon {
|
|
color: var(--button-text-color-primary);
|
|
}
|
|
.inline-selection-wrapper.ds-section .topic-list li > label:has(input:focus-visible) {
|
|
outline-offset: var(--focus-outline-offset);
|
|
outline: var(--focus-outline);
|
|
}
|
|
|
|
.nova-enabled .inline-selection-wrapper.ds-section .topic-list {
|
|
grid-column: 1/-1;
|
|
}
|
|
.lightWallpaper .nova-enabled .inline-selection-wrapper.ds-section .topic-list moz-button {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .nova-enabled .inline-selection-wrapper.ds-section .topic-list moz-button {
|
|
color-scheme: dark;
|
|
}
|
|
.nova-enabled .inline-selection-wrapper.ds-section .topic-list moz-button[type=primary]::part(button):not(:hover, :active) {
|
|
background-color: var(--button-background-color-primary);
|
|
border-color: var(--button-border-color-primary);
|
|
color: var(--button-text-color-primary);
|
|
}
|
|
.nova-enabled .inline-selection-wrapper.ds-section .learn-more-copy {
|
|
grid-column: 1/-1;
|
|
}
|
|
.nova-enabled .inline-selection-wrapper.ds-section .learn-more-copy a {
|
|
color: var(--link-color);
|
|
}
|
|
|
|
.report-content-form {
|
|
width: 500px;
|
|
height: 270px;
|
|
box-shadow: var(--box-shadow-level-4);
|
|
border-radius: var(--border-radius-medium);
|
|
border: 1px solid var(--border-color);
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
background-color: var(--newtab-background-color-secondary);
|
|
}
|
|
.report-content-form form {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.report-content-form form moz-radio-group {
|
|
height: 100%;
|
|
}
|
|
.report-content-form::backdrop {
|
|
background: rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.personalized-card-wrapper {
|
|
background-color: var(--newtab-background-card);
|
|
border: 2px solid var(--card-border-color);
|
|
color: var(--text-color);
|
|
border-radius: var(--border-radius-large);
|
|
padding-block-start: var(--space-xxlarge);
|
|
margin: var(--space-xlarge) 0;
|
|
position: relative;
|
|
display: flex;
|
|
overflow: hidden;
|
|
}
|
|
.personalized-card-wrapper .personalized-card-dismiss {
|
|
position: absolute;
|
|
inset-inline-end: var(--space-xxsmall);
|
|
inset-block-start: var(--space-xxsmall);
|
|
}
|
|
.personalized-card-wrapper img {
|
|
object-fit: contain;
|
|
}
|
|
.personalized-card-wrapper .personalized-card-inner {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.personalized-card-wrapper .personalized-card-message-wrapper {
|
|
display: flex;
|
|
gap: var(--space-small);
|
|
padding-inline: var(--space-xxlarge);
|
|
padding-block-end: var(--space-xxlarge);
|
|
}
|
|
.personalized-card-wrapper .personalized-card-message-wrapper h2, .personalized-card-wrapper .personalized-card-message-wrapper p {
|
|
margin: 0;
|
|
}
|
|
.personalized-card-wrapper .personalized-card-message-wrapper h2 {
|
|
font-size: var(--font-size-heading-large);
|
|
font-weight: var(--font-weight-heading);
|
|
}
|
|
.personalized-card-wrapper .personalized-card-cta-wrapper {
|
|
display: flex;
|
|
gap: var(--space-small);
|
|
align-items: center;
|
|
}
|
|
.personalized-card-wrapper .personalized-card-cta-wrapper .personalized-card-link {
|
|
color: var(--link-color);
|
|
font-size: var(--font-size-small);
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) {
|
|
flex-direction: column;
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) img {
|
|
width: 98px;
|
|
height: 98px;
|
|
margin-inline-start: var(--space-xxlarge);
|
|
margin-block-end: var(--space-large);
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) moz-button {
|
|
width: 100%;
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) .personalized-card-message-wrapper,
|
|
.personalized-card-wrapper:not(.nova-enabled *) .personalized-card-cta-wrapper {
|
|
flex-direction: column;
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) .personalized-card-cta-wrapper {
|
|
padding-inline-start: var(--space-xxlarge);
|
|
padding-inline-end: var(--space-xxlarge);
|
|
padding-block-end: var(--space-xxlarge);
|
|
}
|
|
@media (min-width: 724px) {
|
|
.personalized-card-wrapper:not(.nova-enabled *) {
|
|
flex-direction: row;
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) img {
|
|
width: 130px;
|
|
height: 130px;
|
|
margin-inline-start: var(--space-large);
|
|
margin-block-end: 0;
|
|
align-self: flex-end;
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) moz-button {
|
|
width: auto;
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) .personalized-card-message-wrapper,
|
|
.personalized-card-wrapper:not(.nova-enabled *) .personalized-card-cta-wrapper {
|
|
flex-direction: row;
|
|
padding-inline-start: var(--space-large);
|
|
gap: var(--space-xxlarge);
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) .personalized-card-message-wrapper {
|
|
padding-block-end: var(--space-large);
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) .personalized-card-message-wrapper h2 {
|
|
flex: 1;
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) .personalized-card-message-wrapper p {
|
|
flex: 1.4;
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) .personalized-card-cta-wrapper .personalized-card-button {
|
|
flex: none;
|
|
}
|
|
}
|
|
@media (min-width: 1122px) {
|
|
.personalized-card-wrapper:not(.nova-enabled *) img {
|
|
width: 98px;
|
|
height: 98px;
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) moz-button {
|
|
width: 100%;
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) .personalized-card-inner {
|
|
flex-direction: row;
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) .personalized-card-message-wrapper {
|
|
flex: 1;
|
|
padding-inline-start: var(--space-xxlarge);
|
|
padding-inline-end: 0;
|
|
padding-block-end: var(--space-xxlarge);
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) .personalized-card-message-wrapper p {
|
|
flex: 1.8;
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) .personalized-card-cta-wrapper {
|
|
padding-inline-start: var(--space-xxlarge);
|
|
flex-direction: column;
|
|
gap: var(--space-medium);
|
|
}
|
|
}
|
|
@media (min-width: 1390px) {
|
|
.personalized-card-wrapper:not(.nova-enabled *) img {
|
|
width: 141px;
|
|
height: 141px;
|
|
margin-inline-start: var(--space-large);
|
|
margin-block-end: calc(-1 * var(--space-xlarge));
|
|
margin-block-start: calc(-1 * var(--space-large));
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) .personalized-card-message-wrapper {
|
|
flex: 0.9;
|
|
padding-inline-start: var(--space-xlarge);
|
|
}
|
|
.personalized-card-wrapper:not(.nova-enabled *) .personalized-card-message-wrapper p {
|
|
flex: 1.3;
|
|
}
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) {
|
|
border: none;
|
|
flex-direction: column;
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) img {
|
|
width: 98px;
|
|
height: 98px;
|
|
margin-inline-start: var(--space-xxlarge);
|
|
margin-block-end: var(--space-large);
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) moz-button {
|
|
width: 100%;
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) .personalized-card-message-wrapper,
|
|
.personalized-card-wrapper:is(.nova-enabled *) .personalized-card-cta-wrapper {
|
|
flex-direction: column;
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) .personalized-card-cta-wrapper {
|
|
padding-inline-start: var(--space-xxlarge);
|
|
padding-inline-end: var(--space-xxlarge);
|
|
padding-block-end: var(--space-xxlarge);
|
|
}
|
|
@container content-grid (inline-size >= calc(8 * 75px + 7 * 0.75rem)) {
|
|
.personalized-card-wrapper:is(.nova-enabled *) {
|
|
flex-direction: row;
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) img {
|
|
width: 130px;
|
|
height: 130px;
|
|
margin-inline-start: var(--space-large);
|
|
margin-block-end: 0;
|
|
align-self: flex-end;
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) moz-button {
|
|
width: auto;
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) .personalized-card-message-wrapper,
|
|
.personalized-card-wrapper:is(.nova-enabled *) .personalized-card-cta-wrapper {
|
|
flex-direction: row;
|
|
padding-inline-start: var(--space-large);
|
|
gap: var(--space-xxlarge);
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) .personalized-card-message-wrapper {
|
|
padding-block-end: var(--space-large);
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) .personalized-card-message-wrapper h2 {
|
|
flex: 1;
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) .personalized-card-message-wrapper p {
|
|
flex: 1.4;
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) .personalized-card-cta-wrapper .personalized-card-button {
|
|
flex: none;
|
|
}
|
|
}
|
|
@container content-grid (inline-size >= calc(12 * 75px + 11 * 0.75rem)) {
|
|
.personalized-card-wrapper:is(.nova-enabled *) img {
|
|
width: 98px;
|
|
height: 98px;
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) moz-button {
|
|
width: 100%;
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) .personalized-card-inner {
|
|
flex-direction: row;
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) .personalized-card-message-wrapper {
|
|
flex: 1;
|
|
padding-inline-start: var(--space-xxlarge);
|
|
padding-inline-end: 0;
|
|
padding-block-end: var(--space-xxlarge);
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) .personalized-card-message-wrapper p {
|
|
flex: 1.8;
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) .personalized-card-cta-wrapper {
|
|
padding-inline-start: var(--space-xxlarge);
|
|
flex-direction: column;
|
|
gap: var(--space-medium);
|
|
}
|
|
}
|
|
@container content-grid (inline-size >= calc(16 * 75px + 15 * 0.75rem)) {
|
|
.personalized-card-wrapper:is(.nova-enabled *) img {
|
|
width: 141px;
|
|
height: 141px;
|
|
margin-inline-start: var(--space-large);
|
|
margin-block-end: calc(-1 * var(--space-xlarge));
|
|
margin-block-start: calc(-1 * var(--space-large));
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) .personalized-card-message-wrapper {
|
|
flex: 0.9;
|
|
padding-inline-start: var(--space-xlarge);
|
|
}
|
|
.personalized-card-wrapper:is(.nova-enabled *) .personalized-card-message-wrapper p {
|
|
flex: 1.3;
|
|
}
|
|
}
|
|
|
|
.nova-enabled .message-wrapper {
|
|
grid-column: 1/-1;
|
|
}
|
|
|
|
/* 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 https://mozilla.org/MPL/2.0/. */
|
|
.nova-enabled .top-sites {
|
|
display: contents;
|
|
}
|
|
|
|
.nova-enabled .top-sites-list-wrapper,
|
|
.nova-enabled .edit-topsites-wrapper {
|
|
grid-column: 1/-1;
|
|
}
|
|
|
|
.nova-enabled .top-sites-list {
|
|
grid-template-columns: repeat(6, auto);
|
|
column-gap: var(--space-medium);
|
|
row-gap: var(--space-large);
|
|
}
|
|
.nova-enabled .top-sites-list .nova-hide-for-xs,
|
|
.nova-enabled .top-sites-list .nova-hide-for-s {
|
|
display: none;
|
|
}
|
|
@container content-grid (inline-size >= calc(8 * 75px + 7 * 0.75rem)) {
|
|
.nova-enabled .top-sites-list {
|
|
grid-template-columns: repeat(8, auto);
|
|
}
|
|
.nova-enabled .top-sites-list .nova-hide-for-xs {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
@container content-grid (inline-size >= calc(12 * 75px + 11 * 0.75rem)) {
|
|
.nova-enabled .top-sites-list {
|
|
grid-template-columns: repeat(var(--top-sites-max-per-row, 8), auto);
|
|
}
|
|
.nova-enabled .top-sites-list .nova-hide-for-s {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
.nova-enabled .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :has(.top-site-inner:is(:hover, :focus-within))) {
|
|
background: none;
|
|
}
|
|
.nova-enabled .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :has(.top-site-inner:is(:hover, :focus-within))) .tile {
|
|
border-color: var(--button-border-color-ghost-hover);
|
|
}
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.nova-enabled .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :has(.top-site-inner:is(:hover, :focus-within))) .tile {
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
width: var(--col-width);
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
height: var(--col-width);
|
|
}
|
|
}
|
|
.nova-enabled .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :has(.top-site-inner:is(:hover, :focus-within))) .icon-pin-small,
|
|
.nova-enabled .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :has(.top-site-inner:is(:hover, :focus-within))) .context-menu-button {
|
|
opacity: 1;
|
|
}
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.nova-enabled .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :has(.top-site-inner:is(:hover, :focus-within))) .icon-pin-small,
|
|
.nova-enabled .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :has(.top-site-inner:is(:hover, :focus-within))) .context-menu-button {
|
|
transition: opacity 100ms ease-out 50ms;
|
|
}
|
|
}
|
|
|
|
.nova-enabled .top-site-outer {
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
width: var(--col-width);
|
|
margin-block-end: 0;
|
|
}
|
|
.nova-enabled .top-site-outer .top-site-button {
|
|
display: grid;
|
|
grid-template-rows: var(--col-width) auto;
|
|
padding: 0;
|
|
}
|
|
.nova-enabled .top-site-outer .tile {
|
|
align-self: end;
|
|
box-shadow: var(--card-box-shadow);
|
|
border: var(--border-width) solid var(--button-border-color-ghost);
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.nova-enabled .top-site-outer .tile {
|
|
transition: width 100ms ease-out, height 100ms ease-out;
|
|
}
|
|
}
|
|
.nova-enabled .top-site-outer .tile .top-site-icon {
|
|
border-radius: var(--border-radius-small);
|
|
}
|
|
.nova-enabled .top-site-outer:active .tile {
|
|
border-color: var(--button-border-color-ghost-active);
|
|
}
|
|
.nova-enabled .top-site-outer .top-site-inner > a:focus .tile {
|
|
outline: var(--focus-outline);
|
|
}
|
|
.lightWallpaper .nova-enabled .top-site-outer .title {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .nova-enabled .top-site-outer .title {
|
|
color-scheme: dark;
|
|
}
|
|
.nova-enabled .top-site-outer .context-menu {
|
|
inset-block-start: var(--space-xlarge);
|
|
}
|
|
.nova-enabled .top-site-outer .context-menu-button {
|
|
inset-inline-end: var(--space-xxsmall);
|
|
inset-block-start: var(--space-xxsmall);
|
|
border: var(--border-width) solid var(--button-border-color-ghost);
|
|
border-radius: var(--border-radius-circle);
|
|
color: var(--button-text-color-ghost);
|
|
fill: var(--button-icon-fill);
|
|
}
|
|
.nova-enabled .top-site-outer .context-menu-button:hover {
|
|
background-color: var(--button-background-color-ghost-hover);
|
|
border-color: var(--button-border-color-ghost-hover);
|
|
color: var(--button-text-color-ghost-hover);
|
|
}
|
|
.nova-enabled .top-site-outer .context-menu-button:hover:active {
|
|
background-color: var(--button-background-color-ghost-active);
|
|
border-color: var(--button-border-color-ghost-active);
|
|
}
|
|
.nova-enabled .top-site-outer .context-menu-button:focus-visible {
|
|
background-color: var(--button-background-color-ghost);
|
|
}
|
|
.lightWallpaper .nova-enabled .top-site-outer .context-menu-button, .darkWallpaper .nova-enabled .top-site-outer .context-menu-button {
|
|
color-scheme: light dark;
|
|
}
|
|
.lightWallpaper .nova-enabled .top-site-outer .context-menu-button:focus-visible::after, .darkWallpaper .nova-enabled .top-site-outer .context-menu-button:focus-visible::after {
|
|
content: none;
|
|
}
|
|
.nova-enabled .top-site-outer .icon-pin-small {
|
|
inset-block-start: calc(var(--space-xsmall) + var(--space-xxsmall));
|
|
inset-inline-start: calc(var(--space-xsmall) + var(--space-xxsmall));
|
|
}
|
|
.lightWallpaper .nova-enabled .top-site-outer .icon-pin-small, .darkWallpaper .nova-enabled .top-site-outer .icon-pin-small {
|
|
color-scheme: light dark;
|
|
}
|
|
.nova-enabled .top-site-outer .title .title-label {
|
|
padding: 0;
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
width: var(--col-width);
|
|
}
|
|
.nova-enabled .top-site-outer .title.sponsored > .title-label {
|
|
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
|
|
width: calc(var(--col-width) + 8px);
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.nova-enabled .top-site-outer .context-menu-button {
|
|
inset-inline-end: calc(var(--space-xsmall) + var(--space-xxsmall) / 2);
|
|
inset-block-start: var(--space-small);
|
|
}
|
|
|
|
.nova-enabled .top-site-outer .icon-pin-small {
|
|
inset-block-start: calc(var(--space-medium) + var(--space-xxsmall));
|
|
inset-inline-start: var(--space-small);
|
|
}
|
|
}
|
|
@media (forced-colors: active) {
|
|
.nova-enabled .top-site-outer .tile {
|
|
background-color: var(--button-background-color);
|
|
}
|
|
|
|
.nova-enabled .top-site-outer .context-menu-button {
|
|
background-color: var(--button-background-color);
|
|
}
|
|
|
|
.nova-enabled .top-site-outer:is(.active, :has(.top-site-inner:is(:hover, :focus-within))) .tile {
|
|
background-color: var(--button-background-color-hover);
|
|
}
|
|
|
|
.nova-enabled .top-site-outer .sponsored-label {
|
|
color: var(--text-color);
|
|
}
|
|
}
|
|
/* 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 https://mozilla.org/MPL/2.0/. */
|
|
.nova-enabled .section-title-wrapper {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
column-gap: var(--space-medium);
|
|
}
|
|
@container content-grid (inline-size >= calc(12 * 75px + 11 * 0.75rem)) {
|
|
.nova-enabled .section-title-wrapper {
|
|
column-gap: var(--space-large);
|
|
}
|
|
}
|
|
.nova-enabled .section-title-wrapper .section-subtitle {
|
|
flex-basis: 100%;
|
|
}
|
|
|
|
.lightWallpaper .nova-enabled .ds-section .section-follow,
|
|
.lightWallpaper .nova-enabled .ds-section .section-context-menu {
|
|
color-scheme: light;
|
|
}
|
|
.darkWallpaper .nova-enabled .ds-section .section-follow,
|
|
.darkWallpaper .nova-enabled .ds-section .section-context-menu {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
.nova-enabled .ds-section .section-follow moz-button::part(button) {
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
.nova-enabled .ds-section .section-follow moz-button::part(moz-button-label) {
|
|
max-width: 30ch;
|
|
transition: max-width 0.2s ease, opacity 0.2s ease;
|
|
}
|
|
@starting-style {
|
|
.nova-enabled .ds-section .section-follow moz-button::part(moz-button-label) {
|
|
max-width: 0;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@container content-grid (inline-size < calc(8 * 75px + 7 * 0.75rem)) {
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui {
|
|
--nova-small-card-image-width: 132px;
|
|
--nova-small-card-image-height: 108px;
|
|
--nova-stp-inset: var(--space-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui:not(.placeholder) {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui:hover, .nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui:active, .nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui:focus-within, .nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui.active {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui:hover .meta .sections-card-footer, .nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui:active .meta .sections-card-footer, .nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui:focus-within .meta .sections-card-footer, .nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui.active .meta .sections-card-footer {
|
|
padding-inline-end: var(--space-xlarge);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui .ds-card-link {
|
|
align-items: flex-start;
|
|
gap: var(--space-small);
|
|
padding: var(--space-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui .img-wrapper {
|
|
width: var(--nova-small-card-image-width);
|
|
height: var(--nova-small-card-image-height);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui .img-wrapper > .ds-image.img > img {
|
|
border-radius: calc(var(--border-radius-small) + var(--space-xxsmall));
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui .meta {
|
|
height: calc(var(--nova-small-card-image-height) + var(--space-xxsmall));
|
|
min-height: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui .meta .info-wrap {
|
|
margin-block-start: 0;
|
|
max-width: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
margin-block-end: 0;
|
|
min-height: var(--size-item-medium);
|
|
max-width: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--nova-stp-inset);
|
|
inset-block-end: var(--nova-stp-inset);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-small.ds-card.sections-card-ui .context-menu-position-container .context-menu-button {
|
|
width: var(--size-item-medium);
|
|
height: var(--size-item-medium);
|
|
border-radius: var(--border-radius-circle);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle),
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui:not(.ds-spoc-rectangle) {
|
|
--nova-stp-inset: var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):not(.placeholder),
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui:not(.ds-spoc-rectangle):not(.placeholder) {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):not(.placeholder) .img-wrapper > .ds-image.img > img,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui:not(.ds-spoc-rectangle):not(.placeholder) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):hover, .nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):active, .nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):focus-within, .nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle).active,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui:not(.ds-spoc-rectangle):hover,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui:not(.ds-spoc-rectangle):active,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui:not(.ds-spoc-rectangle):focus-within,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui:not(.ds-spoc-rectangle).active {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .ds-card-link,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .ds-card-link {
|
|
gap: var(--space-medium);
|
|
padding: var(--space-large) var(--space-large) var(--space-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta {
|
|
padding: 0;
|
|
min-height: 79px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta .info-wrap .title,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta .info-wrap .title {
|
|
font-size: var(--font-size-small);
|
|
margin-block-end: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta .info-wrap .excerpt,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta .info-wrap .excerpt {
|
|
display: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta .sections-card-footer,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta .sections-card-footer {
|
|
min-height: var(--size-item-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .card-stp-button-hover-background .card-stp-button-position-wrapper,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--nova-stp-inset);
|
|
inset-block-end: var(--nova-stp-inset);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .context-menu-position-container .context-menu-button,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-1-large.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .context-menu-position-container .context-menu-button {
|
|
width: var(--size-item-medium);
|
|
height: var(--size-item-medium);
|
|
border-radius: var(--border-radius-circle);
|
|
}
|
|
}
|
|
@container content-grid ((inline-size >= calc(8 * 75px + 7 * 0.75rem)) and (inline-size < calc(12 * 75px + 11 * 0.75rem))) {
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui {
|
|
--nova-small-card-image-width: 132px;
|
|
--nova-small-card-image-height: 108px;
|
|
--nova-stp-inset: var(--space-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui:not(.placeholder) {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui:hover, .nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui:active, .nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui:focus-within, .nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui.active {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui:hover .meta .sections-card-footer, .nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui:active .meta .sections-card-footer, .nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui:focus-within .meta .sections-card-footer, .nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui.active .meta .sections-card-footer {
|
|
padding-inline-end: var(--space-xlarge);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui .ds-card-link {
|
|
align-items: flex-start;
|
|
gap: var(--space-small);
|
|
padding: var(--space-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui .img-wrapper {
|
|
width: var(--nova-small-card-image-width);
|
|
height: var(--nova-small-card-image-height);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui .img-wrapper > .ds-image.img > img {
|
|
border-radius: calc(var(--border-radius-small) + var(--space-xxsmall));
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui .meta {
|
|
height: calc(var(--nova-small-card-image-height) + var(--space-xxsmall));
|
|
min-height: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui .meta .info-wrap {
|
|
margin-block-start: 0;
|
|
max-width: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
margin-block-end: 0;
|
|
min-height: var(--size-item-medium);
|
|
max-width: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--nova-stp-inset);
|
|
inset-block-end: var(--nova-stp-inset);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-small.ds-card.sections-card-ui .context-menu-position-container .context-menu-button {
|
|
width: var(--size-item-medium);
|
|
height: var(--size-item-medium);
|
|
border-radius: var(--border-radius-circle);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) {
|
|
--nova-stp-inset: var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):not(.placeholder) {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):not(.placeholder) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):hover, .nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):active, .nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):focus-within, .nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle).active {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .ds-card-link {
|
|
gap: var(--space-medium);
|
|
padding: var(--space-large) var(--space-large) var(--space-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta {
|
|
padding: 0;
|
|
min-height: 79px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta .info-wrap .title {
|
|
font-size: var(--font-size-small);
|
|
margin-block-end: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta .info-wrap .excerpt {
|
|
display: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta .sections-card-footer {
|
|
min-height: var(--size-item-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--nova-stp-inset);
|
|
inset-block-end: var(--nova-stp-inset);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .context-menu-position-container .context-menu-button {
|
|
width: var(--size-item-medium);
|
|
height: var(--size-item-medium);
|
|
border-radius: var(--border-radius-circle);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui:not(.placeholder) {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui:hover, .nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui:active, .nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui:focus-within, .nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui.active {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
@media (min-width: 724px) {
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui {
|
|
--nova-large-card-image-width: 240px;
|
|
--nova-large-card-image-height: 200px;
|
|
--nova-stp-inset: var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .ds-card-link {
|
|
flex-wrap: wrap;
|
|
gap: var(--space-large);
|
|
padding: var(--space-xlarge) var(--space-xlarge) var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .img-wrapper {
|
|
width: var(--nova-large-card-image-width);
|
|
height: var(--nova-large-card-image-height);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .meta {
|
|
display: contents;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .meta .info-wrap {
|
|
flex: 1;
|
|
margin-inline-start: var(--space-small);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .meta .info-wrap .title {
|
|
margin-block: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .meta .info-wrap .excerpt {
|
|
display: block;
|
|
-webkit-line-clamp: 6;
|
|
margin-block: var(--space-medium) 0;
|
|
color: var(--newtab-text-primary-color);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
flex-basis: 100%;
|
|
margin-block-start: 0;
|
|
margin-block-end: 0;
|
|
min-height: var(--size-item-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--nova-stp-inset);
|
|
inset-block-end: var(--nova-stp-inset);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-2-large.ds-card.sections-card-ui .context-menu-position-container .context-menu-button {
|
|
width: var(--size-item-medium);
|
|
height: var(--size-item-medium);
|
|
border-radius: var(--border-radius-circle);
|
|
}
|
|
}
|
|
}
|
|
@container content-grid ((inline-size >= calc(12 * 75px + 11 * 0.75rem)) and (inline-size < calc(16 * 75px + 15 * 0.75rem))) {
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui {
|
|
--nova-small-card-image-width: 132px;
|
|
--nova-small-card-image-height: 108px;
|
|
--nova-stp-inset: var(--space-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui:not(.placeholder) {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui:hover, .nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui:active, .nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui:focus-within, .nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui.active {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui:hover .meta .sections-card-footer, .nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui:active .meta .sections-card-footer, .nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui:focus-within .meta .sections-card-footer, .nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui.active .meta .sections-card-footer {
|
|
padding-inline-end: var(--space-xlarge);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui .ds-card-link {
|
|
align-items: flex-start;
|
|
gap: var(--space-small);
|
|
padding: var(--space-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui .img-wrapper {
|
|
width: var(--nova-small-card-image-width);
|
|
height: var(--nova-small-card-image-height);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui .img-wrapper > .ds-image.img > img {
|
|
border-radius: calc(var(--border-radius-small) + var(--space-xxsmall));
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui .meta {
|
|
height: calc(var(--nova-small-card-image-height) + var(--space-xxsmall));
|
|
min-height: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui .meta .info-wrap {
|
|
margin-block-start: 0;
|
|
max-width: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
margin-block-end: 0;
|
|
min-height: var(--size-item-medium);
|
|
max-width: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--nova-stp-inset);
|
|
inset-block-end: var(--nova-stp-inset);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-small.ds-card.sections-card-ui .context-menu-position-container .context-menu-button {
|
|
width: var(--size-item-medium);
|
|
height: var(--size-item-medium);
|
|
border-radius: var(--border-radius-circle);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) {
|
|
--nova-stp-inset: var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):not(.placeholder) {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):not(.placeholder) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):hover, .nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):active, .nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):focus-within, .nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle).active {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .ds-card-link {
|
|
gap: var(--space-medium);
|
|
padding: var(--space-large) var(--space-large) var(--space-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta {
|
|
padding: 0;
|
|
min-height: 79px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta .info-wrap .title {
|
|
font-size: var(--font-size-small);
|
|
margin-block-end: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta .info-wrap .excerpt {
|
|
display: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta .sections-card-footer {
|
|
min-height: var(--size-item-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--nova-stp-inset);
|
|
inset-block-end: var(--nova-stp-inset);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .context-menu-position-container .context-menu-button {
|
|
width: var(--size-item-medium);
|
|
height: var(--size-item-medium);
|
|
border-radius: var(--border-radius-circle);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui:not(.placeholder) {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui:hover, .nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui:active, .nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui:focus-within, .nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui.active {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
@media (min-width: 724px) {
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui {
|
|
--nova-large-card-image-width: 240px;
|
|
--nova-large-card-image-height: 200px;
|
|
--nova-stp-inset: var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .ds-card-link {
|
|
flex-wrap: wrap;
|
|
gap: var(--space-large);
|
|
padding: var(--space-xlarge) var(--space-xlarge) var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .img-wrapper {
|
|
width: var(--nova-large-card-image-width);
|
|
height: var(--nova-large-card-image-height);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .meta {
|
|
display: contents;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .meta .info-wrap {
|
|
flex: 1;
|
|
margin-inline-start: var(--space-small);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .meta .info-wrap .title {
|
|
margin-block: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .meta .info-wrap .excerpt {
|
|
display: block;
|
|
-webkit-line-clamp: 6;
|
|
margin-block: var(--space-medium) 0;
|
|
color: var(--newtab-text-primary-color);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
flex-basis: 100%;
|
|
margin-block-start: 0;
|
|
margin-block-end: 0;
|
|
min-height: var(--size-item-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--nova-stp-inset);
|
|
inset-block-end: var(--nova-stp-inset);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-3-large.ds-card.sections-card-ui .context-menu-position-container .context-menu-button {
|
|
width: var(--size-item-medium);
|
|
height: var(--size-item-medium);
|
|
border-radius: var(--border-radius-circle);
|
|
}
|
|
}
|
|
}
|
|
@container content-grid (inline-size >= calc(16 * 75px + 15 * 0.75rem)) {
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui {
|
|
--nova-small-card-image-width: 132px;
|
|
--nova-small-card-image-height: 108px;
|
|
--nova-stp-inset: var(--space-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui:not(.placeholder) {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui:hover, .nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui:active, .nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui:focus-within, .nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui.active {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui:hover .meta .sections-card-footer, .nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui:active .meta .sections-card-footer, .nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui:focus-within .meta .sections-card-footer, .nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui.active .meta .sections-card-footer {
|
|
padding-inline-end: var(--space-xlarge);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui .ds-card-link {
|
|
align-items: flex-start;
|
|
gap: var(--space-small);
|
|
padding: var(--space-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui .img-wrapper {
|
|
width: var(--nova-small-card-image-width);
|
|
height: var(--nova-small-card-image-height);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui .img-wrapper > .ds-image.img > img {
|
|
border-radius: calc(var(--border-radius-small) + var(--space-xxsmall));
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui .meta {
|
|
height: calc(var(--nova-small-card-image-height) + var(--space-xxsmall));
|
|
min-height: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui .meta .info-wrap {
|
|
margin-block-start: 0;
|
|
max-width: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
margin-block-end: 0;
|
|
min-height: var(--size-item-medium);
|
|
max-width: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--nova-stp-inset);
|
|
inset-block-end: var(--nova-stp-inset);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-small.ds-card.sections-card-ui .context-menu-position-container .context-menu-button {
|
|
width: var(--size-item-medium);
|
|
height: var(--size-item-medium);
|
|
border-radius: var(--border-radius-circle);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) {
|
|
--nova-stp-inset: var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):not(.placeholder) {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):not(.placeholder) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):hover, .nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):active, .nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle):focus-within, .nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle).active {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .ds-card-link {
|
|
gap: var(--space-medium);
|
|
padding: var(--space-large) var(--space-large) var(--space-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta {
|
|
padding: 0;
|
|
min-height: 79px;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta .info-wrap .title {
|
|
font-size: var(--font-size-small);
|
|
margin-block-end: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta .info-wrap .excerpt {
|
|
display: none;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .meta .sections-card-footer {
|
|
min-height: var(--size-item-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--nova-stp-inset);
|
|
inset-block-end: var(--nova-stp-inset);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-medium.ds-card.sections-card-ui:not(.ds-spoc-rectangle) .context-menu-position-container .context-menu-button {
|
|
width: var(--size-item-medium);
|
|
height: var(--size-item-medium);
|
|
border-radius: var(--border-radius-circle);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui:not(.placeholder) {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui:hover, .nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui:active, .nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui:focus-within, .nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui.active {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
@media (min-width: 724px) {
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui {
|
|
--nova-large-card-image-width: 240px;
|
|
--nova-large-card-image-height: 200px;
|
|
--nova-stp-inset: var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .ds-card-link {
|
|
flex-wrap: wrap;
|
|
gap: var(--space-large);
|
|
padding: var(--space-xlarge) var(--space-xlarge) var(--space-large);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .img-wrapper {
|
|
width: var(--nova-large-card-image-width);
|
|
height: var(--nova-large-card-image-height);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .meta {
|
|
display: contents;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .meta .info-wrap {
|
|
flex: 1;
|
|
margin-inline-start: var(--space-small);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .meta .info-wrap .title {
|
|
margin-block: 0;
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .meta .info-wrap .excerpt {
|
|
display: block;
|
|
-webkit-line-clamp: 6;
|
|
margin-block: var(--space-medium) 0;
|
|
color: var(--newtab-text-primary-color);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .meta .sections-card-footer {
|
|
flex-basis: 100%;
|
|
margin-block-start: 0;
|
|
margin-block-end: 0;
|
|
min-height: var(--size-item-medium);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--nova-stp-inset);
|
|
inset-block-end: var(--nova-stp-inset);
|
|
}
|
|
.nova-enabled .ds-section-grid.ds-card-grid .col-4-large.ds-card.sections-card-ui .context-menu-position-container .context-menu-button {
|
|
width: var(--size-item-medium);
|
|
height: var(--size-item-medium);
|
|
border-radius: var(--border-radius-circle);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* 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 https://mozilla.org/MPL/2.0/. */
|
|
.nova-enabled .ds-card-grid:not(.ds-section-grid) .ds-card {
|
|
--nova-stp-inset: var(--space-medium);
|
|
}
|
|
.nova-enabled .ds-card-grid:not(.ds-section-grid) .ds-card:not(.placeholder) {
|
|
box-shadow: var(--card-box-shadow);
|
|
}
|
|
.nova-enabled .ds-card-grid:not(.ds-section-grid) .ds-card:hover, .nova-enabled .ds-card-grid:not(.ds-section-grid) .ds-card:active, .nova-enabled .ds-card-grid:not(.ds-section-grid) .ds-card:focus-within {
|
|
box-shadow: var(--card-box-shadow-hover);
|
|
}
|
|
.nova-enabled .ds-card-grid:not(.ds-section-grid) .ds-card .meta .excerpt {
|
|
display: none;
|
|
}
|
|
.nova-enabled .ds-card-grid:not(.ds-section-grid) .ds-card .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--nova-stp-inset);
|
|
inset-block-end: var(--nova-stp-inset);
|
|
}
|
|
.nova-enabled .ds-card-grid:not(.ds-section-grid) .ds-card .context-menu-position-container .context-menu-button {
|
|
width: var(--size-item-medium);
|
|
height: var(--size-item-medium);
|
|
border-radius: var(--border-radius-circle);
|
|
}
|
|
|
|
.nova-enabled .ds-card-grid:not(.ds-section-grid) .ds-card.ds-spoc .img-wrapper {
|
|
padding: var(--space-large) var(--space-large) 0;
|
|
}
|
|
.nova-enabled .ds-card-grid:not(.ds-section-grid) .ds-card.ds-spoc .img img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.nova-enabled .ds-card-grid:not(.ds-section-grid) .ds-card.ds-spoc .meta {
|
|
padding: var(--space-medium) var(--space-large) var(--space-medium);
|
|
}
|
|
.nova-enabled .ds-card-grid:not(.ds-section-grid) .ds-card.ds-spoc .meta .title {
|
|
font-size: var(--font-size-small);
|
|
}
|
|
|
|
.nova-enabled .ds-card-grid:not(.ds-section-grid) .ds-card:not(.ds-spoc, .ds-spoc-rectangle):not(.placeholder) .img-wrapper > .ds-image.img > img {
|
|
border-radius: var(--border-radius-medium);
|
|
}
|
|
.nova-enabled .ds-card-grid:not(.ds-section-grid) .ds-card:not(.ds-spoc, .ds-spoc-rectangle) .ds-card-link {
|
|
gap: var(--space-medium);
|
|
padding: var(--space-large) var(--space-large) var(--space-medium);
|
|
}
|
|
.nova-enabled .ds-card-grid:not(.ds-section-grid) .ds-card:not(.ds-spoc, .ds-spoc-rectangle) .meta {
|
|
padding: 0;
|
|
min-height: 72px;
|
|
gap: var(--space-small);
|
|
}
|
|
.nova-enabled .ds-card-grid:not(.ds-section-grid) .ds-card:not(.ds-spoc, .ds-spoc-rectangle) .meta .info-wrap .title {
|
|
font-size: var(--font-size-small);
|
|
margin-block-end: 0;
|
|
}
|
|
.nova-enabled .ds-card-grid:not(.ds-section-grid) .ds-card:not(.ds-spoc, .ds-spoc-rectangle) .meta .sections-card-footer {
|
|
margin-block-start: auto;
|
|
min-height: var(--size-item-medium);
|
|
padding-inline-end: var(--space-xxlarge);
|
|
}
|
|
|
|
.nova-enabled .ds-card.sections-card-ui .sections-card-footer .source-wrapper {
|
|
gap: calc(var(--space-xsmall) + var(--space-xxsmall));
|
|
max-width: none;
|
|
}
|
|
.nova-enabled .ds-card.sections-card-ui .sections-card-footer .source-wrapper img {
|
|
width: var(--icon-size);
|
|
height: var(--icon-size);
|
|
margin-inline-end: 0;
|
|
border-radius: var(--border-radius-circle);
|
|
}
|
|
|
|
.nova-enabled .ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle,
|
|
.nova-enabled .ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle {
|
|
--nova-stp-inset: var(--space-xxsmall);
|
|
}
|
|
.nova-enabled .ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .ds-card-link,
|
|
.nova-enabled .ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .ds-card-link {
|
|
padding-block-start: var(--space-small);
|
|
}
|
|
.nova-enabled .ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .ds-image,
|
|
.nova-enabled .ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .ds-image {
|
|
padding-block-start: 0;
|
|
height: var(--mrec-height);
|
|
width: var(--mrec-width);
|
|
margin-inline: auto;
|
|
}
|
|
.nova-enabled .ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .img-wrapper .ds-image img,
|
|
.nova-enabled .ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .img-wrapper .ds-image img {
|
|
border-radius: 0;
|
|
}
|
|
.nova-enabled .ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .meta,
|
|
.nova-enabled .ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .meta {
|
|
padding-block-start: 0;
|
|
}
|
|
.nova-enabled .ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .meta .title,
|
|
.nova-enabled .ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .meta .title {
|
|
font-size: var(--font-size-small);
|
|
margin-block-end: var(--space-xxsmall);
|
|
}
|
|
.nova-enabled .ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .meta .excerpt,
|
|
.nova-enabled .ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .meta .excerpt {
|
|
display: none;
|
|
}
|
|
.nova-enabled .ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .card-stp-button-hover-background .card-stp-button-position-wrapper,
|
|
.nova-enabled .ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--nova-stp-inset);
|
|
inset-block-end: var(--nova-stp-inset);
|
|
}
|
|
.nova-enabled .ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .context-menu-position-container .context-menu-button,
|
|
.nova-enabled .ds-section-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .context-menu-position-container .context-menu-button {
|
|
width: var(--size-item-medium);
|
|
height: var(--size-item-medium);
|
|
border-radius: var(--border-radius-circle);
|
|
}
|
|
|
|
.nova-enabled .ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .card-stp-button-hover-background .card-stp-button-position-wrapper,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .ds-card.ds-spoc-rectangle.ds-spoc-rectangle .card-stp-button-hover-background .card-stp-button-position-wrapper {
|
|
inset-inline-end: var(--space-medium);
|
|
}
|
|
.nova-enabled .ds-card-grid .img img,
|
|
.nova-enabled .ds-section-grid.ds-card-grid .img img {
|
|
inset-block-start: 50%;
|
|
inset-inline-start: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
.nova-enabled .ds-card-grid .img img:dir(rtl),
|
|
.nova-enabled .ds-section-grid.ds-card-grid .img img:dir(rtl) {
|
|
transform: translate(50%, -50%);
|
|
}
|
|
|
|
.nova-enabled .ds-card.ds-spoc .story-footer {
|
|
margin-block: 0;
|
|
height: unset;
|
|
}
|
|
.nova-enabled .ds-card.ds-spoc .story-footer .source-wrapper {
|
|
gap: var(--space-small);
|
|
margin-block-end: var(--space-xsmall);
|
|
}
|
|
.nova-enabled .ds-card.ds-spoc .story-footer .ds-spoc-separator {
|
|
width: 3px;
|
|
height: 3px;
|
|
border-radius: var(--border-radius-circle);
|
|
background-color: currentColor;
|
|
color: var(--text-color-deemphasized);
|
|
}
|
|
.nova-enabled .ds-card.ds-spoc .story-footer .ds-spoc-sponsored {
|
|
font-size: var(--font-size-small);
|
|
}
|
|
|
|
.nova-enabled .ds-card .img-wrapper {
|
|
color: var(--newtab-primary-action-background);
|
|
}
|