summaryrefslogtreecommitdiffstats
path: root/assets/_fuji-theme/_light.scss
diff options
context:
space:
mode:
authoramzrk22020-05-27 22:53:13 +0800
committeramzrk22020-05-27 22:53:13 +0800
commitdfb6e1f80754c1c8f2d4d332c5292319f008a67b (patch)
treefd8c0cf13e03613b6a39c662b6a0ced87fb69157 /assets/_fuji-theme/_light.scss
parentaa5290aeef9df1c583fdf30290351968df9215dc (diff)
downloadhugo-theme-fuji-dfb6e1f80754c1c8f2d4d332c5292319f008a67b.tar.gz
hugo-theme-fuji-dfb6e1f80754c1c8f2d4d332c5292319f008a67b.tar.bz2
hugo-theme-fuji-dfb6e1f80754c1c8f2d4d332c5292319f008a67b.zip
v2 original port
Diffstat (limited to 'assets/_fuji-theme/_light.scss')
-rw-r--r--assets/_fuji-theme/_light.scss198
1 files changed, 198 insertions, 0 deletions
diff --git a/assets/_fuji-theme/_light.scss b/assets/_fuji-theme/_light.scss
new file mode 100644
index 0000000..58687ac
--- /dev/null
+++ b/assets/_fuji-theme/_light.scss
@@ -0,0 +1,198 @@
+$color-primary: #8aa2d3; // https://irocore.com/aofuji/
+$color-primary-dark: #3b469b; // https://irocore.com/aomurasaki/
+$color-secondary: #8f82bc; // https://irocore.com/fujimurasaki/
+$color-mute: #9ea1a3; // https://irocore.com/suzu-iro/
+$color-font: #3f4551; // https://irocore.com/konnezu/
+$color-divider: #e5e2e4; // https://irocore.com/komachinezu/
+$color-bg: #fffffd; // https://irocore.com/shiro/
+
+$divider: 2px solid $color-divider;
+
+@mixin link-1 {
+ a {
+ color: $color-primary;
+ }
+
+ a:hover {
+ color: $color-secondary;
+ }
+}
+
+@mixin link-2 {
+ a {
+ color: $color-secondary;
+ }
+
+ a:hover {
+ color: $color-primary-dark;
+ }
+}
+
+body[data-theme='light'] {
+ background-color: $color-bg;
+ color: $color-font;
+
+ @include link-1();
+
+ .post-summary,
+ .post-meta {
+ @include link-2();
+ }
+
+ .pag-current a,
+ .pag-current a:hover {
+ color: $color-primary-dark;
+ }
+
+ .title-sub,
+ .post-meta {
+ color: $color-mute;
+ }
+
+ header,
+ .page-info {
+ border-bottom: $divider;
+ }
+
+ .post + .post,
+ .pagination,
+ footer {
+ border-top: $divider;
+ }
+
+ .post-meta-archive {
+ @include link-2();
+
+ color: $color-mute;
+ }
+
+ @media screen and (max-width: $width-md) {
+ .sidebar {
+ border-top: $divider;
+ }
+ }
+
+ // single page part
+ .post-content {
+ @include link-2();
+ }
+
+ .markdown-body {
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6 {
+ color: $color-primary;
+ }
+
+ h1,
+ h2 {
+ border-bottom: $divider;
+ }
+
+ blockquote {
+ color: $color-mute;
+ }
+
+ img {
+ border-radius: 2px;
+ background-color: inherit; // fix white pixels under border-radius
+ }
+
+ hr {
+ height: 2px;
+ }
+
+ pre,
+ code {
+ background-color: #f2f2f2;
+ }
+ }
+
+ .post-loading,
+ .post-comment .utterances-frame,
+ .post-comment #disqus_thread {
+ border-top: $divider;
+ }
+
+ // components
+ .btn {
+ div {
+ background-color: $color-divider;
+
+ color: $color-primary;
+ }
+
+ div:hover {
+ background-color: $color-primary;
+ color: $color-divider;
+ }
+
+ div + div {
+ border-top: 2px solid $color-bg;
+ }
+ }
+
+ // highlight.js theme [solarized-light]
+ .hljs {
+ display: block;
+ overflow-x: auto;
+ }
+ .hljs-comment,
+ .hljs-quote {
+ color: #93a1a1;
+ }
+ .hljs-addition,
+ .hljs-keyword,
+ .hljs-selector-tag {
+ color: #859900;
+ }
+ .hljs-doctag,
+ .hljs-literal,
+ .hljs-meta .hljs-meta-string,
+ .hljs-number,
+ .hljs-regexp,
+ .hljs-string {
+ color: #2aa198;
+ }
+ .hljs-name,
+ .hljs-section,
+ .hljs-selector-class,
+ .hljs-selector-id,
+ .hljs-title {
+ color: #268bd2;
+ }
+ .hljs-attr,
+ .hljs-attribute,
+ .hljs-class .hljs-title,
+ .hljs-template-variable,
+ .hljs-type,
+ .hljs-variable {
+ color: #b58900;
+ }
+ .hljs-bullet,
+ .hljs-link,
+ .hljs-meta,
+ .hljs-meta .hljs-keyword,
+ .hljs-selector-attr,
+ .hljs-selector-pseudo,
+ .hljs-subst,
+ .hljs-symbol {
+ color: #ca5624;
+ }
+ .hljs-built_in,
+ .hljs-deletion {
+ color: #da4a47;
+ }
+ .hljs-formula {
+ background: #eee8d5;
+ }
+ .hljs-emphasis {
+ font-style: italic;
+ }
+ .hljs-strong {
+ font-weight: 600;
+ }
+}