Skip to content

Commit f119aa2

Browse files
committed
update fonts
1 parent 7079234 commit f119aa2

File tree

1 file changed

+146
-1
lines changed

1 file changed

+146
-1
lines changed

doc/styles.css

Lines changed: 146 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,146 @@
1-
/* css styles */
1+
/* Import Google Fonts */
2+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');
3+
4+
/* Root font variables */
5+
:root {
6+
--font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
7+
--font-family-mono: 'JetBrains Mono', 'SF Mono', Monaco, Inconsolata, 'Roboto Mono', 'Source Code Pro', monospace;
8+
}
9+
10+
/* Base typography */
11+
body {
12+
font-family: var(--font-family-sans);
13+
font-weight: 400;
14+
line-height: 1.6;
15+
font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
16+
}
17+
18+
/* Headings */
19+
h1,
20+
h2,
21+
h3,
22+
h4,
23+
h5,
24+
h6 {
25+
font-family: var(--font-family-sans);
26+
font-weight: 600;
27+
line-height: 1.3;
28+
letter-spacing: -0.025em;
29+
}
30+
31+
h1 {
32+
font-weight: 700;
33+
font-size: 2.25rem;
34+
}
35+
36+
h2 {
37+
font-weight: 600;
38+
font-size: 1.875rem;
39+
}
40+
41+
h3 {
42+
font-weight: 600;
43+
font-size: 1.5rem;
44+
}
45+
46+
h4 {
47+
font-weight: 500;
48+
font-size: 1.25rem;
49+
}
50+
51+
/* Code and pre-formatted text */
52+
code,
53+
pre,
54+
.sourceCode {
55+
font-family: var(--font-family-mono);
56+
font-weight: 400;
57+
font-feature-settings: 'liga' 1, 'calt' 1;
58+
}
59+
60+
/* Inline code */
61+
code:not(pre code) {
62+
font-size: 0.875em;
63+
font-weight: 500;
64+
padding: 0.125rem 0.25rem;
65+
background-color: rgba(175, 184, 193, 0.2);
66+
border-radius: 0.25rem;
67+
}
68+
69+
/* Code blocks */
70+
pre {
71+
font-size: 0.875rem;
72+
line-height: 1.5;
73+
padding: 1rem;
74+
border-radius: 0.5rem;
75+
overflow-x: auto;
76+
}
77+
78+
/* Navigation and UI elements */
79+
.navbar-brand,
80+
.nav-link {
81+
font-family: var(--font-family-sans);
82+
font-weight: 500;
83+
}
84+
85+
.sidebar .nav-link {
86+
font-weight: 400;
87+
}
88+
89+
.sidebar .nav-link.active {
90+
font-weight: 500;
91+
}
92+
93+
/* Tables */
94+
table {
95+
font-family: var(--font-family-sans);
96+
font-variant-numeric: tabular-nums;
97+
}
98+
99+
th {
100+
font-weight: 600;
101+
}
102+
103+
/* Math equations - ensure good readability */
104+
.math {
105+
font-family: 'STIX Two Math', 'Times New Roman', serif;
106+
}
107+
108+
/* Buttons and interactive elements */
109+
.btn {
110+
font-family: var(--font-family-sans);
111+
font-weight: 500;
112+
letter-spacing: 0.025em;
113+
}
114+
115+
/* Improve readability for long text */
116+
.content {
117+
max-width: none;
118+
}
119+
120+
p {
121+
margin-bottom: 1.25rem;
122+
}
123+
124+
/* List styling */
125+
ul,
126+
ol {
127+
margin-bottom: 1.25rem;
128+
}
129+
130+
li {
131+
margin-bottom: 0.5rem;
132+
}
133+
134+
/* Better spacing for equations */
135+
.math.display {
136+
margin: 1.5rem 0;
137+
}
138+
139+
/* Blockquotes */
140+
blockquote {
141+
font-style: italic;
142+
border-left: 4px solid #e9ecef;
143+
padding-left: 1rem;
144+
margin-left: 0;
145+
color: #6c757d;
146+
}

0 commit comments

Comments
 (0)