summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/ntp4/nav_dot.css
blob: a4f36c0a1971a3adb9f659dce43a8aa5eabbaa0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

/* TODO(estade): handle overflow better? I tried overflow-x: hidden and
   overflow-y: visible (for the new dot animation), but this makes a scroll
   bar appear */
#dot-list {
  /* Expand to take up all available horizontal space.  */
  -webkit-box-flex: 1;
  /* Center child dots. */
  -webkit-box-pack: center;
  display: -webkit-box;
  height: 100%;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

html.starting-up #dot-list {
  display: none;
}

.dot {
  -webkit-box-flex: 1;
  -webkit-margin-end: 10px;
  -webkit-padding-start: 2px;
  -webkit-transition: max-width 250ms, -webkit-margin-end 250ms;
  box-sizing: border-box;
  cursor: pointer;
  /* max-width: Set in new_tab.js. See measureNavDots() */
  outline: none;
  text-align: left;
}

.dot:last-child {
  -webkit-margin-end: 0;
}

.dot.small {
  -webkit-margin-end: 0;
  max-width: 0;
}

.dot .selection-bar {
  -webkit-transition: border-color 200ms;
  border-bottom: 5px solid;
  border-color: rgba(0, 0, 0, 0.1);
  height: 10px;
}

.dot input {
  -webkit-appearance: caret;
  -webkit-transition: color 200ms;
  background-color: transparent;
  cursor: inherit;
  font: inherit;
  padding-top: 0;
  width: 90%;
}

.dot input:focus {
  cursor: auto;
}

/* Everything below here should be themed but we don't have appropriate colors
 * yet.
 */
.dot input {
  color: #b2b2b2;
}

.dot:focus input,
.dot:hover input,
.dot.selected input {
  color: #7f7f7f;
}

.dot:focus .selection-bar,
.dot:hover .selection-bar,
.dot.drag-target .selection-bar {
  border-color: #b2b2b2;
}

.dot.selected .selection-bar {
  border-color: #7f7f7f;
}