| assets/css/style.css | ●●●●● patch | view | raw | blame | history | |
| assets/scss/main.scss | ●●●●● patch | view | raw | blame | history | |
| assets/scss/partials/components/_aside.scss | ●●●●● patch | view | raw | blame | history | |
| assets/scss/partials/components/_footer.scss | ●●●●● patch | view | raw | blame | history | |
| assets/scss/partials/components/_sidebar.scss | ●●●●● patch | view | raw | blame | history | |
| assets/scss/partials/vendors/contactform.scss | ●●●●● patch | view | raw | blame | history | |
| assets/scss/partials/vendors/mediumzoom.scss | ●●●●● patch | view | raw | blame | history | |
| layouts/_default/baseof.html | ●●●●● patch | view | raw | blame | history | |
| layouts/partials/footer.html | ●●●●● patch | view | raw | blame | history | |
| layouts/partials/sidebar.html | ●●●●● patch | view | raw | blame | history |
assets/css/style.css
@@ -274,10 +274,11 @@ display: initial; padding-right: 40px; } */ aside { width: var(--sidebar-width); } */ /* Language Switch @@ -357,6 +358,7 @@ display: block; } /* .sidebar { -webkit-background-size: cover; background-size: cover; @@ -427,7 +429,7 @@ .sidebar .social-links a:hover { color: #2660ab; } */ .post { background-color: var(--bg-color); margin: 30px; @@ -681,7 +683,7 @@ margin: 30px; border-bottom: 1px solid var(--border-color); } /* .footer { clear: both; text-align: center; @@ -714,6 +716,7 @@ padding: 4px; } */ /*for archive*/ .archive { width: 100%; @@ -1113,14 +1116,14 @@ position: fixed; width: var(--sidebar-width); } /* .sidebar__content { display: flex; flex-direction: column; justify-content: center; flex-grow: 1; } */ .navbar { display: flex; flex-direction: column; @@ -1386,49 +1389,6 @@ } } /* Medium zoom */ .medium-zoom-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; transition: opacity 300ms; will-change: opacity; background: var(--bg-color); } .medium-zoom--opened .medium-zoom-overlay { cursor: pointer; cursor: zoom-out; opacity: 1; } .medium-zoom-image { cursor: pointer; cursor: zoom-in; /* The `transition` is marked as "!important" for the animation to happen even though it's overriden by another inline `transition` style attribute. This is problematic with frameworks that generate inline styles on their images (e.g. Gatsby). See https://github.com/francoischalifour/medium-zoom/issues/110 */ transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) !important; z-index: 100; } .medium-zoom-image--hidden { visibility: hidden; } .medium-zoom-image--opened { position: relative; cursor: pointer; cursor: zoom-out; will-change: transform; } /* @media print { header { @@ -1451,73 +1411,4 @@ } */ } /* (CONTACT) FORM */ .contact-form { margin-top: 30px; } .form-style { width: 100%; } .form-style ul { padding: 0; margin: 0; list-style: none; } .form-style ul li { display: block; margin-bottom: 10px; min-height: 35px; } .form-style ul li .field-style { box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; font-size: 1.4rem; padding: 8px; outline: none; background-color: var(--bg-color); border: 1px solid var(--form-border-color); color: var(--body-color); font-family: inherit; } .form-style ul li .field-style:focus { box-shadow: 0 0 5px; border: 1px solid; } .form-style ul li .field-split { width: 49%; } .form-style ul li .field-full { width: 100%; } .form-style ul li input.align-left { float: left; } .form-style ul li input.align-right { float: right; } .form-style ul li textarea { background-color: var(--bg-color); border: 1px solid var(--form-border-color); color: var(--body-color); width: 100%; height: auto; } .form-style ul li input[type='button'], .form-style ul li input[type='submit'] { background-color: var(--bg-color); border: 1px solid var(--form-border-color); display: inline-block; cursor: pointer; color: var(--body-color); text-decoration: none; width: 100%; } .form-style ul li input[type='button']:hover, .form-style ul li input[type='submit']:hover { background-color: var(--bg-color); border: 1px solid var(--form-button-hover-border-color); } /* (CONTACT) FORM END */ assets/scss/main.scss
@@ -10,3 +10,8 @@ @import './partials/components/tag'; @import './partials/components/content'; @import './partials/components/wrapper'; @import './partials/components/aside'; @import './partials/components/sidebar'; @import './partials/components/footer'; @import './partials/vendors/mediumzoom'; @import './partials/vendors/contactform'; assets/scss/partials/components/_aside.scss
New file @@ -0,0 +1,3 @@ .aside { width: $sidebar-width; } assets/scss/partials/components/_footer.scss
New file @@ -0,0 +1,23 @@ .footer { clear: both; text-align: center; font-size: 1rem; margin: 0 auto; bottom: 0; width: 100%; padding-bottom: 20px; flex: 0; position: relative; &__list { list-style: none; padding: 0; display: flex; justify-content: center; } &__item:not(:first-of-type)::before { content: '\00B7'; padding: 4px; } } assets/scss/partials/components/_sidebar.scss
New file @@ -0,0 +1,70 @@ .sidebar { -webkit-background-size: cover; background-size: cover; background-color: var(--bg-color); height: 100%; left: 0; z-index: 4; border-right: 1px solid var(--border-color); &__list { list-style: none; padding: 0; font-size: 1.4rem; text-align: center; &-item { display: inline; padding: 0 4px; line-height: 0; i { margin-right: 3px; } li { display: inline; padding: 0 4px; line-height: 0; } } } &__title { top: 40%; text-align: center; &-description { font-size: 1.4rem; margin: 0 1em; } img { width: 127px; height: 127px; border-radius: 50%; } h3 { text-transform: uppercase; font-weight: bold; letter-spacing: 2px; line-height: 1; margin: 1em; } } @media screen and (min-width: 961px), print { &__content { display: flex; flex-direction: column; justify-content: center; flex-grow: 1; } } } assets/scss/partials/vendors/contactform.scss
New file @@ -0,0 +1,70 @@ /* (CONTACT) FORM */ .contact-form { margin-top: 30px; } .form-style { width: 100%; } .form-style ul { padding: 0; margin: 0; list-style: none; } .form-style ul li { display: block; margin-bottom: 10px; min-height: 35px; } .form-style ul li .field-style { box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; font-size: 1.4rem; padding: 8px; outline: none; background-color: $accent; border: 1px solid $primary-light; color: $body-color; font-family: inherit; } .form-style ul li .field-style:focus { box-shadow: 0 0 5px; border: 1px solid; } .form-style ul li .field-split { width: 49%; } .form-style ul li .field-full { width: 100%; } .form-style ul li input.align-left { float: left; } .form-style ul li input.align-right { float: right; } .form-style ul li textarea { background-color: $accent; border: 1px solid $primary-light; color: $body-color; width: 100%; height: auto; } .form-style ul li input[type='button'], .form-style ul li input[type='submit'] { background-color: $accent; border: 1px solid $primary-light; display: inline-block; cursor: pointer; color: $body-color; text-decoration: none; width: 100%; } .form-style ul li input[type='button']:hover, .form-style ul li input[type='submit']:hover { background-color: $accent; border: 1px solid $primary-light; } /* (CONTACT) FORM END */ assets/scss/partials/vendors/mediumzoom.scss
New file @@ -0,0 +1,35 @@ .medium-zoom-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; transition: opacity 300ms; will-change: opacity; background: $accent; } .medium-zoom--opened .medium-zoom-overlay { cursor: pointer; cursor: zoom-out; opacity: 1; } .medium-zoom-image { cursor: pointer; cursor: zoom-in; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) !important; z-index: 100; } .medium-zoom-image--hidden { visibility: hidden; } .medium-zoom-image--opened { position: relative; cursor: pointer; cursor: zoom-out; will-change: transform; } layouts/_default/baseof.html
@@ -9,7 +9,7 @@ <body class="body"> <header class="header">{{ partial "navbar.html" . }}</header> <div class="wrapper"> <aside> <aside class="aside"> {{- partial "sidebar.html" . -}} </aside> <main> layouts/partials/footer.html
@@ -1,5 +1,4 @@ <footer class="footer footer--{{ .footerClassModifier }}"> <div class="by_farbox"> <footer class="footer"> <ul class="footer__list"> <li class="footer__item"> © layouts/partials/sidebar.html
@@ -8,18 +8,16 @@ {{ end }}" > <div class="sidebar__content"> <div class="logo-title"> <div class="title"> <div class="sidebar__title"> <img src="{{ .Site.Params.profilePicture | relURL }}" alt="profile picture" /> <h3 title=""><a href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Params.Title }}</a></h3> <div class="description"> <div class="sidebar__title-description"> <p>{{ replace .Site.Params.description "\n" "<br />" | safeHTML }}</p> </div> </div> </div> <ul class="social-links"> <ul class="sidebar__list"> {{ range $item := .Site.Params.socialIcons }} <li> <li class="sidebar__list-item"> <a href="{{ $item.url }}" rel="me" aria-label="{{ $item.title }}" title="{{ $item.title }}"> <i class="{{ $item.icon }} fa-2x" aria-hidden="true"></i> </a>