Repository navigation
Expand file tree
/
Copy pathextra.css
More file actions
95 lines (77 loc) · 2.54 KB
/
Copy pathextra.css
File metadata and controls
95 lines (77 loc) · 2.54 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
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
:root > * {
--md-primary-color: #f7d325;
--md-typeset-a-color: #ea1340;
/* Zensical "modern" variant ignores palette primary/accent names, make them follow the link color (red in light, yellow in dark) */
--md-primary-fg-color: var(--md-typeset-a-color);
--md-primary-fg-color--light: var(--md-typeset-a-color);
--md-primary-fg-color--dark: var(--md-typeset-a-color);
--md-primary-bg-color: #fff;
--md-accent-fg-color: var(--md-typeset-a-color);
--md-accent-fg-color--transparent: color-mix(in srgb, var(--md-typeset-a-color) 10%, transparent);
}
[data-md-color-scheme=slate][data-md-color-primary=black] {
--md-typeset-a-color: var(--md-primary-color);
}
@media screen and (min-width: 76.25em) {
.md-nav--primary {
position: relative;
padding-block: 0.6rem;
border: 1px solid var(--md-default-fg-color--lightest);
border-radius: 0.2rem;
.md-nav__list {
padding-bottom: 0;
}
}
.md-nav,
.md-nav--integrated > .md-nav__list > .md-nav__item--active .md-nav--secondary {
margin-bottom: 0;
}
.md-nav__toggle ~ .md-nav {
grid-template-rows: minmax(0, 0fr);
}
/* With navigation.tabs, the active top-level page is hidden from the sidebar: show it as the heading of its integrated table of contents */
.md-nav--lifted > .md-nav__list > .md-nav__item--active > a.md-nav__link {
display: flex;
}
/* The modern variant already colors the active entry, and its padding leaves the line far from the text */
.md-nav--integrated > .md-nav__list > .md-nav__item--active .md-nav--secondary {
margin-left: 0.6rem;
border-left: 0;
}
}
.md-typeset {
h1 {
margin-bottom: 0.2em;
color: var(--md-default-fg-color);
font-weight: 400;
}
h2 {
font-weight: 400;
}
a {
text-decoration: underline;
}
.md-button:not(.md-button--primary) {
color: var(--md-typeset-a-color);
}
blockquote {
color: var(--md-default-fg-color);
border: 1px solid var(--md-default-fg-color--lightest);
[dir=ltr] & {
border-left-color: var(--md-primary-color);
}
[dir=rtl] & {
border-right-color: var(--md-primary-color);
}
p {
margin-block: 0.4em;
}
}
}
[data-md-color-scheme=default] .hljs {
background-color: var(--md-default-fg-color--lightest);
}
/* Hide the existing social footer, ours is better */
.md-footer-meta.md-typeset {
display: none;
}