-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathtabs.css
More file actions
52 lines (44 loc) · 1.21 KB
/
tabs.css
File metadata and controls
52 lines (44 loc) · 1.21 KB
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
.mdbook-tabs {
display: flex;
border-bottom: 1px solid var(--table-border-color);
}
.mdbook-tab {
background-color: var(--table-alternate-bg);
color: var(--fg);
padding: 0.5rem 1rem;
cursor: pointer;
border: none;
border-bottom: 2px solid transparent;
font-size: 1.6rem;
line-height: 1.45em;
}
@media (prefers-reduced-motion: no-preference) {
.mdbook-tab {
transition: color 120ms ease, border-color 120ms ease;
}
}
.mdbook-tab:hover:not(.active) {
color: var(--sidebar-active, var(--fg));
}
.mdbook-tab.active {
background-color: var(--table-header-bg);
color: var(--sidebar-active, var(--fg));
border-bottom-color: var(--sidebar-active, var(--fg));
font-weight: bold;
}
/* Rust theme: --sidebar-active (#e69f67) has low contrast against the warm
tan tab backgrounds. Fall back to --fg for the label text; the accent
color still carries the active signal via the bottom border. */
.rust .mdbook-tab.active {
color: var(--fg);
}
.rust .mdbook-tab:hover:not(.active) {
color: var(--fg);
border-bottom-color: var(--sidebar-active, var(--fg));
}
.mdbook-tab-content {
padding: 1rem 0rem;
}
.mdbook-tab-content table {
margin: unset;
}