Skip to content

Commit f0e1848

Browse files
committed
Simplify style
1 parent ecfebdf commit f0e1848

2 files changed

Lines changed: 27 additions & 25 deletions

File tree

_layouts/base.html

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,17 @@
2626
html, body { margin: 0; padding: 0; }
2727
body {
2828
overflow-y: scroll;
29-
background: #e9ecef;
3029
color: #1c1c1a;
3130
font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
3231
font-size: 15px;
33-
line-height: 1.55;
34-
letter-spacing: -0.01em;
3532
}
3633

3734
.wrapper {
38-
max-width: 68ch;
39-
margin: 24px auto;
40-
background: #fafaf8;
35+
max-width: 67ch;
36+
margin: 0 auto;
4137
padding: 36px 40px;
42-
border: 1px solid #ececea;
4338
}
39+
4440
@media (max-width: 600px) {
4541
.wrapper { margin: 0; padding: 18px 16px; border-left: 0; border-right: 0; }
4642
}
@@ -52,34 +48,37 @@
5248

5349
table {
5450
width: 100%;
55-
margin: 1.6em 0;
5651
border-collapse: collapse;
57-
font-size: 1.45em;
58-
line-height: 1.35;
5952
}
6053

6154
th,
6255
td {
63-
padding: .26em 1.4em .26em 0;
56+
padding: .1em .5em;
57+
border-top: 1px solid black;
6458
border: 0;
6559
text-align: left;
66-
vertical-align: top;
67-
}
68-
69-
th {
70-
font-weight: 700;
7160
}
7261

73-
td:last-child,
74-
th:last-child {
75-
padding-right: 0;
62+
tr {
63+
border-top: 1px solid black;
7664
}
7765

7866
@media (max-width: 600px) {
7967
table {
8068
display: block;
8169
overflow-x: auto;
82-
font-size: 1.18em;
70+
max-width: 100%;
71+
color: red;
72+
}
73+
74+
th,
75+
td {
76+
min-width: 9rem;
77+
}
78+
79+
th:last-child,
80+
td:last-child {
81+
min-width: 18rem;
8382
}
8483
}
8584

@@ -92,11 +91,10 @@
9291
}
9392
pre {
9493
overflow-x: auto;
95-
background: #f1f1ee;
96-
border: 1px solid #e6e6e2;
94+
border: 1px dashed #e6e6e2;
9795
padding: 10px 12px;
9896
font-size: .88em;
99-
line-height: 1.5;
97+
line-height: 1;
10098
}
10199
pre code { background: transparent; padding: 0; }
102100
main :is(h2,h3,h4,h5,h6)[id] > a { color: inherit; text-decoration: none; }

pages/gallery.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
---
77

88
<style>
9-
td { vertical-align: top; width: 25%; }
9+
table, tr, th, td { all: revert; }
10+
td {
11+
vertical-align: top;
12+
width: 25%;
13+
}
1014
td img { width: 100%; height: auto; }
1115
</style>
1216

@@ -41,4 +45,4 @@ <h2>{{ cat }}</h2>
4145
</table>
4246

4347
{% endif %}
44-
{% endfor %}
48+
{% endfor %}

0 commit comments

Comments
 (0)