-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglobal.css
82 lines (70 loc) · 1.58 KB
/
global.css
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
@import "remark-callouts/styles.css";
@import '@splidejs/react-splide/css/core';
@import url("https://fonts.googleapis.com/css2?family=EB+Garamond&display=swap");
/* Fonts */
@font-face {
font-family: "Restora";
src: url("/fonts/Restora.ttf");
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Restora";
src: url("/fonts/RestoraBold.ttf");
font-style: bold;
font-display: swap;
}
@font-face {
font-family: "Restora";
src: url("/fonts/RestoraExtraLight.otf");
font-style: light;
font-display: swap;
}
/* mathjax */
.math-inline {
display: flex;
align-items: center;
}
/* smooth scrolling in modern browsers */
html {
scroll-behavior: smooth !important;
scroll-padding-top: 6rem;
}
/* hide anchor link with # icon */
.unstyled :is(h1, h2, h3, h4, h5, h6) > a {
visibility: hidden;
}
.docs :is(h1, h2, h3, h4, h5, h6) {
margin-left: -2rem !important;
padding-left: 2rem !important;
scroll-margin-top: 4.5rem;
position: relative;
}
.docs :is(h1, h2, h3, h4, h5, h6) > a {
padding: 1px;
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
margin: auto 0;
border-radius: 5px;
background: #1e293b;
opacity: 0;
transition: opacity 0.2s;
}
.light .docs :is(h1, h2, h3, h4, h5, h6) > a {
/* border: 1px solid #ab2b65; */
/* background: none; */
background: #e2e8f0;
}
.docs :is(h1, h2, h3, h4, h5, h6):hover > a {
opacity: 100;
}
.docs :is(h1, h2, h3, h4, h5, h6) > a > svg {
transform: scale(0.75);
}
@media screen and (max-width: 640px) {
.docs :is(h1, h2, h3, h4, h5, h6) > a {
visibility: hidden;
}
}