-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
195 lines (133 loc) · 3.37 KB
/
Copy pathstyle.css
File metadata and controls
195 lines (133 loc) · 3.37 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
/* =================================
Reset
================================= */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* =================================
Background Image
================================= */
body {
position: relative;
min-height: 100vh;
background: white;
/* Overrides LaTeX.css's Computer Modern serif, which gets thin and
hard to read at small sizes. Georgia was designed specifically for
screen legibility, ships on every OS (no download, no speed cost),
and code blocks stay monospace since LaTeX.css sets that separately. */
font-family: Georgia, 'Times New Roman', Times, serif;
}
body::before {
content: "";
position: fixed;
inset: 0;
background-image:
linear-gradient(
rgba(0, 0, 0, 0.90),
rgba(0, 0, 0, 0.90)
),
url("./assets/images/h.webp");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
z-index: -1;
}
/* =================================
Header
================================= */
.site-header {
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 100vw !important;
max-width: none !important;
height: 60px !important;
margin: 0 !important;
padding: 0 !important;
z-index: 1000;
color: white;
}
/* =================================
MathProject/
================================= */
.site-title {
position: fixed !important;
top: 18px !important;
left: 20px !important;
margin: 0 !important;
padding: 0 !important;
color: white !important;
text-decoration: none;
font-size: 1.25rem;
}
.site-title:hover {
text-decoration: underline;
}
/* =================================
Navigation
================================= */
.site-nav {
position: fixed !important;
top: 5px !important;
left: 50vw !important;
transform: translateX(-50%) !important;
display: flex;
margin: 0 !important;
white-space: nowrap;
border: 1px solid rgba(255, 255, 255, 0.75);
border-radius: 999px;
padding: 0.25rem 0.5rem;
gap: 0.15rem;
background: rgba(0, 0, 0, 0.20);
backdrop-filter: blur(3px);
}
.site-nav a {
color: white !important;
text-decoration: none;
padding: 0.25rem 0.6rem;
}
.site-nav a:hover {
text-decoration: underline;
}
/* =================================
Page (the A4 "paper" panel)
================================= */
.page {
position: relative;
z-index: 1;
/* Exactly 50% width centered on screen */
width: 50vw;
max-width: none;
/* Centers the 50% card by shifting it 25% from the left */
left: 50%;
transform: translateX(-50%);
margin: 70px 0;
padding: 3rem 3.5rem;
background: rgba(255, 255, 255, 0.72);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
border-radius: 28px;
font-size: 0.9rem;
line-height: 1.65;
}
.page .subtitle {
margin-top: -0.5rem;
color: #555;
}
/* =================================
Mobile
================================= */
@media (max-width: 700px) {
.site-title {
left: 12px !important;
}
.site-nav {
left: 50vw !important;
transform: translateX(-50%) !important;
}
.page {
margin: 90px 16px 40px;
padding: 1.5rem 1.25rem;
}
}