-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.css
More file actions
181 lines (165 loc) · 3.59 KB
/
page.css
File metadata and controls
181 lines (165 loc) · 3.59 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
/* page.css: small site-wide overrides layered on top of index.css */
:root {
/* Force a plain white page background */
--body-bg-color: #ffffff;
}
/* TeX Gyre Termes (Times-like TeX font) */
@font-face {
font-family: "TeX Gyre Termes";
src: url("./fonts/tex-gyre-termes/texgyretermes-regular.otf") format("opentype");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "TeX Gyre Termes";
src: url("./fonts/tex-gyre-termes/texgyretermes-italic.otf") format("opentype");
font-weight: 400;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: "TeX Gyre Termes";
src: url("./fonts/tex-gyre-termes/texgyretermes-bold.otf") format("opentype");
font-weight: 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "TeX Gyre Termes";
src: url("./fonts/tex-gyre-termes/texgyretermes-bolditalic.otf") format("opentype");
font-weight: 700;
font-style: italic;
font-display: swap;
}
/* Override base font size from index.css (default is typically 16px). */
html {
font-size: 14px;
}
/* Use the default Latin Modern body font from index.css */
body {
font-family: "Latin Modern", Georgia, Cambria, "Times New Roman", Times, serif;
}
/* Remove the large blue focus outline boxes around links (from index.css). */
a:focus {
outline: none;
}
a:focus-visible {
outline: none;
text-decoration: underline;
text-decoration-thickness: 2px;
text-underline-offset: 2px;
}
/* Utility: centered image capped at 50% of content width */
img.img-half {
display: block;
margin: 1.25rem auto;
max-width: 50%;
height: auto;
}
/* Default: center markdown images and cap at 50% width */
p > img,
p > a > img {
display: block;
margin: 1.25rem auto;
max-width: 50%;
height: auto;
}
/* Figure captions from image alt text */
figure.md-figure {
margin: 1.25rem auto;
}
figure.md-figure > img,
figure.md-figure > a > img {
display: block;
margin: 0 auto;
max-width: 50%;
height: auto;
}
figure.md-figure > figcaption {
margin-top: 0.5rem;
font-size: 0.85rem;
line-height: 1.25;
opacity: 0.8;
text-align: center;
}
/* Image lightbox modal */
.lightbox-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.9);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
cursor: zoom-out;
opacity: 0;
visibility: hidden;
transition: opacity 0.2s ease, visibility 0.2s ease;
}
.lightbox-overlay.active {
opacity: 1;
visibility: visible;
}
.lightbox-overlay img {
max-width: 90vw;
max-height: 90vh;
object-fit: contain;
border-radius: 2px;
box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
cursor: default;
transform: scale(0.95);
transition: transform 0.2s ease;
}
.lightbox-overlay.active img {
transform: scale(1);
}
/* Make clickable images show zoom cursor */
figure.md-figure img,
p > img,
p > a > img {
cursor: zoom-in;
}
/* Simple top navigation */
.site-nav {
font-size: 0.95rem;
margin: 0 0 1.25rem;
}
.site-nav a {
text-decoration: none;
}
.site-nav a:hover {
text-decoration: underline;
}
.site-nav-sep {
padding: 0 0.6rem;
opacity: 0.6;
}
/* Give a bit more breathing room above the title block */
body {
padding-top: 3rem;
}
/* Tighten the title block spacing (subtitle/date) */
.maketitle .titleHead {
margin-top: 0;
margin-bottom: 0.25rem;
}
.maketitle .author {
margin: 0.35rem 0 0;
}
.maketitle .author:empty {
display: none;
}
.maketitle br {
display: none;
}
.maketitle .date {
margin-top: 0.35rem;
text-align: left;
font-size: 0.85rem;
line-height: 1.2;
opacity: 0.85;
}
.maketitle .date:empty {
display: none;
}