forked from pydata/pydata-sphinx-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_base.scss
126 lines (106 loc) · 2.26 KB
/
_base.scss
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
html {
font-size: var(--pst-font-size-base);
scroll-padding-top: calc(var(--pst-header-height) + 12px);
}
body {
padding-top: var(--pst-header-height);
background-color: var(--pst-color-background);
font-family: var(--pst-font-family-base);
font-weight: 400;
line-height: 1.65;
color: var(--pst-color-text-base);
}
p {
margin-bottom: 1.15rem;
font-size: 1em;
color: var(--pst-color-paragraph);
/* section header in docstring pages */
&.rubric {
border-bottom: 1px solid var(--pst-color-border);
}
}
a {
color: var(--pst-color-link);
text-decoration: none;
&:hover {
color: var(--pst-color-link-hover);
text-decoration: underline;
}
&.headerlink {
color: var(--pst-color-headerlink);
opacity: 0.4;
font-size: 0.8em;
padding: 0 4px 0 4px;
margin-left: 0.2em;
text-decoration: none;
transition: all 0.2s ease-out;
user-select: none;
&:hover {
opacity: 1;
}
}
}
.heading-style {
margin: 2.75rem 0 1.05rem;
font-family: var(--pst-font-family-heading);
font-weight: 400;
line-height: 1.15;
}
h1 {
@extend .heading-style;
margin-top: 0;
font-size: var(--pst-font-size-h1);
color: var(--pst-color-h1);
}
h2 {
@extend .heading-style;
font-size: var(--pst-font-size-h2);
color: var(--pst-color-h2);
}
h3 {
@extend .heading-style;
font-size: var(--pst-font-size-h3);
color: var(--pst-color-h3);
}
h4 {
@extend .heading-style;
font-size: var(--pst-font-size-h4);
color: var(--pst-color-h4);
}
h5 {
@extend .heading-style;
font-size: var(--pst-font-size-h5);
color: var(--pst-color-h5);
}
h6 {
@extend .heading-style;
font-size: var(--pst-font-size-h6);
color: var(--pst-color-h6);
}
small,
.text_small {
font-size: var(--pst-font-size-milli);
}
hr {
border: 0;
border-top: 1px solid var(pst-color-border);
}
pre,
code,
kbd,
samp {
font-family: var(--pst-font-family-monospace);
}
code {
color: var(--pst-color-inline-code);
}
pre {
margin: 1.5em 0 1.5em 0;
padding: 10px;
background-color: var(--pst-color-preformatted-background);
color: var(--pst-color-preformatted-text);
line-height: 1.2em;
border: 1px solid var(--pst-color-preformatted-border);
border-radius: 0.2rem;
box-shadow: 1px 1px 1px var(--pst-color-preformatted-shadow);
}