From 8fb9acfe66f585df4a2e664943003081ebe477ab Mon Sep 17 00:00:00 2001 From: kuwamai Date: Wed, 15 Apr 2020 19:15:51 +0900 Subject: [PATCH] Add: a header image --- _layouts/default.html | 7 +++++++ _sass/main.scss | 22 ++++++++++++++++++---- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index a799cf4..518a77f 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -7,7 +7,14 @@ + + +
+ icon +
+
+
{{ content }}
diff --git a/_sass/main.scss b/_sass/main.scss index 9b050af..8ab3e32 100644 --- a/_sass/main.scss +++ b/_sass/main.scss @@ -5,6 +5,20 @@ body{ color: white; } +.header{ + text-align:center; +} + +.header img{ + margin: auto; + width: 25%; + max-width: 150px; +} + +.header p{ + margin: auto; +} + h2{ margin-block-start: 0.83em; margin-block-end: 0.0em; @@ -14,10 +28,6 @@ a{ color: lightskyblue; } -img{ - width: 100%; -} - .current{ color: green; } @@ -28,6 +38,10 @@ img{ max-width: 1012px; } +.container img{ + width: 100%; +} + .container p{ margin-left: 10px; margin-block-start: 0px;