[email protected] | 3fffc76 | 2012-01-12 19:03:14 | [diff] [blame] | 1 | /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 27708aa | 2011-05-26 17:40:22 | [diff] [blame] | 2 | * Use of this source code is governed by a BSD-style license that can be |
[email protected] | 66e4705d | 2012-02-07 04:33:29 | [diff] [blame] | 3 | * found in the LICENSE file. */ |
[email protected] | 27708aa | 2011-05-26 17:40:22 | [diff] [blame] | 4 | |
| 5 | /* TODO(estade): handle overflow better? I tried overflow-x: hidden and |
dbeam | f2ac2d3d | 2016-08-12 03:24:00 | [diff] [blame] | 6 | * overflow-y: visible (for the new dot animation), but this makes a scroll |
| 7 | * bar appear */ |
[email protected] | 27708aa | 2011-05-26 17:40:22 | [diff] [blame] | 8 | #dot-list { |
[email protected] | 66e4705d | 2012-02-07 04:33:29 | [diff] [blame] | 9 | /* Expand to take up all available horizontal space. */ |
| 10 | -webkit-box-flex: 1; |
| 11 | /* Center child dots. */ |
| 12 | -webkit-box-pack: center; |
[email protected] | 1f11485 | 2014-01-13 12:03:42 | [diff] [blame] | 13 | display: -webkit-flex; |
[email protected] | 27708aa | 2011-05-26 17:40:22 | [diff] [blame] | 14 | height: 100%; |
| 15 | list-style-type: none; |
| 16 | margin: 0; |
| 17 | padding: 0; |
[email protected] | 27708aa | 2011-05-26 17:40:22 | [diff] [blame] | 18 | } |
| 19 | |
[email protected] | d70bbed | 2011-09-13 02:57:12 | [diff] [blame] | 20 | html.starting-up #dot-list { |
| 21 | display: none; |
| 22 | } |
| 23 | |
[email protected] | 27708aa | 2011-05-26 17:40:22 | [diff] [blame] | 24 | .dot { |
[email protected] | c80491f | 2011-06-13 18:43:05 | [diff] [blame] | 25 | box-sizing: border-box; |
[email protected] | 27708aa | 2011-05-26 17:40:22 | [diff] [blame] | 26 | cursor: pointer; |
[email protected] | 3fffc76 | 2012-01-12 19:03:14 | [diff] [blame] | 27 | /* max-width: Set in new_tab.js. See measureNavDots() */ |
Oriol Brufau | c6c32fb | 2018-07-24 20:53:06 | [diff] [blame] | 28 | margin-inline-end: 10px; |
[email protected] | 70ffba2f | 2011-08-04 03:56:33 | [diff] [blame] | 29 | outline: none; |
Oriol Brufau | c6c32fb | 2018-07-24 20:53:06 | [diff] [blame] | 30 | padding-inline-start: 2px; |
[email protected] | 27708aa | 2011-05-26 17:40:22 | [diff] [blame] | 31 | text-align: left; |
Oriol Brufau | c6c32fb | 2018-07-24 20:53:06 | [diff] [blame] | 32 | transition: margin-inline-end 250ms, max-width 250ms, opacity 250ms; |
[email protected] | e8e8ca9 | 2011-07-29 01:30:46 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | .dot:last-child { |
Oriol Brufau | c6c32fb | 2018-07-24 20:53:06 | [diff] [blame] | 36 | margin-inline-end: 0; |
[email protected] | 27708aa | 2011-05-26 17:40:22 | [diff] [blame] | 37 | } |
| 38 | |
[email protected] | 93f1999 | 2013-03-22 00:44:40 | [diff] [blame] | 39 | .dot:only-of-type { |
[email protected] | 597ad694 | 2013-03-26 09:05:38 | [diff] [blame] | 40 | cursor: default; |
[email protected] | 93f1999 | 2013-03-22 00:44:40 | [diff] [blame] | 41 | opacity: 0; |
[email protected] | 597ad694 | 2013-03-26 09:05:38 | [diff] [blame] | 42 | pointer-events: none; |
[email protected] | 93f1999 | 2013-03-22 00:44:40 | [diff] [blame] | 43 | } |
| 44 | |
[email protected] | 40ad9235 | 2011-06-20 20:43:06 | [diff] [blame] | 45 | .dot.small { |
Oriol Brufau | c6c32fb | 2018-07-24 20:53:06 | [diff] [blame] | 46 | margin-inline-end: 0; |
[email protected] | 66e4705d | 2012-02-07 04:33:29 | [diff] [blame] | 47 | max-width: 0; |
[email protected] | 27708aa | 2011-05-26 17:40:22 | [diff] [blame] | 48 | } |
| 49 | |
[email protected] | ba9c9da | 2011-07-15 01:44:58 | [diff] [blame] | 50 | .dot .selection-bar { |
[email protected] | ba9c9da | 2011-07-15 01:44:58 | [diff] [blame] | 51 | border-bottom: 5px solid; |
| 52 | border-color: rgba(0, 0, 0, 0.1); |
| 53 | height: 10px; |
ericwilligers | 63f826afd2 | 2017-02-17 23:47:02 | [diff] [blame] | 54 | transition: border-color 200ms; |
[email protected] | ba9c9da | 2011-07-15 01:44:58 | [diff] [blame] | 55 | } |
| 56 | |
[email protected] | 9a50454 | 2011-06-02 23:45:35 | [diff] [blame] | 57 | .dot input { |
Kent Tamura | d5301f7f | 2019-03-25 01:09:51 | [diff] [blame] | 58 | -webkit-appearance: none; |
[email protected] | 9a50454 | 2011-06-02 23:45:35 | [diff] [blame] | 59 | background-color: transparent; |
Kent Tamura | d5301f7f | 2019-03-25 01:09:51 | [diff] [blame] | 60 | border: none; |
[email protected] | 9a50454 | 2011-06-02 23:45:35 | [diff] [blame] | 61 | cursor: inherit; |
[email protected] | 3fcff0d | 2012-02-17 02:15:21 | [diff] [blame] | 62 | font: inherit; |
[email protected] | ede6bb86 | 2012-03-20 05:04:24 | [diff] [blame] | 63 | height: auto; |
Oriol Brufau | c6c32fb | 2018-07-24 20:53:06 | [diff] [blame] | 64 | margin-inline-start: 2px; |
[email protected] | ede6bb86 | 2012-03-20 05:04:24 | [diff] [blame] | 65 | margin-top: 2px; |
Kent Tamura | d5301f7f | 2019-03-25 01:09:51 | [diff] [blame] | 66 | padding: 2px 1px; |
ericwilligers | 63f826afd2 | 2017-02-17 23:47:02 | [diff] [blame] | 67 | transition: color 200ms; |
[email protected] | e8e8ca9 | 2011-07-29 01:30:46 | [diff] [blame] | 68 | width: 90%; |
[email protected] | 27708aa | 2011-05-26 17:40:22 | [diff] [blame] | 69 | } |
| 70 | |
[email protected] | 9a50454 | 2011-06-02 23:45:35 | [diff] [blame] | 71 | .dot input:focus { |
| 72 | cursor: auto; |
[email protected] | 27708aa | 2011-05-26 17:40:22 | [diff] [blame] | 73 | } |
[email protected] | c80491f | 2011-06-13 18:43:05 | [diff] [blame] | 74 | |
| 75 | /* Everything below here should be themed but we don't have appropriate colors |
dbeam | f2ac2d3d | 2016-08-12 03:24:00 | [diff] [blame] | 76 | * yet. */ |
[email protected] | c80491f | 2011-06-13 18:43:05 | [diff] [blame] | 77 | .dot input { |
[email protected] | eb56996 | 2011-12-16 23:23:44 | [diff] [blame] | 78 | color: #b2b2b2; |
[email protected] | c80491f | 2011-06-13 18:43:05 | [diff] [blame] | 79 | } |
| 80 | |
[email protected] | 5ce7cd4 | 2012-02-03 08:23:34 | [diff] [blame] | 81 | .dot:focus input, |
| 82 | .dot:hover input, |
| 83 | .dot.selected input { |
[email protected] | eb56996 | 2011-12-16 23:23:44 | [diff] [blame] | 84 | color: #7f7f7f; |
[email protected] | c80491f | 2011-06-13 18:43:05 | [diff] [blame] | 85 | } |
| 86 | |
[email protected] | 6493026c | 2011-08-30 19:51:37 | [diff] [blame] | 87 | .dot:focus .selection-bar, |
| 88 | .dot:hover .selection-bar, |
| 89 | .dot.drag-target .selection-bar { |
[email protected] | ba9c9da | 2011-07-15 01:44:58 | [diff] [blame] | 90 | border-color: #b2b2b2; |
| 91 | } |
| 92 | |
| 93 | .dot.selected .selection-bar { |
| 94 | border-color: #7f7f7f; |
| 95 | } |