Skip to content

Commit 4fb9b06

Browse files
committed
Smaller logo on sm, swapped padding for margin on headings
1 parent 4304472 commit 4fb9b06

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

_includes/logo.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<h1 class="noBorder noMargin">
2-
<a href="/" class="site-title">
3-
<picture class="m10sm">
2+
<a href="/" class="site-title m10sm">
3+
<picture>
44
<source srcset="/assets/images/wattle-logo-dark.svg" media="(prefers-color-scheme: dark)">
5-
<img src="/assets/images/wattle-logo.svg" alt="WattleScript" style="height: 3.5em;">
5+
<img src="/assets/images/wattle-logo.svg" alt="WattleScript" class="logoImg">
66
</picture>
77
</a>
88
</h1>

assets/css/main.css

+11-3
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ pre.highlight code {
196196
margin: 0;
197197
}
198198

199+
.logoImg {
200+
height: 3.5em;
201+
}
202+
199203
@media screen and (min-width: 980px) {
200204
.headerbottom {
201205
position: absolute;
@@ -211,6 +215,10 @@ pre.highlight code {
211215
}
212216

213217
@media screen and (max-width: 980px) {
218+
.logoImg {
219+
height: 2.5em;
220+
}
221+
214222
nav ul li:not(.renderOnSm) {
215223
float: none;
216224
display: none;
@@ -259,16 +267,16 @@ pre.highlight code {
259267
}
260268

261269
#contentwrap p, #contentwrap h1, #contentwrap h2, #contentwrap h3, #contentwrap h4 {
262-
padding-left: 6px;
263-
padding-right: 6px;
270+
margin-left: 8px;
271+
margin-right: 8px;
264272
}
265273

266274
.github-icon {
267275
-webkit-mask-image: none;
268276
}
269277

270278
div.highlight {
271-
padding: 1px 6px 1px 6px;
279+
padding: 1px 8px 1px 8px;
272280
}
273281

274282
#contentwrap h3 {

0 commit comments

Comments
 (0)