OLD | NEW |
(Empty) | |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. */ |
| 4 |
| 5 /* ========================================================================= |
| 6 TODO(pedrosimonetti): Work around |
| 7 ========================================================================= */ |
| 8 |
| 9 body > center { |
| 10 height: 100%; |
| 11 min-height: 540px; |
| 12 position: relative; |
| 13 } |
| 14 |
| 15 #card-slider-frame { |
| 16 bottom: 0 !important; |
| 17 position: absolute; |
| 18 top: inherit !important; |
| 19 } |
| 20 |
| 21 #page-switcher-start, |
| 22 #page-switcher-end { |
| 23 display: none; |
| 24 } |
| 25 |
| 26 #footer, |
| 27 #footer-border, |
| 28 #footer-content { |
| 29 display: none; |
| 30 } |
| 31 |
| 32 .tile-page { |
| 33 display: block; |
| 34 } |
| 35 |
| 36 .tile-page-content { |
| 37 padding: 57px 13% 0 13% !important; |
| 38 } |
| 39 |
| 40 #logo-img { |
| 41 display: none; |
| 42 } |
| 43 |
| 44 #dot-list { |
| 45 display: inline-block; |
| 46 margin: 0 auto; |
| 47 } |
| 48 |
| 49 .dot { |
| 50 display: inline-block; |
| 51 max-width: 119px !important; |
| 52 } |
| 53 |
| 54 /* TODO(pedrosimonetti): Hack to make the alignment of the bottom section |
| 55 tab titles less ugly. The problem is that the items have a fixed position |
| 56 so "Apps" will have lots of padding compared to "Recently visited". Need |
| 57 to find a better way to solve this problem. */ |
| 58 .dot[title=Apps] input { |
| 59 text-align: left; |
| 60 } |
| 61 |
| 62 .dot .selection-bar { |
| 63 border: none !important; |
| 64 } |
| 65 |
| 66 .dot input { |
| 67 color: #666 !important; |
| 68 font-family: Arial; |
| 69 font-size: 14px; |
| 70 font-weight: normal; |
| 71 text-align: center; |
| 72 } |
| 73 |
| 74 .dot.selected input { |
| 75 color: rgb(221, 75, 57) !important; |
| 76 } |
| 77 |
| 78 .tile-page-scrollbar { |
| 79 display: none; |
| 80 } |
| 81 |
| 82 #footer .menu-container, |
| 83 #footer #chrome-web-store-link, |
| 84 #trash { |
| 85 display: none; |
| 86 } |
| 87 |
| 88 #page-list { |
| 89 margin-top: 0; |
| 90 } |
| 91 |
| 92 .most-visited .color-stripe { |
| 93 display: none; |
| 94 } |
| 95 |
| 96 .thumbnail-image, |
| 97 .thumbnail-wrapper { |
| 98 border-radius: 2px !important; |
| 99 opacity: 1 !important; |
| 100 } |
| 101 |
| 102 .tile-page-content { |
| 103 padding: 0 !important; |
| 104 } |
| 105 |
| 106 .top-margin { |
| 107 display: none; |
| 108 } |
| 109 |
| 110 #notification-container { |
| 111 bottom: inherit !important; |
| 112 } |
| 113 |
| 114 /* ========================================================================= |
| 115 END OF Work around |
| 116 ========================================================================= */ |
| 117 |
| 118 |
| 119 |
| 120 |
| 121 |
| 122 |
| 123 |
| 124 /* ----------------------------------------------------------------------------- |
| 125 General Styles |
| 126 ----------------------------------------------------------------------------- */ |
| 127 |
| 128 body { |
| 129 background: whiteSmoke; |
| 130 margin: 0; |
| 131 overflow: hidden; |
| 132 padding: 0; |
| 133 } |
| 134 |
| 135 |
| 136 |
| 137 /* ----------------------------------------------------------------------------- |
| 138 TODO(pedrosimonetti): refactor |
| 139 ----------------------------------------------------------------------------- */ |
| 140 |
| 141 #page-list { |
| 142 display: -webkit-box; |
| 143 position: static; |
| 144 } |
| 145 |
| 146 #card-slider-frame { |
| 147 overflow: hidden; |
| 148 } |
| 149 |
| 150 #page-list-menu { |
| 151 margin: 8px auto 30px; |
| 152 text-align: center; |
| 153 } |
| 154 |
| 155 #dot-list { |
| 156 color: #666; |
| 157 font-family: Arial; |
| 158 font-size: 13px; |
| 159 height: 35px; |
| 160 list-style: none; |
| 161 margin: 0; |
| 162 overflow: hidden; |
| 163 padding: 0; |
| 164 text-shadow: 0 1px 0 rgba(255, 255, 255, .7); |
| 165 } |
| 166 |
| 167 /* TODO: selected class */ |
| 168 #dot-list li:first-child { |
| 169 color: rgb(221, 75, 57); |
| 170 } |
| 171 |
| 172 #dot-list li { |
| 173 display: inline-block; |
| 174 margin-left: 13px; |
| 175 margin-right: 13px; |
| 176 min-width: 55px; /* TODO: Confirm value with Marcin */ |
| 177 white-space: nowrap; |
| 178 } |
| 179 |
| 180 |
| 181 |
| 182 /* ----------------------------------------------------------------------------- |
| 183 TODO(pedrosimonetti): refactor |
| 184 ----------------------------------------------------------------------------- */ |
| 185 |
| 186 #card-slider-frame { |
| 187 bottom: 0; |
| 188 position: absolute; |
| 189 text-align: center; |
| 190 width: 100%; |
| 191 } |
| 192 |
| 193 .tile-page { |
| 194 overflow: hidden; |
| 195 position: relative; |
| 196 } |
| 197 |
| 198 .tile-page-content { |
| 199 margin: 0 auto; |
| 200 width: 748px; /* TODO move */ |
| 201 } |
| 202 |
| 203 .tile-grid { |
| 204 display: block; |
| 205 margin: 0 auto; |
| 206 overflow: hidden; |
| 207 } |
| 208 |
| 209 /* ----------------------------------------------------------------------------- |
| 210 New tile grid |
| 211 ----------------------------------------------------------------------------- */ |
| 212 |
| 213 .tile-row { |
| 214 text-align: left; |
| 215 white-space: nowrap; |
| 216 } |
| 217 |
| 218 .tile-cell { |
| 219 display: inline-block; |
| 220 position: relative; |
| 221 } |
| 222 |
| 223 .tile-cell:first-child { |
| 224 margin-left: 0 !important; |
| 225 } |
| 226 |
| 227 |
| 228 /* ----------------------------------------------------------------------------- |
| 229 Size / Animation |
| 230 ----------------------------------------------------------------------------- */ |
| 231 |
| 232 #page-list { |
| 233 -webkit-transition: all 201ms ease-in-out !important; |
| 234 padding-bottom: 10px; |
| 235 } |
| 236 |
| 237 #card-slider-frame .tile-page-content { |
| 238 width: 748px; /* TODO move */ |
| 239 } |
| 240 |
| 241 #card-slider-frame .tile-grid { |
| 242 -webkit-transform: translate3d(0,0,0); |
| 243 -webkit-transition: all 201ms ease-in-out; |
| 244 width: 732px; /* TODO move */ |
| 245 } |
| 246 |
| 247 #card-slider-frame .tile-grid-content { |
| 248 -webkit-transform: translate3d(0,0,0); |
| 249 -webkit-transition: all 201ms ease-in-out; |
| 250 } |
| 251 |
| 252 #card-slider-frame .tile-row { |
| 253 -webkit-transform: translate3d(0,0,0); |
| 254 -webkit-transition: all 201ms ease-in-out; /* change to opacity only? */ |
| 255 } |
| 256 |
| 257 /* ----------------------------------------------------------------------------- |
| 258 Size / Animation |
| 259 ----------------------------------------------------------------------------- */ |
| 260 |
| 261 .tile-cell { |
| 262 -webkit-transform: translate3d(0,0,0); |
| 263 height: 80px; |
| 264 margin-bottom: 22px; |
| 265 margin-left: 18px; |
| 266 width: 132px; |
| 267 } |
| 268 |
| 269 /* TODO(pedrosimonetti): we need to resize the filler child too if we want |
| 270 its animation to be the same as a normal tile */ |
| 271 .tile-cell.filler { |
| 272 background: -webkit-linear-gradient(rgb(242, 242, 242), rgb(232, 232, 232)); |
| 273 border-color: rgb(224, 224, 224); |
| 274 border-radius: 3px; |
| 275 box-shadow: inset 0 2px 3px rgba(0, 0, 0, .09); |
| 276 display: inline-block; |
| 277 position: relative; |
| 278 width: 132px; |
| 279 } |
| 280 |
| 281 .tile-cell .tile { |
| 282 background: #fff; |
| 283 border: 1px solid rgb(192, 192, 192); |
| 284 border-radius: 2px; |
| 285 box-shadow: 0 1px 0 rgba(255, 255, 255, .7); |
| 286 font: 16px Arial; |
| 287 height: 78px; |
| 288 text-align: center; |
| 289 width: 130px; |
| 290 } |
| 291 |
| 292 .tile:hover { |
| 293 border-color: rgb(127, 127, 127); /* TODO: confirm value with Marcin */ |
| 294 } |
| 295 |
| 296 .xxxxtile-cell > div > span { |
| 297 display: inline-block; |
| 298 position: absolute; |
| 299 top: 27px; |
| 300 } |
| 301 |
| 302 /* ----------------------------------------------------------------------------- |
| 303 Tile Animation |
| 304 ----------------------------------------------------------------------------- */ |
| 305 |
| 306 .animate-tile .tile-cell { |
| 307 -webkit-transition: all 201ms ease-in-out, opacity 101ms ease-out; |
| 308 } |
| 309 |
| 310 /* Animates entire columns of Tiles at once */ |
| 311 .hide-col-0 .tile-col-0, |
| 312 .hide-col-1 .tile-col-1, |
| 313 .hide-col-2 .tile-col-2, |
| 314 .hide-col-3 .tile-col-3, |
| 315 .hide-col-4 .tile-col-4, |
| 316 .hide-col-5 .tile-col-5, |
| 317 .hide-col-6 .tile-col-6, |
| 318 .hide-col-7 .tile-col-7, |
| 319 .hide-col-8 .tile-col-8, |
| 320 .hide-col-9 .tile-col-9 { |
| 321 margin-right: -10px; |
| 322 opacity: 0 !important; |
| 323 width: 10px !important; |
| 324 } |
| 325 |
| 326 .hide-row { |
| 327 opacity: 0 !important; |
| 328 } |
| 329 .hide-row .tile-cell { |
| 330 opacity: 1 !important; |
| 331 } |
| 332 |
| 333 |
| 334 /* ----------------------------------------------------------------------------- |
| 335 Debug |
| 336 ----------------------------------------------------------------------------- */ |
| 337 |
| 338 .debug #card-slider-frame { |
| 339 bottom: 0; |
| 340 height: 95%; |
| 341 position: absolute; |
| 342 text-align: center; |
| 343 width: 100%; |
| 344 } |
| 345 |
| 346 |
| 347 .debug .tile-grid { |
| 348 height: 100% !important; |
| 349 } |
| 350 |
| 351 .debug .animate-tile .tile-cell { |
| 352 -webkit-transition: all 201ms ease-in-out; |
| 353 } |
| 354 |
| 355 .debug #page-list-menu { |
| 356 background: rgb(255, 170, 255); |
| 357 } |
| 358 |
| 359 .debug .tile-page-content { |
| 360 background: rgb(119, 255, 255); |
| 361 } |
| 362 |
| 363 .debug .tile-row { |
| 364 background: rgb(255, 255, 119); |
| 365 } |
| 366 |
| 367 .debug .hide-row { |
| 368 opacity: 0.35 !important; |
| 369 } |
| 370 |
| 371 .debug .hide-row .tile-cell > div { |
| 372 background-color: lightgray !important; |
| 373 border: 1px solid gray; |
| 374 color: gray; |
| 375 } |
| 376 |
| 377 .debug .hide-col-0 .tile-col-0, |
| 378 .debug .hide-col-1 .tile-col-1, |
| 379 .debug .hide-col-2 .tile-col-2, |
| 380 .debug .hide-col-3 .tile-col-3, |
| 381 .debug .hide-col-4 .tile-col-4 { |
| 382 background-color: lightgray; |
| 383 } |
OLD | NEW |