This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. Ported for vimjoyer.com from the Firefox 157.0 New Tab page: https://searchfox.org/mozilla-release/source/browser/extensions/newtab @font-face { font-family: "Firefox Newtab Sans"; src: local("Adwaita Sans"), url("../../assets/fonts/AdwaitaSans-Course.woff2") format("woff2"); font-weight: 400; font-style: normal; } @font-face { font-family: "Firefox Newtab Sans"; src: local("Adwaita Sans SemiBold"), url("../../assets/fonts/AdwaitaSans-Course.woff2") format("woff2"); font-weight: 600; font-style: normal; } .firefox-newtab { --font-size-root: 15px; --font-size-xxlarge: 24px; --font-weight: normal; --firefox-button-font: 13.328125px "Firefox Newtab Sans", sans-serif; --firefox-caption-font: 14.671875px "Firefox Newtab Sans", sans-serif; --space-xxsmall: 1.875px; --space-xsmall: 3.75px; --space-small: 7.5px; --space-medium: 11.25px; --space-large: 15px; --space-xlarge: 22.5px; --space-xxlarge: 30px; --size-item-medium: 24px; --size-item-large: 32px; --icon-size: 16px; --icon-size-medium: 20px; --border-width: 1px; --border-radius-small: 8px; --border-radius-medium: 12px; --border-radius-large: 16px; --border-radius-circle: 9999px; --text-color: #180e30; --icon-color: #180e30; --background-color-canvas: #f7f6fb; --card-background-color: #fff; --color-accent-primary: #764edd; --box-shadow-level-3: 0 0.375px 1.5px rgba(0, 0, 0, 2%), 0 3px 12px rgba(0, 0, 0, 4%); --card-box-shadow: 0 0.25px 0.75px rgba(0, 0, 0, 2%), 0 2px 6px rgba(0, 0, 0, 4%); --focus-outline: 2px solid var(--color-accent-primary); --focus-outline-offset: 2px; --button-font-size: 15px; --button-font-weight: 600; --button-min-height: 32px; --button-min-height-large: 40px; --button-size-icon: 32px; --button-size-icon-large: 40px; --button-padding: 3.75px 15px; --button-padding-block-large: 7.5px; --button-padding-inline-large: 22.5px; --button-padding-icon: 0; --button-border: 1px solid var(--color-accent-primary); --button-border-radius: 24px; --button-content-alignment: center; --button-icon-fill: currentColor; --button-background-color: transparent; --button-background-color-hover: #d2c8ec; --button-background-color-active: #b6aad9; --button-border-color-hover: var(--color-accent-primary); --button-border-color-active: var(--color-accent-primary); --button-text-color: #161423; --button-text-color-hover: #161423; --button-text-color-active: #161423; --button-background-color-primary: var(--color-accent-primary); --button-background-color-primary-hover: #5939a8; --button-background-color-primary-active: #3e2976; --button-border-color-primary: transparent; --button-border-color-primary-hover: transparent; --button-border-color-primary-active: transparent; --button-text-color-primary: #fff; --button-text-color-primary-hover: #fff; --button-text-color-primary-active: #fff; --button-background-color-ghost: transparent; --button-background-color-ghost-hover: #d2c8ec; --button-background-color-ghost-active: #b6aad9; --button-border-color-ghost: transparent; --button-border-color-ghost-hover: transparent; --button-border-color-ghost-active: transparent; --mrec-width: 300px; --col-width: calc(var(--mrec-width) / 4); --mrec-height: 250px; --row-height: calc(var(--mrec-height) / 4); --side-col-width: calc(2 * var(--col-width)); --content-col-width: minmax(calc((4 * var(--col-width)) + 34px), var(--content-max-width)); --col-span-16: calc(16 * var(--col-width) + 15 * var(--space-medium)); --content-max-width: var(--col-span-16); --newtab-background-color: var(--background-color-canvas); --newtab-background-color-secondary: var(--card-background-color); --newtab-text-primary-color: var(--text-color); --newtab-background-card: var(--card-background-color); --newtab-contextual-text-primary-color: var(--newtab-text-primary-color); --newtab-primary-action-background: var(--color-accent-primary); --newtab-text-secondary-color: color-mix(in srgb, var(--newtab-text-primary-color) 70%, transparent); --newtab-contextual-text-secondary-color: color-mix(in srgb, var(--newtab-contextual-text-primary-color) 70%, transparent); --newtab-button-background: var(--button-background-color); --newtab-button-focus-background: var(--newtab-button-background); --newtab-button-hover-background: var(--button-background-color-hover); --newtab-button-active-background: var(--button-background-color-active); --newtab-button-text: var(--button-text-color); --newtab-section-card-box-shadow-color: rgba(58, 57, 68, 20%); --newtab-primary-action-background-dimmed: color-mix(in srgb, var(--newtab-primary-action-background) 25%, transparent); container: firefox-newtab-viewport / size; position: relative; overflow: hidden; box-sizing: border-box; width: 100%; height: 100%; color-scheme: light; background-color: var(--newtab-background-color); color: #000; font: var(--font-size-root) / normal "Firefox Newtab Sans", sans-serif; letter-spacing: normal; word-spacing: normal; text-align: start; text-transform: none; text-indent: 0; white-space: normal; } .firefox-newtab *, .firefox-newtab *::before, .firefox-newtab *::after { box-sizing: inherit; } .firefox-newtab button { background-color: inherit; color: inherit; font-family: inherit; font-size: inherit; } .firefox-newtab .icon { background-position: center center; background-repeat: no-repeat; background-size: 16px; display: inline-block; color: var(--icon-color); fill: currentColor; height: 16px; vertical-align: middle; width: 16px; } .firefox-newtab .firefox-newtab-page { position: relative; height: 100%; overflow-y: auto; scrollbar-width: none; } .firefox-newtab h1 { font-size: 2em; font-weight: var(--font-weight); } .firefox-newtab .nova-outer-wrapper { color: var(--newtab-text-primary-color); min-height: 100cqh; padding-block-start: var(--space-xlarge); } .firefox-newtab .nova-enabled.container { container-type: inline-size; container-name: outer-grid; display: grid; grid-template-columns: var(--side-col-width) var(--content-col-width) var(--side-col-width); grid-template-rows: repeat(2, var(--row-height)); grid-auto-rows: auto; gap: var(--space-medium); justify-content: space-between; margin-inline: auto; padding-inline: var(--space-xlarge); } .firefox-newtab .nova-enabled .content { container-type: inline-size; container-name: content-grid; display: grid; grid-template-columns: repeat(auto-fill, var(--col-width)); gap: var(--space-medium); justify-content: center; align-self: start; } .firefox-newtab .nova-enabled .content-main { display: contents; } .firefox-newtab .nova-enabled .content { grid-column: 2; grid-row: 2 / span 2; } .firefox-newtab .nova-enabled .sidebar-inline-end { display: grid; grid-column: 3; grid-row: 1 / span 2; grid-template-rows: subgrid; position: relative; } .firefox-newtab .nova-enabled .sidebar-inline-start { grid-column: 1; grid-row: 1 / span 2; } .firefox-newtab .nova-enabled.logo-in-content .content { grid-row: 3 / span 2; } .firefox-newtab .nova-enabled .content > * { grid-column: 1 / -1; container-type: inline-size; container-name: component; } .firefox-newtab .logo-and-wordmark-wrapper { margin-block: 0; } .firefox-newtab .nova-enabled .content .logo-and-wordmark-wrapper { grid-column: 1 / -1; display: flex; justify-content: center; } .firefox-newtab .logo-and-wordmark { align-items: center; display: flex; justify-content: center; margin-block-end: var(--space-xxlarge); } .firefox-newtab .nova-enabled .logo-and-wordmark { justify-content: flex-start; } .firefox-newtab .nova-enabled .logo-and-wordmark .wordmark { display: none; } @container outer-grid (inline-size >= calc(900px + 101.25px)) { .firefox-newtab .nova-enabled .logo-and-wordmark { width: max-content; } .firefox-newtab .nova-enabled .logo-and-wordmark .wordmark { display: inline-block; } } .firefox-newtab .nova-enabled .content .logo-and-wordmark { grid-column: 1 / -1; display: flex; justify-content: center; align-items: flex-start; } .firefox-newtab .logo-and-wordmark .logo { display: inline-block; height: 64px; width: 64px; background: image-set(url("../../assets/firefox/about-logo.png") 1x, url("../../assets/firefox/about-logo@2x.png") 2x) no-repeat center; background-size: 64px; } .firefox-newtab .logo-and-wordmark .wordmark { background: url("../../assets/firefox/firefox-wordmark.svg") no-repeat center center; background-size: 105px; display: inline-block; height: 64px; margin-inline-start: var(--space-large); width: 105px; } .firefox-newtab .top-sites-list { list-style: none; margin: 0 calc(var(--space-large) * -1); padding: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: center; row-gap: var(--space-small); } .firefox-newtab .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :has(.top-site-inner:hover), :has(.top-site-inner :focus-visible)) { background: color-mix(in srgb, var(--button-text-color-hover) 14%, transparent); } .firefox-newtab .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :has(.top-site-inner:hover), :has(.top-site-inner :focus-visible)) .tile { box-shadow: 0 2px 8px 0 var(--newtab-section-card-box-shadow-color); } .firefox-newtab .top-sites-list a { text-decoration: none; } .firefox-newtab .top-site-outer { width: 120px; margin-block-end: var(--space-medium); border-radius: var(--border-radius-large); display: inline-block; position: relative; } .firefox-newtab .top-site-outer .top-site-inner { position: relative; } .firefox-newtab .top-site-outer .top-site-inner > a { padding: var(--space-large) var(--space-large) var(--space-xsmall); color: inherit; display: block; outline: none; } .firefox-newtab .top-sites-list:not(.dnd-active) .top-site-outer:is(:has(.top-site-inner:hover), :has(.top-site-inner :focus-visible)) .context-menu-button { opacity: 1; } @media (prefers-reduced-motion: no-preference) { .firefox-newtab .top-sites-list:not(.dnd-active) .top-site-outer:is(:has(.top-site-inner:hover), :has(.top-site-inner :focus-visible)) .context-menu-button { transition: opacity 200ms; } } .firefox-newtab .top-sites-list:not(.dnd-active) .top-site-outer:is(:has(.top-site-inner:hover), :has(.top-site-inner :focus-visible)) .tile { background-color: var(--newtab-background-color-secondary); } .firefox-newtab .top-site-outer .tile { color-scheme: initial; } .firefox-newtab .top-site-outer .tile { background: var(--newtab-background-card); border-radius: var(--border-radius-large); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); height: calc(var(--size-item-large) * 2); width: calc(var(--size-item-large) * 2); margin: 0 auto; position: relative; display: flex; align-items: center; justify-content: center; text-transform: uppercase; font-size: var(--font-size-xxlarge); color: var(--newtab-contextual-text-secondary-color); cursor: pointer; } .firefox-newtab .top-site-outer .tile .icon-wrapper { border-radius: var(--border-radius-small); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; } .firefox-newtab .top-site-outer .tile .top-site-icon { background-color: transparent; border-radius: var(--border-radius-medium); background-position: center; background-repeat: no-repeat; position: absolute; } .firefox-newtab .top-site-outer .context-menu-button { border: 0; border-radius: var(--border-radius-small); cursor: pointer; fill: var(--newtab-button-text); height: var(--size-item-medium); width: var(--size-item-medium); inset-inline-end: 0; inset-block-start: var(--space-medium); position: absolute; opacity: 0; padding: 0; } .firefox-newtab .top-site-outer .context-menu-button::before { content: ""; position: absolute; inset: 0; background-color: var(--button-icon-fill); mask: url("../../assets/firefox/more.svg") no-repeat center / 16px; } .firefox-newtab .top-site-outer .context-menu-button:hover { background-color: var(--newtab-button-hover-background); } .firefox-newtab .top-site-outer .context-menu-button:hover:active { background-color: var(--newtab-button-active-background); } .firefox-newtab .top-site-outer .context-menu-button:focus-visible { background-color: var(--newtab-button-focus-background); outline: var(--focus-outline); opacity: 1; } .firefox-newtab .top-site-outer .top-site-button { padding: var(--space-large) var(--space-large) var(--space-small); } .firefox-newtab .top-site-outer .top-site-button:focus + div .context-menu-button { opacity: 1; } .firefox-newtab .top-site-outer .top-site-title { color: var(--newtab-contextual-text-primary-color); padding-block-start: var(--space-small); font: var(--firefox-caption-font); text-align: center; position: relative; } .firefox-newtab .top-site-outer .rich-icon { background-size: cover; height: 100%; width: 100%; position: absolute; inset-inline-start: 0; inset-block-start: 0; } .firefox-newtab .add-button-tile .add-button { position: absolute; inset-block-start: calc(var(--space-large) + var(--size-item-large)); inset-inline: 0; margin-inline: auto; transform: translateY(-50%); } .firefox-newtab .nova-enabled .add-button-tile .add-button { inset-block-start: calc(var(--col-width) - var(--size-item-large)); } .firefox-newtab .top-sites-list .top-site-outer .top-site-button { display: flex; flex-direction: column; justify-content: center; align-items: center; } .firefox-newtab .top-sites-list .top-site-outer .top-site-title .top-site-title-label { display: block; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 2; white-space: normal; word-break: break-word; min-height: 2lh; width: 100px; padding: 0 var(--space-xsmall); } .firefox-newtab .search-wrapper { padding: 0; margin-block: var(--space-xxlarge); margin-block-start: 0; } .firefox-newtab .search-wrapper .search-inner-wrapper { cursor: default; display: flex; height: 52px; margin: 0 auto; position: relative; width: 304px; } .firefox-newtab .search-wrapper .content-search-handoff-ui { --content-search-handoff-ui-background-color: var(--newtab-background-color-secondary); --content-search-handoff-ui-color: var(--newtab-text-primary-color); --content-search-handoff-ui-fill: var(--newtab-text-secondary-color); --content-search-handoff-ui-caret-color: var(--newtab-text-primary-color); --content-search-handoff-ui-fakefocus-border-color: var(--newtab-primary-action-background); --content-search-handoff-ui-fakefocus-box-shadow-inner: var(--newtab-primary-action-background-dimmed); --content-search-handoff-ui-fakefocus-box-shadow-outer: transparent; } .firefox-newtab .nova-enabled .search-wrapper { container-type: normal; display: grid; grid-template-columns: subgrid; } .firefox-newtab .nova-enabled .search-inner-wrapper { grid-column: 1 / -1; margin-inline: auto; width: calc(4 * var(--col-width) + 3 * var(--space-medium)); } @container outer-grid (inline-size >= calc(750px + 78.75px)) { .firefox-newtab .nova-enabled .search-inner-wrapper { width: calc(6 * var(--col-width) + 5 * var(--space-medium)); } } @container outer-grid (inline-size >= calc(1050px + 123.75px)) { .firefox-newtab .nova-enabled .search-inner-wrapper { width: calc(10 * var(--col-width) + 9 * var(--space-medium)); } } .firefox-newtab .nova-enabled .sticky-search-sentinel { grid-column: 1 / -1; block-size: 1px; margin-block-end: -1px; visibility: hidden; pointer-events: none; } @container firefox-newtab-viewport (height > 700px) { .firefox-newtab .nova-enabled .search-wrapper { position: sticky; inset-block-start: 0; z-index: 3; padding-block: var(--space-xlarge); } } .firefox-newtab .content-search-handoff-ui { display: flex; width: 100%; --content-search-handoff-ui-border-width: 1px; --content-search-handoff-ui-border-radius: var(--border-radius-circle); --content-search-handoff-ui-engine-icon: url("../../assets/firefox/google-16-firefox.png"); --content-search-handoff-ui-unfocused-border-color: transparent; } .firefox-newtab .fake-textbox { opacity: 0.54; text-align: start; -webkit-line-clamp: 1; overflow: hidden; margin-inline-start: var(--space-xsmall); font-size: var(--font-size-root); } .firefox-newtab .search-handoff-button { position: relative; margin: 0; font: var(--firefox-button-font); text-align: center; cursor: default; background: var(--content-search-handoff-ui-background-color) var(--content-search-handoff-ui-engine-icon) 16px center no-repeat; background-size: var(--size-item-medium); padding-inline-start: calc(2 * var(--space-xlarge)); padding-inline-end: var(--space-small); padding-block: 0; width: 100%; box-shadow: var(--box-shadow-level-3); border: var(--content-search-handoff-ui-border-width) solid var(--content-search-handoff-ui-unfocused-border-color); border-radius: var(--content-search-handoff-ui-border-radius); color: var(--content-search-handoff-ui-color); } @keyframes firefox-newtab-caret { to { visibility: hidden; } } .firefox-newtab .fake-caret { animation: firefox-newtab-caret var(--caret-blink-time, 1134ms) steps(2, start) var(--caret-blink-count, infinite); background: var(--content-search-handoff-ui-caret-color); display: none; inset-inline-start: calc(2 * var(--space-xlarge)); width: 1px; height: 17px; margin-top: -17px; } .firefox-newtab .content-search-handoff-ui.fakefocus:not(.disabled) .search-handoff-button { border: var(--content-search-handoff-ui-border-width) solid var(--content-search-handoff-ui-fakefocus-border-color); box-shadow: 0 0 0 2px var(--content-search-handoff-ui-fakefocus-box-shadow-inner), 0 0 0 4px var(--content-search-handoff-ui-fakefocus-box-shadow-outer); } .firefox-newtab .content-search-handoff-ui.fakefocus:not(.disabled) .fake-caret { display: block; } .firefox-newtab .content-search-handoff-ui.disabled .search-handoff-button { opacity: 0.5; } .firefox-newtab .personalizeButtonWrapper { margin: 0; padding: 0; z-index: 5; position: absolute; inset-block-end: var(--space-xlarge); inset-inline-end: var(--space-xlarge); } .firefox-newtab .moz-button { display: inline-block; height: fit-content; width: fit-content; user-select: none; } .firefox-newtab .moz-button > button { appearance: none; background: transparent; border: none; font: inherit; color: inherit; width: 100%; height: 100%; margin: 0; padding: 0; text-align: center; cursor: default; } .firefox-newtab .moz-button > button:focus-visible { outline: none; } .firefox-newtab .button-background { box-sizing: border-box; min-height: var(--button-min-height); border: var(--button-border); border-radius: var(--button-border-radius); background-color: var(--button-background-color); color: var(--button-text-color); padding: var(--button-padding); font-weight: var(--button-font-weight); font-size: var(--button-font-size); display: flex; justify-content: var(--button-content-alignment); align-items: center; position: relative; } .firefox-newtab .button-background[data-size="large"] { min-height: var(--button-min-height-large); padding: var(--button-padding-block-large) var(--button-padding-inline-large); } .firefox-newtab button:hover > .button-background { background-color: var(--button-background-color-hover); border-color: var(--button-border-color-hover); color: var(--button-text-color-hover); } .firefox-newtab button:hover:active > .button-background { background-color: var(--button-background-color-active); border-color: var(--button-border-color-active); color: var(--button-text-color-active); } .firefox-newtab button:focus-visible > .button-background { outline: var(--focus-outline); outline-offset: var(--focus-outline-offset); } .firefox-newtab .button-background[data-type="primary"] { background-color: var(--button-background-color-primary); border-color: var(--button-border-color-primary); color: var(--button-text-color-primary); } .firefox-newtab button:hover > .button-background[data-type="primary"] { background-color: var(--button-background-color-primary-hover); border-color: var(--button-border-color-primary-hover); color: var(--button-text-color-primary-hover); } .firefox-newtab button:hover:active > .button-background[data-type="primary"] { background-color: var(--button-background-color-primary-active); border-color: var(--button-border-color-primary-active); color: var(--button-text-color-primary-active); } .firefox-newtab .button-background.labelled { gap: var(--space-small); } .firefox-newtab .button-background:not(.labelled) { width: var(--button-size-icon); height: var(--button-size-icon); padding: var(--button-padding-icon); } .firefox-newtab .button-background[data-size="large"]:not(.labelled) { width: var(--button-size-icon-large); height: var(--button-size-icon-large); } .firefox-newtab .button-icon { flex-shrink: 0; width: var(--icon-size); height: var(--icon-size); background-color: var(--button-icon-fill); mask: var(--firefox-newtab-icon) no-repeat center / 100%; pointer-events: none; } .firefox-newtab .plus-icon { --firefox-newtab-icon: url("../../assets/firefox/plus.svg"); } .firefox-newtab .edit-icon { --firefox-newtab-icon: url("../../assets/firefox/edit-outline.svg"); } .firefox-newtab .open-customization-button .moz-button-label { opacity: 0; max-width: 0; overflow: hidden; white-space: nowrap; } @media (prefers-reduced-motion: no-preference) { .firefox-newtab .open-customization-button .moz-button-label { transition: opacity 0.3s ease, max-width 0.3s ease; } } .firefox-newtab .open-customization-button .button-background { min-width: var(--button-size-icon); max-width: var(--button-size-icon); height: var(--button-size-icon); padding-inline: 0 calc((var(--button-size-icon) - var(--icon-size-medium)) / 2); overflow: hidden; justify-content: flex-end; gap: 0; } @media (prefers-reduced-motion: no-preference) { .firefox-newtab .open-customization-button .button-background { transition: max-width 0.3s ease, padding 0.3s ease, gap 0.3s ease; } } .firefox-newtab .open-customization-button:is(:hover, :focus-within) .moz-button-label { opacity: 1; max-width: 30ch; } .firefox-newtab .open-customization-button:is(:hover, :focus-within) .button-background { max-width: calc(30ch + var(--icon-size-medium) + var(--space-small) + var(--space-large) * 2); padding: var(--space-small) var(--space-large); gap: var(--space-small); } .firefox-newtab .nova-enabled .top-sites { display: contents; } .firefox-newtab .nova-enabled .top-sites-list-wrapper, .firefox-newtab .nova-enabled .edit-topsites-wrapper { grid-column: 1 / -1; } .firefox-newtab .nova-enabled .top-sites-list { grid-template-columns: repeat(6, auto); column-gap: var(--space-medium); row-gap: var(--space-large); } @container content-grid (inline-size >= calc(600px + 78.75px)) { .firefox-newtab .nova-enabled .top-sites-list { grid-template-columns: repeat(8, auto); } } @container content-grid (inline-size >= calc(900px + 123.75px)) { .firefox-newtab .nova-enabled .top-sites-list { grid-template-columns: repeat(var(--top-sites-max-per-row, 8), auto); } } .firefox-newtab .nova-enabled .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :has(.top-site-inner:hover), :has(.top-site-inner :focus-visible)) { background: none; } .firefox-newtab .nova-enabled .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :has(.top-site-inner:hover), :has(.top-site-inner :focus-visible)) .tile { border-color: var(--button-border-color-ghost-hover); } @media (prefers-reduced-motion: no-preference) { .firefox-newtab .nova-enabled .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :has(.top-site-inner:hover), :has(.top-site-inner :focus-visible)) .tile { width: var(--col-width); height: var(--col-width); } } .firefox-newtab .nova-enabled .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :has(.top-site-inner:hover), :has(.top-site-inner :focus-visible)) .context-menu-button { opacity: 1; } @media (prefers-reduced-motion: no-preference) { .firefox-newtab .nova-enabled .top-sites-list:not(.dnd-active) .top-site-outer:is(.active, :has(.top-site-inner:hover), :has(.top-site-inner :focus-visible)) .context-menu-button { transition: opacity 100ms ease-out 50ms; } } .firefox-newtab .nova-enabled .top-site-outer { width: var(--col-width); margin-block-end: 0; } .firefox-newtab .nova-enabled .top-site-outer .top-site-button { display: grid; grid-template-rows: var(--col-width) auto; padding: 0; } .firefox-newtab .nova-enabled .top-site-outer .tile { align-self: end; box-shadow: var(--card-box-shadow); border: var(--border-width) solid var(--button-border-color-ghost); border-radius: var(--border-radius-medium); } @media (prefers-reduced-motion: no-preference) { .firefox-newtab .nova-enabled .top-site-outer .tile { transition: width 100ms ease-out, height 100ms ease-out; } } .firefox-newtab .nova-enabled .top-site-outer .tile .top-site-icon { border-radius: var(--border-radius-small); } .firefox-newtab .nova-enabled .top-site-outer:active .tile { border-color: var(--button-border-color-ghost-active); } .firefox-newtab .nova-enabled .top-site-outer .top-site-inner > a:focus .tile { outline: var(--focus-outline); } .firefox-newtab .nova-enabled .top-site-outer .context-menu-button { inset-inline-end: var(--space-xxsmall); inset-block-start: var(--space-xxsmall); border: var(--border-width) solid var(--button-border-color-ghost); border-radius: var(--border-radius-circle); color: var(--button-text-color-ghost); fill: var(--button-icon-fill); } .firefox-newtab .nova-enabled .top-site-outer .context-menu-button:hover { background-color: var(--button-background-color-ghost-hover); border-color: var(--button-border-color-ghost-hover); color: var(--button-text-color-ghost-hover); } .firefox-newtab .nova-enabled .top-site-outer .context-menu-button:hover:active { background-color: var(--button-background-color-ghost-active); border-color: var(--button-border-color-ghost-active); } .firefox-newtab .nova-enabled .top-site-outer .context-menu-button:focus-visible { background-color: var(--button-background-color-ghost); } .firefox-newtab .nova-enabled .top-site-outer .top-site-title .top-site-title-label { padding: 0; width: var(--col-width); } @media (prefers-reduced-motion: reduce) { .firefox-newtab .nova-enabled .top-site-outer .context-menu-button { inset-inline-end: calc(var(--space-xsmall) + var(--space-xxsmall) / 2); inset-block-start: var(--space-small); } }