/* 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/. */ :root { -moz-appearance: none; font-size: 75%; background-color: transparent; } /* SCROLLBOX */ #newtab-vertical-margin { background-color: rgb(0,0,0); background-attachment: fixed; } /* UNDO */ #newtab-undo-container { padding: 4px 3px; border: 1px solid; border-color: rgb(64,64,64); background-color: rgb(0,0,0); color: #fff; } #newtab-undo-label { margin-top: 0; margin-bottom: 0; } .newtab-undo-button { -moz-appearance: none; color: #fff; cursor: pointer; padding: 0; margin: 0 4px; border: 0; background: transparent; text-decoration: underline; min-width: 0; } .newtab-undo-button:hover { color: rgb(255,255,255); } .newtab-undo-button:-moz-focusring { outline: 1px dotted rgb(64,64,64); } #newtab-undo-close-button { -moz-appearance: none; padding: 0; border: none; } #newtab-undo-close-button { -moz-appearance: none; padding: 0; border: none; height: 16px; width: 16px; float: right; right: 0; background-image: url(chrome://global/skin/icons/close.svg#normal); background-color: transparent; } #newtab-undo-close-button:hover { background-image: url(chrome://global/skin/icons/close.svg#hover); } #newtab-undo-close-button:hover:active { background-image: url(chrome://global/skin/icons/close.svg#active); } /* TOGGLE */ #newtab-toggle { background-color: transparent; background-image: -moz-image-rect(url(chrome://browser/skin/newtab/controls.svg), 0, 32, 32, 0); background-size: 32px; border: none; height: 28px; width: 28px; } #newtab-toggle:-moz-any(:hover, :active, [active]) { background-image: -moz-image-rect(url(chrome://browser/skin/newtab/controls.svg), 0, 64, 32, 32); } /* ROWS */ .newtab-row { margin-bottom: 20px; } .newtab-row:last-child { margin-bottom: 0; } /* CELLS */ .newtab-cell { margin-inline-end: 20px; background-color: rgb(0,0,0); border: 1px solid rgb(64,64,64); transition: border-color 100ms ease-out; } .newtab-cell:empty { border: 1px dashed rgb(64,64,64); } .newtab-cell:last-child { margin-inline-end: 0; } .newtab-cell:hover:not(:empty) { border-color: rgb(64,64,64); } /* SITES */ .newtab-site { text-decoration: none; transition-property: top, left, opacity, box-shadow, background-color; box-shadow: 0 4px 6px rgba(255,255,255,.2); } .newtab-site:hover { box-shadow: 0 4px 8px rgba(255,255,255,.5); } .newtab-site[dragged] { transition-property: box-shadow, background-color; background-color: rgb(0,0,0); box-shadow: 0 18px 24px rgba(255,255,255,.5); } /* THUMBNAILS */ .newtab-thumbnail { background-origin: padding-box; background-clip: padding-box; background-repeat: no-repeat; background-size: cover; opacity: 1; } /* TITLES */ .newtab-title { padding: 0 8px; background-color: rgb(0,0,0); color: #fff; line-height: 24px; } .newtab-site[pinned] .newtab-title { padding-inline-start: 24px; } .newtab-site[pinned] .newtab-title::before { background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 7, 278, 28, 266); background-size: 10px; content: ""; height: 17px; left: 0; position: absolute; width: 10px; margin-left: 8px; margin-top: 6px; } .newtab-site[pinned] .newtab-title:dir(rtl)::before { left: auto; right: 0; } /* CONTROLS */ .newtab-control { background-color: transparent; background-size: 24px; border: none; height: 26px; width: 24px; } .newtab-control-pin:dir(ltr), .newtab-control-block:dir(rtl) { left: 4px; } .newtab-control-block:dir(ltr), .newtab-control-pin:dir(rtl) { right: 4px; } .newtab-control-pin, .newtab-site[pinned] .newtab-control-pin:hover { background-image: -moz-image-rect(url(chrome://browser/skin/newtab/controls.svg), 0, 96, 33, 64); } .newtab-control-pin:hover:active, .newtab-site[pinned] .newtab-control-pin:hover:active { background-image: -moz-image-rect(url(chrome://browser/skin/newtab/controls.svg), 0, 160, 33, 128); } .newtab-control-pin:hover, .newtab-site[pinned] .newtab-control-pin { background-image: -moz-image-rect(url(chrome://browser/skin/newtab/controls.svg), 0, 128, 33, 96); } .newtab-control-block { background-image: -moz-image-rect(url(chrome://browser/skin/newtab/controls.svg), 0, 192, 33, 160); } .newtab-control-block:hover { background-image: -moz-image-rect(url(chrome://browser/skin/newtab/controls.svg), 0, 224, 33, 192); } .newtab-control-block:hover:active { background-image: -moz-image-rect(url(chrome://browser/skin/newtab/controls.svg), 0, 256, 33, 224); } .newtab-undo-button { -moz-appearance: none; color: -moz-nativehyperlinktext; color: rgb(0,102,204); cursor: pointer; padding: 0; margin: 0 4px; border: 0; background: transparent; text-decoration: none; min-width: 0; } .newtab-undo-button > .button-box { padding: 0; } #newtab-undo-close-button { -moz-appearance: none; padding: 0; border: none; -moz-user-focus: normal; } /* SEARCH */ #searchEngineLogo { /* remove the default DDG image - it looks really bad on our dark b/g */ opacity: 0; } #searchText { -moz-box-flex: 1; color: #fff; padding: 6px 8px; background-color: rgb(0, 0, 0); border: 1px solid; border-color: rgb(64, 64, 64); border-radius: 5px 0 0 5px; box-shadow: none; } #searchText:-moz-dir(rtl) { border-radius: 0 5px 5px 0; } #searchText:focus, #searchText[autofocus] { border-color: rgb(128, 128, 128); } #searchSubmit { margin-inline-start: -1px; padding: 0 9px; color: #fff; background-color: rgb(0, 0, 0); border: 1px solid; border-color: rgb(64, 64, 64); border-radius: 0 5px 5px 0; cursor: pointer; transition-property: background-color, border-color, box-shadow; transition-duration: 150ms; box-shadow: none; } #searchSubmit:-moz-dir(rtl) { border-radius: 5px 0 0 5px; } #searchText:focus + #searchSubmit, #searchText + #searchSubmit:hover, #searchText[autofocus] + #searchSubmit { border-color: rgb(128, 128, 128); background-color: rgb(0, 0, 0); } #searchText + #searchSubmit:hover:active { border-color: rgb(64, 64, 64); background-color: rgb(0, 0, 0); }