| 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 | /* SCROLLBOX */ |
| 13 | #newtab-scrollbox:not([page-disabled]) { |
| 14 | color: #FF9F00; |
| 15 | background-color: #000000; |
| 16 | } |
| 17 | |
| 18 | #newtab-scrollbox:not([page-disabled]) #newtab-margin-bottom { |
| 19 | background: inherit; |
| 20 | } |
| 21 | |
| 22 | /* UNDO */ |
| 23 | #newtab-undo-container { |
| 24 | padding: 4px 3px; |
| 25 | border: 1px solid; |
| 26 | border-color: #9C9CFF; |
| 27 | background-color: #000000; |
| 28 | color: #8050B0; |
| 29 | } |
| 30 | |
| 31 | #newtab-undo-label { |
| 32 | margin-top: 0; |
| 33 | margin-bottom: 0; |
| 34 | } |
| 35 | |
| 36 | .newtab-undo-button { |
| 37 | color: #3333FF; |
| 38 | cursor: pointer; |
| 39 | padding: 0; |
| 40 | margin: 0 4px; |
| 41 | border: 0; |
| 42 | background: transparent; |
| 43 | text-decoration: none; |
| 44 | min-width: 0; |
| 45 | } |
| 46 | |
| 47 | .newtab-undo-button:hover { |
| 48 | text-decoration: underline; |
| 49 | } |
| 50 | |
| 51 | .newtab-undo-button:-moz-focusring { |
| 52 | outline: 1px dotted; |
| 53 | } |
| 54 | |
| 55 | .newtab-undo-button > .button-box { |
| 56 | padding: 0; |
| 57 | } |
| 58 | |
| 59 | #newtab-undo-close-button { |
| 60 | padding: 0; |
| 61 | border: none; |
| 62 | list-style-image: url("chrome://global/skin/icons/close.png"); |
| 63 | -moz-image-region: rect(0, 16px, 16px, 0); |
| 64 | } |
| 65 | |
| 66 | #newtab-undo-close-button:hover { |
| 67 | -moz-image-region: rect(0, 32px, 16px, 16px); |
| 68 | } |
| 69 | |
| 70 | #newtab-undo-close-button:-moz-focusring { |
| 71 | outline: 1px dotted; |
| 72 | } |
| 73 | |
| 74 | /* CUSTOMIZE */ |
| 75 | #newtab-customize-button, |
| 76 | .newtab-customize { |
| 77 | background-color: transparent; |
| 78 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 32, 32, 0); |
| 79 | background-size: 28px; |
| 80 | border: none; |
| 81 | border-radius: 3px; |
| 82 | height: 28px; |
| 83 | width: 28px; |
| 84 | } |
| 85 | |
| 86 | #newtab-customize-button:-moz-any(:hover, :active, [active]) { |
| 87 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 64, 32, 32); |
| 88 | background-color: #FFCF00; |
| 89 | } |
| 90 | |
| 91 | /* CELLS */ |
| 92 | .newtab-cell { |
| 93 | background-color: rgba(255,159,0,.2); |
| 94 | border: 1px solid; |
| 95 | border-color: #9C9CFF; |
| 96 | border-radius: 1px; |
| 97 | } |
| 98 | |
| 99 | .newtab-cell:empty { |
| 100 | outline: 2px dashed #A09090; |
| 101 | -moz-outline-radius: 2px; |
| 102 | } |
| 103 | |
| 104 | /* SITES */ |
| 105 | .newtab-site { |
| 106 | border-radius: inherit; |
| 107 | text-decoration: none; |
| 108 | transition-property: top, left, opacity, box-shadow, background-color; |
| 109 | } |
| 110 | |
| 111 | .newtab-cell:not([ignorehover]) > .newtab-site:hover, |
| 112 | .newtab-site[dragged] { |
| 113 | box-shadow: 0 0 10px rgba(0,132,132,.3); |
| 114 | } |
| 115 | |
| 116 | .newtab-site[dragged] { |
| 117 | transition-property: box-shadow, background-color; |
| 118 | background-color: #002121; |
| 119 | } |
| 120 | |
| 121 | /* LINKS */ |
| 122 | .newtab-link { |
| 123 | border-radius: 3px; |
| 124 | } |
| 125 | |
| 126 | /* THUMBNAILS */ |
| 127 | .newtab-thumbnail { |
| 128 | background-origin: padding-box; |
| 129 | background-clip: padding-box; |
| 130 | background-repeat: no-repeat; |
| 131 | background-size: cover; |
| 132 | transition: opacity 100ms ease-out; |
| 133 | } |
| 134 | |
| 135 | .newtab-site:hover .newtab-thumbnail.enhanced-content { |
| 136 | opacity: 0; |
| 137 | } |
| 138 | |
| 139 | .newtab-site[type=affiliate] .newtab-thumbnail, |
| 140 | .newtab-site[type=enhanced] .newtab-thumbnail, |
| 141 | .newtab-site[type=organic] .newtab-thumbnail, |
| 142 | .newtab-site[type=sponsored] .newtab-thumbnail { |
| 143 | background-position: center center; |
| 144 | background-size: auto; |
| 145 | } |
| 146 | |
| 147 | /* TITLES */ |
| 148 | .newtab-sponsored, |
| 149 | .newtab-title { |
| 150 | padding: 0 8px; |
| 151 | background-color: rgba(255,159,0,.8); |
| 152 | color: #000000; |
| 153 | line-height: 24px; |
| 154 | bottom: 0 !important; |
| 155 | } |
| 156 | |
| 157 | .newtab-site:hover .newtab-title { |
| 158 | background-color: #FFCF00; |
| 159 | } |
| 160 | |
| 161 | .newtab-site[pinned] .newtab-title { |
| 162 | padding: 0 15px; |
| 163 | } |
| 164 | |
| 165 | .newtab-site[pinned] .newtab-title::before { |
| 166 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 7, 278, 28, 266); |
| 167 | background-size: 10px; |
| 168 | content: ""; |
| 169 | height: 17px; |
| 170 | left: 0; |
| 171 | position: absolute; |
| 172 | width: 10px; |
| 173 | } |
| 174 | |
| 175 | .newtab-site[pinned] .newtab-title:-moz-locale-dir(rtl)::before { |
| 176 | left: auto; |
| 177 | right: 0; |
| 178 | } |
| 179 | |
| 180 | /* CONTROLS */ |
| 181 | .newtab-control { |
| 182 | background-color: transparent; |
| 183 | background-size: 24px; |
| 184 | border: none; |
| 185 | height: 24px; |
| 186 | width: 24px; |
| 187 | } |
| 188 | |
| 189 | .newtab-control-pin, |
| 190 | .newtab-site[pinned] .newtab-control-pin:hover:active { |
| 191 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 96, 32, 64); |
| 192 | } |
| 193 | |
| 194 | .newtab-control-pin:hover, |
| 195 | .newtab-site[pinned] .newtab-control-pin:hover { |
| 196 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 128, 32, 96); |
| 197 | } |
| 198 | |
| 199 | .newtab-control-pin:hover:active, |
| 200 | .newtab-site[pinned] .newtab-control-pin { |
| 201 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 160, 32, 128); |
| 202 | } |
| 203 | |
| 204 | .newtab-control-block { |
| 205 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 192, 32, 160); |
| 206 | } |
| 207 | |
| 208 | .newtab-control-block:hover { |
| 209 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 224, 32, 192); |
| 210 | } |
| 211 | |
| 212 | .newtab-control-block:hover:active { |
| 213 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 256, 32, 224); |
| 214 | } |