-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
169 lines (149 loc) · 2.27 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
/* TODO: reorder and comment */
body {
margin: auto;
max-width: 700px;
font-family: sans-serif;
font-size: 16px;
}
p {
line-height: 1.5;
}
img, video {
/* limit size */
max-width: 100%;
max-height: 500px;
/* center */
display: block;
margin-left: auto;
margin-right: auto;
padding-bottom: 10px;
}
div.grid {
display: flex;
flex-basis: 1 1 auto;
gap: 10px;
}
/* photo gallery */
.gallery {
list-style: none;
display: grid;
/* grid */
gap: 5px;
}
.gallery > div {
display: flex;
}
.gallery img {
width: 100%;
height: 100%;
}
/* hyperlinks */
a {
text-decoration:none
}
a:hover {
text-decoration:underline
}
h1 {
font-size: 20px;
font-weight: bold;
}
h2 {
font-size: 16px;
font-weight: bold;
}
h3, h4, h5, h6 {
font-size: 16px;
font-style: italic;
font-weight: normal;
margin-top: 16px;
margin-bottom: 16px;
}
time {
font-size: 0.8rem;
}
/* header style */
header > h1 {
margin-top: 0;
}
header a, .posts a {
color: black;
}
header ul, .posts {
list-style: none;
padding-left: 0;
line-height: 1.5rem;
}
.posts > li {
display: grid;
grid-column-gap: 8px;
grid-row-gap: 8px;
grid-template-columns: 1fr min-content;
}
.posts time {
font-weight: lighter;
font-family: monospace;
}
.posts a {
overflow: hidden;
}
@media screen and (min-width:1024px) {
header {
position: absolute;
right: 50%;
margin-right: 340px !important;
padding-left: 2rem;
padding-right: 2rem;
}
body {
text-align: justify;
}
.gallery {
grid-template-columns: repeat(3,1fr);
}
}
@media screen and (max-width:1024px) and (min-width:450px) {
header {
border-bottom: thin dotted grey;
}
body {
padding: 1rem;
}
.gallery {
grid-template-columns: repeat(2,1fr);
}
}
@media screen and (max-width:450px) {
header {
border-bottom: thin dotted grey;
}
body {
padding: 1rem;
}
.gallery {
grid-template-columns: repeat(1,1fr);
}
.posts > li {
grid-template-columns: 1fr;
grid-row-gap: 0px;
}
}
/* give code blocks scroll bars (when necessary) */
pre {
overflow: auto;
padding: 1rem;
font-size: 14px;
}
/* make footnote number and text appear on same line */
.footnote-definition > p {
display: inline;
}
/* table styles */
table, th, td {
border-collapse: collapse;
}
th, td {
border-bottom: thin solid grey;
padding: 3px;
padding-right: 2rem;
}