jekyll-theme-chirpy-g 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +61 -0
- data/_data/locales/ar.yml +91 -0
- data/_data/locales/bg-BG.yml +81 -0
- data/_data/locales/cs-CZ.yml +89 -0
- data/_data/locales/de-DE.yml +87 -0
- data/_data/locales/el-GR.yml +91 -0
- data/_data/locales/en.yml +91 -0
- data/_data/locales/es-ES.yml +77 -0
- data/_data/locales/fa-IR.yaml +91 -0
- data/_data/locales/fi-FI.yml +90 -0
- data/_data/locales/fr-FR.yml +77 -0
- data/_data/locales/hu-HU.yml +92 -0
- data/_data/locales/id-ID.yml +77 -0
- data/_data/locales/it-IT.yml +90 -0
- data/_data/locales/ko-KR.yml +84 -0
- data/_data/locales/my-MM.yml +77 -0
- data/_data/locales/nl-NL.yml +90 -0
- data/_data/locales/pt-BR.yml +77 -0
- data/_data/locales/ru-RU.yml +87 -0
- data/_data/locales/sl-SI.yml +91 -0
- data/_data/locales/sv-SE.yml +91 -0
- data/_data/locales/th.yml +91 -0
- data/_data/locales/tr-TR.yml +77 -0
- data/_data/locales/uk-UA.yml +77 -0
- data/_data/locales/vi-VN.yml +76 -0
- data/_data/locales/zh-CN.yml +83 -0
- data/_data/locales/zh-TW.yml +83 -0
- data/_data/origin/basic.yml +39 -0
- data/_data/origin/cors.yml +54 -0
- data/_includes/analytics/cloudflare.html +6 -0
- data/_includes/analytics/fathom.html +6 -0
- data/_includes/analytics/goatcounter.html +6 -0
- data/_includes/analytics/google.html +13 -0
- data/_includes/analytics/matomo.html +13 -0
- data/_includes/analytics/umami.html +6 -0
- data/_includes/comment.html +5 -0
- data/_includes/comments/disqus.html +57 -0
- data/_includes/comments/giscus.html +55 -0
- data/_includes/comments/utterances.html +38 -0
- data/_includes/datetime.html +20 -0
- data/_includes/embed/audio.html +35 -0
- data/_includes/embed/bilibili.html +9 -0
- data/_includes/embed/twitch.html +8 -0
- data/_includes/embed/video.html +59 -0
- data/_includes/embed/youtube.html +9 -0
- data/_includes/favicons.html +19 -0
- data/_includes/footer.html +49 -0
- data/_includes/head.html +126 -0
- data/_includes/js-selector.html +86 -0
- data/_includes/jsdelivr-combine.html +26 -0
- data/_includes/lang.html +10 -0
- data/_includes/language-alias.html +70 -0
- data/_includes/media-url.html +37 -0
- data/_includes/metadata-hook.html +1 -0
- data/_includes/notification.html +24 -0
- data/_includes/origin-type.html +13 -0
- data/_includes/pageviews/goatcounter.html +21 -0
- data/_includes/post-description.html +25 -0
- data/_includes/post-nav.html +34 -0
- data/_includes/post-paginator.html +91 -0
- data/_includes/post-sharing.html +52 -0
- data/_includes/read-time.html +37 -0
- data/_includes/refactor-content.html +255 -0
- data/_includes/related-posts.html +94 -0
- data/_includes/search-loader.html +49 -0
- data/_includes/search-results.html +10 -0
- data/_includes/sidebar.html +97 -0
- data/_includes/toc-status.html +10 -0
- data/_includes/toc.html +9 -0
- data/_includes/topbar.html +77 -0
- data/_includes/trending-tags.html +46 -0
- data/_includes/update-list.html +40 -0
- data/_layouts/archives.html +35 -0
- data/_layouts/categories.html +138 -0
- data/_layouts/category.html +24 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/default.html +86 -0
- data/_layouts/graph.html +8 -0
- data/_layouts/home.html +122 -0
- data/_layouts/page.html +20 -0
- data/_layouts/post.html +179 -0
- data/_layouts/tag.html +23 -0
- data/_layouts/tags.html +22 -0
- data/_sass/abstracts/_breakpoints.scss +73 -0
- data/_sass/abstracts/_index.scss +4 -0
- data/_sass/abstracts/_mixins.scss +80 -0
- data/_sass/abstracts/_placeholders.scss +160 -0
- data/_sass/abstracts/_variables.scss +30 -0
- data/_sass/base/_base.scss +476 -0
- data/_sass/base/_index.scss +4 -0
- data/_sass/base/_reset.scss +41 -0
- data/_sass/base/_syntax.scss +253 -0
- data/_sass/base/_typography.scss +266 -0
- data/_sass/components/_buttons.scss +51 -0
- data/_sass/components/_index.scss +2 -0
- data/_sass/components/_popups.scss +172 -0
- data/_sass/layout/_footer.scss +36 -0
- data/_sass/layout/_index.scss +4 -0
- data/_sass/layout/_panel.scss +70 -0
- data/_sass/layout/_sidebar.scss +258 -0
- data/_sass/layout/_topbar.scss +86 -0
- data/_sass/main.bundle.scss +2 -0
- data/_sass/main.scss +4 -0
- data/_sass/pages/_archives.scss +140 -0
- data/_sass/pages/_categories.scss +82 -0
- data/_sass/pages/_category-tag.scss +63 -0
- data/_sass/pages/_graph.scss +51 -0
- data/_sass/pages/_home.scss +173 -0
- data/_sass/pages/_index.scss +8 -0
- data/_sass/pages/_post.scss +498 -0
- data/_sass/pages/_search.scss +184 -0
- data/_sass/pages/_tags.scss +23 -0
- data/_sass/themes/_dark.scss +318 -0
- data/_sass/themes/_light.scss +330 -0
- data/assets/404.html +14 -0
- data/assets/css/jekyll-theme-chirpy-g.scss +10 -0
- data/assets/feed.xml +54 -0
- data/assets/img/favicons/android-chrome-192x192.png +0 -0
- data/assets/img/favicons/android-chrome-512x512.png +0 -0
- data/assets/img/favicons/apple-touch-icon.png +0 -0
- data/assets/img/favicons/browserconfig.xml +13 -0
- data/assets/img/favicons/favicon-16x16.png +0 -0
- data/assets/img/favicons/favicon-32x32.png +0 -0
- data/assets/img/favicons/favicon.ico +0 -0
- data/assets/img/favicons/mstile-150x150.png +0 -0
- data/assets/img/favicons/site.webmanifest +26 -0
- data/assets/js/data/graph.json +14 -0
- data/assets/js/data/mathjax.js +25 -0
- data/assets/js/data/search.json +20 -0
- data/assets/js/data/swconf.js +47 -0
- data/assets/js/dist/app.min.js +7 -0
- data/assets/js/dist/categories.min.js +4 -0
- data/assets/js/dist/commons.min.js +4 -0
- data/assets/js/dist/graph.min.js +4 -0
- data/assets/js/dist/home.min.js +4 -0
- data/assets/js/dist/misc.min.js +4 -0
- data/assets/js/dist/page.min.js +4 -0
- data/assets/js/dist/post.min.js +4 -0
- data/assets/js/dist/sw.min.js +7 -0
- data/assets/js/dist/theme.min.js +4 -0
- data/assets/robots.txt +10 -0
- metadata +286 -0
@@ -0,0 +1,172 @@
|
|
1
|
+
@use '../abstracts/variables' as v;
|
2
|
+
@use '../abstracts/breakpoints' as bp;
|
3
|
+
@use '../abstracts/placeholders';
|
4
|
+
|
5
|
+
/* PWA update popup */
|
6
|
+
#notification {
|
7
|
+
@-webkit-keyframes popup {
|
8
|
+
from {
|
9
|
+
opacity: 0;
|
10
|
+
bottom: 0;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
@keyframes popup {
|
15
|
+
from {
|
16
|
+
opacity: 0;
|
17
|
+
bottom: 0;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.toast-header {
|
22
|
+
background: none;
|
23
|
+
border-bottom: none;
|
24
|
+
color: inherit;
|
25
|
+
}
|
26
|
+
|
27
|
+
.toast-body {
|
28
|
+
font-family: Lato, sans-serif;
|
29
|
+
line-height: 1.25rem;
|
30
|
+
|
31
|
+
button {
|
32
|
+
font-size: 90%;
|
33
|
+
min-width: 4rem;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
&.toast {
|
38
|
+
&.show {
|
39
|
+
display: block;
|
40
|
+
min-width: 20rem;
|
41
|
+
border-radius: 0.5rem;
|
42
|
+
-webkit-backdrop-filter: blur(10px);
|
43
|
+
backdrop-filter: blur(10px);
|
44
|
+
background-color: rgba(255, 255, 255, 0.5);
|
45
|
+
color: #1b1b1eba;
|
46
|
+
position: fixed;
|
47
|
+
left: 50%;
|
48
|
+
bottom: 20%;
|
49
|
+
transform: translateX(-50%);
|
50
|
+
-webkit-animation: popup 0.8s;
|
51
|
+
animation: popup 0.8s;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
#toc-popup {
|
57
|
+
$slide-in: slide-in 0.3s ease-out;
|
58
|
+
$slide-out: slide-out 0.3s ease-out;
|
59
|
+
$curtain-height: 2rem;
|
60
|
+
$backdrop: blur(5px);
|
61
|
+
|
62
|
+
border-color: var(--toc-popup-border-color);
|
63
|
+
border-width: 1px;
|
64
|
+
border-radius: v.$radius-lg;
|
65
|
+
color: var(--text-color);
|
66
|
+
background: var(--card-bg);
|
67
|
+
margin-top: v.$topbar-height;
|
68
|
+
min-width: 20rem;
|
69
|
+
font-size: 1.05rem;
|
70
|
+
|
71
|
+
@include bp.sm {
|
72
|
+
max-width: 32rem;
|
73
|
+
}
|
74
|
+
|
75
|
+
&[open] {
|
76
|
+
-webkit-animation: $slide-in;
|
77
|
+
animation: $slide-in;
|
78
|
+
}
|
79
|
+
|
80
|
+
&[closing] {
|
81
|
+
-webkit-animation: $slide-out;
|
82
|
+
animation: $slide-out;
|
83
|
+
}
|
84
|
+
|
85
|
+
@include bp.lg {
|
86
|
+
left: v.$sidebar-width;
|
87
|
+
}
|
88
|
+
|
89
|
+
.header {
|
90
|
+
@extend %btn-color;
|
91
|
+
|
92
|
+
position: -webkit-sticky;
|
93
|
+
position: sticky;
|
94
|
+
top: 0;
|
95
|
+
background-color: inherit;
|
96
|
+
border-bottom: 1px solid var(--main-border-color);
|
97
|
+
|
98
|
+
.label {
|
99
|
+
font-family: v.$font-family-heading;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
button {
|
104
|
+
> i {
|
105
|
+
font-size: 1.25rem;
|
106
|
+
vertical-align: middle;
|
107
|
+
}
|
108
|
+
|
109
|
+
&:focus-visible {
|
110
|
+
box-shadow: none;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
ul {
|
115
|
+
list-style-type: none;
|
116
|
+
padding-left: 0;
|
117
|
+
|
118
|
+
li {
|
119
|
+
ul,
|
120
|
+
& + li {
|
121
|
+
margin-top: 0.25rem;
|
122
|
+
}
|
123
|
+
|
124
|
+
a {
|
125
|
+
display: flex;
|
126
|
+
line-height: 1.5;
|
127
|
+
padding: 0.375rem 0;
|
128
|
+
padding-right: 1.125rem;
|
129
|
+
|
130
|
+
&.toc-link::before {
|
131
|
+
display: none;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
@for $i from 2 through 4 {
|
138
|
+
.node-name--H#{$i} {
|
139
|
+
padding-left: 1.125rem * ($i - 1);
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
.is-active-link {
|
144
|
+
color: var(--toc-highlight) !important;
|
145
|
+
font-weight: 600;
|
146
|
+
}
|
147
|
+
|
148
|
+
&::-webkit-backdrop {
|
149
|
+
-webkit-backdrop-filter: $backdrop;
|
150
|
+
backdrop-filter: $backdrop;
|
151
|
+
}
|
152
|
+
|
153
|
+
&::backdrop {
|
154
|
+
-webkit-backdrop-filter: $backdrop;
|
155
|
+
backdrop-filter: $backdrop;
|
156
|
+
}
|
157
|
+
|
158
|
+
&::after {
|
159
|
+
display: flex;
|
160
|
+
content: '';
|
161
|
+
position: relative;
|
162
|
+
background: linear-gradient(transparent, var(--card-bg) 70%);
|
163
|
+
height: $curtain-height;
|
164
|
+
}
|
165
|
+
|
166
|
+
#toc-popup-content {
|
167
|
+
overflow: auto;
|
168
|
+
max-height: calc(100vh - 4 * v.$topbar-height);
|
169
|
+
font-family: v.$font-family-heading;
|
170
|
+
margin-bottom: -$curtain-height;
|
171
|
+
}
|
172
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
@use '../abstracts/breakpoints' as bp;
|
2
|
+
@use '../abstracts/variables' as v;
|
3
|
+
@use '../abstracts/mixins' as mx;
|
4
|
+
@use '../abstracts/placeholders';
|
5
|
+
|
6
|
+
footer {
|
7
|
+
background-color: var(--main-bg);
|
8
|
+
height: v.$footer-height;
|
9
|
+
border-top: 1px solid var(--main-border-color);
|
10
|
+
|
11
|
+
@extend %text-xs;
|
12
|
+
|
13
|
+
@include bp.lt(bp.get(lg)) {
|
14
|
+
@include mx.slide;
|
15
|
+
|
16
|
+
height: v.$footer-height-large;
|
17
|
+
padding: 1.5rem 0;
|
18
|
+
}
|
19
|
+
|
20
|
+
a {
|
21
|
+
@extend %text-highlight;
|
22
|
+
|
23
|
+
&:hover {
|
24
|
+
@extend %link-hover;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
em {
|
29
|
+
@extend %text-highlight;
|
30
|
+
}
|
31
|
+
|
32
|
+
p {
|
33
|
+
text-align: center;
|
34
|
+
margin-bottom: 0;
|
35
|
+
}
|
36
|
+
}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
@use '../abstracts/breakpoints' as bp;
|
2
|
+
@use '../abstracts/mixins' as mx;
|
3
|
+
@use '../abstracts/placeholders';
|
4
|
+
|
5
|
+
.access {
|
6
|
+
top: 2rem;
|
7
|
+
transition: top 0.2s ease-in-out;
|
8
|
+
margin-top: 3rem;
|
9
|
+
|
10
|
+
&:only-child {
|
11
|
+
position: -webkit-sticky;
|
12
|
+
position: sticky;
|
13
|
+
}
|
14
|
+
|
15
|
+
> section {
|
16
|
+
@extend %panel-border;
|
17
|
+
|
18
|
+
padding-left: 1rem;
|
19
|
+
|
20
|
+
&:not(:first-child) {
|
21
|
+
margin-top: 4rem;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
.content {
|
26
|
+
font-size: 0.9rem;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
#panel-wrapper {
|
31
|
+
/* the headings */
|
32
|
+
.panel-heading {
|
33
|
+
font-family: inherit;
|
34
|
+
line-height: inherit;
|
35
|
+
|
36
|
+
@include mx.label(inherit);
|
37
|
+
}
|
38
|
+
|
39
|
+
.post-tag {
|
40
|
+
line-height: 1.05rem;
|
41
|
+
font-size: 0.85rem;
|
42
|
+
border-radius: 0.8rem;
|
43
|
+
padding: 0.3rem 0.5rem;
|
44
|
+
margin: 0 0.35rem 0.5rem 0;
|
45
|
+
|
46
|
+
&:hover {
|
47
|
+
transition: all 0.3s ease-in;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
> :last-child {
|
52
|
+
margin-bottom: 4rem;
|
53
|
+
}
|
54
|
+
|
55
|
+
@include bp.lt(bp.get(xl)) {
|
56
|
+
display: none;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
#access-lastmod {
|
61
|
+
a {
|
62
|
+
color: inherit;
|
63
|
+
|
64
|
+
&:hover {
|
65
|
+
@extend %link-hover;
|
66
|
+
}
|
67
|
+
|
68
|
+
@extend %no-bottom-border;
|
69
|
+
}
|
70
|
+
}
|
@@ -0,0 +1,258 @@
|
|
1
|
+
@use '../abstracts/variables' as v;
|
2
|
+
@use '../abstracts/mixins' as mx;
|
3
|
+
@use '../abstracts/breakpoints' as bp;
|
4
|
+
@use '../abstracts/placeholders';
|
5
|
+
|
6
|
+
$btn-border-width: 3px;
|
7
|
+
$btn-mb: 0.5rem;
|
8
|
+
$sidebar-display: 'sidebar-display'; /* the attribute for sidebar display */
|
9
|
+
|
10
|
+
#sidebar {
|
11
|
+
@include mx.pl-pr(0);
|
12
|
+
|
13
|
+
position: fixed;
|
14
|
+
top: 0;
|
15
|
+
left: 0;
|
16
|
+
height: 100%;
|
17
|
+
overflow-y: auto;
|
18
|
+
width: v.$sidebar-width;
|
19
|
+
background: var(--sidebar-bg);
|
20
|
+
border-right: 1px solid var(--sidebar-border-color);
|
21
|
+
|
22
|
+
/* Hide scrollbar for IE, Edge and Firefox */
|
23
|
+
-ms-overflow-style: none; /* IE and Edge */
|
24
|
+
scrollbar-width: none; /* Firefox */
|
25
|
+
|
26
|
+
/* Hide scrollbar for Chrome, Safari and Opera */
|
27
|
+
&::-webkit-scrollbar {
|
28
|
+
display: none;
|
29
|
+
}
|
30
|
+
|
31
|
+
@include bp.lt(bp.get(lg)) {
|
32
|
+
@include mx.slide;
|
33
|
+
|
34
|
+
transform: translateX(-#{v.$sidebar-width}); /* hide */
|
35
|
+
-webkit-transform: translateX(-#{v.$sidebar-width});
|
36
|
+
|
37
|
+
[#{$sidebar-display}] & {
|
38
|
+
transform: translateX(0);
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
@include bp.xxxl {
|
43
|
+
width: v.$sidebar-width-large;
|
44
|
+
}
|
45
|
+
|
46
|
+
%sidebar-link-hover {
|
47
|
+
&:hover {
|
48
|
+
color: var(--sidebar-active-color);
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
a {
|
53
|
+
@extend %sidebar-links;
|
54
|
+
}
|
55
|
+
|
56
|
+
#avatar {
|
57
|
+
display: block;
|
58
|
+
width: 6.5rem;
|
59
|
+
height: 6.5rem;
|
60
|
+
overflow: hidden;
|
61
|
+
box-shadow: var(--avatar-border-color) 0 0 0 2px;
|
62
|
+
transform: translateZ(0); /* fixed the zoom in Safari */
|
63
|
+
|
64
|
+
@include bp.sm {
|
65
|
+
width: 7rem;
|
66
|
+
height: 7rem;
|
67
|
+
}
|
68
|
+
|
69
|
+
img {
|
70
|
+
transition: transform 0.5s;
|
71
|
+
|
72
|
+
&:hover {
|
73
|
+
transform: scale(1.2);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
.profile-wrapper {
|
79
|
+
@include mx.mt-mb(2.5rem);
|
80
|
+
@extend %clickable-transition;
|
81
|
+
|
82
|
+
padding-left: 2.5rem;
|
83
|
+
padding-right: 1.25rem;
|
84
|
+
width: 100%;
|
85
|
+
|
86
|
+
@include bp.lg {
|
87
|
+
margin-top: 3rem;
|
88
|
+
}
|
89
|
+
|
90
|
+
@include bp.xxxl {
|
91
|
+
margin-top: 3.5rem;
|
92
|
+
margin-bottom: 2.5rem;
|
93
|
+
padding-left: 3.5rem;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
.site-title {
|
98
|
+
@extend %clickable-transition;
|
99
|
+
@extend %sidebar-link-hover;
|
100
|
+
|
101
|
+
font-family: inherit;
|
102
|
+
font-weight: 900;
|
103
|
+
font-size: 1.75rem;
|
104
|
+
line-height: 1.2;
|
105
|
+
letter-spacing: 0.25px;
|
106
|
+
margin-top: 1.25rem;
|
107
|
+
margin-bottom: 0.5rem;
|
108
|
+
width: fit-content;
|
109
|
+
color: var(--site-title-color);
|
110
|
+
}
|
111
|
+
|
112
|
+
.site-subtitle {
|
113
|
+
font-size: 95%;
|
114
|
+
color: var(--site-subtitle-color);
|
115
|
+
margin-top: 0.25rem;
|
116
|
+
word-spacing: 1px;
|
117
|
+
-webkit-user-select: none;
|
118
|
+
-moz-user-select: none;
|
119
|
+
-ms-user-select: none;
|
120
|
+
user-select: none;
|
121
|
+
}
|
122
|
+
|
123
|
+
ul {
|
124
|
+
margin-bottom: 2rem;
|
125
|
+
|
126
|
+
li.nav-item {
|
127
|
+
opacity: 0.9;
|
128
|
+
width: 100%;
|
129
|
+
|
130
|
+
@include mx.pl-pr(1.5rem);
|
131
|
+
|
132
|
+
@include bp.xxxl {
|
133
|
+
@include mx.pl-pr(2.75rem);
|
134
|
+
}
|
135
|
+
|
136
|
+
a.nav-link {
|
137
|
+
@include mx.pt-pb(0.6rem);
|
138
|
+
|
139
|
+
display: flex;
|
140
|
+
align-items: center;
|
141
|
+
border-radius: 0.75rem;
|
142
|
+
font-weight: 600;
|
143
|
+
|
144
|
+
&:hover {
|
145
|
+
background-color: var(--sidebar-hover-bg);
|
146
|
+
}
|
147
|
+
|
148
|
+
i {
|
149
|
+
font-size: 95%;
|
150
|
+
opacity: 0.8;
|
151
|
+
margin-right: 1.5rem;
|
152
|
+
}
|
153
|
+
|
154
|
+
span {
|
155
|
+
font-size: 90%;
|
156
|
+
letter-spacing: 0.2px;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
&.active {
|
161
|
+
.nav-link {
|
162
|
+
color: var(--sidebar-active-color);
|
163
|
+
background-color: var(--sidebar-hover-bg);
|
164
|
+
|
165
|
+
span {
|
166
|
+
opacity: 1;
|
167
|
+
}
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
&:not(:first-child) {
|
172
|
+
margin-top: 0.25rem;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
}
|
176
|
+
|
177
|
+
.sidebar-bottom {
|
178
|
+
padding-left: 2rem;
|
179
|
+
padding-right: 1rem;
|
180
|
+
margin-bottom: 1.5rem;
|
181
|
+
|
182
|
+
@include bp.xxxl {
|
183
|
+
padding-left: 2.75rem;
|
184
|
+
margin-bottom: 1.75rem;
|
185
|
+
}
|
186
|
+
|
187
|
+
$btn-size: 1.75rem;
|
188
|
+
|
189
|
+
%button {
|
190
|
+
width: $btn-size;
|
191
|
+
height: $btn-size;
|
192
|
+
margin-bottom: $btn-mb; // multi line gap
|
193
|
+
border-radius: 50%;
|
194
|
+
color: var(--sidebar-btn-color);
|
195
|
+
background-color: var(--sidebar-btn-bg);
|
196
|
+
text-align: center;
|
197
|
+
display: flex;
|
198
|
+
align-items: center;
|
199
|
+
justify-content: center;
|
200
|
+
|
201
|
+
&:not(:focus-visible) {
|
202
|
+
box-shadow: var(--sidebar-border-color) 0 0 0 1px;
|
203
|
+
}
|
204
|
+
|
205
|
+
&:hover {
|
206
|
+
background-color: var(--sidebar-hover-bg);
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
a {
|
211
|
+
@extend %button;
|
212
|
+
@extend %sidebar-link-hover;
|
213
|
+
@extend %clickable-transition;
|
214
|
+
|
215
|
+
&:not(:last-child) {
|
216
|
+
margin-right: v.$sb-btn-gap;
|
217
|
+
|
218
|
+
@include bp.xxxl {
|
219
|
+
margin-right: v.$sb-btn-gap-lg;
|
220
|
+
}
|
221
|
+
}
|
222
|
+
}
|
223
|
+
|
224
|
+
i {
|
225
|
+
line-height: $btn-size;
|
226
|
+
}
|
227
|
+
|
228
|
+
#mode-toggle {
|
229
|
+
@extend %button;
|
230
|
+
@extend %sidebar-links;
|
231
|
+
@extend %sidebar-link-hover;
|
232
|
+
}
|
233
|
+
|
234
|
+
.icon-border {
|
235
|
+
@extend %no-cursor;
|
236
|
+
@include mx.ml-mr(calc((v.$sb-btn-gap - $btn-border-width) / 2));
|
237
|
+
|
238
|
+
background-color: var(--sidebar-btn-color);
|
239
|
+
content: '';
|
240
|
+
width: $btn-border-width;
|
241
|
+
height: $btn-border-width;
|
242
|
+
border-radius: 50%;
|
243
|
+
margin-bottom: $btn-mb;
|
244
|
+
|
245
|
+
@include bp.xxxl {
|
246
|
+
@include mx.ml-mr(calc((v.$sb-btn-gap-lg - $btn-border-width) / 2));
|
247
|
+
}
|
248
|
+
}
|
249
|
+
} /* .sidebar-bottom */
|
250
|
+
} /* #sidebar */
|
251
|
+
|
252
|
+
[#{$sidebar-display}] {
|
253
|
+
#main-wrapper {
|
254
|
+
@include bp.lt(bp.get(lg)) {
|
255
|
+
transform: translateX(v.$sidebar-width);
|
256
|
+
}
|
257
|
+
}
|
258
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
@use '../abstracts/variables' as v;
|
2
|
+
@use '../abstracts/mixins' as mx;
|
3
|
+
@use '../abstracts/breakpoints' as bp;
|
4
|
+
@use '../abstracts/placeholders';
|
5
|
+
|
6
|
+
#topbar-wrapper {
|
7
|
+
height: v.$topbar-height;
|
8
|
+
background-color: var(--topbar-bg);
|
9
|
+
|
10
|
+
@include bp.lt(bp.get(lg)) {
|
11
|
+
@include mx.slide(top 0.2s ease);
|
12
|
+
|
13
|
+
left: 0;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
#topbar {
|
18
|
+
@extend %btn-color;
|
19
|
+
|
20
|
+
#breadcrumb {
|
21
|
+
font-size: 1rem;
|
22
|
+
color: var(--text-muted-color);
|
23
|
+
padding-left: 0.5rem;
|
24
|
+
|
25
|
+
a:hover {
|
26
|
+
@extend %link-hover;
|
27
|
+
}
|
28
|
+
|
29
|
+
span {
|
30
|
+
&:not(:last-child) {
|
31
|
+
&::after {
|
32
|
+
content: '›';
|
33
|
+
padding: 0 0.3rem;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
@include bp.lt(bp.get(lg)) {
|
39
|
+
display: none;
|
40
|
+
}
|
41
|
+
|
42
|
+
@include bp.between(bp.get(lg), calc(#{bp.get(xl)} - 1px)) {
|
43
|
+
width: 65%;
|
44
|
+
overflow: hidden;
|
45
|
+
text-overflow: ellipsis;
|
46
|
+
word-break: keep-all;
|
47
|
+
white-space: nowrap;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
@include bp.lte(bp.get(md)) {
|
52
|
+
@include mx.max-w-100;
|
53
|
+
}
|
54
|
+
|
55
|
+
@include bp.lt(bp.get(lg)) {
|
56
|
+
max-width: 100%;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
#topbar-title {
|
61
|
+
display: none;
|
62
|
+
font-size: 1.1rem;
|
63
|
+
font-weight: 600;
|
64
|
+
font-family: sans-serif;
|
65
|
+
color: var(--topbar-text-color);
|
66
|
+
text-align: center;
|
67
|
+
width: 70%;
|
68
|
+
word-break: keep-all;
|
69
|
+
|
70
|
+
@include bp.lt(bp.get(lg)) {
|
71
|
+
display: block;
|
72
|
+
}
|
73
|
+
|
74
|
+
@include bp.lg {
|
75
|
+
text-align: left;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
#sidebar-trigger,
|
80
|
+
#search-trigger {
|
81
|
+
display: none;
|
82
|
+
|
83
|
+
@include bp.lt(bp.get(lg)) {
|
84
|
+
display: block;
|
85
|
+
}
|
86
|
+
}
|
data/_sass/main.scss
ADDED