| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 | 5 |
| 6 /* TODO(estade): handle overflow better? I tried overflow-x: hidden and | 6 /* TODO(estade): handle overflow better? I tried overflow-x: hidden and |
| 7 overflow-y: visible (for the new dot animation), but this makes a scroll | 7 overflow-y: visible (for the new dot animation), but this makes a scroll |
| 8 bar appear */ | 8 bar appear */ |
| 9 #dot-list { | 9 #dot-list { |
| 10 display: -webkit-box; | 10 display: -webkit-box; |
| 11 height: 100%; | 11 height: 100%; |
| 12 list-style-type: none; | 12 list-style-type: none; |
| 13 margin: 0; | 13 margin: 0; |
| 14 padding: 0; | 14 padding: 0; |
| 15 /* Expand to take up all available horizontal space. */ | 15 /* Expand to take up all available horizontal space. */ |
| 16 -webkit-box-flex: 1; | 16 -webkit-box-flex: 1; |
| 17 /* Center child dots. */ | 17 /* Center child dots. */ |
| 18 -webkit-box-pack: center; | 18 -webkit-box-pack: center; |
| 19 } | 19 } |
| 20 | 20 |
| 21 .dot { | 21 .dot { |
| 22 box-sizing: border-box; | 22 box-sizing: border-box; |
| 23 cursor: pointer; | 23 cursor: pointer; |
| 24 max-width: 80px; | 24 max-width: 80px; |
| 25 outline: none; |
| 25 text-align: left; | 26 text-align: left; |
| 26 -webkit-box-flex: 1; | 27 -webkit-box-flex: 1; |
| 27 -webkit-margin-end: 10px; | 28 -webkit-margin-end: 10px; |
| 28 -webkit-padding-start: 2px; | 29 -webkit-padding-start: 2px; |
| 29 -webkit-transition: max-width 0.25s, -webkit-margin-end 0.25s; | 30 -webkit-transition: max-width 0.25s, -webkit-margin-end 0.25s; |
| 30 } | 31 } |
| 31 | 32 |
| 32 .dot:last-child { | 33 .dot:last-child { |
| 33 -webkit-margin-end: 0; | 34 -webkit-margin-end: 0; |
| 34 } | 35 } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 color: #7f7f7f; | 73 color: #7f7f7f; |
| 73 } | 74 } |
| 74 | 75 |
| 75 .dot:focus .selection-bar, .dot:hover .selection-bar { | 76 .dot:focus .selection-bar, .dot:hover .selection-bar { |
| 76 border-color: #b2b2b2; | 77 border-color: #b2b2b2; |
| 77 } | 78 } |
| 78 | 79 |
| 79 .dot.selected .selection-bar { | 80 .dot.selected .selection-bar { |
| 80 border-color: #7f7f7f; | 81 border-color: #7f7f7f; |
| 81 } | 82 } |
| OLD | NEW |