From b0a515f343fd03e575c8de48dc7e14823d344c17 Mon Sep 17 00:00:00 2001
From: Alexander Bilz <mail@alexbilz.com>
Date: Thu, 21 Jan 2021 15:02:33 +0000
Subject: [PATCH] Split up CSS
---
assets/scss/_pagination_dark.scss | 7
assets/scss/_menu_dark.scss | 7
assets/scss/_base.scss | 277 +++++++
assets/scss/_comments.scss | 22
assets/scss/anatole.scss | 15
assets/scss/_footer.scss | 19
assets/scss/anatole_dark.scss | 13
assets/scss/_content.scss | 78 ++
assets/scss/_post_dark.scss | 33
assets/scss/contatc_dark.scss | 22
assets/scss/_base_dark.scss | 40 +
assets/scss/_buttons.scss | 64 +
assets/scss/_sidebar.scss | 76 ++
assets/scss/_animation.scss | 63 +
/dev/null | 1044 -----------------------------
assets/scss/_menu.scss | 61 +
assets/scss/_sidebar_dark.scss | 13
assets/scss/_content_dark.scss | 15
assets/scss/_pagination.scss | 31
assets/scss/_post.scss | 160 ++++
assets/scss/_variables.scss | 42 +
assets/scss/_buttons_dark.scss | 5
assets/scss/_contact.scss | 22
23 files changed, 1,067 insertions(+), 1,062 deletions(-)
diff --git a/assets/scss/_animation.scss b/assets/scss/_animation.scss
new file mode 100644
index 0000000..bda270c
--- /dev/null
+++ b/assets/scss/_animation.scss
@@ -0,0 +1,63 @@
+.animated {
+ transition: top .8s linear;
+ -webkit-animation-duration: 1s;
+ -moz-animation-duration: 1s;
+ -ms-animation-duration: 1s;
+ -o-animation-duration: 1s;
+ animation-duration: 1s;
+}
+
+.animated.hinge {
+ -webkit-animation-duration: 1s;
+ -moz-animation-duration: 1s;
+ -ms-animation-duration: 1s;
+ -o-animation-duration: 1s;
+ animation-duration: 1s;
+}
+
+@-webkit-keyframes fadeInDown {
+ 0% {
+ -webkit-transform: translateY(-20px);
+ }
+
+ 100% {
+ -webkit-transform: translateY(0);
+ }
+}
+
+@-moz-keyframes fadeInDown {
+ 0% {
+ -moz-transform: translateY(-20px);
+ }
+
+ 100% {
+ -moz-transform: translateY(0);
+ }
+}
+
+@-o-keyframes fadeInDown {
+ 0% {
+ -o-transform: translateY(-20px);
+ }
+
+ 100% {
+ -o-transform: translateY(0);
+ }
+}
+
+@keyframes fadeInDown {
+ 0% {
+ transform: translateY(-20px);
+ }
+
+ 100% {
+ transform: translateY(0);
+ }
+}
+
+.fadeInDown {
+ -webkit-animation-name: fadeInDown;
+ -moz-animation-name: fadeInDown;
+ -o-animation-name: fadeInDown;
+ animation-name: fadeInDown;
+}
\ No newline at end of file
diff --git a/assets/scss/_base.scss b/assets/scss/_base.scss
new file mode 100644
index 0000000..4de3525
--- /dev/null
+++ b/assets/scss/_base.scss
@@ -0,0 +1,277 @@
+*,
+*:after,
+*:before {
+ box-sizing: inherit;
+}
+
+html {
+ background-color: $bg-color;
+ -webkit-font-smoothing: antialiased;
+}
+
+body {
+ color: $body-color;
+ font-family: $text-font-family;
+ font-size: 15px;
+ width: 100%;
+ margin: 0 auto 30px auto;
+ background-color: $bg-color;
+}
+
+p {
+ line-height: 1.9em;
+ font-weight: 400;
+ font-size: 14px;
+}
+
+a {
+ text-decoration: none;
+}
+
+blockquote {
+ padding: 0 1em;
+ border-left: .25em solid $blockquote-border-color;
+ color: $blockquote-text-color;
+}
+
+.category {
+ padding: 4px 6px;
+ border-radius: 3px;
+ color: $tag-color !important;
+ background-color: $secondary-bg-color;
+ border: 1px solid $border-color;
+}
+
+.tag::before {
+ content: "#";
+ opacity: .5;
+}
+
+.tag,
+.category {
+ display: inline-block;
+ font-size: 15px;
+ line-height: 1;
+ margin: 5px 8px 5px 0;
+}
+
+pre {
+ background-color: $pre-bg-color;
+ padding: 5px;
+ display: block;
+ overflow-x: auto;
+}
+
+.info i {
+ opacity: 0.5;
+ margin-right: 5px;
+}
+
+a:link,
+a:visited {
+ opacity: 1;
+}
+
+a:hover,
+a:active {
+ color: #2660ab;
+}
+
+.page_404 {
+ text-align: center;
+ padding-top: 50px;
+}
+
+.archive {
+ width: 100%;
+}
+
+
+.list-with-title {
+ font-size: 14px;
+ margin: 30px;
+ padding: 0;
+}
+
+.list-with-title li {
+ list-style-type: none;
+ padding: 0;
+}
+
+.list-with-title .listing-title {
+ font-size: 24px;
+ color: #666666;
+ font-weight: 600;
+ line-height: 2.2em;
+}
+
+.list-with-title .listing {
+ padding: 0;
+}
+
+.list-with-title .listing .listing-post {
+ padding-bottom: 5px;
+}
+
+.list-with-title .listing .listing-post .post-time {
+ float: right;
+ color: #C5C5C5;
+}
+
+.list-with-title .listing .listing-post a {
+ color: #8F8F8F;
+}
+
+.list-with-title .listing .listing-post a:hover {
+ color: #2660ab;
+}
+
+/* about */
+.about {
+ margin: 30px;
+}
+
+.about h3 {
+ font-size: 22px;
+}
+
+/* links*/
+.links {
+ margin: 30px;
+}
+
+.links h3 {
+ font-size: 22px;
+}
+
+.links a {
+ cursor: pointer;
+}
+
+.tab-community {
+ color: #666;
+}
+
+.read_more {
+ font-size: 14px;
+}
+
+
+@media screen and (max-width: 960px),
+print {
+ .sidebar {
+ width: 100%;
+ position: absolute;
+ border-right: none;
+ z-index: 1;
+ }
+
+ .sidebar .logo-title {
+ padding-top: 120px;
+ }
+
+ .sidebar .logo-title .title img {
+ width: 100px;
+ }
+
+ .sidebar .logo-title .title h3 {
+ font-size: 20px;
+ }
+
+ .page-top {
+ width: 100%;
+ }
+
+ .post-title h3 {
+ line-height: 1.6;
+ }
+
+ .content {
+ margin-top: 420px;
+ width: 100%;
+ z-index: 2;
+ position: absolute;
+ }
+
+ .footer {
+ display: none;
+ }
+
+ .share {
+ display: grid;
+ }
+
+ .page-top .nav {
+ background-color: $secondary-bg-color;
+ box-shadow: 0 8px 16px rgba(10, 10, 10, .1);
+ padding: .5rem 0;
+ width: 100%;
+ display: none;
+ margin-top: 0px;
+ }
+
+ .page-top .nav.is-active {
+ /* display: block; */
+ display: block;
+ }
+
+ .page-top .nav li {
+ display: block;
+ flex-grow: 0;
+ flex-shrink: 0;
+ line-height: 2.5;
+ padding: .5rem .75rem;
+ position: relative;
+ text-transform: uppercase;
+ text-align: center;
+ font-size: 1.3em;
+ }
+
+ .page-top .nav a.current {
+ border-bottom: none;
+ }
+
+ .navbar-burger {
+ cursor: pointer;
+ display: block;
+ height: 3.25rem;
+ position: relative;
+ width: 3.25rem;
+ margin-left: auto;
+ }
+
+ .navbar-burger span {
+ background-color: $heading-color;
+ display: block;
+ height: 1px;
+ left: calc(50% - 8px);
+ position: absolute;
+ transform-origin: center;
+ transition-duration: 86ms;
+ transition-property: background-color, opacity, transform;
+ transition-timing-function: ease-out;
+ width: 16px;
+ }
+
+ .navbar-burger span:nth-child(1) {
+ top: calc(50% - 6px);
+ }
+
+ .navbar-burger span:nth-child(2) {
+ top: calc(50% - 1px);
+ }
+
+ .navbar-burger span:nth-child(3) {
+ top: calc(50% + 4px);
+ }
+
+ .theme-switch-item {
+ float: none;
+ }
+}
+
+@media print {
+ .page-top {
+ display: none;
+ }
+}
\ No newline at end of file
diff --git a/assets/scss/_base_dark.scss b/assets/scss/_base_dark.scss
new file mode 100644
index 0000000..68964f4
--- /dev/null
+++ b/assets/scss/_base_dark.scss
@@ -0,0 +1,40 @@
+@mixin base_dark {
+
+ html {
+ background-color: $bg-color-dark;
+ }
+
+ body {
+ color: $body-color-dark;
+ background-color: $bg-color-dark;
+ }
+
+ blockquote {
+ border-left: .25em solid $blockquote-border-color-dark;
+ color: $blockquote-text-color-dark;
+ }
+
+ .category {
+ color: $tag-color-dark !important;
+ background-color: $secondary-bg-color-dark;
+ border: 1px solid $border-color-dark;
+ }
+
+ pre {
+ background-color: $pre-bg-color-dark;
+ }
+
+ a:link,
+ a:visited {
+ color: $tag-color-dark;
+ }
+
+ .page-top .nav {
+ background-color: $secondary-bg-color;
+ }
+
+ .navbar-burger span {
+ background-color: $heading-color;
+ }
+
+}
\ No newline at end of file
diff --git a/assets/scss/_buttons.scss b/assets/scss/_buttons.scss
new file mode 100644
index 0000000..af0df79
--- /dev/null
+++ b/assets/scss/_buttons.scss
@@ -0,0 +1,64 @@
+a.btn {
+ color: #868686;
+ font-weight: 400;
+}
+
+.btn {
+ display: inline-block;
+ position: relative;
+ outline: 0;
+ color: var(--post-color);
+ background: transparent;
+ font-size: 14px;
+ text-align: center;
+ text-decoration: none;
+ cursor: pointer;
+ border: 1px solid $border-color;
+ white-space: nowrap;
+ font-weight: 400;
+ font-style: normal;
+ border-radius: 999em;
+}
+
+.btn:hover {
+ display: inline-block;
+ position: relative;
+ outline: 0px;
+ color: #464545;
+ background: transparent;
+ font-size: 14px;
+ text-align: center;
+ text-decoration: none;
+ cursor: pointer;
+ border: 1px solid #464545;
+ white-space: nowrap;
+ font-weight: 400;
+ font-style: normal;
+ border-radius: 999em;
+}
+
+[role="back"] {
+ padding: 0.5em 1.25em;
+ line-height: 1.666em;
+}
+
+[role="home"] {
+ padding: 0.5em 1.25em;
+ line-height: 1.666em;
+}
+
+[role="navigation"] {
+ padding: 0.5em 1.25em;
+ line-height: 1.666em;
+}
+
+[role="tags"] {
+ padding: 6px 12px;
+}
+
+.back-button {
+ padding-top: 30px;
+ max-width: 100px;
+ padding-left: 40px;
+ float: left;
+}
\ No newline at end of file
diff --git a/assets/scss/_buttons_dark.scss b/assets/scss/_buttons_dark.scss
new file mode 100644
index 0000000..d11d70d
--- /dev/null
+++ b/assets/scss/_buttons_dark.scss
@@ -0,0 +1,5 @@
+@mixin buttons_dark {
+ .btn {
+ border: 1px solid $border-color-dark;
+ }
+}
\ No newline at end of file
diff --git a/assets/scss/_comments.scss b/assets/scss/_comments.scss
new file mode 100644
index 0000000..d335b71
--- /dev/null
+++ b/assets/scss/_comments.scss
@@ -0,0 +1,22 @@
+#install-btn {
+ position: fixed;
+ bottom: 0px;
+ right: 6px;
+}
+
+#disqus_thread {
+ margin: 30px;
+ border-bottom: 1px solid $border-color;
+}
+
+#fb_comments_container {
+ margin: 30px;
+}
+
+.utterances {
+ max-width: unset;
+}
+
+.comment-count {
+ color: #666;
+}
\ No newline at end of file
diff --git a/assets/scss/_contact.scss b/assets/scss/_contact.scss
index 06c297f..8b6640d 100644
--- a/assets/scss/_contact.scss
+++ b/assets/scss/_contact.scss
@@ -21,9 +21,9 @@
font-size: 14px;
padding: 8px;
outline: none;
- background-color: var(--bg-color);
- border: 1px solid var(--form-border-color);
- color: var(--body-color);
+ background-color: $bg-color;
+ border: 1px solid $form-border-color;
+ color: $body-color;
}
.form-style ul li .field-style:focus {
box-shadow: 0 0 5px;
@@ -42,24 +42,24 @@
float:right;
}
.form-style ul li textarea {
- background-color: var(--bg-color);
- border: 1px solid var(--form-border-color);
- color: var(--body-color);
+ background-color: $bg-color;
+ border: 1px solid $form-border-color;
+ color: $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);
+ background-color: $bg-color;
+ border: 1px solid $form-border-color;
display: inline-block;
cursor: pointer;
- color: var(--body-color);
+ 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: var(--bg-color);
- border: 1px solid var(--form-button-hover-border-color);
+ background-color: $bg-color;
+ border: 1px solid $form-button-hover-border-color;
}
\ No newline at end of file
diff --git a/assets/scss/_content.scss b/assets/scss/_content.scss
new file mode 100644
index 0000000..fd2b1f1
--- /dev/null
+++ b/assets/scss/_content.scss
@@ -0,0 +1,78 @@
+.content {
+ height: auto;
+ float: right;
+ width: $content-width;
+ margin-top: 60px;
+}
+
+.page-top {
+ width: $content-width;
+ position: fixed;
+ right: 0;
+ z-index: 3;
+ background-color: $bg-color;
+ height: 60px;
+ border-bottom: 1px solid $border-color;
+}
+
+.page-top .nav {
+ list-style: none;
+ padding: 11px 30px;
+ float: left;
+ font-size: 12px;
+ display: block;
+ width: calc(100% - 30px;
+}
+
+.page-top .nav li {
+ position: relative;
+ display: initial;
+ padding-right: 20px;
+}
+
+.page-top .nav a {
+ color: $nav-text-color;
+}
+
+.page-top .nav a:hover {
+ color: #2660ab;
+}
+
+.page-top .nav a.current {
+ color: $nav-text-color;
+ padding-bottom: 22px;
+ border-bottom: 1px solid $nav-text-color;
+}
+
+.theme-switch-item {
+ float: right;
+ font-size: 2em;
+ margin-top: -5px;
+}
+
+.page-top .information {
+ float: right;
+ padding-top: 12px;
+ padding-right: 20px;
+}
+
+.page-top .information .avatar {
+ float: right;
+}
+
+.page-top .information .avatar img {
+ width: 32px;
+ height: 32px;
+ border-radius: 300px;
+}
+
+.page-top .information .back_btn {
+ float: left;
+ padding-top: 5px;
+ margin-right: -10px;
+}
+
+.page-top .information .back_btn li {
+ display: initial;
+ padding-right: 40px;
+}
\ No newline at end of file
diff --git a/assets/scss/_content_dark.scss b/assets/scss/_content_dark.scss
new file mode 100644
index 0000000..bbfba39
--- /dev/null
+++ b/assets/scss/_content_dark.scss
@@ -0,0 +1,15 @@
+@mixin content_dark {
+ .page-top {
+ background-color: $bg-color-dark;
+ border-bottom: 1px solid $border-color-dark;
+ }
+
+ .page-top .nav a {
+ color: $nav-text-dark;
+ }
+
+ .page-top .nav a.current {
+ color: $nav-text-dark;
+ border-bottom: 1px solid $nav-text-dark;
+ }
+}
\ No newline at end of file
diff --git a/assets/scss/_footer.scss b/assets/scss/_footer.scss
new file mode 100644
index 0000000..5ebbd79
--- /dev/null
+++ b/assets/scss/_footer.scss
@@ -0,0 +1,19 @@
+.footer {
+ clear: both;
+ text-align: center;
+ font-size: 10px;
+ margin: 0 auto;
+ bottom: 0;
+ width: 100%;
+ padding-bottom: 20px;
+ flex: 0;
+ position: relative;
+}
+
+.footer a {
+ color: #A6A6A6;
+}
+
+.footer a:hover {
+ color: #2660ab;
+}
\ No newline at end of file
diff --git a/assets/scss/_menu.scss b/assets/scss/_menu.scss
new file mode 100644
index 0000000..32cefbc
--- /dev/null
+++ b/assets/scss/_menu.scss
@@ -0,0 +1,61 @@
+.menu {
+ float: right;
+ padding-top: 30px;
+}
+
+.menu .btn-down {
+ margin: 0px;
+}
+
+.menu .btn-down li {
+ list-style: none;
+ width: 100px;
+}
+
+.menu .btn-down li a {
+ display: inline-block;
+ position: relative;
+ padding: 0.5em 1.25em;
+ outline: 0;
+ color: $post-color;
+ background: transparent;
+ font-size: 14px;
+ text-align: center;
+ text-decoration: none;
+ cursor: pointer;
+ border: 1px solid $border-color;
+ white-space: nowrap;
+ font-weight: 400;
+ font-style: normal;
+ border-radius: 999em;
+ margin-top: 5px;
+}
+
+.menu .btn-down li a:hover {
+ position: relative;
+ padding: 0.5em 1.25em;
+ outline: 0;
+ color: #fff;
+ background: #3CBD10;
+ font-size: 14px;
+ text-align: center;
+ text-decoration: none;
+ cursor: pointer;
+ border: 1px solid rgba(0, 0, 0, 0.15);
+ white-space: nowrap;
+ font-weight: 400;
+ font-style: normal;
+ border-radius: 999em;
+ margin-top: 5px;
+}
+
+.menu .btn-down div {
+ position: absolute;
+ visibility: hidden;
+ width: 100px;
+ float: right;
+}
+
+.navbar-burger {
+ display: none;
+}
\ No newline at end of file
diff --git a/assets/scss/_menu_dark.scss b/assets/scss/_menu_dark.scss
new file mode 100644
index 0000000..b7d36ce
--- /dev/null
+++ b/assets/scss/_menu_dark.scss
@@ -0,0 +1,7 @@
+@mixin menu_dark {
+
+ .menu .btn-down li a {
+ border: 1px solid $border-color-dark;
+ }
+
+}
\ No newline at end of file
diff --git a/assets/scss/_mixins.scss b/assets/scss/_mixins.scss
deleted file mode 100644
index e69de29..0000000
--- a/assets/scss/_mixins.scss
+++ /dev/null
diff --git a/assets/scss/_navigation.scss b/assets/scss/_navigation.scss
deleted file mode 100644
index e69de29..0000000
--- a/assets/scss/_navigation.scss
+++ /dev/null
diff --git a/assets/scss/_pagination.scss b/assets/scss/_pagination.scss
new file mode 100644
index 0000000..4d4b37f
--- /dev/null
+++ b/assets/scss/_pagination.scss
@@ -0,0 +1,31 @@
+.pagination {
+ margin: 30px;
+ padding: 0px 0 56px 0;
+ text-align: center;
+}
+
+.pagination ul {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ height: 13px;
+}
+
+.pagination ul li {
+ margin: 0 2px 0 2px;
+ display: inline;
+ line-height: 1;
+}
+
+.pagination ul li a {
+ text-decoration: none;
+ color: $body-color;
+}
+
+.pagination .pre {
+ float: left;
+}
+
+.pagination .next {
+ float: right;
+}
\ No newline at end of file
diff --git a/assets/scss/_pagination_dark.scss b/assets/scss/_pagination_dark.scss
new file mode 100644
index 0000000..d447d65
--- /dev/null
+++ b/assets/scss/_pagination_dark.scss
@@ -0,0 +1,7 @@
+@mixin pagination_dark {
+
+ .pagination ul li a {
+ color: $body-color-dark;
+ }
+
+}
diff --git a/assets/scss/_post.scss b/assets/scss/_post.scss
new file mode 100644
index 0000000..bdd333a
--- /dev/null
+++ b/assets/scss/_post.scss
@@ -0,0 +1,160 @@
+.post {
+ background-color: $bg-color;
+ margin: 30px;
+}
+
+.post .post-title h1 {
+ text-transform: uppercase;
+ font-size: 30px;
+ letter-spacing: 5px;
+ line-height: 1;
+}
+
+.post .post-title h2 {
+ text-transform: uppercase;
+ letter-spacing: 1px;
+ font-size: 28px;
+ line-height: 1;
+ font-weight: 600;
+ color: $heading-color;
+}
+
+.post .post-title h3 {
+ text-transform: uppercase;
+ letter-spacing: 1px;
+ line-height: 1;
+ font-weight: 600;
+ /* color: #464646; */
+ color: $heading-color;
+ font-size: 22px;
+ margin: 0;
+}
+
+.post .post-title a {
+ text-decoration: none;
+ letter-spacing: 1px;
+ color: $heading-color;
+}
+
+.post .post-title a:hover {
+ text-decoration: underline;
+}
+
+.post .post-content a {
+ text-decoration: none;
+ letter-spacing: 1px;
+ color: #2660ab;
+}
+
+.post .post-content a:hover {
+ color: #2F69B3;
+}
+
+.post .post-content h3 {
+ font-size: 22px;
+ font-weight: 600;
+}
+
+.post .post-content h4 {
+ /* color: $heading-color; */
+ font-size: 16px;
+}
+
+.post .post-content img {
+ max-width: 100%;
+}
+
+.post .post-footer {
+ padding: 0 0 10px 0;
+ border-bottom: 1px solid $border-color;
+}
+
+.post .post-footer .meta {
+ max-width: 100%;
+ display: flex;
+ color: #bbbbbb;
+}
+
+.post .post-footer .meta .info {
+ float: left;
+ font-size: 12px;
+ margin-bottom: 1em;
+ color: $body-color;
+}
+
+.post .post-footer .info .separator a {
+ margin-right: 0.2em;
+}
+
+.post .post-footer .meta .info .date {
+ margin-right: 10px;
+ margin-left: 5px
+}
+
+.info {
+ margin: 1em;
+}
+
+.info span {
+ margin-right: 0.5em;
+}
+
+.post .post-footer .meta a {
+ text-decoration: none;
+ color: $body-color;
+}
+
+.post .post-footer .meta a:hover {
+ color: #2660ab;
+}
+
+.post .post-footer .meta i {
+ margin-right: 6px;
+}
+
+.post .post-footer .tags {
+ padding-bottom: 15px;
+ font-size: 13px;
+}
+
+.post .post-footer .tags ul {
+ list-style-type: none;
+ display: inline;
+ margin: 0;
+ padding: 0;
+}
+
+.post .post-footer .tags ul li {
+ list-style-type: none;
+ margin: 0;
+ padding-right: 5px;
+ display: inline;
+}
+
+.post .post-footer .tags a {
+ text-decoration: none;
+ color: $post-color;
+ font-weight: 400;
+}
+
+.post .post-footer .tags a:hover {
+ text-decoration: none;
+}
+
+.post .post-thumbnail {
+ width: 100%;
+ padding-bottom: 1em;
+ box-shadow: black;
+ border-radius: 0.5em;
+ overflow: hidden;
+ transition: box-shadow .3s ease;
+
+}
+
+.post .post-thumbnail img {
+ width: 100%;
+ height: $thumbnail-height;
+ object-fit: cover;
+ border: 1px solid $border-color;
+ border-bottom: 0px;
+}
\ No newline at end of file
diff --git a/assets/scss/_post_dark.scss b/assets/scss/_post_dark.scss
new file mode 100644
index 0000000..fbaf2d1
--- /dev/null
+++ b/assets/scss/_post_dark.scss
@@ -0,0 +1,33 @@
+@mixin post_dark {
+ .post {
+ background-color: $bg-color-dark;
+ }
+
+ .post .post-title h2 {
+ color: $heading-color-dark;
+ }
+
+ .post .post-title h3 {
+ color: $heading-color-dark;
+ }
+
+ .post .post-title a {
+ color: $heading-color-dark;
+ }
+
+ .post .post-footer {
+ border-bottom: 1px solid $border-color-dark;
+ }
+
+ .post .post-footer .meta a {
+ color: $body-color-dark;
+ }
+
+ .post .post-footer .tags a {
+ color: $post-color-dark;
+ }
+
+ .post .post-thumbnail img {
+ border: 1px solid $border-color-dark;
+ }
+}
diff --git a/assets/scss/_print.scss b/assets/scss/_print.scss
deleted file mode 100644
index e69de29..0000000
--- a/assets/scss/_print.scss
+++ /dev/null
diff --git a/assets/scss/_sidebar.scss b/assets/scss/_sidebar.scss
new file mode 100644
index 0000000..1d73e7c
--- /dev/null
+++ b/assets/scss/_sidebar.scss
@@ -0,0 +1,76 @@
+.sidebar {
+ width: $sidebar-width;
+ -webkit-background-size: cover;
+ background-size: cover;
+ background-color:$bg-color;
+ height: 100%;
+ top: 0;
+ left: 0;
+ position: fixed;
+ z-index: 4;
+ border-right: 1px solid$border-color;
+ display: flex;
+ flex-direction: column;
+ min-height: 100%;
+}
+
+.sidebar .logo-title {
+ text-align: center;
+ padding-top: 240px;
+ flex: 1;
+}
+
+.sidebar .logo-title .description {
+ font-size: 14px;
+}
+
+.sidebar .logo-title .logo {
+ margin: 0 auto;
+}
+
+.sidebar .logo-title .title img {
+ width: 127px;
+ border-radius: 50%;
+}
+
+.sidebar .logo-title .title h3 {
+ text-transform: uppercase;
+ font-size: 2rem;
+ font-weight: bold;
+ letter-spacing: 2px;
+ line-height: 1;
+ margin: 1em;
+}
+
+.sidebar .logo-title .title a {
+ text-decoration: none;
+ color:$heading-color;
+ font-size: 2rem;
+ font-weight: bold;
+}
+
+.sidebar .social-links {
+ list-style: none;
+ padding: 0;
+ font-size: 14px;
+ text-align: center;
+ flex: 7;
+}
+
+.sidebar .social-links i {
+ margin-right: 3px;
+}
+
+.sidebar .social-links li {
+ display: inline;
+ padding: 0 4px;
+ line-height: 0;
+}
+
+.sidebar .social-links a {
+ color:$heading-color;
+}
+
+.sidebar .social-links a:hover {
+ color: #2660ab;
+}
\ No newline at end of file
diff --git a/assets/scss/_sidebar_dark.scss b/assets/scss/_sidebar_dark.scss
new file mode 100644
index 0000000..a4c1602
--- /dev/null
+++ b/assets/scss/_sidebar_dark.scss
@@ -0,0 +1,13 @@
+@mixin sidebar_dark {
+
+ .sidebar {
+ background-color:$bg-color-dark;
+ border-right: 1px solid$border-color-dark;
+
+ }
+
+ .sidebar .logo-title .title a {
+ color:$heading-color-dark;
+ }
+
+}
\ No newline at end of file
diff --git a/assets/scss/_variables.scss b/assets/scss/_variables.scss
index 637322c..5983414 100644
--- a/assets/scss/_variables.scss
+++ b/assets/scss/_variables.scss
@@ -1,7 +1,45 @@
// Font Variables
-
+$text-font-family: Verdana, sans-serif;
// Color Variables
+// Light version
+$bg-color: #fff;
+$secondary-bg-color: #eeeeee;
+$heading-color: #5f5f5f;
+$body-color: rgba(0, 0, 0, 0.7);
+$post-color: rgba(0, 0, 0, 0.44);
+$border-color: rgba(0, 0, 0, 0.15);
+$form-border-color: #9f9f9f;
+$form-button-hover-border-color: #000;
+$pre-bg-color: #f9f9fd;
+$nav-text-color: #5a5a5a;
+$tag-color: #424242;
+$blockquote-text-color: #858585;
+$blockquote-border-color: #dfe2e5;
+
+// Dark version
+$bg-color-dark: #292a2d;
+$secondary-bg-color-dark: #2c2d32;
+$heading-color-dark: rgb(169, 169, 179);
+$body-color-dark: rgb(169, 169, 179);
+$post-color-dark: rgba(0, 0, 0, 0.44);
+$border-colo-darkr: rgb(38, 38, 38);
+$form-border-color-dark: rgb(169, 169, 179);
+$form-button-hover-border-color-dark: #fff;
+$pre-bg-color-dark: rgb(33, 33, 45);
+$nav-text-color-dark: rgb(191, 191, 191);
+$tag-color-dark: rgb(191, 191, 191);
+$blockquote-text-color-dark: #808080;
+$blockquote-border-color-dark: #424242;
// Design Ratios
$body_max_width: 1920px;
-$content_ratio: 0.7;
\ No newline at end of file
+$content_ratio: 0.7;
+$thumbnail-height: 15em;
+
+
+/* automated values */
+$sidebar-ratio: 1 - $content-ratio;
+$content-max-width: $body_max_width * $content_ratio;
+$sidebar-max-width: $body_max_width - $content-max-width;
+$content-width: $content_ratio * 100%;
+$sidebar-width: $sidebar-ratio * 100%;
\ No newline at end of file
diff --git a/assets/scss/anatole.scss b/assets/scss/anatole.scss
index 3125401..5985d62 100644
--- a/assets/scss/anatole.scss
+++ b/assets/scss/anatole.scss
@@ -1,8 +1,13 @@
@import 'variables';
-@import 'mixins';
-@import 'typography';
-@import 'navigation';
-@import 'templates/main.scss';
-@import 'print';
+@import 'base';
+@import 'animation';
+@import 'content';
+@import 'sidebar';
+@import 'post';
+@import 'pagination';
+@import 'menu';
+@import 'footer';
+@import 'buttons';
+@import 'comments';
@import 'code';
@import 'contact';
diff --git a/assets/scss/anatole_dark.scss b/assets/scss/anatole_dark.scss
new file mode 100644
index 0000000..7224319
--- /dev/null
+++ b/assets/scss/anatole_dark.scss
@@ -0,0 +1,13 @@
+@import 'variables';
+@import 'base_dark';
+@import 'animation';
+@import 'content_dark';
+@import 'sidebar_dark';
+@import 'post_dark';
+@import 'pagination_dark';
+@import 'menu_dark';
+@import 'footer';
+@import 'buttons_dark';
+@import 'comments';
+@import 'code';
+@import 'contact_dark';
diff --git a/assets/scss/contatc_dark.scss b/assets/scss/contatc_dark.scss
new file mode 100644
index 0000000..1269830
--- /dev/null
+++ b/assets/scss/contatc_dark.scss
@@ -0,0 +1,22 @@
+@mixin contact_dark {
+ .form-style ul li .field-style {
+ background-color: $bg-color-dark;
+ border: 1px solid $form-border-color-dark;
+ color: $body-color-dark;
+ }
+ .form-style ul li textarea {
+ background-color: $bg-color-dark;
+ border: 1px solid $form-border-color-dark;
+ color: $body-color-dark;
+ }
+ .form-style ul li input[type="button"],
+ .form-style ul li input[type="submit"] {
+ background-color: $bg-color-dark;
+ border: 1px solid $form-border-color-dark;
+ }
+ .form-style ul li input[type="button"]:hover,
+ .form-style ul li input[type="submit"]:hover {
+ background-color: $bg-color-dark;
+ border: 1px solid $form-button-hover-border-color-dark;
+ }
+}
\ No newline at end of file
diff --git a/assets/scss/templates/_main.scss b/assets/scss/templates/_main.scss
deleted file mode 100644
index 4eec064..0000000
--- a/assets/scss/templates/_main.scss
+++ /dev/null
@@ -1,1044 +0,0 @@
-@charset "UTF-8";
-
-/* automated values */
-$sidebar-ratio: 1 - $content-ratio;
-$content-max-width: $body_max_width * $content_ratio;
-$sidebar-max-width: $body_max_width - $content-max-width;
-$content-width: $content_ratio * 100%;
-$sidebar-width: $sidebar-ratio * 100%;
-
-:root {
- --bg-color: #fff;
- --secondary-bg-color: #eeeeee;
- --heading-color: #5f5f5f;
- --body-color: rgba(0, 0, 0, 0.7);
- --post-color: rgba(0, 0, 0, 0.44);
- --border-color: rgba(0, 0, 0, 0.15);
- --form-border-color: #9f9f9f;
- --form-button-hover-border-color: #000;
- --pre-bg-color: #f9f9fd;
- --nav-text-color: #5a5a5a;
- --tag-color: #424242;
- --blockquote-text-color: #858585;
- --blockquote-border-color: #dfe2e5;
- --thumbnail-height: 15em;
- scroll-padding-top: 100px;
-}
-
-html[data-theme='dark'] {
- --bg-color: #292a2d;
- --secondary-bg-color: #2c2d32;
- --heading-color: rgb(169, 169, 179);
- --body-color: rgb(169, 169, 179);
- --post-color: rgba(0, 0, 0, 0.44);
- --border-color: rgb(38, 38, 38);
- --form-border-color: rgb(169, 169, 179);
- --form-button-hover-border-color: #fff;
- --pre-bg-color: rgb(33, 33, 45);
- --nav-text-color: rgb(191, 191, 191);
- --tag-color: rgb(191, 191, 191);
- --blockquote-text-color: #808080;
- --blockquote-border-color: #424242;
-}
-
-html {
- background-color: var(--bg-color);
- -webkit-font-smoothing: antialiased;
-}
-
-body {
- color: var(--body-color);
- font-family: 'Verdana', sans-serif;
- font-size: 15px;
- width: 100%;
- margin: 0 auto 30px auto;
- background-color: var(--bg-color);
-}
-
-p {
- line-height: 1.9em;
- font-weight: 400;
- font-size: 14px;
-}
-
-a {
- text-decoration: none;
-}
-
-blockquote {
- padding: 0 1em;
- border-left: .25em solid var(--blockquote-border-color);
- color: var(--blockquote-text-color);
-}
-
-.category {
- padding: 4px 6px;
- border-radius: 3px;
- color: var(--tag-color) !important;
- background-color: var(--secondary-bg-color);
- border: 1px solid var(--border-color);
-}
-
-.tag::before {
- content: "#";
- opacity: .5;
-}
-
-.tag,
-.category {
- display: inline-block;
- font-size: 15px;
- line-height: 1;
- margin: 5px 8px 5px 0;
-}
-
-pre {
- background-color: var(--pre-bg-color);
- padding: 5px;
- display: block;
- overflow-x: auto;
-}
-
-.info i {
- opacity: 0.5;
- margin-right: 5px;
-}
-
-a:link,
-a:visited {
- opacity: 1;
- color: var(--tag-color);
-}
-
-a:hover,
-a:active {
- color: #2660ab;
-}
-
-/*basic styles ends*/
-/*animation starts*/
-
-.animated {
- transition: top .8s linear;
- -webkit-animation-duration: 1s;
- -moz-animation-duration: 1s;
- -ms-animation-duration: 1s;
- -o-animation-duration: 1s;
- animation-duration: 1s;
-}
-
-.animated.hinge {
- -webkit-animation-duration: 1s;
- -moz-animation-duration: 1s;
- -ms-animation-duration: 1s;
- -o-animation-duration: 1s;
- animation-duration: 1s;
-}
-
-@-webkit-keyframes fadeInDown {
- 0% {
- -webkit-transform: translateY(-20px);
- }
-
- 100% {
- -webkit-transform: translateY(0);
- }
-}
-
-@-moz-keyframes fadeInDown {
- 0% {
- -moz-transform: translateY(-20px);
- }
-
- 100% {
- -moz-transform: translateY(0);
- }
-}
-
-@-o-keyframes fadeInDown {
- 0% {
- -o-transform: translateY(-20px);
- }
-
- 100% {
- -o-transform: translateY(0);
- }
-}
-
-@keyframes fadeInDown {
- 0% {
- transform: translateY(-20px);
- }
-
- 100% {
- transform: translateY(0);
- }
-}
-
-.fadeInDown {
- -webkit-animation-name: fadeInDown;
- -moz-animation-name: fadeInDown;
- -o-animation-name: fadeInDown;
- animation-name: fadeInDown;
-}
-
-/*animation ends*/
-.content {
- height: auto;
- float: right;
- width: $content-width;
- margin-top: 60px;
-}
-
-.page-top {
- width: $content-width;
- position: fixed;
- right: 0;
- z-index: 3;
- background-color: var(--bg-color);
- height: 60px;
- border-bottom: 1px solid var(--border-color);
-}
-
-.page-top .nav {
- list-style: none;
- padding: 11px 30px;
- float: left;
- font-size: 12px;
- display: block;
- width: calc(100% - 30px);
-}
-
-.page-top .nav li {
- position: relative;
- display: initial;
- padding-right: 20px;
-}
-
-.page-top .nav a {
- color: var(--nav-text-color);
-}
-
-.page-top .nav a:hover {
- color: #2660ab;
-}
-
-.page-top .nav a.current {
- color: var(--nav-text-color);
- padding-bottom: 22px;
- border-bottom: 1px solid var(--nav-text-color);
-}
-
-.theme-switch-item {
- float: right;
- font-size: 2em;
- margin-top: -5px;
-}
-
-.page-top .information {
- float: right;
- padding-top: 12px;
- padding-right: 20px;
-}
-
-.page-top .information .avatar {
- float: right;
-}
-
-.page-top .information .avatar img {
- width: 32px;
- height: 32px;
- border-radius: 300px;
-}
-
-.page-top .information .back_btn {
- float: left;
- padding-top: 5px;
- margin-right: -10px;
-}
-
-.page-top .information .back_btn li {
- display: initial;
- padding-right: 40px;
-}
-
-.sidebar {
- width: $sidebar-width;
- -webkit-background-size: cover;
- background-size: cover;
- background-color: var(--bg-color);
- height: 100%;
- top: 0;
- left: 0;
- position: fixed;
- z-index: 4;
- border-right: 1px solid var(--border-color);
- display: flex;
- flex-direction: column;
- min-height: 100%;
-}
-
-.sidebar .logo-title {
- text-align: center;
- padding-top: 240px;
- flex: 1;
-}
-
-.sidebar .logo-title .description {
- font-size: 14px;
-}
-
-.sidebar .logo-title .logo {
- margin: 0 auto;
-}
-
-.sidebar .logo-title .title img {
- width: 127px;
- border-radius: 50%;
-}
-
-.sidebar .logo-title .title h3 {
- text-transform: uppercase;
- font-size: 2rem;
- font-weight: bold;
- letter-spacing: 2px;
- line-height: 1;
- margin: 1em;
-}
-
-.sidebar .logo-title .title a {
- text-decoration: none;
- color: var(--heading-color);
- font-size: 2rem;
- font-weight: bold;
-}
-
-.sidebar .social-links {
- list-style: none;
- padding: 0;
- font-size: 14px;
- text-align: center;
- flex: 7;
-}
-
-.sidebar .social-links i {
- margin-right: 3px;
-}
-
-.sidebar .social-links li {
- display: inline;
- padding: 0 4px;
- line-height: 0;
-}
-
-.sidebar .social-links a {
- color: var(--heading-color);
-}
-
-.sidebar .social-links a:hover {
- color: #2660ab;
-}
-
-.post {
- background-color: var(--bg-color);
- margin: 30px;
-}
-
-.post .post-title h1 {
- text-transform: uppercase;
- font-size: 30px;
- letter-spacing: 5px;
- line-height: 1;
-}
-
-.post .post-title h2 {
- text-transform: uppercase;
- letter-spacing: 1px;
- font-size: 28px;
- line-height: 1;
- font-weight: 600;
- color: var(--heading-color);
-}
-
-.post .post-title h3 {
- text-transform: uppercase;
- letter-spacing: 1px;
- line-height: 1;
- font-weight: 600;
- /* color: #464646; */
- color: var(--heading-color);
- font-size: 22px;
- margin: 0;
-}
-
-.post .post-title a {
- text-decoration: none;
- letter-spacing: 1px;
- color: var(--heading-color);
-}
-
-.post .post-title a:hover {
- text-decoration: underline;
-}
-
-.post .post-content a {
- text-decoration: none;
- letter-spacing: 1px;
- color: #2660ab;
-}
-
-.post .post-content a:hover {
- color: #2F69B3;
-}
-
-.post .post-content h3 {
- font-size: 22px;
- font-weight: 600;
-}
-
-.post .post-content h4 {
- /* color: var(--heading-color); */
- font-size: 16px;
-}
-
-.post .post-content img {
- max-width: 100%;
-}
-
-.post .post-footer {
- padding: 0 0 10px 0;
- border-bottom: 1px solid var(--border-color);
-}
-
-.post .post-footer .meta {
- max-width: 100%;
- display: flex;
- color: #bbbbbb;
-}
-
-.post .post-footer .meta .info {
- float: left;
- font-size: 12px;
- margin-bottom: 1em;
- color: var(--body-color);
-}
-
-.post .post-footer .info .separator a {
- margin-right: 0.2em;
-}
-
-.post .post-footer .meta .info .date {
- margin-right: 10px;
- margin-left: 5px
-}
-
-.info {
- margin: 1em;
-}
-
-.info span {
- margin-right: 0.5em;
-}
-
-.post .post-footer .meta a {
- text-decoration: none;
- color: var(--body-color);
-}
-
-.post .post-footer .meta a:hover {
- color: #2660ab;
-}
-
-.post .post-footer .meta i {
- margin-right: 6px;
-}
-
-.post .post-footer .tags {
- padding-bottom: 15px;
- font-size: 13px;
-}
-
-.post .post-footer .tags ul {
- list-style-type: none;
- display: inline;
- margin: 0;
- padding: 0;
-}
-
-.post .post-footer .tags ul li {
- list-style-type: none;
- margin: 0;
- padding-right: 5px;
- display: inline;
-}
-
-.post .post-footer .tags a {
- text-decoration: none;
- color: var(--post-color);
- font-weight: 400;
-}
-
-.post .post-footer .tags a:hover {
- text-decoration: none;
-}
-
-.post .post-thumbnail {
- width: 100%;
- padding-bottom: 1em;
- box-shadow: black;
- border-radius: 0.5em;
- overflow: hidden;
- transition: box-shadow .3s ease;
-
-}
-
-.post .post-thumbnail img {
- width: 100%;
- height: var(--thumbnail-height);
- object-fit: cover;
- border: 1px solid var(--border-color);
- border-bottom: 0px;
-}
-
-.pagination {
- margin: 30px;
- padding: 0px 0 56px 0;
- text-align: center;
-}
-
-.pagination ul {
- list-style: none;
- margin: 0;
- padding: 0;
- height: 13px;
-}
-
-.pagination ul li {
- margin: 0 2px 0 2px;
- display: inline;
- line-height: 1;
-}
-
-.pagination ul li a {
- text-decoration: none;
- color: var(--body-color);
-}
-
-.pagination .pre {
- float: left;
-}
-
-.pagination .next {
- float: right;
-}
-
-.like-reblog-buttons {
- float: right;
-}
-
-.like-button {
- float: right;
- padding: 0 0 0 10px;
-}
-
-.reblog-button {
- float: right;
- padding: 0;
-}
-
-#install-btn {
- position: fixed;
- bottom: 0px;
- right: 6px;
-}
-
-#disqus_thread {
- margin: 30px;
- border-bottom: 1px solid var(--border-color);
-}
-
-.footer {
- clear: both;
- text-align: center;
- font-size: 10px;
- margin: 0 auto;
- bottom: 0;
- width: 100%;
- padding-bottom: 20px;
- flex: 0;
- position: relative;
-}
-
-.footer a {
- color: #A6A6A6;
-}
-
-.footer a:hover {
- color: #2660ab;
-}
-
-/*for archive*/
-.archive {
- width: 100%;
-}
-
-.list-with-title {
- font-size: 14px;
- margin: 30px;
- padding: 0;
-}
-
-.list-with-title li {
- list-style-type: none;
- padding: 0;
-}
-
-.list-with-title .listing-title {
- font-size: 24px;
- color: #666666;
- font-weight: 600;
- line-height: 2.2em;
-}
-
-.list-with-title .listing {
- padding: 0;
-}
-
-.list-with-title .listing .listing-post {
- padding-bottom: 5px;
-}
-
-.list-with-title .listing .listing-post .post-time {
- float: right;
- color: #C5C5C5;
-}
-
-.list-with-title .listing .listing-post a {
- color: #8F8F8F;
-}
-
-.list-with-title .listing .listing-post a:hover {
- color: #2660ab;
-}
-
-/* share */
-.share {
- margin: 0px 30px;
- display: inline-flex;
-}
-
-.evernote {
- width: 32px;
- height: 32px;
- border-radius: 300px;
- background-color: #3E3E3E;
- margin-right: 5px;
-}
-
-.evernote a {
- color: #fff;
- padding: 11px;
- font-size: 12px;
-}
-
-.evernote a:hover {
- color: #ED6243;
- padding: 11px;
-}
-
-.weibo {
- width: 32px;
- height: 32px;
- border-radius: 300px;
- background-color: #ED6243;
- margin-right: 5px;
-}
-
-.weibo a {
- color: #fff;
- padding: 9px;
-}
-
-.weibo a:hover {
- color: #BD4226;
-}
-
-.twitter {
- width: 32px;
- height: 32px;
- border-radius: 300px;
- background-color: #59C0FD;
- margin-right: 5px;
-}
-
-.twitter a {
- color: #fff;
- padding: 9px;
-}
-
-.twitter a:hover {
- color: #4B9ECE;
-}
-
-/* about */
-.about {
- margin: 30px;
-}
-
-.about h3 {
- font-size: 22px;
-}
-
-/* links*/
-.links {
- margin: 30px;
-}
-
-.links h3 {
- font-size: 22px;
-}
-
-.links a {
- cursor: pointer;
-}
-
-/* Comments */
-.comment-count {
- color: #666;
-}
-
-.tab-community {
- color: #666;
-}
-
-.read_more {
- font-size: 14px;
-}
-
-.back-button {
- padding-top: 30px;
- max-width: 100px;
- padding-left: 40px;
- float: left;
-}
-
-/* Facebook Comments */
-#fb_comments_container {
- margin: 30px;
-}
-
-.utterances {
- max-width: unset;
-}
-
-/* Buttons */
-a.btn {
- color: #868686;
- font-weight: 400;
-}
-
-.btn {
- display: inline-block;
- position: relative;
- outline: 0;
- color: var(--post-color);
- background: transparent;
- font-size: 14px;
- text-align: center;
- text-decoration: none;
- cursor: pointer;
- border: 1px solid var(--border-color);
- white-space: nowrap;
- font-weight: 400;
- font-style: normal;
- border-radius: 999em;
-}
-
-.btn:hover {
- display: inline-block;
- position: relative;
- outline: 0px;
- color: #464545;
- background: transparent;
- font-size: 14px;
- text-align: center;
- text-decoration: none;
- cursor: pointer;
- border: 1px solid #464545;
- white-space: nowrap;
- font-weight: 400;
- font-style: normal;
- border-radius: 999em;
-}
-
-[role="back"] {
- padding: 0.5em 1.25em;
- line-height: 1.666em;
-}
-
-[role="home"] {
- padding: 0.5em 1.25em;
- line-height: 1.666em;
-}
-
-[role="navigation"] {
- padding: 0.5em 1.25em;
- line-height: 1.666em;
-}
-
-[role="tags"] {
- padding: 6px 12px;
-}
-
-/* Menu */
-.menu {
- float: right;
- padding-top: 30px;
-}
-
-.menu .btn-down {
- margin: 0px;
-}
-
-.menu .btn-down li {
- list-style: none;
- width: 100px;
-}
-
-.menu .btn-down li a {
- display: inline-block;
- position: relative;
- padding: 0.5em 1.25em;
- outline: 0;
- color: var(--post-color);
- background: transparent;
- font-size: 14px;
- text-align: center;
- text-decoration: none;
- cursor: pointer;
- border: 1px solid var(--border-color);
- white-space: nowrap;
- font-weight: 400;
- font-style: normal;
- border-radius: 999em;
- margin-top: 5px;
-}
-
-.menu .btn-down li a:hover {
- position: relative;
- padding: 0.5em 1.25em;
- outline: 0;
- color: #fff;
- background: #3CBD10;
- font-size: 14px;
- text-align: center;
- text-decoration: none;
- cursor: pointer;
- border: 1px solid rgba(0, 0, 0, 0.15);
- white-space: nowrap;
- font-weight: 400;
- font-style: normal;
- border-radius: 999em;
- margin-top: 5px;
-}
-
-.menu .btn-down div {
- position: absolute;
- visibility: hidden;
- width: 100px;
- float: right;
-}
-
-.page_404 {
- text-align: center;
- padding-top: 50px;
-}
-
-.navbar-burger {
- display: none;
-}
-
-@media screen and (max-width: 960px),
-print {
- .sidebar {
- width: 100%;
- position: absolute;
- border-right: none;
- z-index: 1;
- }
-
- .sidebar .logo-title {
- padding-top: 120px;
- }
-
- .sidebar .logo-title .title img {
- width: 100px;
- }
-
- .sidebar .logo-title .title h3 {
- font-size: 20px;
- }
-
- .page-top {
- width: 100%;
- }
-
- .post-title h3 {
- line-height: 1.6;
- }
-
- .content {
- margin-top: 420px;
- width: 100%;
- z-index: 2;
- position: absolute;
- }
-
- .footer {
- display: none;
- }
-
- .share {
- display: grid;
- }
-
- .page-top .nav {
- background-color: var(--secondary-bg-color);
- box-shadow: 0 8px 16px rgba(10, 10, 10, .1);
- padding: .5rem 0;
- width: 100%;
- display: none;
- margin-top: 0px;
- }
-
- .page-top .nav.is-active {
- /* display: block; */
- display: block;
- }
-
- .page-top .nav li {
- display: block;
- flex-grow: 0;
- flex-shrink: 0;
- line-height: 2.5;
- padding: .5rem .75rem;
- position: relative;
- text-transform: uppercase;
- text-align: center;
- font-size: 1.3em;
- }
-
- .page-top .nav a.current {
- border-bottom: none;
- }
-
- .navbar-burger {
- cursor: pointer;
- display: block;
- height: 3.25rem;
- position: relative;
- width: 3.25rem;
- margin-left: auto;
- }
-
- .navbar-burger span {
- background-color: var(--heading-color);
- display: block;
- height: 1px;
- left: calc(50% - 8px);
- position: absolute;
- transform-origin: center;
- transition-duration: 86ms;
- transition-property: background-color, opacity, transform;
- transition-timing-function: ease-out;
- width: 16px;
- }
-
- .navbar-burger span:nth-child(1) {
- top: calc(50% - 6px);
- }
-
- .navbar-burger span:nth-child(2) {
- top: calc(50% - 1px);
- }
-
- .navbar-burger span:nth-child(3) {
- top: calc(50% + 4px);
- }
-
- .theme-switch-item {
- float: none;
- }
-}
-
-/* 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 {
- .page-top {
- display: none;
- }
-}
-
-@media (min-width: $body_max_width){
- .content {
- padding-right: 25%;
- width: $content-max-width*0.75;
- }
- .sidebar {
- padding-left: 15%;
- width: $sidebar-max-width*0.85;
- }
- .page-top {
- // TODO fix menu bar
- width: $body_max_width - $sidebar-max-width;
- position: fixed;
- margin-left: -1* ($body_max_width/2 - $sidebar-max-width );
- z-index: 3;
- background-color: var(--bg-color);
- height: 60px;
- border-bottom: 1px solid var(--border-color);
- }
-}
-
--
Gitblit v1.10.0