Repository navigation
Expand file tree
/
Copy path_theme.css
More file actions
128 lines (111 loc) · 2.04 KB
/
Copy path_theme.css
File metadata and controls
128 lines (111 loc) · 2.04 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
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
127
128
/*<!--section:code-->```css */
html {
/* Prevent horizontal overflow and scrolling, modern way. */
overflow-x: clip;
/* Enable font smoothing */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
/* Ensure `body` takes at least the full height of the viewport (using dynamic viewport height for better mobile support). */
min-height: 100dvh;
/* Make the `body` a flex container with column layout, and `main` to automatically fill available space. This is useful for creating sticky footers and full-height layouts. */
display: flex;
flex-direction: column;
> main {
flex-grow: 1;
}
/* Evaluates the last ~4 lines of text blocks to prevent a single word from sitting on the final line. */
text-wrap: pretty;
/* Enable global hyphenation */
hyphens: auto;
/* ... except for links and tables which are better (safer) without hyphenation */
a,
table {
hyphens: none;
}
}
a {
&:not([href^="#"]) {
text-decoration-thickness: 1px;
&:hover {
text-decoration-thickness: 2px;
}
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
text-wrap: balance;
}
h1 {
font-size: 2.5em; /* for pico.css & tw-typography */
margin-bottom: 1rem; /* for tw-typography */
}
hr {
margin-block: 2em; /* for pico.css & tw-typography */
}
ul {
ul {
font-size: 87.5%;
}
}
dl {
dt {
margin-block: 0.25rem;
font-weight: 500;
}
dd {
margin-block-end: 1rem;
}
}
pre {
small {
opacity: 75%;
font-weight: lighter;
}
&:has(code) {
background: #181c25 !important;
}
}
table {
th {
vertical-align: bottom;
font-weight: bold;
}
td {
vertical-align: top;
}
pre {
margin-bottom: 0.25rem;
}
}
[href="#top"] {
opacity: 25%;
&:hover {
opacity: 75%;
}
> i {
display: inline-block;
padding: 0.25rem 0.375rem;
margin: 0.5rem;
font-size: 0.75rem;
color: black;
border-color: black;
}
}
.breakout,
.breakout-all {
> img,
> figure {
margin-bottom: 1rem;
}
}
.faded {
a {
text-decoration-style: dotted;
}
}