| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
| 4 | 4 |
| 5 /* TODO(estade): handle overflow better? I tried overflow-x: hidden and | 5 /* TODO(estade): handle overflow better? I tried overflow-x: hidden and |
| 6 overflow-y: visible (for the new dot animation), but this makes a scroll | 6 overflow-y: visible (for the new dot animation), but this makes a scroll |
| 7 bar appear */ | 7 bar appear */ |
| 8 #dot-list { | 8 #dot-list { |
| 9 /* Expand to take up all available horizontal space. */ | 9 /* Expand to take up all available horizontal space. */ |
| 10 -webkit-box-flex: 1; | 10 -webkit-box-flex: 1; |
| 11 /* Center child dots. */ | 11 /* Center child dots. */ |
| 12 -webkit-box-pack: center; | 12 -webkit-box-pack: center; |
| 13 display: -webkit-box; | 13 display: -webkit-flex; |
| 14 height: 100%; | 14 height: 100%; |
| 15 list-style-type: none; | 15 list-style-type: none; |
| 16 margin: 0; | 16 margin: 0; |
| 17 padding: 0; | 17 padding: 0; |
| 18 } | 18 } |
| 19 | 19 |
| 20 html.starting-up #dot-list { | 20 html.starting-up #dot-list { |
| 21 display: none; | 21 display: none; |
| 22 } | 22 } |
| 23 | 23 |
| 24 .dot { | 24 .dot { |
| 25 -webkit-box-flex: 1; | |
| 26 -webkit-margin-end: 10px; | 25 -webkit-margin-end: 10px; |
| 27 -webkit-padding-start: 2px; | 26 -webkit-padding-start: 2px; |
| 28 -webkit-transition: -webkit-margin-end 250ms, max-width 250ms, opacity 250ms; | 27 -webkit-transition: -webkit-margin-end 250ms, max-width 250ms, opacity 250ms; |
| 29 box-sizing: border-box; | 28 box-sizing: border-box; |
| 30 cursor: pointer; | 29 cursor: pointer; |
| 31 /* max-width: Set in new_tab.js. See measureNavDots() */ | 30 /* max-width: Set in new_tab.js. See measureNavDots() */ |
| 32 outline: none; | 31 outline: none; |
| 33 text-align: left; | 32 text-align: left; |
| 34 } | 33 } |
| 35 | 34 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 86 |
| 88 .dot:focus .selection-bar, | 87 .dot:focus .selection-bar, |
| 89 .dot:hover .selection-bar, | 88 .dot:hover .selection-bar, |
| 90 .dot.drag-target .selection-bar { | 89 .dot.drag-target .selection-bar { |
| 91 border-color: #b2b2b2; | 90 border-color: #b2b2b2; |
| 92 } | 91 } |
| 93 | 92 |
| 94 .dot.selected .selection-bar { | 93 .dot.selected .selection-bar { |
| 95 border-color: #7f7f7f; | 94 border-color: #7f7f7f; |
| 96 } | 95 } |
| OLD | NEW |