summaryrefslogtreecommitdiffstats
path: root/ui/webui/resources/css/tabs.css
blob: 1b0ffeb73f495450c8d40b2474efc8d7a6a3db87 (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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/* 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. */

tabbox {
  -webkit-box-orient: vertical;
  display: -webkit-box;
}

tabs {
  -webkit-padding-start: 8px;
  background: -webkit-linear-gradient(white, rgb(243, 243, 243));
  border-bottom: 1px solid rgb(160, 160, 160);
  display: -webkit-box;
  margin: 0;
}

/* New users of tabs.css should add 'new-style-tabs' to the class list of any
 * 'tabs' or 'tabpanels' elements.
 *
 * TODO(rfevang): Remove when all users are converted to the new style.
 *                (crbug.com/247772).
 */
tabs.new-style-tabs {
  -webkit-padding-start: 9px;
  background: #fbfbfb;
  border-bottom: 1px solid #c8c8c8;
  padding-top: 14px;
}

tabs > * {
  -webkit-margin-start: 5px;
  -webkit-transition: border-color 150ms, background-color 150ms;
  background: rgba(160, 160, 160, .3);
  border: 1px solid rgba(160, 160, 160, .3);
  border-bottom: 0;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  cursor: default;
  display: block;
  min-width: 4em;
  padding: 2px 10px;
  text-align: center;
}

tabs.new-style-tabs > * {
  -webkit-margin-start: 0;
  -webkit-transition: none;
  background: #fbfbfb;
  border: 1px solid #fbfbfb;
  border-bottom: 0;
  border-radius: 0;
  min-width: 0;
  padding: 4px 9px 4px 10px;
}

tabs > :not([selected]) {
  background: rgba(238, 238, 238, .3);
}

tabs.new-style-tabs > :not([selected]) {
  background: #fbfbfb;
  color: #646464;
}

tabs > :not([selected]):hover {
  background: rgba(247, 247, 247, .3);
}

tabs.new-style-tabs > :not([selected]):hover {
  background: #fbfbfb;
  color: black;
}

tabs > [selected] {
  -webkit-transition: none;
  background: white;
  border-color: rgb(160, 160, 160);
  margin-bottom: -1px;
  position: relative;
  z-index: 0;
}

tabs.new-style-tabs > [selected] {
  background: #fbfbfb;
  border-color: #c8c8c8;
  font-weight: bold;
}

tabs:focus {
  outline: none;
}

html.focus-outline-visible tabs:focus > [selected] {
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

tabpanels {
  -webkit-box-flex: 1;
  background: white;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, .2);
  display: -webkit-box;
  padding: 5px 15px 0 15px;
}

tabpanels.new-style-tabs {
  background: #fbfbfb;
  box-shadow: none;
  padding: 0 20px;
}

tabpanels > * {
  -webkit-box-flex: 1;
  display: none;
}

tabpanels > [selected] {
  display: block;
}