summaryrefslogtreecommitdiffstats
path: root/toolkit/themes/osx/global/tabbox.css
blob: 4fcbac486db3daec7b04ab4f6a6c012154db8274 (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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/*
    The default style of these tabs is that of an NSTabView with tabs at
    the top in the "regular" size. These tabs can be used with or without
    a tabbox element.
    For bottom tabs you should use the "tabs-bottom" class on the tabbox
    or the tabs element. Bottom tabs use a style that's similar to the
    one used in Adium.
*/

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

tabbox {
  margin: 0 5px;
}

tabpanels {
  -moz-appearance: tabpanels;
  padding: 33px 15px 15px;
}

tabs {
  -moz-box-align: center;
  font: menu;
}

tabbox > tabs {
  padding: 0 10px;
  margin-bottom: -12px;
  position: relative;
}

tab {
  -moz-appearance: tab;
}

tab:-moz-focusring {
  /* Tab focus rings need to overlay adjacent tabs. */
  position: relative;
}

tab:first-of-type {
  padding-inline-start: 2px;
}

tab:last-of-type {
  padding-inline-end: 2px;
}

tab[visuallyselected="true"] {
  color: #FFF;
  text-shadow: rgba(0, 0, 0, 0.4) 0 1px;
}

.tab-middle {
  padding: 1px 6px 2px;
}

.tabs-left,
.tabs-right  {
  -moz-box-flex: 1;
}

/* Tabs at the bottom
 * These tabs are smaller, left aligned and don't extend into the tabpanel.
 */

tabbox.tabs-bottom > tabpanels {
  padding: 10px;
}

tabbox.tabs-bottom > tabs,
tabs.tabs-bottom {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0;
  margin: 0;
  border-top: 2px solid;
  -moz-border-top-colors: #888 rgba(0, 0, 0, 0.08);
  -moz-box-align: start;
  font: message-box;
}

tabbox.tabs-bottom > tabs > .tabs-left,
tabs.tabs-bottom > .tabs-left {
  -moz-box-flex: 0;
}

tabbox.tabs-bottom > tabs > tab,
tabs.tabs-bottom > tab {
  -moz-appearance: none;
  margin: -1px 0 0;
  padding: 0 0 2px 0;
  position: relative;
  border-inline-end: 1px solid rgba(0, 0, 0, 0.19);
}

tabbox.tabs-bottom > tabs > tab > .tab-middle,
tabs.tabs-bottom > tab > .tab-middle {
  padding: 1px 2px 0 2px;
}

tabbox.tabs-bottom > tabs > tab:not([visuallyselected=true]):hover,
tabs.tabs-bottom > tab:not([visuallyselected=true]):hover {
  background-color: rgba(0, 0, 0, 0.1);
  border-inline-end-color: rgba(0, 0, 0, 0.1);
}

tabbox.tabs-bottom > tabs > tab[visuallyselected=true],
tabs.tabs-bottom > tab[visuallyselected=true] {
  color: #000;
  text-shadow: none;
  border: solid #888;
  border-width: 0 2px 2px;
  border-radius: 2px;
  -moz-border-left-colors: rgba(0, 0, 0, 0.08) #888;
  -moz-border-right-colors: rgba(0, 0, 0, 0.08) #888;
  -moz-border-bottom-colors: rgba(0, 0, 0, 0.08) #888;
  margin-inline-end: -1px;
  margin-top: -2px;
  margin-bottom: 1px;
  padding: 0;
}

tabbox.tabs-bottom > tabs > tab[beforeselected=true],
tabs.tabs-bottom > tab[beforeselected=true] {
  border-inline-end-color: transparent;
  margin-inline-end: -2px;
}

tabbox.tabs-bottom > tabs > tab:first-of-type:not([visuallyselected=true]),
tabs.tabs-bottom > tab:first-of-type:not([visuallyselected=true]) {
  border-inline-start: 4px solid transparent;
}

tabbox.tabs-bottom > tabs > tab:first-of-type[visuallyselected=true],
tabs.tabs-bottom > tab:first-of-type[visuallyselected=true] {
  margin-inline-start: 2px;
}

tabbox.tabs-bottom,
tabbox.tabs-bottom > tabpanels,
tabbox.tabs-bottom > tabs > tab[visuallyselected=true] > .tab-middle,
tabs.tabs-bottom > tab[visuallyselected=true] > .tab-middle {
  -moz-appearance: dialog;
}