summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/options/subpages_tab_controls.css
blob: 45f5f5c1e1b654fa692e64df66da32dbb8e8cb6c (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
/* 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. */

.subpages-nav-tabs .tab {
  padding: 4px 8px;
  position: relative;
}

.subpages-nav-tabs .active-tab {
  background: white;
  border: 1px solid #ddd;
  border-bottom: 2px solid white;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  box-shadow: 8px -8px 12px -6px rgb(240, 240, 240);
  position: relative;
}

/* To avoid tabs changing size when they are clicked and their labels become
 * bold, we actually put two labels inside each tab: an inactive label and an
 * active label. Only one is visible at a time, but the bold label is used to
 * size the tab even when it's not visible. This keeps the tab size constant.
 */
.subpages-nav-tabs .active-tab-label,
.subpages-nav-tabs .tab-label:hover {
  font-weight: bold;
}

.subpages-nav-tabs .tab-label {
  left: 9px;
  position: absolute;
  top: 5px;
}

html[dir=rtl] .subpages-nav-tabs .tab-label {
  right: 9px;
}

.subpages-nav-tabs .active-tab-label,
.subpages-nav-tabs .active-tab .tab-label {
  visibility: hidden;
}

/* .tab is not removed when .active-tab is added, so we must
 * override the hidden visibility above in the active tab case.
 */
.subpages-nav-tabs .active-tab .active-tab-label {
  visibility: visible;
}

.subpages-nav-tabs {
  background-image: linear-gradient(
                        to bottom,
                        rgb(255,255,255),
                        rgb(255,255,255) 60%,
                        rgb(250, 250, 250) 80%,
                        rgb(242,242,242)
  );
  border-bottom: 1px solid #ddd;
  padding: 4px 20px;
}

.subpages-tab-contents {
   -webkit-padding-start: 10px;
  display: none;
  padding-top: 15px;
}

.active-tab-contents {
  display: block;
}