-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
183 lines (154 loc) · 3.37 KB
/
style.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
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
/* Root Variables */
:root {
--background: #f8f8f8;
--foreground: #333;
--header-bg: #eaeaea;
--header-fg: #444;
--link: #620f2a;
--link-hover: #004e70;
--accent: #666;
}
/* General Styles */
body {
font-family: 'Noto Sans', sans-serif;
line-height: 1.6;
margin: 0;
color: var(--foreground);
background-color: var(--background);
text-align: left;
}
/* Header */
header.infobar {
background: var(--header-bg);
padding: 1em 0;
border-bottom: 1px solid var(--accent);
text-align: center;
}
.infobar-inner {
display: flex;
justify-content: space-between;
align-items: center;
text-align: left;
max-width: 700px;
margin: 0 auto;
padding: 0 1em;
}
.header-text {
text-align: left;
flex: 1;
margin-right: 2em;
}
.header-text a {
color: var(--header-fg);
text-decoration: none;
font-size: 1.8em;
font-weight: bold;
}
.header-text small {
display: block;
color: var(--accent);
font-size: 1em;
}
.infobar-navigation {
flex: 2;
}
.infobar-navigation ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
justify-content: flex-end;
}
.infobar-navigation li {
margin-left: 1em;
}
.infobar-navigation a {
color: var(--header-fg);
text-decoration: none;
font-size: 1em;
font-weight: bold;
}
.infobar-navigation a:hover {
color: var(--link-hover);
}
/* Main Content */
.centered-container {
max-width: 750px;
margin: 2em auto;
padding: 0 1em;
}
h1, h2 {
color: var(--foreground);
text-align: left;
margin-bottom: 0em;
font-weight: bold;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.5em;
}
/* Links */
a {
color: var(--link);
text-decoration: underline;
}
a:hover {
color: var(--link-hover);
text-decoration: none;
}
/* Footer */
footer.footer {
background: var(--header-bg);
color: var(--header-fg);
text-align: center;
padding: 1em 0;
border-top: 1px solid var(--accent);
}
footer a {
color: var(--link);
}
footer a:hover {
color: var(--link-hover);
}
/* image stuff, courtesy chatgpt... */
.img-left, .img-right {
max-width: 30%; /* Adjust width as needed */
height: auto; /* Maintain aspect ratio */
margin: 0.5em; /* Add spacing around the image */
}
.img-left {
float: left; /* Float image to the left */
margin-right: 1em; /* Add spacing to the right of the image */
}
.img-right {
float: right; /* Float image to the right */
margin-left: 1em; /* Add spacing to the left of the image */
}
.image-caption-container {
display: inline-flex; /* Keep image and caption together */
flex-direction: column;
max-width: 30%; /* Same as the image max-width */
text-align: left; /* Center-align the caption */
margin: 0.5em; /* Space around the container */
}
.image-caption-container img {
width: 100%; /* Ensure the image fits the container */
height: auto; /* Maintain aspect ratio */
}
.image-caption {
font-size: 0.9em; /* Slightly smaller text for captions */
color: var(--accent); /* Use a subtle color for the caption */
margin-top: 0.5em; /* Space between image and caption */
text-align: left;
}
.clear {
clear: both;
}
p {
overflow: hidden; /* Ensures proper wrapping around floated images */
/* display: flex; */
/* flex-wrap: wrap; */
/* align-items: flex start; */
}