-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
379 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
.hugo_build.lock | ||
public/ | ||
resources/ | ||
assets/ | ||
resources/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"paths": { | ||
"*": [ | ||
"../../../.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/!cai!jimmy/hugo-theme-stack/[email protected]/assets/*" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* | ||
You can add your own custom styles here. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,198 @@ | ||
.sidebar { | ||
&.sticky { | ||
@include respond(md) { | ||
position: sticky; | ||
} | ||
} | ||
} | ||
|
||
.left-sidebar { | ||
display: flex; | ||
flex-direction: column; | ||
flex-shrink: 0; | ||
align-self: stretch; | ||
gap: var(--sidebar-element-separation); | ||
max-width: none; | ||
width: 100%; | ||
position: relative; | ||
|
||
--sidebar-avatar-size: 150px; | ||
--sidebar-element-separation: 20px; | ||
--emoji-size: 40px; | ||
--emoji-font-size: 20px; | ||
|
||
@include respond(md) { | ||
width: auto; | ||
padding-top: var(--main-top-padding); | ||
padding-bottom: var(--main-top-padding); | ||
max-height: 100vh; | ||
} | ||
|
||
@include respond(2xl) { | ||
--sidebar-avatar-size: 240px; | ||
--sidebar-element-separation: 25px; | ||
--emoji-size: 40px; | ||
} | ||
|
||
&.sticky { | ||
top: 0; | ||
} | ||
|
||
&.compact { | ||
--sidebar-avatar-size: 80px; | ||
--emoji-size: 30px; | ||
--emoji-font-size: 15px; | ||
|
||
header { | ||
@include respond(lg) { | ||
flex-direction: row; | ||
} | ||
|
||
.site-meta { | ||
gap: 5px; | ||
} | ||
|
||
.site-name { | ||
font-size: 1.4rem; | ||
|
||
@include respond(2xl) { | ||
font-size: 1.75rem; | ||
} | ||
} | ||
|
||
.site-description { | ||
font-size: 1.4rem; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.right-sidebar { | ||
width: 100%; | ||
display: none; | ||
flex-direction: column; | ||
gap: var(--widget-separation); | ||
|
||
&.sticky { | ||
top: 0; | ||
} | ||
|
||
@include respond(lg) { | ||
padding-top: var(--main-top-padding); | ||
padding-bottom: var(--main-top-padding); | ||
} | ||
} | ||
|
||
.sidebar header { | ||
z-index: 1; | ||
transition: box-shadow 0.5s ease; | ||
display: flex; | ||
flex-direction: column; | ||
gap: var(--sidebar-element-separation); | ||
|
||
@include respond(md) { | ||
padding: 0; | ||
} | ||
|
||
.site-avatar { | ||
align-self: center; | ||
position: relative; | ||
margin: 0; | ||
width: var(--sidebar-avatar-size); | ||
height: var(--sidebar-avatar-size); | ||
flex-shrink: 0; | ||
|
||
.site-logo { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.emoji { | ||
position: absolute; | ||
width: var(--emoji-size); | ||
height: var(--emoji-size); | ||
line-height: var(--emoji-size); | ||
border-radius: 100%; | ||
bottom: 0; | ||
right: 0; | ||
text-align: center; | ||
font-size: var(--emoji-font-size); | ||
background-color: var(--card-background); | ||
box-shadow: var(--shadow-l2); | ||
} | ||
} | ||
|
||
.site-meta { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 10px; | ||
justify-content: center; | ||
} | ||
|
||
.site-name { | ||
color: var(--accent-color); | ||
margin: 0; | ||
font-size: 1.6rem; | ||
|
||
@include respond(2xl) { | ||
font-size: 1.8rem; | ||
} | ||
} | ||
|
||
.site-description { | ||
color: var(--body-text-color); | ||
font-weight: normal; | ||
margin: 0; | ||
font-size: 1.4rem; | ||
|
||
@include respond(2xl) { | ||
font-size: 1.6rem; | ||
} | ||
} | ||
} | ||
|
||
[data-scheme="dark"] { | ||
#dark-mode-toggle { | ||
color: var(--accent-color); | ||
font-weight: 700; | ||
|
||
.icon-tabler-toggle-left { | ||
display: none; | ||
} | ||
|
||
.icon-tabler-toggle-right { | ||
display: unset; | ||
} | ||
} | ||
} | ||
|
||
#dark-mode-toggle { | ||
margin-top: auto; | ||
color: var(--body-text-color); | ||
display: flex; | ||
align-items: center; | ||
cursor: pointer; | ||
gap: var(--menu-icon-separation); | ||
|
||
.icon-tabler-toggle-right { | ||
display: none; | ||
} | ||
} | ||
|
||
#i18n-switch { | ||
color: var(--body-text-color); | ||
display: inline-flex; | ||
align-content: center; | ||
gap: var(--menu-icon-separation); | ||
|
||
select { | ||
border: 0; | ||
background-color: transparent; | ||
color: var(--body-text-color); | ||
|
||
option { | ||
color: var(--card-text-color-main); | ||
background-color: var(--card-background); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
$defaultTagBackgrounds: #8ea885, #df7988, #0177b8, #ffb900, #6b69d6; | ||
$defaultTagColors: #fff, #fff, #fff, #fff, #fff; | ||
|
||
/* | ||
* Global style | ||
*/ | ||
:root { | ||
--main-top-padding: 35px; | ||
|
||
@include respond(xl) { | ||
--main-top-padding: 50px; | ||
} | ||
|
||
--body-background: #f5f5fa; | ||
|
||
--accent-color: #34495e; | ||
--accent-color-darker: #2c3e50; | ||
--accent-color-text: #fff; | ||
--body-text-color: #707070; | ||
|
||
--tag-border-radius: 4px; | ||
|
||
--section-separation: 40px; | ||
|
||
--scrollbar-thumb: hsl(0, 0%, 85%); | ||
--scrollbar-track: var(--body-background); | ||
|
||
&[data-scheme="dark"] { | ||
--body-background: #1b1b1e; | ||
--accent-color: #ecf0f1; | ||
--accent-color-darker: #bdc3c7; | ||
--accent-color-text: #000; | ||
--body-text-color: rgba(255, 255, 255, 0.7); | ||
--scrollbar-thumb: hsl(0, 0%, 40%); | ||
--scrollbar-track: var(--body-background); | ||
} | ||
} | ||
|
||
/** | ||
* Global font family | ||
*/ | ||
:root { | ||
--sys-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Droid Sans", "Helvetica Neue"; | ||
--zh-font-family: "PingFang SC", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei"; | ||
|
||
--base-font-family: "Lato", var(--sys-font-family), var(--zh-font-family), sans-serif; | ||
--code-font-family: Menlo, Monaco, Consolas, "Courier New", var(--zh-font-family), monospace; | ||
} | ||
|
||
/* | ||
* Card style | ||
*/ | ||
:root { | ||
--card-background: #fff; | ||
--card-background-selected: #eaeaea; | ||
|
||
--card-text-color-main: #000; | ||
--card-text-color-secondary: #747474; | ||
--card-text-color-tertiary: #767676; | ||
--card-separator-color: rgba(218, 218, 218, 0.5); | ||
|
||
--card-border-radius: 10px; | ||
|
||
--card-padding: 20px; | ||
|
||
@include respond(md) { | ||
--card-padding: 25px; | ||
} | ||
|
||
@include respond(xl) { | ||
--card-padding: 30px; | ||
} | ||
|
||
--small-card-padding: 25px 20px; | ||
|
||
@include respond(md) { | ||
--small-card-padding: 25px; | ||
} | ||
|
||
&[data-scheme="dark"] { | ||
--card-background: #424242; | ||
--card-background-selected: rgba(255, 255, 255, 0.16); | ||
--card-text-color-main: rgba(255, 255, 255, 0.9); | ||
--card-text-color-secondary: rgba(255, 255, 255, 0.7); | ||
--card-text-color-tertiary: rgba(255, 255, 255, 0.5); | ||
--card-separator-color: rgba(255, 255, 255, 0.12); | ||
} | ||
} | ||
|
||
/** | ||
* Article content font settings | ||
*/ | ||
:root { | ||
--article-font-family: var(--base-font-family); | ||
--article-font-size: 1.6rem; | ||
|
||
@include respond(md) { | ||
--article-font-size: 1.7rem; | ||
} | ||
|
||
--article-line-height: 1.85; | ||
} | ||
|
||
/* | ||
* Article content style | ||
*/ | ||
:root { | ||
--blockquote-border-size: 4px; | ||
--blockquote-background-color: rgb(248 248 248); | ||
|
||
--heading-border-size: 4px; | ||
|
||
--link-background-color: 189, 195, 199; | ||
--link-background-opacity: 0.5; | ||
--link-background-opacity-hover: 0.7; | ||
|
||
--pre-background-color: #272822; | ||
--pre-text-color: #f8f8f2; | ||
|
||
--code-background-color: rgba(0, 0, 0, 0.12); | ||
--code-text-color: #808080; | ||
|
||
--table-border-color: #dadada; | ||
--tr-even-background-color: #efefee; | ||
|
||
--kbd-border-color: #dadada; | ||
|
||
&[data-scheme="dark"] { | ||
--code-background-color: #272822; | ||
--code-text-color: rgba(255, 255, 255, 0.9); | ||
|
||
--table-border-color: #717171; | ||
--tr-even-background-color: #545454; | ||
|
||
--blockquote-background-color: rgb(75 75 75); | ||
} | ||
} | ||
|
||
/* | ||
* Shadow style | ||
* Thanks to https://www.figma.com/community/plugin/744987207861965946/Shadow-picker | ||
*/ | ||
:root { | ||
--shadow-l1: 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04); | ||
--shadow-l2: 0px 10px 20px rgba(0, 0, 0, 0.04), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04); | ||
--shadow-l3: 0px 10px 20px rgba(0, 0, 0, 0.04), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04); | ||
--shadow-l4: 0px 24px 32px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04), | ||
0px 0px 1px rgba(0, 0, 0, 0.04); | ||
} | ||
|
||
[data-scheme="light"] { | ||
--pre-text-color: #272822; | ||
--pre-background-color: #fafafa; | ||
@import "partials/highlight/light.scss"; | ||
} | ||
|
||
[data-scheme="dark"] { | ||
--pre-text-color: #f8f8f2; | ||
--pre-background-color: #272822; | ||
@import "partials/highlight/dark.scss"; | ||
} | ||
|
||
:root { | ||
--menu-icon-separation: 40px; | ||
--container-padding: 15px; | ||
--widget-separation: var(--section-separation); | ||
} |