summaryrefslogtreecommitdiffstats
path: root/devtools/client/shared/components/tabs/tabbar.css
blob: 72445e43ed2b5da9cb965d01c37d29d597591a67 (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
/* vim:set ts=2 sw=2 sts=2 et: */
/* 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/. */

.tabs .tabs-navigation {
  line-height: 15px;
}

.tabs .tabs-navigation {
  height: 24px;
}

.tabs .tabs-menu-item:first-child {
  border-inline-start-width: 0;
}

.tabs .tabs-navigation .tabs-menu-item:focus {
  outline: var(--theme-focus-outline);
  outline-offset: -2px;
}

.tabs .tabs-menu-item.is-active {
  height: 23px;
}

/* Firebug theme is using slightly different height. */
.theme-firebug .tabs .tabs-navigation {
  height: 24px;
}

/* The tab takes entire horizontal space and individual tabs
  should stretch accordingly. Use flexbox for the behavior.
  Use also `overflow: hidden` so, 'overflow' and 'underflow'
  events are fired (it's utilized by the all-tabs-menu). */
.tabs .tabs-navigation .tabs-menu {
  overflow: hidden;
  display: flex;
}

.tabs .tabs-navigation .tabs-menu-item {
  flex-grow: 1;
}

.tabs .tabs-navigation .tabs-menu-item a {
  text-align: center;
}

/* Firebug theme doesn't stretch the tabs. */
.theme-firebug .tabs .tabs-navigation .tabs-menu-item {
  flex-grow: 0;
}