| 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
| 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 4 | |
| 5 | :root { |
| 6 | -moz-appearance: none; |
| 7 | font-size: 75%; |
| 8 | background-color: transparent; |
| 9 | padding: 0; |
| 10 | } |
| 11 | |
| 12 | body { |
| 13 | background-color: #000000 |
| 14 | } |
| 15 | |
| 16 | /* UNDO */ |
| 17 | #newtab-undo-container { |
| 18 | padding: 4px 3px; |
| 19 | border: 1px solid; |
| 20 | border-color: #9C9CFF; |
| 21 | background-color: #000000; |
| 22 | color: #8050B0; |
| 23 | } |
| 24 | |
| 25 | #newtab-undo-label { |
| 26 | margin-top: 0; |
| 27 | margin-bottom: 0; |
| 28 | } |
| 29 | |
| 30 | .newtab-undo-button { |
| 31 | color: #3333FF; |
| 32 | cursor: pointer; |
| 33 | padding: 0; |
| 34 | margin: 0 4px; |
| 35 | border: 0; |
| 36 | background: transparent; |
| 37 | text-decoration: none; |
| 38 | min-width: 0; |
| 39 | } |
| 40 | |
| 41 | .newtab-undo-button:hover { |
| 42 | text-decoration: underline; |
| 43 | } |
| 44 | |
| 45 | .newtab-undo-button:-moz-focusring { |
| 46 | outline: 1px dotted; |
| 47 | } |
| 48 | |
| 49 | .newtab-undo-button > .button-box { |
| 50 | padding: 0; |
| 51 | } |
| 52 | |
| 53 | #newtab-undo-close-button { |
| 54 | padding: 0; |
| 55 | border: none; |
| 56 | list-style-image: url("chrome://global/skin/icons/close.png"); |
| 57 | -moz-image-region: rect(0, 16px, 16px, 0); |
| 58 | } |
| 59 | |
| 60 | #newtab-undo-close-button:hover { |
| 61 | -moz-image-region: rect(0, 32px, 16px, 16px); |
| 62 | } |
| 63 | |
| 64 | #newtab-undo-close-button { |
| 65 | -moz-appearance: none; |
| 66 | padding: 0; |
| 67 | border: none; |
| 68 | height: 16px; |
| 69 | width: 16px; |
| 70 | float: right; |
| 71 | right: 0; |
| 72 | background-image: -moz-image-rect(url("chrome://global/skin/icons/close.png"), 0, 16, 16, 0); |
| 73 | background-color: transparent; |
| 74 | } |
| 75 | |
| 76 | #newtab-undo-close-button:hover, |
| 77 | #newtab-undo-close-button:active { |
| 78 | background-image: -moz-image-rect(url("chrome://global/skin/icons/close.png"), 0, 32, 16, 16); |
| 79 | } |
| 80 | |
| 81 | /* CUSTOMIZE */ |
| 82 | #newtab-customize-button, |
| 83 | .newtab-customize { |
| 84 | background-color: transparent; |
| 85 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 32, 32, 0); |
| 86 | background-size: 28px; |
| 87 | border: none; |
| 88 | border-radius: 3px; |
| 89 | height: 28px; |
| 90 | width: 28px; |
| 91 | } |
| 92 | |
| 93 | #newtab-customize-button { |
| 94 | font-size: 28px; |
| 95 | padding: 0; |
| 96 | /* only display the text label when CSS backgrounds are disabled (e.g. in high contrast mode) */ |
| 97 | color: transparent; |
| 98 | } |
| 99 | |
| 100 | #newtab-customize-button:-moz-any(:hover, :active, [active]) { |
| 101 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 64, 32, 32); |
| 102 | background-color: #FFCF00; |
| 103 | } |
| 104 | |
| 105 | /* CELLS */ |
| 106 | .newtab-cell { |
| 107 | background-color: rgba(255,159,0,.2); |
| 108 | border: 1px solid; |
| 109 | border-color: #9C9CFF; |
| 110 | border-radius: 10px; |
| 111 | } |
| 112 | |
| 113 | .newtab-cell:empty { |
| 114 | outline: 2px dashed #A09090; |
| 115 | -moz-outline-radius: 2px; |
| 116 | } |
| 117 | |
| 118 | /* SITES */ |
| 119 | .newtab-site { |
| 120 | border-radius: inherit; |
| 121 | text-decoration: none; |
| 122 | transition-property: top, left, opacity, box-shadow, background-color; |
| 123 | } |
| 124 | |
| 125 | .newtab-cell:not([ignorehover]) .newtab-control:hover ~ .newtab-link, |
| 126 | .newtab-cell:not([ignorehover]) .newtab-link:hover, |
| 127 | .newtab-site[dragged] { |
| 128 | box-shadow: 0 0 10px rgba(0,132,132,.3); |
| 129 | } |
| 130 | |
| 131 | .newtab-site[dragged] { |
| 132 | transition-property: box-shadow, background-color; |
| 133 | background-color: #002121; |
| 134 | } |
| 135 | |
| 136 | /* LINKS */ |
| 137 | .newtab-link { |
| 138 | border-radius: 10px; |
| 139 | overflow: hidden; |
| 140 | } |
| 141 | |
| 142 | /*** |
| 143 | * If you change the sizes here, change them in newTab.css |
| 144 | * and the preference values: |
| 145 | * toolkit.pageThumbs.minWidth |
| 146 | * toolkit.pageThumbs.minHeight |
| 147 | */ |
| 148 | /* THUMBNAILS */ |
| 149 | .newtab-thumbnail { |
| 150 | background-origin: padding-box; |
| 151 | background-clip: padding-box; |
| 152 | background-repeat: no-repeat; |
| 153 | background-size: cover; |
| 154 | border-radius: 8px 8px 0px 0px; |
| 155 | height: 180px; |
| 156 | transition: opacity 100ms ease-out; |
| 157 | } |
| 158 | |
| 159 | .newtab-cell:not([ignorehover]) .newtab-site:hover .newtab-thumbnail.enhanced-content { |
| 160 | opacity: 0; |
| 161 | } |
| 162 | |
| 163 | .newtab-site[type=affiliate] .newtab-thumbnail, |
| 164 | .newtab-site[type=enhanced] .newtab-thumbnail, |
| 165 | .newtab-site[type=organic] .newtab-thumbnail, |
| 166 | .newtab-site[type=sponsored] .newtab-thumbnail { |
| 167 | background-position: center center; |
| 168 | background-size: auto; |
| 169 | } |
| 170 | |
| 171 | /* TITLES */ |
| 172 | .newtab-sponsored, |
| 173 | .newtab-title, |
| 174 | .newtab-suggested { |
| 175 | padding: 0 8px; |
| 176 | background-color: rgba(255,159,0,.8); |
| 177 | color: #000000; |
| 178 | border: none; |
| 179 | line-height: 24px; |
| 180 | bottom: 0 !important; |
| 181 | } |
| 182 | |
| 183 | /* |
| 184 | .newtab-suggested { |
| 185 | background-color: #9C9CFF; |
| 186 | } |
| 187 | |
| 188 | .newtab-suggested:hover { |
| 189 | background-color: #FFCF00; |
| 190 | border: 1px solid #9C9CFF; |
| 191 | } |
| 192 | |
| 193 | .newtab-suggested[active] { |
| 194 | background-color: #FF9F00; |
| 195 | border: 0; |
| 196 | } |
| 197 | */ |
| 198 | .newtab-site:hover .newtab-title { |
| 199 | background-color: #FFCF00; |
| 200 | } |
| 201 | |
| 202 | .newtab-site[pinned] .newtab-title { |
| 203 | padding-inline-start: 24px; |
| 204 | } |
| 205 | |
| 206 | .newtab-site[pinned] .newtab-title::before { |
| 207 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 7, 278, 28, 266); |
| 208 | background-size: 10px; |
| 209 | content: ""; |
| 210 | height: 17px; |
| 211 | left: 5px; |
| 212 | top: 5px; |
| 213 | position: absolute; |
| 214 | width: 10px; |
| 215 | margin-left: 8px; |
| 216 | margin-top: 0; |
| 217 | } |
| 218 | |
| 219 | .newtab-site[pinned] .newtab-title:dir(rtl)::before { |
| 220 | left: auto; |
| 221 | right: 0; |
| 222 | } |
| 223 | |
| 224 | /* CONTROLS */ |
| 225 | .newtab-control { |
| 226 | background-color: transparent; |
| 227 | background-size: 24px; |
| 228 | border: none; |
| 229 | height: 24px; |
| 230 | width: 24px; |
| 231 | } |
| 232 | |
| 233 | .newtab-control-pin, |
| 234 | .newtab-site[pinned] .newtab-control-pin:hover:active { |
| 235 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 96, 32, 64); |
| 236 | } |
| 237 | |
| 238 | .newtab-control-pin:hover, |
| 239 | .newtab-site[pinned] .newtab-control-pin:hover { |
| 240 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 128, 32, 96); |
| 241 | } |
| 242 | |
| 243 | .newtab-control-pin:hover:active, |
| 244 | .newtab-site[pinned] .newtab-control-pin { |
| 245 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 160, 32, 128); |
| 246 | } |
| 247 | |
| 248 | .newtab-control-block { |
| 249 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 192, 32, 160); |
| 250 | } |
| 251 | |
| 252 | .newtab-control-block:hover { |
| 253 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 224, 32, 192); |
| 254 | } |
| 255 | |
| 256 | .newtab-control-block:hover:active { |
| 257 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 256, 32, 224); |
| 258 | } |
| 259 | |
| 260 | /* SEARCH */ |
| 261 | #newtab-search-logo:hover { |
| 262 | background-color: #FFCF00; |
| 263 | border: none; |
| 264 | } |
| 265 | #newtab-search-logo[active] { |
| 266 | background-color: #FF9F00; |
| 267 | border: none; |
| 268 | } |
| 269 | #newtab-search-logo { |
| 270 | background-image: url("chrome://browser/skin/magnifier.png"); |
| 271 | } |
| 272 | #newtab-search-logo.magnifier[active], |
| 273 | #newtab-search-logo.magnifier:hover { |
| 274 | background-image: url("chrome://browser/skin/magnifier-hover.png"); |
| 275 | } |
| 276 | /* Newer versions only */ |
| 277 | #newtab-search-icon { |
| 278 | background-image: url("chrome://browser/skin/search-indicator-magnifying-glass.svg#magnifying-glass"); |
| 279 | } |
| 280 | #newtab-search-logo.magnifier[active], |
| 281 | #newtab-search-logo.magnifier:hover { |
| 282 | background-image: url("chrome://browser/skin/magnifier-hover.png"); |
| 283 | } |
| 284 | |
| 285 | #newtab-search-text { |
| 286 | border: 1px solid #9C9CFF; |
| 287 | background-color: #000000; |
| 288 | color: #E7ADE7; |
| 289 | } |
| 290 | #newtab-search-text::placeholder { |
| 291 | color: #8050B0; |
| 292 | } |
| 293 | #newtab-search-text:focus { |
| 294 | border: 1px solid #008484; |
| 295 | box-shadow: 0 0 0 1px #008484 inset; |
| 296 | } |
| 297 | |
| 298 | #newtab-search-submit { |
| 299 | background-image: none; |
| 300 | background-color: #C09070; |
| 301 | color: #000000; |
| 302 | box-shadow: none; |
| 303 | border-radius: 0 300px 300px 0; |
| 304 | border: none; |
| 305 | margin-inline-start: 3px; |
| 306 | } |
| 307 | #newtab-search-text:focus + #newtab-search-submit, |
| 308 | #newtab-search-text[autofocus] + #newtab-search-submit { |
| 309 | background-image: none; |
| 310 | background-color: #008484; |
| 311 | color: #000000; |
| 312 | box-shadow: none; |
| 313 | } |
| 314 | #newtab-search-text + #newtab-search-submit:hover { |
| 315 | background-image: none; |
| 316 | background-color: #FFCF00; |
| 317 | color: #000000; |
| 318 | box-shadow: none; |
| 319 | } |
| 320 | /* Newer versions only */ |
| 321 | #newtab-search-submit[value=""], |
| 322 | #newtab-search-text:focus + #newtab-search-submit[value=""], |
| 323 | #newtab-search-text[autofocus] + #newtab-search-submit[value=""], |
| 324 | #newtab-search-text + #newtab-search-submit[value=""]:hover { |
| 325 | background-image: url("chrome://browser/skin/search-arrow-go.svg#search-arrow-go"); |
| 326 | } |
| 327 | |
| 328 | /* CUSTOMIZE */ |
| 329 | #newtab-customize-overlay { |
| 330 | background: #A09090; |
| 331 | } |
| 332 | |
| 333 | #newtab-customize-panel, |
| 334 | #newtab-customize-panel-anchor, |
| 335 | #newtab-customize-panel-inner-wrapper, |
| 336 | .newtab-customize-panel-item, |
| 337 | .newtab-customize-complex-option { |
| 338 | background-color: #000000; |
| 339 | } |
| 340 | |
| 341 | #newtab-customize-title { |
| 342 | color: #9C9CFF; |
| 343 | background-color: #000000; |
| 344 | } |
| 345 | |
| 346 | .newtab-customize-panel-item[selected], |
| 347 | .newtab-customize-panel-subitem[selected] { |
| 348 | color: #FF9F00; |
| 349 | } |
| 350 | |
| 351 | .newtab-customize-panel-item:not([selected]), |
| 352 | .newtab-customize-panel-subitem:not([selected]) { |
| 353 | color: #A09090; |
| 354 | } |
| 355 | |
| 356 | .newtab-customize-panel-subitem > .checkbox { |
| 357 | background-color: #000000; |
| 358 | border-color: #A09090; |
| 359 | } |
| 360 | |
| 361 | .newtab-customize-panel-subitem[selected] > .checkbox { |
| 362 | background-color: #000000; |
| 363 | background-image: url("chrome://global/skin/menu/shared-menu-check-active.svg"); |
| 364 | color: #FF9F00; |
| 365 | } |
| 366 | |
| 367 | .newtab-customize-panel-item:not(:first-child), |
| 368 | .newtab-search-panel-engine { |
| 369 | border-top: 1px solid #A09090; |
| 370 | } |
| 371 | |
| 372 | .newtab-customize-complex-option:hover > .selectable:not([selected]), |
| 373 | .selectable:hover:not([selected]), |
| 374 | .newtab-customize-complex-option:hover > .selectable:not([selected]) + .newtab-customize-panel-subitem, |
| 375 | .newtab-customize-panel-item:hover:not([selected]) { |
| 376 | background-color: #FFCF00; |
| 377 | color: #000000; |
| 378 | } |
| 379 | |
| 380 | .newtab-customize-complex-option:hover > .selectable:not([selected]), |
| 381 | .selectable:hover:not([selected]) { |
| 382 | background-image: url("chrome://global/skin/menu/shared-menu-check-black.svg"); |
| 383 | } |