Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | input { |
michael@0 | 6 | font: message-box !important; |
michael@0 | 7 | font-size: 16px !important; |
michael@0 | 8 | } |
michael@0 | 9 | |
michael@0 | 10 | input[type=button] { |
michael@0 | 11 | cursor: pointer; |
michael@0 | 12 | } |
michael@0 | 13 | |
michael@0 | 14 | /* SCROLLBOX */ |
michael@0 | 15 | #newtab-scrollbox { |
michael@0 | 16 | display: -moz-box; |
michael@0 | 17 | position: relative; |
michael@0 | 18 | -moz-box-flex: 1; |
michael@0 | 19 | -moz-user-focus: normal; |
michael@0 | 20 | -moz-box-orient: vertical; |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | #newtab-scrollbox:not([page-disabled]) { |
michael@0 | 24 | overflow: auto; |
michael@0 | 25 | } |
michael@0 | 26 | |
michael@0 | 27 | /* UNDO */ |
michael@0 | 28 | #newtab-undo-container { |
michael@0 | 29 | transition: opacity 100ms ease-out; |
michael@0 | 30 | display: -moz-box; |
michael@0 | 31 | margin-bottom: 26px; /* 32 - 6 search form top "padding" */ |
michael@0 | 32 | -moz-box-align: center; |
michael@0 | 33 | -moz-box-pack: center; |
michael@0 | 34 | } |
michael@0 | 35 | |
michael@0 | 36 | #newtab-undo-container[undo-disabled] { |
michael@0 | 37 | opacity: 0; |
michael@0 | 38 | pointer-events: none; |
michael@0 | 39 | } |
michael@0 | 40 | |
michael@0 | 41 | /* TOGGLE */ |
michael@0 | 42 | #newtab-toggle { |
michael@0 | 43 | position: absolute; |
michael@0 | 44 | top: 12px; |
michael@0 | 45 | right: 12px; |
michael@0 | 46 | } |
michael@0 | 47 | |
michael@0 | 48 | #newtab-toggle:-moz-locale-dir(rtl) { |
michael@0 | 49 | left: 12px; |
michael@0 | 50 | right: auto; |
michael@0 | 51 | } |
michael@0 | 52 | |
michael@0 | 53 | /* MARGINS */ |
michael@0 | 54 | #newtab-vertical-margin { |
michael@0 | 55 | display: -moz-box; |
michael@0 | 56 | position: relative; |
michael@0 | 57 | -moz-box-flex: 1; |
michael@0 | 58 | -moz-box-orient: vertical; |
michael@0 | 59 | } |
michael@0 | 60 | |
michael@0 | 61 | #newtab-margin-top { |
michael@0 | 62 | min-height: 50px; |
michael@0 | 63 | max-height: 80px; |
michael@0 | 64 | -moz-box-flex: 1; |
michael@0 | 65 | -moz-box-align: center; |
michael@0 | 66 | -moz-box-pack: center; |
michael@0 | 67 | } |
michael@0 | 68 | |
michael@0 | 69 | #newtab-margin-undo-container { |
michael@0 | 70 | display: -moz-box; |
michael@0 | 71 | -moz-box-pack: center; |
michael@0 | 72 | } |
michael@0 | 73 | |
michael@0 | 74 | #newtab-margin-bottom { |
michael@0 | 75 | min-height: 40px; |
michael@0 | 76 | max-height: 100px; |
michael@0 | 77 | -moz-box-flex: 1; |
michael@0 | 78 | } |
michael@0 | 79 | |
michael@0 | 80 | #newtab-horizontal-margin { |
michael@0 | 81 | display: -moz-box; |
michael@0 | 82 | -moz-box-flex: 1; |
michael@0 | 83 | } |
michael@0 | 84 | |
michael@0 | 85 | #newtab-margin-top, |
michael@0 | 86 | #newtab-margin-bottom { |
michael@0 | 87 | display: -moz-box; |
michael@0 | 88 | position: relative; |
michael@0 | 89 | } |
michael@0 | 90 | |
michael@0 | 91 | #newtab-margin-top { |
michael@0 | 92 | -moz-box-flex: 1; |
michael@0 | 93 | } |
michael@0 | 94 | |
michael@0 | 95 | #newtab-margin-bottom { |
michael@0 | 96 | -moz-box-flex: 2; |
michael@0 | 97 | } |
michael@0 | 98 | |
michael@0 | 99 | .newtab-side-margin { |
michael@0 | 100 | min-width: 40px; |
michael@0 | 101 | max-width: 300px; |
michael@0 | 102 | -moz-box-flex: 1; |
michael@0 | 103 | } |
michael@0 | 104 | |
michael@0 | 105 | /* GRID */ |
michael@0 | 106 | #newtab-grid { |
michael@0 | 107 | display: -moz-box; |
michael@0 | 108 | -moz-box-flex: 5; |
michael@0 | 109 | -moz-box-orient: vertical; |
michael@0 | 110 | min-width: 600px; |
michael@0 | 111 | min-height: 400px; |
michael@0 | 112 | transition: 100ms ease-out; |
michael@0 | 113 | transition-property: opacity; |
michael@0 | 114 | } |
michael@0 | 115 | |
michael@0 | 116 | #newtab-grid[page-disabled] { |
michael@0 | 117 | opacity: 0; |
michael@0 | 118 | } |
michael@0 | 119 | |
michael@0 | 120 | #newtab-grid[locked], |
michael@0 | 121 | #newtab-grid[page-disabled] { |
michael@0 | 122 | pointer-events: none; |
michael@0 | 123 | } |
michael@0 | 124 | |
michael@0 | 125 | /* ROWS */ |
michael@0 | 126 | .newtab-row { |
michael@0 | 127 | display: -moz-box; |
michael@0 | 128 | -moz-box-orient: horizontal; |
michael@0 | 129 | -moz-box-direction: normal; |
michael@0 | 130 | -moz-box-flex: 1; |
michael@0 | 131 | } |
michael@0 | 132 | |
michael@0 | 133 | /* CELLS */ |
michael@0 | 134 | .newtab-cell { |
michael@0 | 135 | display: -moz-box; |
michael@0 | 136 | -moz-box-flex: 1; |
michael@0 | 137 | } |
michael@0 | 138 | |
michael@0 | 139 | /* SITES */ |
michael@0 | 140 | .newtab-site { |
michael@0 | 141 | position: relative; |
michael@0 | 142 | -moz-box-flex: 1; |
michael@0 | 143 | transition: 100ms ease-out; |
michael@0 | 144 | transition-property: top, left, opacity; |
michael@0 | 145 | } |
michael@0 | 146 | |
michael@0 | 147 | .newtab-site[frozen] { |
michael@0 | 148 | position: absolute; |
michael@0 | 149 | pointer-events: none; |
michael@0 | 150 | } |
michael@0 | 151 | |
michael@0 | 152 | .newtab-site[dragged] { |
michael@0 | 153 | transition-property: none; |
michael@0 | 154 | z-index: 10; |
michael@0 | 155 | } |
michael@0 | 156 | |
michael@0 | 157 | /* LINK + THUMBNAILS */ |
michael@0 | 158 | .newtab-link, |
michael@0 | 159 | .newtab-thumbnail { |
michael@0 | 160 | position: absolute; |
michael@0 | 161 | left: 0; |
michael@0 | 162 | top: 0; |
michael@0 | 163 | right: 0; |
michael@0 | 164 | bottom: 0; |
michael@0 | 165 | } |
michael@0 | 166 | |
michael@0 | 167 | .newtab-thumbnail { |
michael@0 | 168 | opacity: .8; |
michael@0 | 169 | transition: opacity 100ms ease-out; |
michael@0 | 170 | } |
michael@0 | 171 | |
michael@0 | 172 | .newtab-thumbnail[dragged], |
michael@0 | 173 | .newtab-link:-moz-focusring > .newtab-thumbnail, |
michael@0 | 174 | .newtab-cell:not([ignorehover]) > .newtab-site:hover > .newtab-link > .newtab-thumbnail { |
michael@0 | 175 | opacity: 1; |
michael@0 | 176 | } |
michael@0 | 177 | |
michael@0 | 178 | /* TITLES */ |
michael@0 | 179 | .newtab-title { |
michael@0 | 180 | position: absolute; |
michael@0 | 181 | left: 0; |
michael@0 | 182 | right: 0; |
michael@0 | 183 | bottom: 0; |
michael@0 | 184 | white-space: nowrap; |
michael@0 | 185 | overflow: hidden; |
michael@0 | 186 | text-overflow: ellipsis; |
michael@0 | 187 | } |
michael@0 | 188 | |
michael@0 | 189 | /* CONTROLS */ |
michael@0 | 190 | .newtab-control { |
michael@0 | 191 | position: absolute; |
michael@0 | 192 | top: 4px; |
michael@0 | 193 | opacity: 0; |
michael@0 | 194 | transition: opacity 100ms ease-out; |
michael@0 | 195 | } |
michael@0 | 196 | |
michael@0 | 197 | .newtab-control:-moz-focusring, |
michael@0 | 198 | .newtab-cell:not([ignorehover]) > .newtab-site:hover > .newtab-control { |
michael@0 | 199 | opacity: 1; |
michael@0 | 200 | } |
michael@0 | 201 | |
michael@0 | 202 | .newtab-control[dragged] { |
michael@0 | 203 | opacity: 0 !important; |
michael@0 | 204 | } |
michael@0 | 205 | |
michael@0 | 206 | @media (-moz-touch-enabled) { |
michael@0 | 207 | .newtab-control { |
michael@0 | 208 | opacity: 1; |
michael@0 | 209 | } |
michael@0 | 210 | } |
michael@0 | 211 | |
michael@0 | 212 | .newtab-control-sponsored:-moz-locale-dir(rtl), |
michael@0 | 213 | .newtab-control-pin:-moz-locale-dir(ltr), |
michael@0 | 214 | .newtab-control-block:-moz-locale-dir(rtl) { |
michael@0 | 215 | left: 4px; |
michael@0 | 216 | } |
michael@0 | 217 | |
michael@0 | 218 | .newtab-control-sponsored:-moz-locale-dir(ltr), |
michael@0 | 219 | .newtab-control-block:-moz-locale-dir(ltr), |
michael@0 | 220 | .newtab-control-pin:-moz-locale-dir(rtl) { |
michael@0 | 221 | right: 4px; |
michael@0 | 222 | } |
michael@0 | 223 | |
michael@0 | 224 | .newtab-control.newtab-control-sponsored { |
michael@0 | 225 | bottom: -20px; |
michael@0 | 226 | height: 14px; |
michael@0 | 227 | -moz-margin-end: -5px; |
michael@0 | 228 | opacity: 1; |
michael@0 | 229 | top: auto; |
michael@0 | 230 | width: 14px; |
michael@0 | 231 | } |
michael@0 | 232 | |
michael@0 | 233 | .newtab-site:not([type=sponsored]) .newtab-control-sponsored { |
michael@0 | 234 | display: none; |
michael@0 | 235 | } |
michael@0 | 236 | |
michael@0 | 237 | /* DRAG & DROP */ |
michael@0 | 238 | |
michael@0 | 239 | /* |
michael@0 | 240 | * This is just a temporary drag element used for dataTransfer.setDragImage() |
michael@0 | 241 | * so that we can use custom drag images and elements. It needs an opacity of |
michael@0 | 242 | * 0.01 so that the core code detects that it's in fact a visible element. |
michael@0 | 243 | */ |
michael@0 | 244 | .newtab-drag { |
michael@0 | 245 | width: 1px; |
michael@0 | 246 | height: 1px; |
michael@0 | 247 | background-color: #fff; |
michael@0 | 248 | opacity: 0.01; |
michael@0 | 249 | } |
michael@0 | 250 | |
michael@0 | 251 | /* SPONSORED PANEL */ |
michael@0 | 252 | #sponsored-panel { |
michael@0 | 253 | width: 330px; |
michael@0 | 254 | } |
michael@0 | 255 | |
michael@0 | 256 | #sponsored-panel description { |
michael@0 | 257 | margin: 0; |
michael@0 | 258 | } |
michael@0 | 259 | |
michael@0 | 260 | #sponsored-panel .text-link { |
michael@0 | 261 | margin: 12px 0 0; |
michael@0 | 262 | } |
michael@0 | 263 | |
michael@0 | 264 | /* SEARCH */ |
michael@0 | 265 | #newtab-search-container { |
michael@0 | 266 | display: -moz-box; |
michael@0 | 267 | position: relative; |
michael@0 | 268 | -moz-box-align: center; |
michael@0 | 269 | -moz-box-pack: center; |
michael@0 | 270 | } |
michael@0 | 271 | |
michael@0 | 272 | #newtab-search-container[page-disabled] { |
michael@0 | 273 | opacity: 0; |
michael@0 | 274 | pointer-events: none; |
michael@0 | 275 | } |
michael@0 | 276 | |
michael@0 | 277 | #newtab-search-form { |
michael@0 | 278 | display: -moz-box; |
michael@0 | 279 | -moz-box-flex: 5; |
michael@0 | 280 | -moz-box-orient: horizontal; |
michael@0 | 281 | -moz-box-align: center; |
michael@0 | 282 | height: 44px; /* 32 + 6 logo top "padding" + 6 logo bottom "padding" */ |
michael@0 | 283 | margin-bottom: 10px; /* 32 - 16 tiles top margin - 6 logo bottom "padding" */ |
michael@0 | 284 | } |
michael@0 | 285 | |
michael@0 | 286 | #newtab-search-logo { |
michael@0 | 287 | display: -moz-box; |
michael@0 | 288 | width: 77px; /* 65 image width + 6 left "padding" + 6 right "padding" */ |
michael@0 | 289 | height: 38px; /* 26 image height + 6 top "padding" + 6 bottom "padding" */ |
michael@0 | 290 | border: 1px solid transparent; |
michael@0 | 291 | -moz-margin-end: 8px; |
michael@0 | 292 | background-repeat: no-repeat; |
michael@0 | 293 | background-position: center; |
michael@0 | 294 | background-size: 65px 26px; |
michael@0 | 295 | } |
michael@0 | 296 | |
michael@0 | 297 | #newtab-search-logo[hidden] { |
michael@0 | 298 | display: none; |
michael@0 | 299 | } |
michael@0 | 300 | |
michael@0 | 301 | #newtab-search-logo[active], |
michael@0 | 302 | #newtab-search-logo:hover { |
michael@0 | 303 | background-color: #e9e9e9; |
michael@0 | 304 | border: 1px solid rgb(226, 227, 229); |
michael@0 | 305 | border-radius: 2.5px; |
michael@0 | 306 | } |
michael@0 | 307 | |
michael@0 | 308 | #newtab-search-text { |
michael@0 | 309 | height: 32px; |
michael@0 | 310 | -moz-box-flex: 1; |
michael@0 | 311 | |
michael@0 | 312 | padding: 0 8px; |
michael@0 | 313 | background: hsla(0,0%,100%,.9) padding-box; |
michael@0 | 314 | border: 1px solid; |
michael@0 | 315 | border-color: hsla(210,54%,20%,.15) hsla(210,54%,20%,.17) hsla(210,54%,20%,.2); |
michael@0 | 316 | box-shadow: 0 1px 0 hsla(210,65%,9%,.02) inset, |
michael@0 | 317 | 0 0 2px hsla(210,65%,9%,.1) inset, |
michael@0 | 318 | 0 1px 0 hsla(0,0%,100%,.2); |
michael@0 | 319 | border-radius: 2.5px 0 0 2.5px; |
michael@0 | 320 | color: inherit; |
michael@0 | 321 | } |
michael@0 | 322 | |
michael@0 | 323 | #newtab-search-text:-moz-dir(rtl) { |
michael@0 | 324 | border-radius: 0 2.5px 2.5px 0; |
michael@0 | 325 | } |
michael@0 | 326 | |
michael@0 | 327 | #newtab-search-text:focus, |
michael@0 | 328 | #newtab-search-text[autofocus] { |
michael@0 | 329 | border-color: hsla(206,100%,60%,.6) hsla(206,76%,52%,.6) hsla(204,100%,40%,.6); |
michael@0 | 330 | } |
michael@0 | 331 | |
michael@0 | 332 | #newtab-search-submit { |
michael@0 | 333 | height: 32px; |
michael@0 | 334 | |
michael@0 | 335 | -moz-margin-start: -1px; |
michael@0 | 336 | background: linear-gradient(hsla(0,0%,100%,.8), hsla(0,0%,100%,.1)) padding-box; |
michael@0 | 337 | padding: 0 9px; |
michael@0 | 338 | border: 1px solid; |
michael@0 | 339 | border-color: hsla(210,54%,20%,.15) hsla(210,54%,20%,.17) hsla(210,54%,20%,.2); |
michael@0 | 340 | -moz-border-start: 1px solid transparent; |
michael@0 | 341 | border-radius: 0 2.5px 2.5px 0; |
michael@0 | 342 | box-shadow: 0 0 2px hsla(0,0%,100%,.5) inset, |
michael@0 | 343 | 0 1px 0 hsla(0,0%,100%,.2); |
michael@0 | 344 | color: inherit; |
michael@0 | 345 | cursor: pointer; |
michael@0 | 346 | transition-property: background-color, border-color, box-shadow; |
michael@0 | 347 | transition-duration: 150ms; |
michael@0 | 348 | } |
michael@0 | 349 | |
michael@0 | 350 | #newtab-search-submit:-moz-dir(rtl) { |
michael@0 | 351 | border-radius: 2.5px 0 0 2.5px; |
michael@0 | 352 | } |
michael@0 | 353 | |
michael@0 | 354 | #newtab-search-text:focus + #newtab-search-submit, |
michael@0 | 355 | #newtab-search-text + #newtab-search-submit:hover, |
michael@0 | 356 | #newtab-search-text[autofocus] + #newtab-search-submit { |
michael@0 | 357 | border-color: #59b5fc #45a3e7 #3294d5; |
michael@0 | 358 | color: white; |
michael@0 | 359 | } |
michael@0 | 360 | |
michael@0 | 361 | #newtab-search-text:focus + #newtab-search-submit, |
michael@0 | 362 | #newtab-search-text[autofocus] + #newtab-search-submit { |
michael@0 | 363 | background-image: linear-gradient(#4cb1ff, #1793e5); |
michael@0 | 364 | box-shadow: 0 1px 0 hsla(0,0%,100%,.2) inset, |
michael@0 | 365 | 0 0 0 1px hsla(0,0%,100%,.1) inset, |
michael@0 | 366 | 0 1px 0 hsla(210,54%,20%,.03); |
michael@0 | 367 | } |
michael@0 | 368 | |
michael@0 | 369 | #newtab-search-text + #newtab-search-submit:hover { |
michael@0 | 370 | background-image: linear-gradient(#66bdff, #0d9eff); |
michael@0 | 371 | box-shadow: 0 1px 0 hsla(0,0%,100%,.2) inset, |
michael@0 | 372 | 0 0 0 1px hsla(0,0%,100%,.1) inset, |
michael@0 | 373 | 0 1px 0 hsla(210,54%,20%,.03), |
michael@0 | 374 | 0 0 4px hsla(206,100%,20%,.2); |
michael@0 | 375 | } |
michael@0 | 376 | |
michael@0 | 377 | #newtab-search-text + #newtab-search-submit:hover:active { |
michael@0 | 378 | box-shadow: 0 1px 1px hsla(211,79%,6%,.1) inset, |
michael@0 | 379 | 0 0 1px hsla(211,79%,6%,.2) inset; |
michael@0 | 380 | transition-duration: 0ms; |
michael@0 | 381 | } |
michael@0 | 382 | |
michael@0 | 383 | #newtab-search-panel .panel-arrowcontent { |
michael@0 | 384 | -moz-padding-start: 0; |
michael@0 | 385 | -moz-padding-end: 0; |
michael@0 | 386 | padding-top: 0; |
michael@0 | 387 | padding-bottom: 0; |
michael@0 | 388 | background: rgb(248, 250, 251); |
michael@0 | 389 | } |
michael@0 | 390 | |
michael@0 | 391 | .newtab-search-panel-engine { |
michael@0 | 392 | -moz-box-align: center; |
michael@0 | 393 | padding-top: 4px; |
michael@0 | 394 | padding-bottom: 4px; |
michael@0 | 395 | -moz-padding-start: 24px; |
michael@0 | 396 | -moz-padding-end: 24px; |
michael@0 | 397 | } |
michael@0 | 398 | |
michael@0 | 399 | .newtab-search-panel-engine:not(:last-child) { |
michael@0 | 400 | border-bottom: 1px solid #ccc; |
michael@0 | 401 | } |
michael@0 | 402 | |
michael@0 | 403 | .newtab-search-panel-engine > image { |
michael@0 | 404 | -moz-margin-end: 8px; |
michael@0 | 405 | width: 16px; |
michael@0 | 406 | height: 16px; |
michael@0 | 407 | list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png"); |
michael@0 | 408 | } |
michael@0 | 409 | |
michael@0 | 410 | .newtab-search-panel-engine > label { |
michael@0 | 411 | -moz-padding-start: 0; |
michael@0 | 412 | -moz-margin-start: 0; |
michael@0 | 413 | color: rgb(130, 132, 133); |
michael@0 | 414 | } |
michael@0 | 415 | |
michael@0 | 416 | .newtab-search-panel-engine[selected] { |
michael@0 | 417 | background: url("chrome://global/skin/menu/shared-menu-check.png") center left 4px no-repeat transparent; |
michael@0 | 418 | } |