diff options
Diffstat (limited to 'browser/components/newtab/css/activity-stream-windows.css')
-rw-r--r-- | browser/components/newtab/css/activity-stream-windows.css | 4689 |
1 files changed, 4689 insertions, 0 deletions
diff --git a/browser/components/newtab/css/activity-stream-windows.css b/browser/components/newtab/css/activity-stream-windows.css new file mode 100644 index 0000000000..fbe37fc317 --- /dev/null +++ b/browser/components/newtab/css/activity-stream-windows.css @@ -0,0 +1,4689 @@ +@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 is the windows variant */ +html { + box-sizing: border-box; +} + +*, +*::before, +*::after { + box-sizing: inherit; +} + +*::-moz-focus-inner { + border: 0; +} + +body { + margin: 0; +} + +button, +input { + background-color: inherit; + color: inherit; + font-family: inherit; + font-size: inherit; +} + +[hidden] { + display: none !important; +} + +body { + --newtab-background-color: #F9F9FB; + --newtab-background-color-secondary: #FFF; + --newtab-text-primary-color: #15141a; + --newtab-primary-action-background: #0061e0; + --newtab-primary-action-background-pocket: #008078; + --newtab-text-secondary-color: color-mix(in srgb, var(--newtab-text-primary-color) 70%, transparent); + --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-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-color: color-mix(in srgb, var(--newtab-primary-action-background) 90%, #000); + --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: #FFF; + --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-border-color: color-mix(in srgb, var(--newtab-background-color) 75%, #000); + --newtab-wordmark-color: #20123A; + --newtab-status-success: #058B00; + --newtab-status-error: #D70022; + --newtab-inner-box-shadow-color: rgba(0, 0, 0, 0.1); + --newtab-overlay-color: color-mix(in srgb, var(--newtab-background-color) 85%, transparent); + --newtab-text-emphasis-background: #FFE900; + --newtab-text-emphasis-text-color: #0C0C0D; + --newtab-textbox-focus-color: var(--newtab-primary-action-background); + --newtab-textbox-focus-boxshadow: 0 0 0 1px var(--newtab-primary-action-background), 0 0 0 4px rgba(var(--newtab-primary-action-background), 0.3); + --newtab-button-secondary-color: inherit; +} +body[lwt-newtab-brighttext] { + --newtab-background-color: #2B2A33; + --newtab-background-color-secondary: #42414d; + --newtab-text-primary-color: #fbfbfe; + --newtab-primary-action-background: #00ddff; + --newtab-primary-action-background-pocket: #00ddff; + --newtab-primary-action-background-pocket-dimmed: color-mix(in srgb, var(--newtab-primary-action-background) 25%, transparent); + --newtab-primary-element-hover-color: color-mix(in srgb, var(--newtab-primary-action-background) 55%, #FFF); + --newtab-primary-element-hover-pocket-color: color-mix(in srgb, var(--newtab-primary-action-background-pocket) 55%, #FFF); + --newtab-element-hover-color: color-mix(in srgb, var(--newtab-background-color) 80%, #FFF); + --newtab-element-active-color: color-mix(in srgb, var(--newtab-background-color) 60%, #FFF); + --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-border-color: color-mix(in srgb, var(--newtab-background-color) 75%, #FFF); + --newtab-primary-element-text-color: #2b2a33; + --newtab-wordmark-color: #fbfbfe; + --newtab-status-success: #7C6; +} + +@media (prefers-contrast) { + body { + --newtab-text-secondary-color: var(--newtab-text-primary-color); + } +} +.icon { + background-position: center center; + background-repeat: no-repeat; + background-size: 16px; + -moz-context-properties: fill; + display: inline-block; + color: var(--newtab-text-primary-color); + fill: currentColor; + height: 16px; + vertical-align: middle; + width: 16px; +} +.icon.icon-spacer { + margin-inline-end: 8px; +} +.icon.icon-small-spacer { + margin-inline-end: 6px; +} +.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://activity-stream/content/data/content/assets/glyph-modal-delete-20.svg"); + background-size: 32px; + height: 32px; + width: 32px; +} +.icon.icon-mail { + background-image: url("chrome://activity-stream/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-new-window { + background-image: url("chrome://activity-stream/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://activity-stream/content/data/content/assets/glyph-pin-16.svg"); +} +.icon.icon-pin:dir(rtl) { + transform: scaleX(-1); +} +.icon.icon-unpin { + background-image: url("chrome://activity-stream/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-pocket { + background-image: url("chrome://global/skin/icons/pocket.svg"); +} +.icon.icon-pocket-save { + background-image: url("chrome://global/skin/icons/pocket.svg"); + fill: #FFF; +} +.icon.icon-pocket-delete { + background-image: url("chrome://activity-stream/content/data/content/assets/glyph-pocket-delete-16.svg"); +} +.icon.icon-pocket-archive { + background-image: url("chrome://activity-stream/content/data/content/assets/glyph-pocket-archive-16.svg"); +} +.icon.icon-history-item { + background-image: url("chrome://browser/skin/history.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-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://activity-stream/content/data/content/assets/glyph-open-file-16.svg"); +} +.icon.icon-webextension { + background-image: url("chrome://activity-stream/content/data/content/assets/glyph-webextension-16.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-minimize { + background-image: url("chrome://activity-stream/content/data/content/assets/glyph-minimize-16.svg"); +} +.icon.icon-maximize { + background-image: url("chrome://activity-stream/content/data/content/assets/glyph-maximize-16.svg"); +} +.icon.icon-arrow { + background-image: url("chrome://global/skin/icons/arrow-right-12.svg"); +} + +html { + height: 100%; +} + +body, +#root { + min-height: 100vh; +} + +#root { + position: relative; +} + +body { + background-color: var(--newtab-background-color); + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Ubuntu", "Helvetica Neue", sans-serif; + font-size: 16px; +} + +.no-scroll { + overflow: hidden; +} + +h1, +h2 { + font-weight: normal; +} + +a { + text-decoration: none; +} + +.inner-border { + border: 1px solid var(--newtab-border-color); + border-radius: 3px; + height: 100%; + left: 0; + pointer-events: none; + position: absolute; + top: 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-top: 1px solid var(--newtab-border-color); + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: flex-start; + margin: 0; + padding: 15px 25px 0; +} + +.button, +.actions button { + background-color: var(--newtab-button-secondary-color); + border: 1px solid var(--newtab-border-color); + border-radius: 4px; + color: inherit; + cursor: pointer; + margin-bottom: 15px; + padding: 10px 30px; + 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: 3px; +} + +.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; +} + +.outer-wrapper { + color: var(--newtab-text-primary-color); + display: flex; + flex-grow: 1; + min-height: 100vh; + padding: 30px 32px 32px; +} +.outer-wrapper.ds-outer-wrapper-breakpoint-override { + padding: 30px 0 32px; +} +@media (min-width: 610px) { + .outer-wrapper.ds-outer-wrapper-breakpoint-override { + padding: 30px 32px 32px; + } +} +.outer-wrapper.only-search { + display: block; + padding-top: 134px; +} +.outer-wrapper a { + color: var(--newtab-primary-action-background); +} + +main { + margin: auto; + width: 274px; + padding: 0; +} +main section { + margin-bottom: 20px; + position: relative; +} +.hide-main main { + visibility: hidden; +} +@media (min-width: 610px) { + main { + width: 530px; + } +} +@media (min-width: 866px) { + main { + width: 786px; + } +} +@media (min-width: 1122px) { + main { + width: 1042px; + } +} +main.has-snippet { + padding-bottom: 68px; +} + +.below-search-snippet.withButton { + margin: auto; + width: 100%; +} + +.ds-outer-wrapper-search-alignment main { + margin: 0 auto; +} + +.ds-outer-wrapper-breakpoint-override main { + width: 266px; + padding-bottom: 0; +} +@media (min-width: 610px) { + .ds-outer-wrapper-breakpoint-override main { + width: 510px; + } +} +@media (min-width: 866px) { + .ds-outer-wrapper-breakpoint-override main { + width: 746px; + } +} +@media (min-width: 1122px) { + .ds-outer-wrapper-breakpoint-override main { + width: 986px; + } +} +.ds-outer-wrapper-breakpoint-override main.has-snippet { + padding-bottom: 68px; +} + +.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 25px; +} + +.prefs-button button { + background-color: transparent; + border: 0; + border-radius: 2px; + cursor: pointer; + inset-inline-end: 15px; + padding: 15px; + position: fixed; + top: 15px; + 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); +} + +.as-error-fallback { + align-items: center; + border-radius: 3px; + 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: 12px; + justify-content: center; + justify-items: center; + line-height: 1.5; +} +.as-error-fallback.borderless-error { + box-shadow: none; +} +.as-error-fallback a { + color: var(--newtab-text-secondary-color); + text-decoration: underline; +} + +.top-sites-list { + list-style: none; + margin: 0 -16px; + padding: 0; +} +.top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :focus, :hover) { + background: var(--newtab-element-hover-color); +} +@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: -32px; + } + .top-sites-list > :nth-child(2n) .context-menu { + margin-inline-end: 5px; + 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: 5px; + 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: 5px; + 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: 5px; + 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: 5px; + 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: 5px; + 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: 5px; + 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: inline-block; + } +} +@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-site-outer { + width: 120px; + padding: 20px 16px 4px; + border-radius: 8px; + display: inline-block; +} +.top-site-outer .top-site-inner { + position: relative; +} +.top-site-outer .top-site-inner > a { + color: inherit; + display: block; + outline: none; +} +.top-site-outer:is(:hover) .context-menu-button { + opacity: 1; +} +.top-site-outer .context-menu-button { + background-image: url("chrome://global/skin/icons/more.svg"); + border: 0; + border-radius: 4px; + cursor: pointer; + fill: var(--newtab-text-primary-color); + -moz-context-properties: fill; + height: 20px; + width: 20px; + inset-inline-end: -9px; + opacity: 0; + position: absolute; + top: -20px; + transition: opacity 200ms; +} +.top-site-outer .context-menu-button:is(:active, :focus) { + outline: 0; + opacity: 1; + background-color: var(--newtab-element-hover-color); + fill: var(--newtab-primary-action-background); +} +.top-site-outer .tile { + border-radius: 8px; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); + background-color: var(--newtab-background-color-secondary); + justify-content: center; + margin: 0 auto; + height: 80px; + width: 80px; + cursor: pointer; + position: relative; + align-items: center; + color: var(--newtab-text-secondary-color); + display: flex; + font-size: 32px; + font-weight: 200; + text-transform: uppercase; +} +.top-site-outer .tile .icon-wrapper { + border-radius: 4px; + width: 48px; + height: 48px; + overflow: hidden; + position: relative; + display: flex; + align-items: center; + justify-content: center; +} +.top-site-outer .tile .icon-wrapper.letter-fallback::before { + content: attr(data-fallback); + text-transform: uppercase; + display: flex; + align-items: center; + justify-content: center; + font-size: 64px; + font-weight: 800; + transform: rotate(-10deg); + top: 6px; + position: relative; + color: #FFF; +} +.top-site-outer .top-site-icon { + background-color: var(--newtab-background-color-secondary); + background-position: center center; + background-repeat: no-repeat; + border-radius: 4px; + position: absolute; +} +.top-site-outer .rich-icon { + background-size: cover; + height: 100%; + inset-inline-start: 0; + top: 0; + width: 100%; +} +.top-site-outer .default-icon, +.top-site-outer .search-topsite { + background-size: 32px; + height: 32px; + width: 32px; + align-items: center; + display: flex; + font-size: 20px; + justify-content: center; +} +.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: 32px; + -moz-context-properties: fill; + fill: var(--newtab-primary-element-text-color); + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); + transition-duration: 150ms; + transition-property: background-size, bottom, inset-inline-end, height, width; + height: 32px; + width: 32px; + bottom: -6px; + inset-inline-end: -6px; +} +.top-site-outer.placeholder .tile { + box-shadow: 0 0 0 1px var(--newtab-inner-box-shadow-color); +} +.top-site-outer .title { + color: var(--newtab-text-primary-color); + padding-top: 8px; + font: caption; + text-align: center; + position: relative; +} +.top-site-outer .title .icon { + margin-inline-end: 2px; + fill: var(--newtab-text-primary-color); +} +.top-site-outer .title span { + display: block; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.top-site-outer .title .sponsored-label { + color: var(--newtab-text-secondary-color); + font-size: 0.9em; +} +.top-site-outer .title:not(.sponsored) .sponsored-label { + visibility: hidden; +} +.top-site-outer.search-shortcut .rich-icon { + background-color: #FFF; +} +.top-site-outer .edit-button { + background-image: url("chrome://global/skin/icons/edit.svg"); +} +.top-site-outer.dragged .tile *, .top-site-outer.dragged .tile::before { + display: none; +} +.top-site-outer.dragged .title { + visibility: hidden; +} + +.edit-topsites-wrapper .top-site-inner > .top-site-button > .tile { + border: 1px solid var(--newtab-border-color); +} +.edit-topsites-wrapper .modal { + box-shadow: 0 1px 4px 0 rgba(12, 12, 13, 0.2); + left: 0; + margin: 0 auto; + max-height: calc(100% - 40px); + position: fixed; + right: 0; + top: 40px; + width: 274px; +} +@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: 16px; + margin: 0 0 16px; +} +.topsite-form .form-input-container { + max-width: 492px; + margin: 0 auto; + padding: 32px; +} +.topsite-form .form-input-container .top-site-outer { + pointer-events: none; +} +.topsite-form .search-shortcuts-container { + max-width: 700px; + margin: 0 auto; + padding: 32px; +} +.topsite-form .search-shortcuts-container > div { + margin-inline-end: -39px; +} +.topsite-form .search-shortcuts-container .top-site-outer { + margin-inline-start: 0; + margin-inline-end: 39px; +} +.topsite-form .top-site-outer { + padding: 0; + margin: 24px 0 0; + margin-inline-start: 32px; +} +.topsite-form .fields-and-preview { + display: flex; +} +.topsite-form label { + font-size: 17px; +} +.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%); + top: 50%; + inset-inline-end: 8px; +} +.topsite-form .form-wrapper .url input:dir(ltr) { + padding-right: 32px; +} +.topsite-form .form-wrapper .url input:dir(rtl) { + padding-left: 32px; +} +.topsite-form .form-wrapper .url input:dir(rtl):not(:placeholder-shown) { + direction: ltr; + text-align: right; +} +.topsite-form .form-wrapper .enable-custom-image-input { + display: inline-block; + font-size: 13px; + margin-top: 4px; + cursor: pointer; +} +.topsite-form .form-wrapper .custom-image-input-container { + margin-top: 4px; +} +.topsite-form .form-wrapper .custom-image-input-container .loading-container { + width: 16px; + height: 16px; + overflow: hidden; + position: absolute; + transform: translateY(-50%); + top: 50%; + inset-inline-end: 8px; +} +.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(--newtab-border-color); + margin: 8px 0; + padding: 0 8px; + height: 32px; + width: 100%; + font-size: 15px; +} +.topsite-form .form-wrapper input[type=text][disabled] { + border: 1px solid var(--newtab-border-color); + box-shadow: none; + opacity: 0.4; +} +.topsite-form .form-wrapper .invalid input[type=text] { + border: 1px solid var(--newtab-status-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: 2px; + color: #FFF; + inset-inline-start: 3px; + padding: 5px 12px; + position: absolute; + top: 44px; + z-index: 1; +} +.topsite-form .form-wrapper .error-tooltip::before { + background: var(--newtab-status-error); + bottom: -8px; + content: "."; + height: 16px; + inset-inline-start: 12px; + position: absolute; + text-indent: -999px; + top: -7px; + transform: rotate(45deg); + white-space: nowrap; + width: 16px; + z-index: -1; +} +.topsite-form .actions { + justify-content: flex-end; +} +.topsite-form .actions button { + margin-inline-start: 10px; + margin-inline-end: 0; +} +@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(--newtab-border-color); + border-radius: 3px; + content: ""; + height: 21px; + left: -8px; + position: absolute; + top: -8px; + width: 21px; + z-index: 1; +} +[dir=rtl] .topsite-form [type=checkbox]:not(:checked) + label::before, +[dir=rtl] .topsite-form [type=checkbox]:checked + label::before { + left: auto; + right: -8px; +} +.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; + left: -8px; + position: absolute; + top: -8px; + 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 { + left: auto; + right: -8px; +} +.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); +} + +@keyframes fade-up-tt { + 0% { + opacity: 0; + transform: translateY(15px); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} +.topsite-impression-observer { + position: absolute; + top: 0; + width: 100%; + height: 100%; + pointer-events: none; +} + +.sections-list .section-list { + display: grid; + grid-gap: 32px; + grid-template-columns: repeat(auto-fit, 192px); + margin: 0; +} +@media (max-width: 610px) { + .sections-list .section-list .context-menu { + margin-inline-end: 5px; + 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: 5px; + 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: 5px; + 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: 5px; + margin-inline-start: auto; + inset-inline-end: 0; + inset-inline-start: auto; + } +} +.sections-list .section-empty-state { + border: 1px solid var(--newtab-border-color); + border-radius: 3px; + 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: 13px; + margin-bottom: 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: 12px; + line-height: 1.6; + margin-top: 12px; + display: flex; + justify-content: space-between; +} +.top-stories-bottom-container a { + color: var(--newtab-primary-action-background); + font-weight: bold; +} +.top-stories-bottom-container a.more-recommendations { + font-weight: normal; + font-size: 13px; +} +@media (max-width: 865px) { + .top-stories-bottom-container .wrapper-topics, +.top-stories-bottom-container .wrapper-cta + .wrapper-more-recommendations { + display: none; + } +} +@media (max-width: 609px) { + .top-stories-bottom-container .wrapper-cta { + text-align: center; + } + .top-stories-bottom-container .wrapper-cta .pocket-logged-in-cta { + display: block; + margin-inline-end: 0; + } + .top-stories-bottom-container .wrapper-cta .pocket-logged-in-cta .pocket-cta-button { + max-width: none; + display: block; + margin-inline-end: 0; + margin: 5px 0 10px; + } + .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); + } +} +.topics ul { + margin: 0; + padding: 0; +} +@media (min-width: 866px) { + .topics ul { + display: inline; + padding-inline-start: 12px; + } +} +.topics ul li { + display: inline-block; +} +.topics ul li::after { + content: "•"; + padding: 8px; +} +.topics ul li:last-child::after { + content: none; +} + +.search-wrapper { + padding: 34px 0 38px; +} +.only-search .search-wrapper { + padding: 0 0 38px; +} +.search-wrapper .logo-and-wordmark { + align-items: center; + display: flex; + justify-content: center; + margin-bottom: 48px; +} +.search-wrapper .logo-and-wordmark .logo { + background: url("chrome://branding/content/about-logo.png") no-repeat center; + background-size: 82px; + display: inline-block; + height: 82px; + width: 82px; +} +@media (min-resolution: 2x) { + .search-wrapper .logo-and-wordmark .logo { + background-image: url("chrome://branding/content/about-logo@2x.png"); + } +} +.search-wrapper .logo-and-wordmark .wordmark { + background: url("chrome://branding/content/firefox-wordmark.svg") no-repeat center center; + background-size: 134px; + -moz-context-properties: fill; + display: inline-block; + fill: var(--newtab-wordmark-color); + height: 82px; + margin-inline-start: 16px; + width: 134px; +} +@media (max-width: 609px) { + .search-wrapper .logo-and-wordmark .logo { + background-size: 64px; + height: 64px; + width: 64px; + } + .search-wrapper .logo-and-wordmark .wordmark { + background-size: 100px; + height: 64px; + width: 100px; + margin-inline-start: 12px; + } +} +.search-wrapper .search-inner-wrapper { + cursor: default; + display: flex; + min-height: 52px; + margin: 0 auto; + position: relative; + width: 200px; +} +@media (min-width: 610px) { + .search-wrapper .search-inner-wrapper { + width: 360px; + } +} +@media (min-width: 866px) { + .search-wrapper .search-inner-wrapper { + width: 600px; + } +} +@media (min-width: 1122px) { + .search-wrapper .search-inner-wrapper { + width: 720px; + } +} +.search-wrapper .search-handoff-button, +.search-wrapper input { + background: var(--newtab-background-color-secondary) var(--newtab-search-icon) 16px center no-repeat; + background-size: 24px; + padding-inline-start: 52px; + padding-inline-end: 10px; + padding-block: 0; + width: 100%; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); + border: 1px solid transparent; + border-radius: 8px; + color: var(--newtab-text-primary-color); + -moz-context-properties: fill; + fill: var(--newtab-text-secondary-color); +} +.search-wrapper .search-handoff-button:dir(rtl), +.search-wrapper input:dir(rtl) { + background-position-x: right 16px; +} +.search-wrapper .search-inner-wrapper:active input, +.search-wrapper input:focus { + border: 1px solid var(--newtab-primary-action-background); + outline: 0; + box-shadow: 0 0 0 2px var(--newtab-primary-action-background-dimmed); +} +.search-wrapper .search-button { + background: url("chrome://browser/skin/forward.svg") no-repeat center center; + background-size: 16px 16px; + border: 0; + border-radius: 0 3px 3px 0; + -moz-context-properties: fill; + fill: var(--newtab-text-secondary-color); + height: 100%; + inset-inline-end: 0; + position: absolute; + width: 48px; +} +.search-wrapper .search-button:focus, .search-wrapper .search-button:hover { + background-color: var(--newtab-element-hover-color); + cursor: pointer; +} +.search-wrapper .search-button:focus { + outline: 0; + box-shadow: 0 0 0 2px var(--newtab-primary-action-background-dimmed); + border: 1px solid var(--newtab-primary-action-background); + border-radius: 0 8px 8px 0; +} +.search-wrapper .search-button:active { + background-color: var(--newtab-element-hover-color); +} +.search-wrapper .search-button:dir(rtl) { + transform: scaleX(-1); +} +.search-wrapper.fake-focus:not(.search.disabled) .search-handoff-button { + border: 1px solid var(--newtab-primary-action-background); + box-shadow: 0 0 0 2px var(--newtab-primary-action-background-dimmed); +} +.search-wrapper .search-handoff-button { + padding-inline-end: 15px; + color: var(--newtab-text-primary-color); + fill: var(--newtab-text-secondary-color); + -moz-context-properties: fill; +} +.search-wrapper .search-handoff-button .fake-caret { + top: 18px; + inset-inline-start: 52px; +} +.search-wrapper .search-handoff-button .fake-caret:dir(rtl) { + background-position-x: right 16px; +} +.search-wrapper.visible-logo .logo-and-wordmark .wordmark { + fill: var(--newtab-wordmark-color); +} + +.non-collapsible-section + .below-search-snippet-wrapper { + margin-top: -48px; +} + +@media (max-height: 700px) { + .search-wrapper { + padding: 0 0 30px; + } + + .non-collapsible-section + .below-search-snippet-wrapper { + margin-top: -14px; + } + + .below-search-snippet-wrapper { + min-height: 0; + } +} +.search-handoff-button { + background: var(--newtab-background-color-secondary) var(--newtab-search-icon) 16px center no-repeat; + background-size: 24px; + border: solid 1px transparent; + border-radius: 3px; + box-shadow: 0 1px 4px 0 rgba(12, 12, 13, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.15); + cursor: text; + font-size: 15px; + padding: 0; + padding-inline-end: 48px; + padding-inline-start: 46px; + opacity: 1; + width: 100%; +} +.search-handoff-button:dir(rtl) { + background-position-x: right 16px; +} +.fake-focus:not(.search-disabled) .search-handoff-button { + border: 1px solid var(--newtab-textbox-focus-color); + box-shadow: var(--newtab-textbox-focus-boxshadow); +} +.fake-focus:not(.search-disabled) .search-handoff-button .fake-caret { + display: block; +} +.search-disabled .search-handoff-button { + opacity: 0.5; + box-shadow: none; +} +.search-handoff-button .fake-editable:focus { + outline: none; + caret-color: transparent; +} +.search-handoff-button .fake-editable { + color: transparent; + height: 100%; + opacity: 0; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; +} +.search-handoff-button .fake-textbox { + opacity: 0.54; + text-align: start; +} +.search-handoff-button .fake-caret { + animation: caret-animation 1.3s steps(5, start) infinite; + background: var(--newtab-text-primary-color); + display: none; + inset-inline-start: 47px; + height: 17px; + position: absolute; + top: 16px; + width: 1px; +} +@keyframes caret-animation { + to { + visibility: hidden; + } +} + +@media (min-height: 701px) { + body:not(.inline-onboarding) .fixed-search main { + padding-top: 124px; + } + body:not(.inline-onboarding) .fixed-search.visible-logo main { + padding-top: 254px; + } + body:not(.inline-onboarding) .fixed-search .search-wrapper { + border-bottom: solid 1px var(--newtab-border-color); + padding: 27px 0; + background-color: var(--newtab-overlay-color); + min-height: 95px; + left: 0; + position: fixed; + top: 0; + width: 100%; + z-index: 9; + } + body:not(.inline-onboarding) .fixed-search .search-wrapper .search-inner-wrapper { + min-height: 45px; + } + body:not(.inline-onboarding) .fixed-search .search-wrapper input { + background-position-x: 16px; + background-size: 24px; + } + body:not(.inline-onboarding) .fixed-search .search-wrapper input:dir(rtl) { + background-position-x: right 16px; + } + body:not(.inline-onboarding) .fixed-search .search-wrapper .search-handoff-button .fake-caret { + top: 14px; + } + body:not(.inline-onboarding) .fixed-search .search-wrapper .logo-and-wordmark { + display: none; + } + body:not(.inline-onboarding) .fixed-search .search-handoff-button { + background-position-x: 16px; + background-size: 24px; + } + body:not(.inline-onboarding) .fixed-search .search-handoff-button:dir(rtl) { + background-position-x: right 16px; + } + body:not(.inline-onboarding) .fixed-search .search-handoff-button .fake-caret { + top: 10px; + } +} +.contentSearchSuggestionTable { + border: 0; + box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.2); + transform: translateY(4px); + background-color: var(--newtab-background-color); +} +.contentSearchSuggestionTable .contentSearchHeader { + color: var(--newtab-text-secondary-color); + background-color: var(--newtab-background-color-secondary); +} +.contentSearchSuggestionTable .contentSearchHeader, +.contentSearchSuggestionTable .contentSearchSettingsButton { + border-color: var(--newtab-border-color); +} +.contentSearchSuggestionTable .contentSearchSuggestionsList { + color: var(--newtab-text-primary-color); + border: 0; +} +.contentSearchSuggestionTable .contentSearchOneOffsTable { + border-top: solid 1px var(--newtab-border-color); + background-color: var(--newtab-background-color); +} +.contentSearchSuggestionTable .contentSearchSearchWithHeaderSearchText { + color: var(--newtab-text-primary-color); +} +.contentSearchSuggestionTable .contentSearchSuggestionRow.selected { + background: var(--newtab-element-hover-color); + color: var(--newtab-text-primary-color); +} +.contentSearchSuggestionTable .contentSearchSuggestionRow.selected:active { + background: var(--newtab-element-active-color); +} +.contentSearchSuggestionTable .contentSearchSuggestionRow.selected .historyIcon { + fill: var(--newtab-text-secondary-color); +} +.contentSearchSuggestionTable .contentSearchOneOffItem { + background-image: none; + border-image: linear-gradient(transparent 18%, var(--newtab-border-color) 18%, var(--newtab-border-color) 82%, transparent 82%) 1; + border-inline-end: 1px solid; + position: relative; +} +.contentSearchSuggestionTable .contentSearchOneOffItem.selected { + background: var(--newtab-element-hover-color); +} +.contentSearchSuggestionTable .contentSearchOneOffItem:active { + background: var(--newtab-element-active-color); +} +.contentSearchSuggestionTable .contentSearchSettingsButton:hover { + background: var(--newtab-element-hover-color); + color: var(--newtab-text-primary-color); +} + +.contentSearchHeaderRow > td > img, +.contentSearchSuggestionRow > td > .historyIcon { + margin-inline-start: 7px; + margin-inline-end: 15px; +} + +.context-menu { + background: var(--newtab-background-color-secondary); + border-radius: 5px; + 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: 14px; + margin-inline-start: 5px; + inset-inline-start: 100%; + position: absolute; + top: 6.75px; + z-index: 8; +} +.context-menu > ul { + list-style: none; + margin: 0; + padding: 5px 0; +} +.context-menu > ul > li { + margin: 0; + width: 100%; +} +.context-menu > ul > li.separator { + border-bottom: 1px solid var(--newtab-border-color); + margin: 5px 0; +} +.context-menu > ul > li > a, +.context-menu > ul > li > button { + align-items: center; + color: inherit; + cursor: pointer; + display: flex; + width: 100%; + line-height: 16px; + outline: none; + border: 0; + padding: 3px 12px; + 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; +} + +.confirmation-dialog .modal { + box-shadow: 0 1px 4px 0 rgba(12, 12, 13, 0.2); + left: 0; + margin: auto; + position: fixed; + right: 0; + top: 20%; + width: 400px; +} +.confirmation-dialog section { + margin: 0; +} +.confirmation-dialog .modal-message { + display: flex; + padding: 16px; + padding-bottom: 0; +} +.confirmation-dialog .modal-message p { + margin: 0; + margin-bottom: 16px; +} +.confirmation-dialog .actions { + border: 0; + display: flex; + flex-wrap: nowrap; + padding: 0 16px; +} +.confirmation-dialog .actions button { + margin-inline-end: 16px; + padding-inline-end: 18px; + padding-inline-start: 18px; + white-space: normal; + width: 50%; +} +.confirmation-dialog .actions button.done { + margin-inline-end: 0; + margin-inline-start: 0; +} +.confirmation-dialog .icon { + margin-inline-end: 16px; +} + +.modal-overlay { + background: var(--newtab-overlay-color); + height: 100%; + left: 0; + position: fixed; + top: 0; + width: 100%; + z-index: 11001; +} + +.modal { + background: var(--newtab-background-color-secondary); + border: 1px solid var(--newtab-border-color); + border-radius: 5px; + font-size: 15px; + z-index: 11002; +} + +@media (max-height: 701px) { + .personalize-button { + position: absolute; + top: 16px; + inset-inline-end: 16px; + } +} +@media (min-height: 700px) { + .personalize-button { + position: fixed; + top: 16px; + inset-inline-end: 16px; + z-index: 1000; + } +} +.personalize-button { + border: 0; + border-radius: 4px; + background-color: transparent; + padding: 15px; +} +.personalize-button:hover { + background-color: var(--newtab-element-hover-color); +} +.personalize-button:active { + background-color: var(--newtab-element-active-color); +} +.personalize-button:focus-visible { + border: 0; + outline: 0; + box-shadow: 0 0 0 3px var(--newtab-primary-action-background-dimmed), 0 0 0 1px var(--newtab-primary-action-background); +} +.personalize-button.personalize-animate-exit-done { + visibility: hidden; +} + +.customize-menu { + color: var(--newtab-text-primary-color); + background-color: var(--newtab-background-color-secondary); + width: 432px; + height: 100%; + position: fixed; + inset-block: 0; + inset-inline-end: 0; + z-index: 1001; + padding: 16px; + transition: transform 250ms cubic-bezier(0.46, 0.03, 0.52, 0.96), visibility 250ms; + overflow: auto; + transform: translateX(435px); + visibility: hidden; + cursor: default; +} +@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 .close-button { + margin-inline-start: auto; + margin-bottom: 28px; + white-space: nowrap; + display: block; + background-color: var(--newtab-element-secondary-color); + padding: 8px 10px; + border: 1px solid rgba(0, 0, 0, 0.15); + border-radius: 4px; + color: var(--newtab-text-primary-color); + font-size: 13px; + font-weight: 600; +} +.customize-menu .close-button:hover { + background-color: var(--newtab-element-secondary-hover-color); +} +.customize-menu .close-button:hover:active { + background-color: var(--newtab-element-secondary-active-color); +} + +.grid-skip { + display: contents; +} + +.home-section { + display: grid; + grid-template-columns: 1fr; + grid-template-rows: repeat(4, auto); + grid-row-gap: 32px; + padding: 0 16px; +} +.home-section .section { + display: grid; + grid-template-rows: auto; + grid-template-columns: auto 26px; +} +.home-section .section > div { + grid-area: 1; +} +.home-section .section .title { + grid-column: 1/-1; + margin: 0; + font-weight: 600; + font-size: 16px; + margin-bottom: 10px; +} +.home-section .section .subtitle { + margin: 0; + font-size: 14px; +} +.home-section .section .sponsored { + font-size: 14px; + margin-inline-start: 5px; +} +.home-section .section .check-wrapper { + position: relative; +} +.home-section .section .sponsored-checkbox { + margin-inline-start: 2px; + width: 16px; + height: 16px; + vertical-align: middle; + border: 1px solid rgba(0, 0, 0, 0.15); + box-sizing: border-box; + border-radius: 4px; + appearance: none; + background-color: var(--newtab-element-secondary-color); +} +.home-section .section .sponsored-checkbox:checked { + -moz-context-properties: fill; + fill: var(--newtab-primary-element-text-color); + background: url("chrome://global/skin/icons/check.svg") center no-repeat; + background-color: var(--newtab-primary-action-background); +} +@media (forced-colors: active) { + .home-section .section .sponsored-checkbox:checked { + fill: #000; + } +} +.home-section .section .sponsored-checkbox:active + .checkmark { + fill: var(--newtab-element-secondary-color); +} +.home-section .section .selector { + color: var(--newtab-text-primary-color); + width: 118px; + display: block; + border: 1px solid var(--newtab-border-color); + border-radius: 4px; + appearance: none; + padding-block: 7px; + padding-inline: 10px 13px; + margin-inline-start: 2px; + margin-bottom: 2px; + -moz-context-properties: fill; + fill: var(--newtab-text-primary-color); + background: url("chrome://global/skin/icons/arrow-down-12.svg") right no-repeat; + background-size: 8px; + background-origin: content-box; + background-color: var(--newtab-background-color-secondary); +} +.home-section .section .selector:dir(rtl) { + background-position-x: left; +} +.home-section .section .switch { + position: relative; + display: inline-block; + width: 26px; + height: 16px; + grid-column: 2; + margin-top: 2px; +} +.home-section .section .switch input { + opacity: 0; + width: 0; + height: 0; +} +.home-section .section .slider { + position: absolute; + inset: 0; + transition: transform 250ms; + border-radius: 13px; + border: 1px solid rgba(0, 0, 0, 0.15); + background-color: var(--newtab-element-secondary-color); +} +.home-section .section .slider::before { + position: absolute; + content: ""; + height: 8px; + width: 8px; + inset-inline-start: 3px; + bottom: 3px; + background-color: var(--newtab-primary-element-text-color); + transition: transform 250ms; + border-radius: 50%; + outline: 1px solid rgba(0, 0, 0, 0.15); +} +.home-section .section .switch input:focus-visible + .slider { + outline: 0; + box-shadow: 0 0 0 2px var(--newtab-primary-action-background-dimmed); +} +.home-section .section .switch input:not(:checked):focus-visible + .slider { + border: 1px solid var(--newtab-primary-action-background); +} +.home-section .section input:checked + .slider { + background-color: var(--newtab-primary-action-background); +} +.home-section .section input:checked + .slider::before { + transform: translateX(10px); +} +.home-section .section input:checked + .slider:dir(rtl)::before { + transform: translateX(-10px); +} +.home-section .section .more-info-top-wrapper, +.home-section .section .more-info-pocket-wrapper { + margin-inline-start: -2px; + overflow: hidden; +} +.home-section .section .more-info-top-wrapper .more-information, +.home-section .section .more-info-pocket-wrapper .more-information { + padding-top: 12px; + position: relative; + transition: margin-top 250ms cubic-bezier(0.82, 0.085, 0.395, 0.895); +} +.home-section .section .more-info-top-wrapper .check-wrapper { + margin-top: 10px; +} +.home-section .divider { + border-top: 1px var(--newtab-border-color) solid; + margin: 0 -16px; +} +.home-section .external-link { + font-size: 14px; + cursor: pointer; + border: 1px solid transparent; + border-radius: 4px; + -moz-context-properties: fill; + fill: var(--newtab-text-primary-color); + background: url("chrome://global/skin/icons/settings.svg") left no-repeat; + background-size: 16px; + padding-inline-start: 21px; + margin-bottom: 20px; +} +@media (forced-colors: active) { + .home-section .external-link { + padding: 8px 10px; + padding-inline-start: 21px; + } +} +.home-section .external-link:dir(rtl) { + background-position-x: right; +} +.home-section .external-link:hover { + text-decoration: underline; +} + +.home-section .section .sponsored-checkbox:focus-visible, +.selector:focus-visible, +.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); +} + +.card-outer { + background: var(--newtab-background-color-secondary); + border-radius: 8px; + display: inline-block; + height: 266px; + margin-inline-end: 32px; + position: relative; + width: 100%; +} +.card-outer .context-menu-button { + background-clip: padding-box; + background-color: var(--newtab-background-color-secondary); + background-image: url("chrome://global/skin/icons/more.svg"); + background-position: 55%; + border: 1px solid var(--newtab-border-color); + border-radius: 100%; + box-shadow: 0 2px rgba(12, 12, 13, 0.1); + cursor: pointer; + fill: var(--newtab-text-primary-color); + height: 27px; + inset-inline-end: -13.5px; + opacity: 0; + position: absolute; + top: -13.5px; + transform: scale(0.25); + transition-duration: 150ms; + transition-property: transform, opacity; + width: 27px; +} +.card-outer .context-menu-button:is(:active, :focus) { + opacity: 1; + transform: scale(1); +} +.card-outer:is(:focus):not(.placeholder) { + border: 0; + outline: 0; + box-shadow: 0 0 0 3px var(--newtab-primary-action-background-dimmed), 0 0 0 1px var(--newtab-primary-action-background); + 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: 8px; + 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: 0; + box-shadow: 0 0 0 3px var(--newtab-primary-action-background-dimmed), 0 0 0 1px var(--newtab-primary-action-background); +} +.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: 8px 8px 0 0; + height: 122px; + overflow: hidden; + position: relative; +} +.card-outer .card-preview-image-outer::after { + border-bottom: 1px solid var(--newtab-card-hairline-color); + bottom: 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: 15px 16px 12px; +} +.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: 10px; + overflow: hidden; + padding-bottom: 4px; + text-overflow: ellipsis; + text-transform: uppercase; + white-space: nowrap; +} +.card-outer .card-host-name.alternate { + display: none; +} +.card-outer .card-title { + font-size: 14px; + font-weight: 600; + line-height: 19px; + margin: 0 0 2px; + word-wrap: break-word; +} +.card-outer .card-description { + font-size: 12px; + line-height: 19px; + margin: 0; + overflow: hidden; + word-wrap: break-word; +} +.card-outer .card-context { + bottom: 0; + color: var(--newtab-text-secondary-color); + display: flex; + font-size: 11px; + inset-inline-start: 0; + padding: 9px 16px 9px 14px; + position: absolute; +} +.card-outer .card-context-icon { + fill: var(--newtab-text-secondary-color); + height: 22px; + margin-inline-end: 6px; +} +.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: 13px 16px 12px; + } + .normal-cards .card-outer .card-text { + max-height: 140px; + } + .normal-cards .card-outer .card-host-name { + font-size: 12px; + padding-bottom: 5px; + } + .normal-cards .card-outer .card-title { + font-size: 17px; + line-height: 23px; + margin-bottom: 0; + } + .normal-cards .card-outer .card-text:not(.no-description) .card-title { + max-height: 69px; + } + .normal-cards .card-outer .card-description { + font-size: 15px; + line-height: 23px; + } + .normal-cards .card-outer .card-context { + bottom: 4px; + font-size: 14px; + } +} + +.compact-cards .card-outer { + height: 160px; +} +.compact-cards .card-outer .card-preview-image-outer { + height: 108px; +} +.compact-cards .card-outer .card-details { + padding: 12px 16px; +} +.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: 12px; + line-height: 13px; + max-height: 17px; + overflow: hidden; + padding: 0 0 4px; + 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: 16px; + clip-path: inset(-1px -1px 4px); + height: 32px; + width: 32px; + padding: 8px; + top: 91px; + inset-inline-end: 12px; + inset-inline-start: auto; +} +.compact-cards .card-outer .card-context::after { + border: 1px solid var(--newtab-card-hairline-color); + border-bottom: 0; + border-radius: 17px 17px 0 0; + content: ""; + position: absolute; + height: 17px; + width: 34px; + top: -1px; + left: -1px; +} +.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: #0A84FF; +} +.compact-cards .card-outer .card-context .card-context-icon.icon-download { + fill: #12BC00; +} +.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; + } +} + +.collapsible-section { + padding: 10px 25px; +} +.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: 17px; + font-weight: 600; + 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: 14px; + line-height: 16px; + color: var(--newtab-text-secondary-color); + opacity: 0.3; +} +.collapsible-section .section-top-bar { + min-height: 19px; + margin-bottom: 13px; + position: relative; +} +.collapsible-section.active { + background: var(--newtab-element-hover-color); + border-radius: 4px; +} +.collapsible-section .learn-more-link { + font-size: 13px; + margin-inline-start: 12px; +} +.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 -7px; + padding: 0 7px; +} +.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; + } +} + +.asrouter-toggle { + position: fixed; + top: 50px; + inset-inline-end: 15px; + border: 0; + background: none; + z-index: 1; + border-radius: 2px; +} +.asrouter-toggle .icon-devtools { + background-image: url("chrome://global/skin/icons/developer.svg"); + padding: 15px; +} +.asrouter-toggle:dir(rtl) { + transform: scaleX(-1); +} +.asrouter-toggle:hover { + background: var(--newtab-element-hover-color); +} +.asrouter-toggle.expanded { + background: rgba(0, 0, 0, 0.2); +} + +.asrouter-admin { + position: fixed; + top: 0; + inset-inline-start: 0; + width: 100%; + background: var(--newtab-background-color); + height: 100%; + overflow-y: scroll; + margin: 0 auto; + font-size: 14px; + padding-inline-start: 240px; + color: var(--newtab-text-primary-color); +} +.asrouter-admin.collapsed { + display: none; +} +.asrouter-admin .sidebar { + inset-inline-start: 0; + position: fixed; + width: 240px; + padding: 30px 20px; +} +.asrouter-admin .sidebar ul { + margin: 0; + padding: 0; + list-style: none; +} +.asrouter-admin .sidebar li a { + padding: 10px 34px; + display: block; + color: var(--lwt-sidebar-text-color); +} +.asrouter-admin .sidebar li a:hover { + background: var(--newtab-background-color-secondary); +} +.asrouter-admin h1 { + font-weight: 200; + font-size: 32px; +} +.asrouter-admin h2 .button, +.asrouter-admin p .button { + font-size: 14px; + padding: 6px 12px; + margin-inline-start: 5px; + margin-bottom: 0; +} +.asrouter-admin .general-textarea { + direction: ltr; + width: 740px; + height: 500px; + overflow: auto; + resize: none; + border-radius: 4px; + display: flex; +} +.asrouter-admin .wnp-textarea { + direction: ltr; + width: 740px; + height: 500px; + overflow: auto; + resize: none; + border-radius: 4px; + display: flex; +} +.asrouter-admin .json-button { + display: inline-flex; + font-size: 10px; + padding: 4px 10px; + margin-bottom: 6px; + margin-inline-end: 4px; +} +.asrouter-admin .json-button:hover { + background-color: var(--newtab-element-hover-color); + box-shadow: none; +} +.asrouter-admin table { + border-collapse: collapse; + width: 100%; +} +.asrouter-admin table.minimal-table { + border-collapse: collapse; + border: 1px solid var(--newtab-border-color); +} +.asrouter-admin table.minimal-table td { + padding: 8px; +} +.asrouter-admin table.minimal-table td:first-child { + width: 1%; + white-space: nowrap; +} +.asrouter-admin table.minimal-table td:not(:first-child) { + font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace; +} +.asrouter-admin table.errorReporting tr { + border: 1px solid var(--newtab-background-color-secondary); +} +.asrouter-admin table.errorReporting td { + padding: 4px; +} +.asrouter-admin table.errorReporting td[rowspan] { + border: 1px solid var(--newtab-background-color-secondary); +} +.asrouter-admin .sourceLabel { + background: var(--newtab-background-color-secondary); + padding: 2px 5px; + border-radius: 3px; +} +.asrouter-admin .sourceLabel.isDisabled { + background: rgba(215, 0, 34, 0.3); + color: var(--newtab-status-error); +} +.asrouter-admin .message-item:first-child td { + border-top: 1px solid var(--newtab-border-color); +} +.asrouter-admin .message-item td { + vertical-align: top; + padding: 8px; + border-bottom: 1px solid var(--newtab-border-color); +} +.asrouter-admin .message-item td.min { + width: 1%; + white-space: nowrap; +} +.asrouter-admin .message-item td.message-summary { + width: 60%; +} +.asrouter-admin .message-item td.button-column { + width: 15%; +} +.asrouter-admin .message-item td:first-child { + border-inline-start: 1px solid var(--newtab-border-color); +} +.asrouter-admin .message-item td:last-child { + border-inline-end: 1px solid var(--newtab-border-color); +} +.asrouter-admin .message-item.blocked .message-id, +.asrouter-admin .message-item.blocked .message-summary { + opacity: 0.5; +} +.asrouter-admin .message-item.blocked .message-id { + opacity: 0.5; +} +.asrouter-admin .message-item .message-id { + font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace; + font-size: 12px; +} +.asrouter-admin .providerUrl { + font-size: 12px; +} +.asrouter-admin pre { + background: var(--newtab-background-color-secondary); + margin: 0; + padding: 8px; + font-size: 12px; + max-width: 750px; + overflow: auto; + font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace; +} +.asrouter-admin .errorState { + border: 1px solid var(--newtab-status-error); +} +.asrouter-admin .helpLink { + padding: 10px; + display: flex; + background: rgba(0, 0, 0, 0.1); + border-radius: 3px; +} +.asrouter-admin .helpLink a { + text-decoration: underline; +} +.asrouter-admin .ds-component { + margin-bottom: 20px; +} +.asrouter-admin .modalOverlayInner { + height: 80%; +} +.asrouter-admin .clearButton { + border: 0; + padding: 4px; + border-radius: 4px; + display: flex; +} +.asrouter-admin .clearButton:hover { + background: var(--newtab-element-hover-color); +} +.asrouter-admin .collapsed { + display: none; +} +.asrouter-admin .icon { + display: inline-table; + cursor: pointer; + width: 18px; + height: 18px; +} + +.pocket-logged-in-cta { + font-size: 13px; + margin-inline-end: 20px; + display: flex; + align-items: flex-start; +} +.pocket-logged-in-cta .pocket-cta-button { + white-space: nowrap; + background: var(--newtab-primary-action-background); + letter-spacing: -0.34px; + color: #FFF; + border-radius: 4px; + cursor: pointer; + max-width: 130px; + margin-top: -1px; + min-height: 18px; + padding: 0 8px; + display: inline-flex; + justify-content: center; + align-items: center; + font-size: 11px; + margin-inline-end: 10px; +} +.pocket-logged-in-cta .cta-text { + font-weight: normal; + font-size: 13px; + line-height: 1.230769231; +} +.pocket-logged-in-cta .pocket-cta-button, +.pocket-logged-in-cta .cta-text { + vertical-align: top; +} + +.more-recommendations { + display: flex; + align-items: center; + white-space: nowrap; + line-height: 1.230769231; +} +.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: 5px; + vertical-align: top; + width: 12px; +} +.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; +} +.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: grid; + grid-row-gap: var(--gridRowGap); +} +.discovery-stream.ds-layout .ds-column-grid > div:empty { + display: none; +} + +.ds-header { + margin: 8px 0; +} +.ds-header .ds-context { + font-weight: 400; +} + +.ds-header, +.ds-layout .section-title span { + color: var(--newtab-text-primary-color); + font-size: 17px; + font-weight: 600; + line-height: 20px; +} +.ds-header .icon, +.ds-layout .section-title span .icon { + fill: var(--newtab-text-secondary-color); +} + +.collapsible-section.ds-layout { + margin: auto; +} +.collapsible-section.ds-layout .section-top-bar .learn-more-link a { + color: var(--newtab-primary-action-background); + font-weight: 500; +} +.collapsible-section.ds-layout .section-top-bar .learn-more-link a:is(:focus, :hover) { + text-decoration: underline; +} + +.ds-card-grid { + display: grid; + grid-gap: 24px; +} +.ds-card-grid.ds-card-grid-compact { + grid-gap: 20px; +} +@media (min-width: 610px) and (max-width: 866px) { + .ds-card-grid.ds-card-grid-recent-saves .ds-card:last-child:nth-child(2n-1) { + display: none; + } +} +.ds-card-grid .ds-card { + background: #FFF; + border-radius: 4px; +} +[lwt-newtab-brighttext] .ds-card-grid .ds-card { + background: none; +} +.ds-card-grid.ds-card-grid-border .ds-card:not(.placeholder) { + border-radius: 8px; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); +} +[lwt-newtab-brighttext] .ds-card-grid.ds-card-grid-border .ds-card:not(.placeholder) { + background: var(--newtab-background-color-secondary); +} +.ds-card-grid.ds-card-grid-border .ds-card:not(.placeholder) .img-wrapper .img img, +.ds-card-grid.ds-card-grid-border .ds-card:not(.placeholder) .img-wrapper .img .placeholder-image { + border-radius: 8px 8px 0 0; +} +.ds-card-grid .ds-card-link:focus { + border: 0; + outline: 0; + box-shadow: 0 0 0 3px var(--newtab-primary-action-background-dimmed), 0 0 0 1px var(--newtab-primary-action-background); + transition: none; + border-radius: 8px; +} +.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: 17px; + line-height: 24px; +} +.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: 15px; + -webkit-line-clamp: 3; + line-height: 24px; +} +.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-top: 8px; +} +.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: 13px; +} +.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .status-message .story-context-label { + font-size: 11.7px; +} +.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .story-badge-icon { + margin-inline-end: 2px; + margin-bottom: 2px; + height: 14px; + width: 14px; + background-size: 14px; +} +.ds-card-grid.ds-card-grid-four-card-variant .ds-card .meta .title { + font-size: 14px; + line-height: 20px; +} +.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 (max-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-top: 8px; + } + .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: 13px; + } + .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: 11.7px; + } + .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: 2px; + margin-bottom: 2px; + 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: 14px; + line-height: 20px; + } + .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 (max-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-top: 8px; + } + .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: 13px; + } + .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: 11.7px; + } + .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: 2px; + margin-bottom: 2px; + 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: 14px; + line-height: 20px; + } + .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-grid-border .ds-card:not(.placeholder), +.outer-wrapper.newtab-experience .ds-card-grid.ds-card-grid-hide-background.ds-card-grid-border .ds-card:not(.placeholder) { + box-shadow: none; + background: none; +} +.outer-wrapper .ds-card-grid.ds-card-grid-hide-background.ds-card-grid-border .ds-card:not(.placeholder) .ds-card-link:focus, +.outer-wrapper.newtab-experience .ds-card-grid.ds-card-grid-hide-background.ds-card-grid-border .ds-card:not(.placeholder) .ds-card-link:focus { + box-shadow: none; +} +.outer-wrapper .ds-card-grid.ds-card-grid-hide-background.ds-card-grid-border .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-grid-border .ds-card:not(.placeholder) .ds-card-link:focus .img-wrapper .img img { + border: 0; + outline: 0; + box-shadow: 0 0 0 3px var(--newtab-primary-action-background-dimmed), 0 0 0 1px var(--newtab-primary-action-background); +} +.outer-wrapper .ds-card-grid.ds-card-grid-hide-background.ds-card-grid-border .ds-card:not(.placeholder) .img-wrapper .img img, +.outer-wrapper.newtab-experience .ds-card-grid.ds-card-grid-hide-background.ds-card-grid-border .ds-card:not(.placeholder) .img-wrapper .img img { + border-radius: 8px; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); +} +.outer-wrapper .ds-card-grid.ds-card-grid-hide-background.ds-card-grid-border .ds-card:not(.placeholder) .meta, +.outer-wrapper.newtab-experience .ds-card-grid.ds-card-grid-hide-background.ds-card-grid-border .ds-card:not(.placeholder) .meta { + padding: 12px 0 0; +} + +.ds-layout .ds-sub-header { + margin-top: 24px; +} +.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: 14px; + line-height: 16px; + 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); +} + +.ds-dismiss.ds-dismiss-ds-collection .ds-dismiss-button { + margin: 15px 0 0; + inset-inline-end: 25px; +} +.ds-dismiss.ds-dismiss-ds-collection.hovering { + background: var(--newtab-element-hover-color); +} + +.ds-collection-card-grid { + padding: 10px 25px 25px; + margin: 0 0 20px; +} +.ds-collection-card-grid .story-footer { + display: none; +} +.ds-collection-card-grid .ds-header { + padding: 0 40px 0 0; + margin-bottom: 12px; +} +.ds-collection-card-grid .ds-header .title { + color: var(--newtab-text-primary-color); + font-weight: 600; + font-size: 17px; + line-height: 24px; +} +.ds-collection-card-grid .ds-header .ds-context { + color: var(--newtab-text-secondary-color); + font-weight: normal; + font-size: 13px; + line-height: 24px; +} + +.ds-highlights .section .section-list { + grid-gap: var(--gridRowGap); + grid-template-columns: repeat(1, 1fr); +} +@media (min-width: 610px) { + .ds-highlights .section .section-list { + grid-template-columns: repeat(2, 1fr); + } +} +@media (min-width: 866px) { + .ds-highlights .section .section-list { + 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: 13px; + line-height: 20px; + margin-bottom: 2px; + padding-bottom: 0; + text-transform: unset; +} +.ds-highlights .section .section-list .card-outer .card-title { + font-size: 14px; + font-weight: 600; + line-height: 20px; + max-height: 20px; +} +.ds-highlights .hide-for-narrow { + display: block; +} + +.ds-hr { + border: 0; + border-top: 1px solid #D7D7DB; + height: 0; +} +[lwt-newtab-brighttext] .ds-hr { + border-top: 1px solid #4A4A4F; +} + +.ds-navigation { + color: var(--newtab-text-primary-color); + font-size: 11.5px; + font-weight: 500; + line-height: 22px; + padding: 4px 0; +} +@media (min-width: 1122px) { + .ds-navigation { + line-height: 32px; + font-size: 14px; + } +} +.ds-navigation.ds-navigation-centered { + text-align: center; +} +.ds-navigation.ds-navigation-right-aligned { + text-align: end; +} +.ds-navigation ul { + display: inline; + margin: 0; + padding: 0; +} +.ds-navigation ul li { + display: inline-block; +} +.ds-navigation ul li::after { + content: "·"; + padding: 6px; +} +.ds-navigation ul li:last-child::after { + content: none; +} +.ds-navigation ul li a:hover, .ds-navigation ul li a:active { + text-decoration: underline; +} +.ds-navigation ul li a:active { + color: var(--newtab-primary-element-active-color); +} +.ds-navigation .ds-navigation-header { + padding-inline-end: 6px; +} +.ds-navigation .ds-navigation-privacy { + padding-inline-start: 6px; + float: inline-end; +} +.ds-navigation .ds-navigation-privacy:hover { + text-decoration: underline; +} +.ds-navigation.ds-navigation-new-topics { + display: block; + padding-top: 32px; +} +.ds-navigation.ds-navigation-new-topics .ds-navigation-header { + font-size: 14px; + line-height: 20px; + font-weight: 700; + display: inline-block; + margin-bottom: 8px; +} +.ds-navigation.ds-navigation-new-topics .ds-navigation-family { + text-align: center; + font-size: 14px; + line-height: 20px; + margin: 16px auto 28px; +} +.ds-navigation.ds-navigation-new-topics .ds-navigation-family span { + margin: 0 6px; +} +.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://activity-stream/content/data/content/assets/firefox.svg"); +} +.ds-navigation.ds-navigation-new-topics .ds-navigation-family .pocket-logo { + background-image: url("chrome://global/skin/icons/pocket.svg"); + fill: #EF4056; +} +.ds-navigation.ds-navigation-new-topics .ds-navigation-family .ds-navigation-family-message { + font-weight: 400; + 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-top: 43px; + } +} +.ds-navigation.ds-navigation-new-topics ul { + display: grid; + grid-gap: 0 24px; + grid-auto-flow: column; + grid-template: repeat(8, 1fr)/repeat(1, 1fr); +} +.ds-navigation.ds-navigation-new-topics ul li { + border-top: 1px solid var(--newtab-border-color); + line-height: 24px; + font-size: 13px; + font-weight: 500; +} +.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-bottom: 1px solid var(--newtab-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-bottom: 1px solid var(--newtab-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-bottom: 0; + } + .ds-navigation.ds-navigation-new-topics ul li:nth-child(even) { + border-bottom: 1px solid var(--newtab-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-top: 24px; +} +.ds-section-title .title { + color: var(--newtab-text-primary-color); + line-height: 48px; + font-size: 36px; + font-weight: 300; +} +.ds-section-title .subtitle { + line-height: 24px; + font-size: 14px; + color: var(--newtab-text-secondary-color); + margin-top: 4px; +} + +.outer-wrapper .ds-top-sites .top-sites .top-site-outer .top-site-inner > a:is(.active, :focus) .tile { + border: 0; + outline: 0; + box-shadow: 0 0 0 3px var(--newtab-primary-action-background-dimmed), 0 0 0 1px var(--newtab-primary-action-background); +} +.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: 4px; + outline: none; +} +.outer-wrapper .ds-top-sites .top-sites .top-sites-list { + margin: 0 -12px; +} + +.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 10px; +} +.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 -10px; +} +.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 8px; +} +.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 -8px; +} +.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, +.ds-signup .context-menu-button { + background-clip: padding-box; + background-color: var(--newtab-background-color-secondary); + background-image: url("chrome://global/skin/icons/more.svg"); + background-position: 55%; + border: 1px solid var(--newtab-border-color); + border-radius: 100%; + box-shadow: 0 2px rgba(12, 12, 13, 0.1); + cursor: pointer; + fill: var(--newtab-text-primary-color); + height: 27px; + inset-inline-end: -13.5px; + opacity: 0; + position: absolute; + top: -13.5px; + transform: scale(0.25); + transition-duration: 150ms; + transition-property: transform, opacity; + width: 27px; +} +.ds-card .context-menu-button:is(:active, :focus), +.ds-signup .context-menu-button:is(:active, :focus) { + opacity: 1; + transform: scale(1); +} +.ds-card .context-menu, +.ds-signup .context-menu { + opacity: 0; +} +.ds-card.active .context-menu, +.ds-signup.active .context-menu { + opacity: 1; +} +.ds-card.last-item .context-menu, +.ds-signup.last-item .context-menu { + margin-inline-end: 5px; + margin-inline-start: auto; + inset-inline-end: 0; + inset-inline-start: auto; +} +.ds-card.last-item .context-menu, +.ds-signup.last-item .context-menu { + opacity: 1; +} +.ds-card:is(:hover, :focus, .active), +.ds-signup:is(:hover, :focus, .active) { + outline: none; +} +.ds-card:is(:hover, :focus, .active) .context-menu-button, +.ds-signup:is(:hover, :focus, .active) .context-menu-button { + opacity: 1; + transform: scale(1); + transition-delay: 333ms; +} +.ds-card:is(:hover, :focus, .active).ds-card-grid-border, +.ds-signup:is(:hover, :focus, .active).ds-card-grid-border { + box-shadow: 0 0 0 5px var(--newtab-element-secondary-color); + transition: box-shadow 150ms; +} + +.ds-card { + display: flex; + flex-direction: column; + position: relative; +} +.ds-card.placeholder { + background: transparent; + box-shadow: inset 0 0 0 1px var(--newtab-inner-box-shadow-color); + border-radius: 4px; + min-height: 300px; +} +.ds-card .img-wrapper { + width: 100%; + position: relative; +} +.ds-card .card-stp-button-hover-background { + opacity: 0; + width: 100%; + position: absolute; + top: 0; + height: 0; + transition: opacity; + transition-duration: 0s; + padding-top: 50%; + pointer-events: none; + background: rgba(0, 0, 0, 0.4); + border-radius: 8px 8px 0 0; +} +.ds-card .card-stp-button-hover-background .card-stp-button-position-wrapper { + position: absolute; + inset-inline-end: 10px; + top: 10px; + display: flex; + justify-content: end; + align-items: center; +} +.ds-card .card-stp-button-hover-background .icon-pocket-save, +.ds-card .card-stp-button-hover-background .icon-pocket { + margin-inline-end: 4px; + height: 15px; + width: 15px; + background-size: 15px; + fill: #FFF; +} +.ds-card .card-stp-button-hover-background .context-menu-button { + position: static; + transition: none; + border-radius: 3px; +} +.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: 18.5px; + inset-inline-start: auto; + position: absolute; + top: 20.25px; +} +.ds-card .card-stp-button-hover-background .card-stp-button { + display: flex; + margin-inline-end: 7px; + font-weight: 400; + font-size: 13px; + line-height: 16px; + background-color: #EF4056; + border: 0; + border-radius: 4px; + padding: 6px; + white-space: nowrap; + color: #FFF; +} +.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.last-item .card-stp-button-hover-background .context-menu { + margin-inline-start: auto; + margin-inline-end: 18.5px; +} +.ds-card:hover .card-stp-button-hover-background, .ds-card.active .card-stp-button-hover-background { + display: block; + opacity: 1; + transition-duration: 0.3s; +} +.ds-card .img { + height: 0; + padding-top: 50%; +} +.ds-card .img img { + border-radius: 4px; + box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15); +} +.ds-card .ds-card-link { + height: 100%; + display: flex; + flex-direction: column; +} +.ds-card .ds-card-link:hover header { + color: var(--newtab-primary-action-background); +} +.ds-card .ds-card-link:focus { + border: 0; + outline: 0; + box-shadow: 0 0 0 3px var(--newtab-primary-action-background-dimmed), 0 0 0 1px var(--newtab-primary-action-background); + transition: none; +} +.ds-card .ds-card-link:focus header { + color: var(--newtab-primary-action-background); +} +.ds-card .ds-card-link:active header { + color: var(--newtab-primary-element-active-color); +} +.ds-card .meta { + display: flex; + flex-direction: column; + padding: 12px 16px; + flex-grow: 1; +} +.ds-card .meta .info-wrap { + flex-grow: 1; +} +.ds-card .meta .title { + font-size: 17px; + -webkit-line-clamp: 3; + line-height: 24px; + font-weight: 600; +} +.ds-card .meta .excerpt { + font-size: 14px; + -webkit-line-clamp: 3; + line-height: 20px; +} +.ds-card .meta .source { + -webkit-line-clamp: 1; + margin-bottom: 2px; + font-size: 13px; + color: var(--newtab-text-secondary-color); +} +.ds-card .meta .source span { + display: inline-block; +} +.ds-card .meta .new-sponsored-label { + font-size: 13px; + margin-bottom: 2px; +} +.ds-card.ds-card-title-lines-2 .meta .title { + font-size: 17px; + -webkit-line-clamp: 2; + line-height: 24px; +} +.ds-card.ds-card-title-lines-1 .meta .title { + font-size: 17px; + -webkit-line-clamp: 1; + line-height: 24px; +} +.ds-card.ds-card-desc-lines-2 .meta .excerpt { + font-size: 14px; + -webkit-line-clamp: 2; + line-height: 20px; +} +.ds-card.ds-card-desc-lines-1 .meta .excerpt { + font-size: 14px; + -webkit-line-clamp: 1; + line-height: 20px; +} +.ds-card.ds-card-compact-image .img { + padding-top: 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: 3px 15px 11px; +} +.ds-card header { + line-height: 24px; + font-size: 17px; + color: var(--newtab-text-primary-color); +} +.ds-card p { + font-size: 14px; + line-height: 20px; + color: var(--newtab-text-primary-color); + margin: 0; +} + +.story-footer { + color: var(--newtab-text-secondary-color); + inset-inline-start: 0; + margin-top: 12px; + position: relative; +} +.story-footer .story-sponsored-label span { + display: inline-block; +} +.story-footer .story-sponsored-label, +.story-footer .status-message { + -webkit-line-clamp: 1; + font-size: 13px; + line-height: 24px; + 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: 6px; +} +.story-footer .status-message .story-badge-icon.icon-bookmark-removed { + background-image: url("chrome://activity-stream/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: 13px; + line-height: 24px; + 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; + top: 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; + top: 0; + width: 100%; + height: 100%; + object-fit: cover; +} +.ds-image .placeholder-image { + overflow: hidden; + background-color: var(--placeholderBackgroundColor); +} +.ds-image .placeholder-image::before { + content: ""; + background-image: url("chrome://activity-stream/content/data/content/assets/pocket-swoosh.svg"); + background-repeat: no-repeat; + background-position: center; + transform: rotate(var(--placeholderBackgroundRotation)); + position: absolute; + top: -50%; + left: -50%; + width: 200%; + height: 200%; + margin-left: var(--placeholderBackgroundOffsetx); + margin-top: var(--placeholderBackgroundOffsety); + background-size: var(--placeholderBackgroundScale); +} + +.ds-dismiss { + position: relative; + border-radius: 8px; + transition-duration: 250ms; + transition-property: background; +} +.ds-dismiss:hover .ds-dismiss-button { + opacity: 1; +} +.ds-dismiss .ds-dismiss-button { + border: 0; + cursor: pointer; + height: 32px; + width: 32px; + padding: 0; + display: flex; + align-items: center; + justify-content: center; + position: absolute; + inset-inline-end: 0; + top: 0; + border-radius: 50%; + background-color: transparent; +} +.ds-dismiss .ds-dismiss-button .icon { + fill: var(--newtab-text-primary-color); +} +.ds-dismiss .ds-dismiss-button:hover { + background: var(--newtab-element-hover-color); +} +.ds-dismiss .ds-dismiss-button:active { + background: var(--newtab-element-active-color); +} +.ds-dismiss .ds-dismiss-button:focus { + box-shadow: 0 1px 4px 0 rgba(12, 12, 13, 0.2); +} + +.ds-message { + margin: 8px 0 0; +} +.ds-message .title { + display: flex; + align-items: center; +} +.ds-message .title .glyph { + width: 16px; + height: 16px; + margin: 0 6px 0 0; + -moz-context-properties: fill; + fill: var(--newtab-text-secondary-color); + background-position: center center; + background-size: 16px; + background-repeat: no-repeat; +} +.ds-message .title .title-text { + line-height: 20px; + font-size: 13px; + color: var(--newtab-text-secondary-color); + font-weight: 600; + padding-right: 12px; +} +.ds-message .title .link { + line-height: 20px; + font-size: 13px; +} +.ds-message .title .link:hover, .ds-message .title .link:focus { + text-decoration: underline; +} + +.impression-observer { + position: absolute; + top: 0; + width: 100%; + height: 100%; + pointer-events: none; +} + +.section-empty-state { + border: 1px solid var(--newtab-border-color); + border-radius: 4px; + display: flex; + height: 160px; + width: 100%; +} +.section-empty-state .empty-state-message { + color: var(--newtab-text-secondary-color); + font-size: 14px; + line-height: 20px; + text-align: center; + margin: auto; + max-width: 936px; +} +.section-empty-state .try-again-button { + margin-top: 12px; + padding: 6px 32px; + border-radius: 2px; + 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 rgba(10, 132, 255, 0.3); + transition: box-shadow 150ms; + border-radius: 4px; + outline: none; +} +[lwt-newtab-brighttext] .section-empty-state .try-again-button:not(.waiting):focus { + box-shadow: 0 0 0 5px rgba(69, 161, 255, 0.4); + transition: box-shadow 150ms; + border-radius: 4px; + 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: 4px; + outline: none; +} +.section-empty-state .try-again-button::after { + content: ""; + height: 20px; + width: 20px; + animation: spinner 1s linear infinite; + opacity: 0; + position: absolute; + top: 50%; + left: 50%; + margin: -10px 0 0 -10px; + mask-image: url("chrome://activity-stream/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: 15px; + font-weight: 600; + margin: 0; +} +.section-empty-state p { + margin: 0; +} + +@keyframes spinner { + to { + transform: rotate(360deg); + } +} +.ds-dismiss-ds-text-promo { + max-width: 744px; + margin: auto; + overflow: hidden; +} +.ds-dismiss-ds-text-promo.hovering { + background: var(--newtab-element-hover-color); +} +.ds-dismiss-ds-text-promo .ds-dismiss-button { + margin-inline: 0 18px; + margin-block: 18px 0; +} + +.ds-text-promo { + max-width: 640px; + margin: 0; + padding: 18px; +} +@media (min-width: 610px) { + .ds-text-promo { + display: flex; + margin: 18px 24px; + padding: 0 32px 0 0; + } +} +.ds-text-promo .ds-image { + width: 40px; + height: 40px; + flex-shrink: 0; + margin: 0 0 18px; +} +@media (min-width: 610px) { + .ds-text-promo .ds-image { + margin: 4px 12px 0 0; + } +} +.ds-text-promo .ds-image img { + border-radius: 4px; +} +.ds-text-promo .text { + line-height: 24px; +} +.ds-text-promo h3 { + color: var(--newtab-text-primary-color); + margin: 0; + font-weight: 600; + font-size: 15px; +} +.ds-text-promo .subtitle { + font-size: 13px; + margin: 0; + color: var(--newtab-text-primary-color); +} + +.ds-chevron-link { + color: var(--newtab-primary-action-background); + display: inline-block; + outline: 0; +} +.ds-chevron-link:hover { + text-decoration: underline; +} +.ds-chevron-link:active { + color: var(--newtab-primary-element-active-color); +} +.ds-chevron-link:active::after { + background-color: var(--newtab-primary-element-active-color); +} +.ds-chevron-link:focus { + box-shadow: 0 1px 4px 0 rgba(12, 12, 13, 0.2); + border-radius: 2px; +} +.ds-chevron-link::after { + background-color: var(--newtab-primary-action-background); + content: " "; + mask: url("chrome://global/skin/icons/arrow-right-12.svg") 0 -8px no-repeat; + margin: 0 0 0 4px; + width: 5px; + height: 8px; + text-decoration: none; + display: inline-block; +} + +.ds-signup { + max-width: 300px; + margin: 0 auto; + padding: 8px; + position: relative; + text-align: center; + font-size: 17px; + font-weight: 600; +} +.ds-signup:hover { + background: var(--newtab-element-hover-color); + border-radius: 4px; +} +.ds-signup .icon-mail { + height: 40px; + width: 40px; + margin-inline-end: 8px; + fill: var(--newtab-text-secondary-color); + background-size: 30px; + flex-shrink: 0; +} +.ds-signup .ds-signup-content { + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; +} +.ds-signup .ds-signup-content .ds-chevron-link { + margin-top: 4px; + box-shadow: none; + display: block; + white-space: nowrap; +} +@media (min-width: 866px) { + .ds-signup { + min-width: 756px; + width: max-content; + text-align: start; + } + .ds-signup .ds-signup-content { + flex-direction: row; + } + .ds-signup .ds-signup-content .ds-chevron-link { + margin-top: 0; + display: inline; + } +} + +.ds-privacy-modal .modal-link { + display: flex; + align-items: center; + margin: 0 0 8px; + border: 0; + padding: 0; + color: var(--newtab-primary-action-background); + width: max-content; +} +.ds-privacy-modal .modal-link:hover { + text-decoration: underline; + cursor: pointer; +} +.ds-privacy-modal .modal-link::before { + -moz-context-properties: fill; + fill: var(--newtab-primary-action-background); + content: ""; + display: inline-block; + width: 16px; + height: 16px; + margin: 0; + margin-inline-end: 8px; + background-position: center center; + background-repeat: no-repeat; + background-size: 16px; +} +.ds-privacy-modal .modal-link.modal-link-privacy::before { + background-image: url("chrome://global/skin/icons/info.svg"); +} +.ds-privacy-modal .modal-link.modal-link-manage::before { + background-image: url("chrome://global/skin/icons/settings.svg"); +} +.ds-privacy-modal p { + line-height: 24px; +} +.ds-privacy-modal .privacy-notice { + max-width: 572px; + padding: 40px; + margin: auto; +} + +.ds-privacy-link { + text-align: center; + font-size: 13px; + font-weight: 500; + line-height: 24px; +} +.ds-privacy-link a:hover { + text-decoration: underline; +} + +.ds-topics-widget { + display: flex; + position: relative; + flex-direction: column; +} +.ds-topics-widget .ds-topics-widget-header { + font-size: 18px; + line-height: 20px; +} +.ds-topics-widget hr { + background-color: color-mix(in srgb, var(--newtab-border-color) 52%, transparent); + height: 1px; + border: 0; + margin: 10px 0 0; +} +.ds-topics-widget .ds-topics-widget-list-container { + flex-grow: 1; +} +.ds-topics-widget .ds-topics-widget-list-container ul { + margin: 14px 0 0; + padding: 0; + display: flex; + align-items: center; + grid-gap: 10px; + 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: 14px; + line-height: 16px; + text-decoration: none; + padding: 8px 15px; + background: var(--newtab-background-color-secondary); + border: 1px solid color-mix(in srgb, var(--newtab-border-color) 52%, transparent); + color: var(--newtab-text-primary-color); + border-radius: 8px; +} +.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: 14px 0 0; + font-size: 16px; + line-height: 24px; + text-align: center; + padding: 8px; + border-radius: 4px; + 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; +} + +.ASRouterButton { + font-weight: 600; + font-size: 14px; + white-space: nowrap; + border-radius: 2px; + border: 0; + font-family: inherit; + padding: 8px 15px; + margin-inline-start: 12px; + color: inherit; + cursor: pointer; +} +.tall .ASRouterButton { + margin-inline-start: 20px; +} +.ASRouterButton.test-only { + width: 0; + height: 0; + overflow: hidden; + display: block; + visibility: hidden; +} +.ASRouterButton.primary { + border: 1px solid var(--newtab-primary-action-background); + background-color: var(--newtab-primary-action-background); + color: var(--newtab-primary-element-text-color); +} +.ASRouterButton.primary:hover { + background-color: var(--newtab-primary-element-hover-color); +} +.ASRouterButton.primary:active { + background-color: var(--newtab-primary-element-active-color); +} +.ASRouterButton.slim { + border: 1px solid var(--newtab-border-color); + margin-inline-start: 0; + font-size: 12px; + padding: 6px 12px; +} +.ASRouterButton.slim:hover, .ASRouterButton.slim:focus { + box-shadow: 0 0 0 5px var(--newtab-element-secondary-color); + transition: box-shadow 150ms; +} + +.SnippetBaseContainer { + position: fixed; + z-index: 2; + bottom: 0; + left: 0; + right: 0; + background-color: var(--newtab-background-color-secondary); + color: var(--newtab-text-primary-color); + font-size: 14px; + line-height: 20px; + border-top: 1px solid transparent; + box-shadow: 0 1px 4px 0 rgba(12, 12, 13, 0.2); + display: flex; + align-items: center; +} +.SnippetBaseContainer a { + cursor: pointer; + color: var(--newtab-primary-action-background); +} +.SnippetBaseContainer a:hover { + text-decoration: underline; +} +[lwt-newtab-brighttext] .SnippetBaseContainer a { + font-weight: bold; +} +.SnippetBaseContainer input[type=checkbox] { + margin-inline-start: 0; +} +.SnippetBaseContainer .innerWrapper { + margin: 0 auto; + display: flex; + align-items: center; + padding: 12px 25px; + padding-inline-end: 36px; + max-width: 836px; +} +@media (min-width: 866px) { + .SnippetBaseContainer .innerWrapper { + padding-inline-end: 25px; + } +} +@media (min-width: 1122px) { + .SnippetBaseContainer .innerWrapper { + max-width: 1092px; + } +} +.SnippetBaseContainer .blockButton { + display: none; + background: none; + border: 0; + position: absolute; + top: 20px; + inset-inline-end: 12px; + height: 16px; + width: 16px; + background-image: url("chrome://global/skin/icons/close.svg"); + -moz-context-properties: fill; + color: inherit; + fill: currentColor; + opacity: 0.5; + margin-top: -8px; + padding: 0; + cursor: pointer; +} +.SnippetBaseContainer:hover .blockButton { + display: block; +} +.SnippetBaseContainer .icon { + height: 42px; + width: 42px; + margin-inline-end: 12px; + flex-shrink: 0; +} + +.snippets-preview-banner { + font-size: 15px; + line-height: 42px; + color: var(--newtab-text-primary-color); + background: var(--newtab-background-color-secondary); + text-align: center; + position: absolute; + top: 0; + width: 100%; +} +.snippets-preview-banner span { + vertical-align: middle; +} + +body:not([lwt-newtab-brighttext]) .icon-dark-theme, +body:not([lwt-newtab-brighttext]) .icon.icon-dark-theme, +body:not([lwt-newtab-brighttext]) .scene2Icon .icon-dark-theme { + display: none; +} +body[lwt-newtab-brighttext] .icon-light-theme, +body[lwt-newtab-brighttext] .icon.icon-light-theme, +body[lwt-newtab-brighttext] .scene2Icon .icon-light-theme { + display: none; +} + +.activity-stream.modal-open { + overflow: hidden; +} + +.modalOverlayOuter { + background: var(--newtab-overlay-color); + height: 100%; + position: fixed; + top: 0; + left: 0; + width: 100%; + display: none; + z-index: 1100; + overflow: auto; +} +.modalOverlayOuter.active { + display: flex; +} + +.modalOverlayInner { + min-width: min-content; + width: 100%; + max-width: 960px; + position: relative; + margin: auto; + background: var(--newtab-background-color-secondary); + box-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.2); + border-radius: 4px; + display: none; + z-index: 1100; +} +@media (max-width: 960px) { + .modalOverlayInner { + height: 100%; + top: 0; + left: 0; + box-shadow: none; + border-radius: 0; + } +} +.modalOverlayInner.active { + display: block; +} +.modalOverlayInner h2 { + color: var(--newtab-text-primary-color); + text-align: center; + font-weight: 200; + margin-top: 30px; + font-size: 28px; + line-height: 37px; + letter-spacing: -0.13px; +} +@media (max-width: 960px) { + .modalOverlayInner h2 { + margin-top: 100px; + } +} +@media (max-width: 850px) { + .modalOverlayInner h2 { + margin-top: 30px; + } +} +.modalOverlayInner .footer { + border-top: 1px solid var(--newtab-border-color); + border-radius: 4px; + height: 70px; + width: 100%; + position: absolute; + bottom: 0; + text-align: center; + background-color: #FFF; +} +@media (max-width: 850px) and (max-height: 730px) { + .modalOverlayInner .footer { + position: sticky; + } +} +@media (max-width: 650px) and (max-height: 600px) { + .modalOverlayInner .footer { + position: sticky; + } +} +.modalOverlayInner .footer .modalButton { + margin-top: 20px; + min-width: 150px; + height: 30px; + padding: 4px 30px 6px; + font-size: 15px; +} +.modalOverlayInner .footer .modalButton:focus, .modalOverlayInner .footer .modalButton.active, .modalOverlayInner .footer .modalButton:hover { + box-shadow: 0 0 0 5px var(--newtab-element-secondary-color); + transition: box-shadow 150ms; +} + +.below-search-snippet { + margin: 0 auto 16px; +} +.below-search-snippet.withButton { + margin: auto; + min-height: 60px; + background-color: transparent; +} +.below-search-snippet.withButton .snippet-hover-wrapper { + min-height: 60px; + border-radius: 4px; +} +.below-search-snippet.withButton .snippet-hover-wrapper:hover { + background-color: var(--newtab-element-hover-color); +} +.below-search-snippet.withButton .snippet-hover-wrapper:hover .blockButton { + display: block; + opacity: 1; +} + +.SimpleBelowSearchSnippet { + background-color: transparent; + border: 0; + box-shadow: none; + position: relative; + margin: auto; + z-index: auto; +} +@media (min-width: 866px) { + .SimpleBelowSearchSnippet { + width: 736px; + } +} +.SimpleBelowSearchSnippet.active { + background-color: var(--newtab-element-hover-color); + border-radius: 4px; +} +.SimpleBelowSearchSnippet .innerWrapper { + align-items: center; + background-color: transparent; + border-radius: 4px; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); + flex-direction: column; + padding: 16px; + text-align: center; + width: 100%; +} +@media (min-width: 610px) { + .SimpleBelowSearchSnippet .innerWrapper { + align-items: flex-start; + background-color: transparent; + border-radius: 4px; + box-shadow: none; + flex-direction: row; + padding: 0; + text-align: inherit; + width: 696px; + } +} +@media (max-width: 865px) { + .SimpleBelowSearchSnippet .innerWrapper { + margin-inline-start: 0; + } +} +@media (max-width: 609px) { + .SimpleBelowSearchSnippet .innerWrapper { + margin: auto; + } +} +.SimpleBelowSearchSnippet .blockButton { + display: block; + inset-inline-end: 10px; + opacity: 1; + top: 50%; +} +.SimpleBelowSearchSnippet .blockButton:focus { + box-shadow: 0 0 0 5px var(--newtab-element-secondary-color); + border-radius: 2px; +} +.SimpleBelowSearchSnippet .title { + font-size: inherit; + margin: 0; +} +.SimpleBelowSearchSnippet .title-inline { + display: inline; +} +.SimpleBelowSearchSnippet .textContainer { + margin: 10px; + margin-inline-start: 0; + padding-inline-end: 20px; +} +.SimpleBelowSearchSnippet .icon { + margin-top: 8px; + margin-inline-start: 12px; + height: 32px; + width: 32px; +} +@media (min-width: 610px) { + .SimpleBelowSearchSnippet .icon { + height: 24px; + width: 24px; + } +} +@media (max-width: 610px) { + .SimpleBelowSearchSnippet .icon { + margin: auto; + } +} +.SimpleBelowSearchSnippet.withButton { + line-height: 20px; + margin-bottom: 10px; + min-height: 60px; + background-color: transparent; +} +@media (max-width: 1123px) { + .SimpleBelowSearchSnippet.withButton .innerWrapper { + margin: 0 40px; + } +} +.SimpleBelowSearchSnippet.withButton .blockButton { + display: block; + inset-inline-end: -10%; + opacity: 0; + margin: auto; + top: unset; +} +.SimpleBelowSearchSnippet.withButton .blockButton:focus { + opacity: 1; + box-shadow: none; +} +@media (max-width: 1123px) { + .SimpleBelowSearchSnippet.withButton .blockButton { + inset-inline-end: 2%; + } +} +.SimpleBelowSearchSnippet.withButton .icon { + width: 42px; + height: 42px; + flex-shrink: 0; + margin: auto 0; + margin-inline-end: 10px; +} +@media (max-width: 610px) { + .SimpleBelowSearchSnippet.withButton .icon { + margin: auto; + } +} +.SimpleBelowSearchSnippet.withButton .buttonContainer { + margin: auto; + margin-inline-end: 0; +} +@media (max-width: 610px) { + .SimpleBelowSearchSnippet.withButton .buttonContainer { + margin: auto; + } +} +@media (max-width: 610px) { + .SimpleBelowSearchSnippet button { + margin: auto; + } +} +.SimpleBelowSearchSnippet .body { + display: inline; + position: sticky; + transform: translateY(-50%); + margin: 8px 0 0; +} +@media (min-width: 610px) { + .SimpleBelowSearchSnippet .body { + margin: 12px 0; + } +} +.SimpleBelowSearchSnippet .body a { + font-weight: 600; +} + +.SimpleSnippet.tall { + padding: 27px 0; +} +.SimpleSnippet p em { + color: var(--newtab-text-emphasis-text-color); + font-style: normal; + background: var(--newtab-text-emphasis-background); +} +.SimpleSnippet.bold .donation-form-url, +.SimpleSnippet.bold .donation-amount, .SimpleSnippet.takeover .donation-form-url, +.SimpleSnippet.takeover .donation-amount { + padding-top: 8px; + padding-bottom: 8px; +} +.SimpleSnippet.bold { + height: 176px; +} +.SimpleSnippet.bold .body { + font-size: 14px; + line-height: 20px; + margin-bottom: 20px; +} +.SimpleSnippet.bold .icon { + width: 71px; + height: 71px; +} +.SimpleSnippet.takeover { + height: 344px; +} +.SimpleSnippet.takeover .body { + font-size: 16px; + line-height: 24px; + margin-bottom: 35px; +} +.SimpleSnippet.takeover .icon { + width: 79px; + height: 79px; +} +.SimpleSnippet .title { + font-size: inherit; + margin: 0; +} +.SimpleSnippet .title-inline { + display: inline; +} +.SimpleSnippet .titleIcon { + background-repeat: no-repeat; + background-size: 14px; + background-position: center; + height: 16px; + width: 16px; + margin-top: 2px; + margin-inline-end: 2px; + display: inline-block; + vertical-align: top; +} +.SimpleSnippet .body { + display: inline; + margin: 0; +} +.SimpleSnippet.tall .icon { + margin-inline-end: 20px; +} +.SimpleSnippet.takeover .icon, .SimpleSnippet.bold .icon { + margin-inline-end: 20px; +} +.SimpleSnippet .icon { + align-self: flex-start; +} +.SimpleSnippet.has-section-header .innerWrapper { + flex-wrap: wrap; + padding-top: 7px; +} +.SimpleSnippet .innerContentWrapper { + align-items: center; + display: flex; +} +.SimpleSnippet .section-header { + flex: 0 0 100%; + margin-bottom: 10px; +} +.SimpleSnippet .section-title { + color: var(--newtab-text-primary-color); + display: inline-block; + font-size: 13px; + font-weight: bold; + margin: 0; +} +.SimpleSnippet .section-title a { + color: var(--newtab-text-primary-color); + font-weight: inherit; + text-decoration: none; +} +.SimpleSnippet .section-title .icon { + height: 16px; + margin-inline-end: 6px; + margin-top: -2px; + width: 16px; +} + +.SubmitFormSnippet { + flex-direction: column; + flex: 1 1 100%; + width: 100%; +} +.SubmitFormSnippet .disclaimerText { + margin: 5px 0 0; + font-size: 12px; + color: var(--newtab-text-secondary-color); +} +.SubmitFormSnippet p { + margin: 0; +} +.SubmitFormSnippet.send_to_device_snippet { + text-align: center; +} +.SubmitFormSnippet.send_to_device_snippet .message { + font-size: 16px; + margin-bottom: 20px; +} +.SubmitFormSnippet.send_to_device_snippet .scene2Title { + font-size: 24px; + display: block; +} +.SubmitFormSnippet .ASRouterButton.primary { + flex: 1 1 0; +} +.SubmitFormSnippet .scene2Icon { + width: 100%; + margin-bottom: 20px; +} +.SubmitFormSnippet .scene2Icon img { + width: 98px; + display: inline-block; +} +.SubmitFormSnippet .scene2Title { + font-size: inherit; + margin: 0 0 10px; + font-weight: bold; + display: inline; +} +.SubmitFormSnippet form { + display: flex; + flex-direction: column; + width: 100%; +} +.SubmitFormSnippet .message { + font-size: 14px; + align-self: stretch; + flex: 0 0 100%; + margin-bottom: 10px; +} +.SubmitFormSnippet .privacyNotice { + font-size: 12px; + color: var(--newtab-text-secondary-color); + margin-top: 10px; + display: flex; + flex: 0 0 100%; +} +.SubmitFormSnippet .innerWrapper { + max-width: 736px; + flex-wrap: wrap; + justify-items: center; + padding-top: 40px; + padding-bottom: 40px; +} +.SubmitFormSnippet .footer { + width: 100%; + margin: 0 auto; + text-align: right; + background-color: var(--newtab-background-color); + padding: 10px 0; +} +.SubmitFormSnippet .footer .footer-content { + margin: 0 auto; + max-width: 768px; + width: 100%; + text-align: right; +} +[dir=rtl] .SubmitFormSnippet .footer .footer-content { + text-align: left; +} +.SubmitFormSnippet input.mainInput { + border-radius: 2px; + background-color: var(--newtab-background-color-secondary); + border: 1px solid var(--newtab-border-color); + padding: 0 8px; + height: 100%; + font-size: 14px; + width: 50%; +} +.SubmitFormSnippet input.mainInput.clean:invalid, .SubmitFormSnippet input.mainInput.clean:required { + box-shadow: none; +} +.SubmitFormSnippet input.mainInput:focus { + border: 1px solid var(--newtab-textbox-focus-color); + box-shadow: var(--newtab-textbox-focus-boxshadow); +} +.SubmitFormSnippet.scene2Alt { + text-align: start; +} +.SubmitFormSnippet.scene2Alt .scene2Icon { + flex: 1; + margin-bottom: 0; +} +.SubmitFormSnippet.scene2Alt .message { + flex: 5; + margin-bottom: 0; +} +.SubmitFormSnippet.scene2Alt .message p { + margin-bottom: 10px; +} +.SubmitFormSnippet.scene2Alt .section-header { + width: 100%; +} +.SubmitFormSnippet.scene2Alt .section-header .icon { + width: 16px; + height: 16px; +} +.SubmitFormSnippet.scene2Alt .section-title { + font-size: 13px; +} +.SubmitFormSnippet.scene2Alt .section-title a { + color: var(--newtab-text-primary-color); + font-weight: inherit; + text-decoration: none; +} +.SubmitFormSnippet.scene2Alt .innerWrapper { + padding: 0 0 16px; +} + +.submissionStatus { + text-align: center; + font-size: 14px; + padding: 20px 0; +} +.submissionStatus .submitStatusTitle { + font-size: 20px; +} + +.EOYSnippetForm { + margin: 10px 0 8px; + align-self: start; + font-size: 14px; + display: flex; + align-items: center; +} +.EOYSnippetForm .donation-amount, +.EOYSnippetForm .donation-form-url { + white-space: nowrap; + font-size: 14px; + padding: 8px 20px; + border-radius: 2px; +} +.EOYSnippetForm .donation-amount { + color: var(--newtab-text-primary-color); + margin-inline-end: 18px; + border: 1px solid var(--newtab-border-color); + padding: 5px 14px; + background: var(--newtab-background-color-secondary); + cursor: pointer; +} +.EOYSnippetForm input[type=radio] { + opacity: 0; + margin-inline-end: -18px; +} +.EOYSnippetForm input[type=radio]:checked + .donation-amount { + background: var(--newtab-text-secondary-color); + color: var(--newtab-background-color-secondary); + border: 1px solid var(--newtab-border-color); +} +.EOYSnippetForm input[type=radio]:checked:focus + .donation-amount, .EOYSnippetForm input[type=radio]:not(:checked):focus + .donation-amount { + border: 1px dotted var(--newtab-primary-action-background); +} +.EOYSnippetForm .monthly-checkbox-container { + display: flex; + width: 100%; +} +.EOYSnippetForm .donation-form-url { + margin-inline-start: 18px; + align-self: flex-end; + display: flex; +} |