summaryrefslogtreecommitdiffstats
path: root/toolkit/themes/osx/global/tabbox.css
blob: f08bbe1eca2351772dfe065700eb433c974959a5 (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
/* 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.
*/

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

tabbox {
  margin: 0 5px;
}

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

tabs {
  align-items: center;
  font: menu;
  padding: 0 10px;
  margin-bottom: -12px;
  position: relative;
  /* Needs to sort on top of the tabbox, which is a grid container (and thus
   * causes pseudo stacking contexts to be created) */
  z-index: 1;
}

tab {
  appearance: auto;
  -moz-default-appearance: tab;
  padding-top: 1px;
}

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

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

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

tab:where([visuallyselected="true"]:not(:-moz-window-inactive)) {
  color: #FFF;
}

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

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