From c6f7cb2cd7c584dc4aa3b94869a1abc082430890 Mon Sep 17 00:00:00 2001 From: Yasuaki Uechi Date: Thu, 14 Mar 2019 23:23:12 +0900 Subject: [PATCH] update theme --- _includes/header.html | 10 +++--- _pages/index.html | 66 ++++++++++++++++++++++--------------- _pages/{author.md => me.md} | 4 +-- _sass/post.scss | 17 +++++----- css/index.scss | 57 +++++++++++++++++++++----------- images/logo.svg | 9 +++++ 6 files changed, 101 insertions(+), 62 deletions(-) rename _pages/{author.md => me.md} (96%) create mode 100644 images/logo.svg diff --git a/_includes/header.html b/_includes/header.html index 15ffb69..1efea6c 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,18 +1,20 @@
- + diff --git a/_pages/index.html b/_pages/index.html index f98fddb..aab01c0 100644 --- a/_pages/index.html +++ b/_pages/index.html @@ -1,6 +1,6 @@ --- -permalink: "/" -layout: +permalink: '/' +layout: --- @@ -8,35 +8,47 @@ layout: {% include head.html %} -
-

- -
+
+

+ +

+ +
{% for post in site.posts %} -
{% include footer.html %} - \ No newline at end of file + diff --git a/_pages/author.md b/_pages/me.md similarity index 96% rename from _pages/author.md rename to _pages/me.md index b3d4fc3..3ae6dbc 100644 --- a/_pages/author.md +++ b/_pages/me.md @@ -1,6 +1,6 @@ --- -title: Author -permalink: "/author" +title: Me +permalink: '/me' layout: post --- diff --git a/_sass/post.scss b/_sass/post.scss index bf95e18..7f215b1 100644 --- a/_sass/post.scss +++ b/_sass/post.scss @@ -1,10 +1,10 @@ .article-list__item { - margin: 0 0 40px; + margin: 0 0 60px; } .article-list__item__title { margin: 0 0 2px; - font-size: 33px; + font-size: 40px; } .article-list__item__pubdate { @@ -63,8 +63,7 @@ a.article-list__item__button { } .article__metadata { - text-align: center; - margin: 80px 0 70px; + margin: 40px 0 40px; @media screen and (max-width: $break-small) { margin: 25px 0 25px; @@ -73,7 +72,7 @@ a.article-list__item__button { } .article__title { - font-size: 70px; + font-size: 80px; letter-spacing: -0.5px; @media screen and (max-width: $break-small) { @@ -84,7 +83,7 @@ a.article-list__item__button { .article__pubdate { color: #989898; - font-size: 12pt; + font-size: 14px; font-weight: normal; font-family: sans-serif; margin-bottom: 20px; @@ -103,7 +102,7 @@ a.article-list__item__button { font-size: 20px; font-weight: normal; line-height: 1.666em; - margin: 15px 0; + margin: 35px 0; @media screen and (max-width: $break-small) { font-size: 20px; @@ -124,8 +123,8 @@ a.article-list__item__button { } h1 { - margin: 55px 0 15px; - font-size: 2.2em; + margin: 70px 0 0px; + font-size: 2.5em; @media screen and (max-width: $break-small) { margin: 30px 0 15px; diff --git a/css/index.scss b/css/index.scss index f2739ff..1dc0410 100644 --- a/css/index.scss +++ b/css/index.scss @@ -1,20 +1,23 @@ --- --- -@import url('https://fonts.googleapis.com/css?family=PT+Serif:400,700'); +@import url('https://fonts.googleapis.com/css?family=PT+Sans:400,700'); + $break-small: 500px; $break-large: 840px; + body { width: 900px; margin: 0 auto; padding: 0 20px; - font-family: 'PT Serif', 'ヒラギノ明朝 ProN', 'Hiragino Mincho ProN', serif; + font-family: 'PT Sans', 'Hiragino Sans', 'Hiragino Mincho ProN', serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: 'kern', 'palt', 'pwid'; -webkit-font-feature-settings: 'kern', 'palt', 'pwid'; -moz-font-feature-settings: 'kern', 'palt', 'pwid'; -moz-font-feature-settings: 'kern=1', 'palt', 'pwid'; + @media screen and (max-width: $break-large) { width: auto; margin: 0; @@ -69,55 +72,69 @@ hr { border: 0; margin: 40px 0; } + .header { display: flex; flex-wrap: wrap; - justify-content: space-between; + // justify-content: space-between; align-items: center; - padding: 5px 0; + margin-top: 50px; + padding: 15px 0; // border-bottom: 1px solid #efefef; + @media screen and (max-width: $break-small) { justify-content: center; + flex-direction: column; } + .logo { - font-size: 24px; - font-weight: bold; margin: 10px 0 10px; } + .menu { list-style: none; + margin-left: 40px; padding: 8px 0; display: flex; flex-flow: row wrap; + text-transform: uppercase; + font-weight: bold; + .menu__item:not(:last-child) { - margin-right: 20px; + margin-right: 30px; + + @media screen and (max-width: $break-small) { + margin-right: 20px; + } } + @media screen and (max-width: $break-small) { padding: 0; margin: 5px 0; } } } + .metro { - text-align: center; - padding: 80px 0 40px; - .logo { - font-size: 60px; - } + // text-align: center; + display: flex; + flex-direction: column; + margin: 75px 0 100px; + .menu { + margin: 15px 0 0 0; + padding: 0; + text-transform: uppercase; + font-size: 16px; + font-weight: bold; list-style: none; - padding: 8px 0; - display: flex; - flex-flow: row wrap; - justify-content: center; - margin-top: 20px; - font-size: 20px; .menu__item:not(:last-child) { - margin-right: 20px; + margin-bottom: 12px; } } + @media screen and (max-width: $break-small) { - padding: 50px 0 40px; + margin: 40px 0 40px; .menu { font-size: 15px; } diff --git a/images/logo.svg b/images/logo.svg new file mode 100644 index 0000000..f2d3a84 --- /dev/null +++ b/images/logo.svg @@ -0,0 +1,9 @@ + + + + logo + Created with Sketch. + + \ No newline at end of file