Skip to content

Commit e9e2c4d

Browse files
committed
improve: Reduce spacers & h1 font size
1 parent a2c5d20 commit e9e2c4d

File tree

6 files changed

+31
-51
lines changed

6 files changed

+31
-51
lines changed

assets/styles/_footer.scss

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.site-footer {
2-
margin: $spacer-largest 0;
2+
margin-top: $spacer-normal;
33
border-top: $spacer-1 solid;
44

55
@include themed {
@@ -15,6 +15,7 @@
1515
.themeinfo,
1616
.buildinfo {
1717
font-size: $font-size-smaller;
18+
margin: $spacer-small 0;
1819
}
1920

2021
.copyright {
@@ -29,15 +30,8 @@
2930
}
3031

3132
.navbar {
32-
margin: 0;
33-
3433
&__list {
35-
display: flex;
36-
flex-flow: row wrap;
37-
justify-content: space-between;
38-
3934
> li {
40-
padding: 0;
4135
border: none;
4236
}
4337
}

assets/styles/_header.scss

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
.site-header {
2-
margin: $spacer-largest 0;
3-
border-bottom: $spacer-1 solid;
4-
5-
@include themed {
6-
border-color: t($accent);
7-
}
8-
92
@media print {
103
display: none;
114
}
@@ -18,6 +11,15 @@
1811
margin: $spacer-normal 0;
1912
}
2013

14+
.breadcrumbs {
15+
width: fit-content;
16+
border-bottom: $spacer-1 solid;
17+
18+
@include themed {
19+
border-color: t($accent);
20+
}
21+
}
22+
2123
.gitinfo {
2224
@include themed {
2325
color: t($text-duller);
@@ -60,10 +62,9 @@
6062
flex-flow: row wrap;
6163
align-items: flex-start;
6264
justify-content: space-between;
63-
margin-bottom: $spacer-largest;
64-
font-size: larger;
6565

6666
&__first {
67+
font-weight: 700;
6768
display: block;
6869
}
6970

@@ -88,7 +89,7 @@
8889

8990
> li {
9091
flex: 0 0 auto;
91-
padding: $spacer-small $spacer-normal;
92+
padding: $spacer-smallest $spacer-small;
9293
border: $spacer-2 dotted;
9394
margin-right: -#{$spacer-2};
9495

assets/styles/_main.scss

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ h3 {
7474
}
7575

7676
h1 {
77-
font-size: $font-size * 2.25;
77+
font-size: $font-size * 2;
7878
border-bottom: $spacer-2 dotted;
7979

8080
@media print, ($phone) {
@@ -100,7 +100,7 @@ h5,
100100
h6 {
101101
font-family: $font-family-title;
102102
font-weight: bold;
103-
margin: $spacer-large 0;
103+
margin: $spacer-normal 0;
104104
padding: $spacer-smallest 0;
105105
width: fit-content;
106106

@@ -181,7 +181,7 @@ img {
181181
figure {
182182
display: table;
183183
max-width: 100%;
184-
margin: $spacer-large 0;
184+
margin: $spacer-normal 0;
185185

186186
&.left {
187187
margin-right: auto;
@@ -262,18 +262,14 @@ table {
262262
table-layout: auto;
263263
border-collapse: collapse;
264264
width: 100%;
265-
margin: $spacer-largest 0;
266-
267-
@media print {
268-
margin: $spacer-normal 0;
269-
}
265+
margin: $spacer-normal 0;
270266
}
271267

272268
table,
273269
th,
274270
td {
275271
border: $spacer-1 dashed;
276-
padding: $spacer-small;
272+
padding: $spacer-smallest;
277273

278274
@include themed {
279275
border-color: t($accent);
@@ -366,7 +362,7 @@ hr {
366362
.container {
367363
display: flex;
368364
flex-direction: column;
369-
padding: 0 $spacer-large;
365+
padding: $spacer-small;
370366
max-width: $container-max-width;
371367
min-height: 100vh;
372368

assets/styles/_menu.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
}
2222

2323
@mixin header-menu-trigger {
24-
padding: $spacer-small $spacer-normal;
24+
font-weight: 700;
25+
padding: $spacer-smallest $spacer-small;
2526
height: 100%;
2627
margin-bottom: 0 !important;
2728
position: relative;
@@ -62,7 +63,7 @@
6263

6364
> li {
6465
flex: 0 0 auto;
65-
padding: $spacer-small $spacer-normal;
66+
padding: $spacer-smallest $spacer-small;
6667
border: $spacer-2 dotted;
6768

6869
@include themed {

assets/styles/_post.scss

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,31 @@
11
.post {
22
width: 100%;
33
text-align: left;
4-
margin: $spacer-largest 0;
4+
margin: $spacer-normal 0;
55

66
@media print {
77
margin: 0 0 $spacer-large 0;
88
}
99

1010
&-entries {
11-
margin: $spacer-large 0 $spacer-large $spacer-large;
12-
1311
.item {
14-
padding: $spacer-smallest;
15-
margin: $spacer-small 0;
12+
margin-bottom: $spacer-normal;
1613

1714
p {
18-
margin: $spacer-small 0;
15+
margin: 0;
1916
}
2017

2118
h2,
2219
h3 {
2320
border-style: none;
24-
margin: $spacer-small 0;
21+
margin: 0;
22+
padding: 0;
2523
}
2624
}
2725
}
2826

2927
&-header {
30-
margin: $spacer-largest 0;
28+
margin: $spacer-normal 0;
3129

3230
@media print {
3331
margin: 0;
@@ -97,21 +95,13 @@
9795
}
9896

9997
&-toc {
100-
margin: $spacer-largest 0;
98+
margin: $spacer-normal 0;
10199

102100
@media print {
103101
display: none;
104102
}
105103
}
106104

107-
&-content {
108-
margin: $spacer-largest 0;
109-
110-
@media print {
111-
margin: 0;
112-
}
113-
}
114-
115105
&-cover {
116106
border: $spacer-large solid $accent;
117107
background: transparent;
@@ -125,16 +115,14 @@
125115
}
126116

127117
&-footer {
128-
margin: $spacer-largest 0;
129-
130118
@media print {
131119
display: none;
132120
}
133121
}
134122

135123
&-support {
136124
font-style: italic;
137-
margin: $spacer-largest 0;
125+
margin: $spacer-normal 0;
138126
border-top: $spacer-1 solid;
139127

140128
@include themed {

assets/styles/_syntax.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* syntax highlighted code layout */
22
div.highlight-wrapper {
3-
margin: $spacer-large 0;
3+
margin: $spacer-normal 0;
44
border-radius: $spacer-2;
55
border: $spacer-1 solid;
66

0 commit comments

Comments
 (0)