From d51ed7c886d799c17b3ef1574b2f7118ea5e3388 Mon Sep 17 00:00:00 2001 From: stefanbc Date: Fri, 29 Mar 2019 22:32:07 +0200 Subject: [PATCH] Visual improvements --- assets/css/index.css | 2 +- assets/scss/_layout.scss | 25 +++++++++++++++++++++++++ page-projects.hbs | 2 +- page-speaking.hbs | 2 +- partials/sidebar.hbs | 2 ++ 5 files changed, 30 insertions(+), 3 deletions(-) diff --git a/assets/css/index.css b/assets/css/index.css index 7c27322..29a3994 100644 --- a/assets/css/index.css +++ b/assets/css/index.css @@ -1 +1 @@ -@charset "UTF-8";a{transition:all .5s ease}html{scroll-behavior:smooth}body{font-family:Georgia,serif;font-weight:400;font-size:1.6em;letter-spacing:.01rem;line-height:1.6}::selection{background:#666}a{text-decoration:none;color:#484848;cursor:pointer}a:hover{color:#a82315}h1,h2,h3,h4,h5,h6{margin:0 0 2rem;color:#222;font-weight:700;font-family:Playfair Display,Times New Roman,serif;text-transform:capitalize}h1{font-size:4rem;line-height:1.2}h1,h2{letter-spacing:-.1rem}h2{font-size:3.6rem;line-height:1.25}h3{font-size:3rem;line-height:1.3}h3,h4{letter-spacing:-.08rem}h4{font-size:2.8rem;line-height:1.35}h5{font-size:2.4rem;letter-spacing:-.05rem;line-height:1.5}h6{font-size:2rem;letter-spacing:0;line-height:1.4}input[type=email]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=url]:focus,select:focus,textarea:focus{border:1px solid #e74c3c}ul{list-style-type:none;margin:0;padding:0}figcaption{text-align:center;font-style:italic}b,strong{font-weight:700}dt{margin-bottom:1.4rem}blockquote{position:relative;margin:0 0 2.5rem;padding:0 0 1rem;color:#666;font-family:Playfair Display,Times New Roman,serif;font-style:italic}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-underline{text-decoration:underline}.container{max-width:112rem}header.site-header{margin:6rem 0 7rem}header .title{margin:0}header .logo-link img{max-height:60px}nav.header-navigation{border-top:1px solid #ddd;border-bottom:1px solid #ddd;margin:0 0 10rem}nav.header-navigation ul{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center}nav.header-navigation ul li{margin-bottom:0}nav.header-navigation ul li.nav-current a{color:#e74c3c}nav.header-navigation ul li a{text-transform:uppercase;font-size:11px;font-weight:400;letter-spacing:.2rem;margin:0 20px;line-height:6.5rem}main article .entry-author,main article .entry-tags{font-size:1.3rem;font-style:italic}main article .entry-author{position:relative}main article .entry-author:after{content:"";position:absolute;bottom:-.6rem;left:0;width:2rem;height:.2rem;background-color:#222}main article .entry-date,main article .entry-reading-time{font-size:1.3rem;font-style:italic}main .posts article{margin-bottom:10rem}main .posts article.featured-post{border-bottom:1px solid #eee;padding-bottom:5rem}main .posts article .continue-reading{text-decoration:underline}main .posts article header{margin:0}main .post-wrapper .post-media,main .post-wrapper header{margin-bottom:2rem}main .post-wrapper .post-media>img{object-fit:cover;max-width:100%}main .post-wrapper .post-meta{margin-bottom:3rem}main .post-wrapper .post-full-content a{text-decoration:underline}main .post-wrapper .post-full-content img{display:block;margin:0 auto;max-width:100%}main .post-wrapper .post-full-content ul{list-style-type:square}main .post-wrapper .post-full-content ol,main .post-wrapper .post-full-content ul{list-style-position:initial;margin-left:30px;padding-left:5px;margin-bottom:2.5rem}main .post-wrapper .post-full-content code{overflow:auto}main .post-wrapper .post-extra{margin-top:3rem}main .post-wrapper .post-extra .post-tags{color:#666}main .post-wrapper .post-extra .post-share{font-size:1.2em}main .post-wrapper .post-extra .post-share a{color:#666}main .post-wrapper .post-extra .post-share a:hover{color:#e74c3c}main .post-wrapper .author-social{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr;margin-top:3rem}main .post-wrapper .author-social a{font-size:1.7em}main .post-wrapper aside.read-next{margin-top:3rem}main .post-wrapper .sidebar .widget{margin-bottom:4rem}main .post-wrapper .sidebar .widget li{padding-bottom:1rem;border-bottom:1px dotted #666}main .author-meta .author-image{width:14rem;height:14rem;border-radius:3px}main .author-meta .author-name small{font-size:60%}main .author-meta .author-info-icon{width:2rem;display:inline-block}main .post-spacer{display:block;width:100%;height:1rem;z-index:99;border-bottom:1px solid #ddd}main .post-spacer+.post-full-content{margin-top:20px}main .blog-navigation .page-number{margin:0 2rem}.kg-width-full .kg-image,.kg-width-wide .kg-image{max-width:100%}.kg-gallery-card{margin:0}.kg-gallery-card .kg-gallery-container{display:flex;flex-direction:column;width:100%}.kg-gallery-card .kg-gallery-container .kg-gallery-row{display:flex;flex-direction:row;justify-content:center}.kg-gallery-card .kg-gallery-container .kg-gallery-row .kg-gallery-image{flex:1 1 0%;margin:5px}.kg-gallery-card .kg-gallery-container .kg-gallery-row .kg-gallery-image img{display:block;margin:0;width:100%;height:100%}footer{margin:3rem 0 6rem;padding-top:3rem;border-top:1px solid #ddd;font-style:italic}footer form,footer h4{display:inline-block;vertical-align:middle}footer form{vertical-align:middle;margin-left:15px}footer form *{margin:0}footer form .form-group{display:inline-block}footer .copyright{font-size:.8em}@media (max-width:480px){.site-header{margin:10rem 0 6rem}main .post-wrapper .author-meta,main .post-wrapper .post-extra .post-share{text-align:center}main .author-meta .author-image{margin-right:0}footer .subscribe,footer .subscribe .text-right{text-align:center}footer form{margin-left:0}footer form .form-group{margin-bottom:10px}}@media screen and (min-width:480px){blockquote{padding-left:6rem}blockquote:before{content:"“";display:block;position:absolute;top:0;left:0;color:#222;font-family:Playfair Display,Times New Roman,serif;font-size:6rem;font-style:normal;font-weight:700;line-height:.8}}@media screen and (min-width:800px){blockquote{padding-right:2rem;padding-left:8.6rem}blockquote:before{font-size:8rem}}@media (min-width:40rem){h1{font-size:5rem}h2{font-size:4.4rem}h3{font-size:3.6rem}h4{font-size:3.2rem}h5{font-size:2.6rem}h6{font-size:2rem}} \ No newline at end of file +@charset "UTF-8";a{transition:all .5s ease}html{scroll-behavior:smooth}body{font-family:Georgia,serif;font-weight:400;font-size:1.6em;letter-spacing:.01rem;line-height:1.6}::selection{background:#666}a{text-decoration:none;color:#484848;cursor:pointer}a:hover{color:#a82315}h1,h2,h3,h4,h5,h6{margin:0 0 2rem;color:#222;font-weight:700;font-family:Playfair Display,Times New Roman,serif;text-transform:capitalize}h1{font-size:4rem;line-height:1.2}h1,h2{letter-spacing:-.1rem}h2{font-size:3.6rem;line-height:1.25}h3{font-size:3rem;line-height:1.3}h3,h4{letter-spacing:-.08rem}h4{font-size:2.8rem;line-height:1.35}h5{font-size:2.4rem;letter-spacing:-.05rem;line-height:1.5}h6{font-size:2rem;letter-spacing:0;line-height:1.4}input[type=email]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=url]:focus,select:focus,textarea:focus{border:1px solid #e74c3c}ul{list-style-type:none;margin:0;padding:0}figcaption{text-align:center;font-style:italic}b,strong{font-weight:700}dt{margin-bottom:1.4rem}blockquote{position:relative;margin:0 0 2.5rem;padding:0 0 1rem;color:#666;font-family:Playfair Display,Times New Roman,serif;font-style:italic}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-underline{text-decoration:underline}.container{max-width:112rem}header.site-header{margin:6rem 0 7rem}header .title{margin:0}header .logo-link img{max-height:60px}nav.header-navigation{border-top:1px solid #ddd;border-bottom:1px solid #ddd;margin:0 0 10rem}nav.header-navigation ul{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center}nav.header-navigation ul li{margin-bottom:0}nav.header-navigation ul li.nav-current a{color:#e74c3c}nav.header-navigation ul li a{text-transform:uppercase;font-size:11px;font-weight:400;letter-spacing:.2rem;margin:0 20px;line-height:6.5rem}main article .entry-author,main article .entry-tags{font-size:1.3rem;font-style:italic}main article .entry-author{position:relative}main article .entry-author:after{content:"";position:absolute;bottom:-.6rem;left:0;width:2rem;height:.2rem;background-color:#222}main article .entry-date,main article .entry-reading-time{font-size:1.3rem;font-style:italic}main .posts article{margin-bottom:10rem}main .posts article.featured-post{border-bottom:1px solid #eee;padding-bottom:5rem}main .posts article .continue-reading{text-decoration:underline}main .posts article header{margin:0}main .post-wrapper .post-media,main .post-wrapper header{margin-bottom:2rem}main .post-wrapper .post-media>img{object-fit:cover;max-width:100%}main .post-wrapper .post-meta{margin-bottom:3rem}main .post-wrapper .post-full-content a{text-decoration:underline}main .post-wrapper .post-full-content img{display:block;margin:0 auto;max-width:100%}main .post-wrapper .post-full-content ul{list-style-type:square}main .post-wrapper .post-full-content ol,main .post-wrapper .post-full-content ul{list-style-position:initial;margin-left:30px;padding-left:5px;margin-bottom:2.5rem}main .post-wrapper .post-full-content code{overflow:auto}main .post-wrapper .post-extra{margin-top:3rem}main .post-wrapper .post-extra .post-tags{color:#666}main .post-wrapper .post-extra .post-share{font-size:1.2em}main .post-wrapper .post-extra .post-share a{color:#666}main .post-wrapper .post-extra .post-share a:hover{color:#e74c3c}main .post-wrapper .author-social{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr;margin-top:3rem}main .post-wrapper .author-social a{font-size:1.7em}main .post-wrapper aside.read-next{margin-top:3rem}main .post-wrapper .sidebar .widget{margin-bottom:4rem}main .post-wrapper .sidebar .widget li{padding-bottom:1rem;border-bottom:1px dotted #666}main .post-wrapper .table-wrapper table tr td:first-child{width:25%}main .post-wrapper .table-wrapper.events-list table tr td:first-child{width:70%}main .post-wrapper .table-wrapper.events-list table tr td:nth-child(2){width:10%}main .author-meta .author-image{width:14rem;height:14rem;border-radius:3px}main .author-meta .author-name small{font-size:60%}main .author-meta .author-info-icon{width:2rem;display:inline-block}main .post-spacer{display:block;width:100%;height:1rem;z-index:99;border-bottom:1px solid #ddd}main .post-spacer+.post-full-content{margin-top:20px}main .blog-navigation .page-number{margin:0 2rem}.kg-width-full .kg-image,.kg-width-wide .kg-image{max-width:100%}.kg-gallery-card{margin:0}.kg-gallery-card .kg-gallery-container{display:flex;flex-direction:column;width:100%}.kg-gallery-card .kg-gallery-container .kg-gallery-row{display:flex;flex-direction:row;justify-content:center}.kg-gallery-card .kg-gallery-container .kg-gallery-row .kg-gallery-image{flex:1 1 0%;margin:5px}.kg-gallery-card .kg-gallery-container .kg-gallery-row .kg-gallery-image img{display:block;margin:0;width:100%;height:100%}footer{margin:3rem 0 6rem;padding-top:3rem;border-top:1px solid #ddd;font-style:italic}footer form,footer h4{font-style:normal;display:inline-block;vertical-align:middle}footer form{vertical-align:middle;margin-left:15px}footer form *{margin:0}footer form .form-group{display:inline-block}footer .copyright{font-size:.8em}@media (max-width:480px){.site-header{margin:10rem 0 6rem}main .post-wrapper .author-meta,main .post-wrapper .post-extra .post-share{text-align:center}main .author-meta .author-image{margin-right:0}footer .subscribe,footer .subscribe .text-right{text-align:center}footer form{margin-left:0}footer form .form-group{margin-bottom:10px}}@media screen and (min-width:480px){blockquote{padding-left:6rem}blockquote:before{content:"“";display:block;position:absolute;top:0;left:0;color:#222;font-family:Playfair Display,Times New Roman,serif;font-size:6rem;font-style:normal;font-weight:700;line-height:.8}}@media screen and (min-width:800px){blockquote{padding-right:2rem;padding-left:8.6rem}blockquote:before{font-size:8rem}}@media (min-width:40rem){h1{font-size:5rem}h2{font-size:4.4rem}h3{font-size:3.6rem}h4{font-size:3.2rem}h5{font-size:2.6rem}h6{font-size:2rem}} \ No newline at end of file diff --git a/assets/scss/_layout.scss b/assets/scss/_layout.scss index 919261c..7aeadc4 100644 --- a/assets/scss/_layout.scss +++ b/assets/scss/_layout.scss @@ -192,6 +192,30 @@ main { } } } + + .table-wrapper { + table { + tr { + td:first-child { + width: 25%; + } + } + } + + &.events-list { + table { + tr { + td:first-child { + width: 70%; + } + + td:nth-child(2) { + width: 10%; + } + } + } + } + } } .author-meta { @@ -275,6 +299,7 @@ footer { h4, form { + font-style: normal; display: inline-block; vertical-align: middle; } diff --git a/page-projects.hbs b/page-projects.hbs index 668c1c5..c348668 100644 --- a/page-projects.hbs +++ b/page-projects.hbs @@ -13,7 +13,7 @@
-
+
diff --git a/page-speaking.hbs b/page-speaking.hbs index 351ae4c..79d6e05 100644 --- a/page-speaking.hbs +++ b/page-speaking.hbs @@ -13,7 +13,7 @@
-
+
diff --git a/partials/sidebar.hbs b/partials/sidebar.hbs index 21d99bf..d397872 100644 --- a/partials/sidebar.hbs +++ b/partials/sidebar.hbs @@ -5,6 +5,7 @@ +{{#post}}
Recent posts
@@ -19,6 +20,7 @@ {{/get}}
+{{/post}} {{#if tags}}