redeyed-jekyll-theme 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +21 -21
- data/README.md +54 -52
- data/_config.yml +25 -18
- data/_data/assets/cross-origin.yml +1 -7
- data/_data/assets/self-host.yml +0 -6
- data/_data/locale/en.yml +63 -58
- data/_data/locale/es-ES.yml +79 -0
- data/_data/locale/fr-FR.yml +79 -0
- data/_data/locale/id-ID.yml +79 -0
- data/_data/locale/ko-KR.yml +79 -0
- data/_data/locale/my-MM.yml +79 -0
- data/_data/locale/pt-BR.yml +79 -0
- data/_data/locale/ru-RU.yml +79 -0
- data/_data/locale/uk-UA.yml +79 -0
- data/_data/locale/vi-VN.yml +77 -0
- data/_data/locale/zh-CN.yml +78 -0
- data/_includes/{breadcrumbs.html → elements/breadcrumbs.html} +0 -0
- data/_includes/{datetime.html → elements/datetime.html} +0 -0
- data/_includes/{favicons.html → elements/favicons.html} +14 -14
- data/_includes/{javascript.html → elements/javascript.html} +2 -2
- data/_includes/{jsdelivr-combine.html → elements/jsdelivr-combine.html} +18 -18
- data/_includes/elements/lang.html +11 -0
- data/_includes/{navbar.html → elements/navbar.html} +5 -5
- data/_includes/{no-linenos.html → elements/no-linenos.html} +0 -0
- data/_includes/{options.html → elements/options.html} +13 -13
- data/_includes/{pagination.html → elements/pagination.html} +0 -0
- data/_includes/{readtime.html → elements/readtime.html} +0 -0
- data/_includes/{related-posts.html → elements/related-posts.html} +0 -0
- data/_includes/{search-loader.html → elements/search-loader.html} +46 -46
- data/_includes/{search-results.html → elements/search-results.html} +0 -0
- data/_includes/{toc.html → elements/toc.html} +0 -0
- data/_includes/{back-to-top.html → extensions/back-to-top.html} +2 -2
- data/_includes/extensions/code-highlight.html +89 -0
- data/_includes/extensions/comments/disqus.html +17 -0
- data/_includes/extensions/comments/giscus.html +56 -0
- data/_includes/extensions/comments/gitment.html +15 -0
- data/_includes/extensions/comments/utterances.html +46 -0
- data/_includes/extensions/geopattern.html +19 -0
- data/_includes/extensions/google-analytics.html +7 -0
- data/_includes/{google-tags-body.html → extensions/google-tags-body.html} +3 -3
- data/_includes/{google-tags-head.html → extensions/google-tags-head.html} +5 -5
- data/_includes/extensions/google-translate.html +108 -0
- data/_includes/extensions/hashlocate.html +44 -0
- data/_includes/extensions/mathjax.html +9 -0
- data/_includes/{mode-toggle.html → extensions/theme-mode.html} +0 -10
- data/_includes/extensions/theme-toggle.html +108 -0
- data/_includes/extensions/trianglify.html +26 -0
- data/_includes/functions/get-article-excerpt.html +33 -0
- data/_includes/functions/get-article-words.html +18 -0
- data/_includes/functions/get-banner.html +67 -0
- data/_includes/functions/get-categories.html +9 -0
- data/_includes/functions/get-datetimes.html +13 -0
- data/_includes/functions/get-reading-time.html +39 -0
- data/_includes/functions/get-tags.html +9 -0
- data/_includes/functions/get-value.html +41 -0
- data/_includes/functions/log.html +17 -0
- data/_includes/head.html +4 -4
- data/_includes/{copyright.html → views/copyright.html} +0 -0
- data/_includes/{footer.html → views/footer.html} +0 -0
- data/_includes/{header-banner.html → views/header-banner.html} +0 -0
- data/_includes/{header-wide.html → views/header-wide.html} +0 -0
- data/_includes/{header.html → views/header.html} +0 -0
- data/_includes/{panel-bottom.html → views/panel-bottom.html} +0 -0
- data/_includes/{panel-foot-2.html → views/panel-foot-2.html} +0 -0
- data/_includes/{panel-foot-3.html → views/panel-foot-3.html} +0 -0
- data/_includes/{panel-foot-4.html → views/panel-foot-4.html} +0 -0
- data/_includes/{panel-foot-full.html → views/panel-foot-full.html} +0 -0
- data/_includes/{panel-top-2.html → views/panel-top-2.html} +0 -0
- data/_includes/{panel-top-3.html → views/panel-top-3.html} +0 -0
- data/_includes/{panel-top-4.html → views/panel-top-4.html} +0 -0
- data/_includes/{panel-top-full.html → views/panel-top-full.html} +0 -0
- data/_includes/{post-nav.html → views/post-nav.html} +0 -0
- data/_includes/{post-share.html → views/post-share.html} +0 -0
- data/_includes/{sidebar.html → views/sidebar.html} +0 -0
- data/_javascript/common/back-to-top.js +20 -20
- data/_javascript/common/mode-toggle.js +13 -13
- data/_javascript/common/scroll-helper.js +36 -36
- data/_javascript/common/search-display.js +129 -129
- data/_javascript/common/sidebar.js +30 -30
- data/_javascript/common/tooltip-loader.js +6 -6
- data/_javascript/common/topbar-switcher.js +90 -90
- data/_javascript/common/topbar-title.js +67 -67
- data/_javascript/utils/category-collapse.js +30 -30
- data/_javascript/utils/checkbox.js +12 -12
- data/_javascript/utils/clipboard.js +133 -133
- data/_javascript/utils/img-extra.js +47 -47
- data/_javascript/utils/locale-datetime.js +45 -45
- data/_javascript/utils/pageviews.js +250 -250
- data/_javascript/utils/smooth-scroll.js +96 -96
- data/_layouts/archive.html +5 -0
- data/_layouts/categories.html +5 -0
- data/_layouts/category.html +5 -0
- data/_layouts/compress.html +10 -10
- data/_layouts/error.html +44 -0
- data/_layouts/errors/404.html +9 -0
- data/_layouts/home.html +5 -0
- data/_layouts/page.html +5 -5
- data/_layouts/panel-both.html +13 -13
- data/_layouts/panel-left.html +13 -13
- data/_layouts/panel-none.html +24 -26
- data/_layouts/panel-right.html +13 -13
- data/_layouts/post.html +5 -5
- data/_layouts/tag.html +5 -0
- data/_layouts/tags.html +5 -0
- data/{_includes/comments.html → _sass/addon/alerts.scss} +0 -0
- data/_sass/addon/common.scss +56 -1494
- data/_sass/addon/mixins.scss +31 -38
- data/_sass/addon/syntax.scss +246 -0
- data/_sass/{layout/page.scss → addon/typography.scss} +0 -0
- data/_sass/layout/_base.scss +16 -0
- data/_sass/redeyed-jekyll-theme.scss +30 -15
- data/_sass/{layout/panel-both.scss → theme/scheme-brew.scss} +0 -0
- data/_sass/theme/scheme-dark.scss +220 -0
- data/_sass/theme/scheme-light.scss +220 -0
- data/_sass/theme/syntax-dark.scss +150 -0
- data/_sass/{colors/light-syntax.scss → theme/syntax-light.scss} +4 -4
- data/_sass/theme/variables.scss +60 -0
- metadata +147 -105
- data/_includes/ga-site-tag.html +0 -8
- data/_includes/lang.html +0 -6
- data/_includes/mermaid.html +0 -1
- data/_sass/addon/variables.scss +0 -31
- data/_sass/colors/brew-scheme.scss +0 -7
- data/_sass/colors/dark-scheme.scss +0 -21
- data/_sass/colors/dark-syntax.scss +0 -88
- data/_sass/colors/light-scheme.scss +0 -7
- data/_sass/layout/panel-left.scss +0 -0
- data/_sass/layout/panel-none.scss +0 -146
- data/_sass/layout/panel-right.scss +0 -0
- data/_sass/layout/post.scss +0 -0
data/_sass/addon/mixins.scss
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
/*
|
2
|
-
|
3
|
-
*/
|
2
|
+
* SCSS MODULES & MIXINS
|
3
|
+
*/
|
4
4
|
|
5
5
|
%heading {
|
6
|
-
color: var(--heading-color);
|
7
|
-
font-weight: 400;
|
8
6
|
font-family: 'Cormorant Unicase', serif;
|
7
|
+
font-weight: 600;
|
9
8
|
}
|
10
9
|
|
11
10
|
%section {
|
@@ -14,20 +13,20 @@
|
|
14
13
|
margin-bottom: 1.25rem;
|
15
14
|
|
16
15
|
&:focus {
|
17
|
-
outline: none;
|
16
|
+
outline: none; /* avoid outline in Safari */
|
18
17
|
}
|
19
18
|
}
|
20
19
|
}
|
21
20
|
|
22
21
|
%anchor {
|
23
22
|
.anchor {
|
24
|
-
font-size:
|
23
|
+
font-size: 0.8rem;
|
25
24
|
}
|
26
25
|
|
27
26
|
@media (hover: hover) {
|
28
27
|
.anchor {
|
29
28
|
visibility: hidden;
|
30
|
-
opacity:
|
29
|
+
opacity: 0;
|
31
30
|
transition: opacity 0.25s ease-in, visibility 0s ease-in 0.25s;
|
32
31
|
}
|
33
32
|
|
@@ -42,25 +41,26 @@
|
|
42
41
|
}
|
43
42
|
|
44
43
|
%tag-hover {
|
45
|
-
background: var(--tag-hover);
|
46
|
-
|
44
|
+
background: var(--tag-hover-bg);
|
45
|
+
border-color: var(--tag-hover-border);
|
46
|
+
transition: border-color 0.35s ease-in-out, background 0.35s ease-in-out;
|
47
47
|
}
|
48
48
|
|
49
49
|
%table-cell {
|
50
50
|
padding: 0.4rem 1rem;
|
51
|
-
font-size:
|
51
|
+
font-size: 0.95rem;
|
52
52
|
white-space: nowrap;
|
53
53
|
}
|
54
54
|
|
55
55
|
%link-hover {
|
56
|
-
color: var(--link-hover);
|
57
|
-
border-bottom: 1px solid var(--link-hover
|
56
|
+
color: var(--link-hover) !important;
|
57
|
+
border-bottom: 1px solid var(--link-hover);
|
58
58
|
text-decoration: none;
|
59
59
|
}
|
60
60
|
|
61
61
|
%link-color { color: var(--link-color); }
|
62
62
|
|
63
|
-
%link-underline { border-bottom: 1px solid var(--link-
|
63
|
+
%link-underline { border-bottom: 1px solid var(--link-color); }
|
64
64
|
|
65
65
|
%clickable-transition { transition: color 0.35s ease-in-out; }
|
66
66
|
|
@@ -72,25 +72,28 @@
|
|
72
72
|
|
73
73
|
%normal-font-style { font-style: normal; }
|
74
74
|
|
75
|
-
%text-color { color: var(--text-color); }
|
76
|
-
|
77
75
|
%img-caption {
|
78
76
|
+ em {
|
79
77
|
display: block;
|
80
78
|
text-align: center;
|
81
79
|
font-style: normal;
|
82
|
-
font-size:
|
80
|
+
font-size: 0.8rem;
|
83
81
|
padding: 0;
|
84
|
-
color:
|
82
|
+
color: var(--text-color);
|
85
83
|
}
|
86
84
|
}
|
87
85
|
|
88
86
|
%sidebar-links {
|
89
|
-
color: var(--sidebar-link
|
87
|
+
color: var(--sidebar-link);
|
90
88
|
user-select: none;
|
91
89
|
}
|
92
90
|
|
93
|
-
|
91
|
+
%alert {
|
92
|
+
display: flex;
|
93
|
+
border-left: 0;
|
94
|
+
border-radius: 6px;
|
95
|
+
padding: 0.75rem 1.2rem;
|
96
|
+
}
|
94
97
|
|
95
98
|
@mixin no-text-decoration { text-decoration: none; }
|
96
99
|
|
@@ -99,9 +102,9 @@
|
|
99
102
|
margin-right: $value;
|
100
103
|
}
|
101
104
|
|
102
|
-
@mixin pl-pr($
|
103
|
-
padding-left: $
|
104
|
-
padding-right: $
|
105
|
+
@mixin pl-pr($value) {
|
106
|
+
padding-left: $value;
|
107
|
+
padding-right: $value;
|
105
108
|
}
|
106
109
|
|
107
110
|
@mixin input-placeholder { opacity: 0.6; }
|
@@ -120,25 +123,15 @@
|
|
120
123
|
transform: translateX(-50%);
|
121
124
|
}
|
122
125
|
|
123
|
-
@mixin
|
124
|
-
&.
|
125
|
-
background-color: var(--
|
126
|
-
|
126
|
+
@mixin alert($type, $fw-icon, $icon-weight: 900) {
|
127
|
+
&.alert-#{$type} {
|
128
|
+
background-color: var(--alert-#{$type}-bg);
|
129
|
+
border: 1px solid var(--alert-#{$type}-border);
|
130
|
+
box-shadow: 3px 3px var(--blockquote-shadow);
|
127
131
|
&::before {
|
128
132
|
content: $fw-icon;
|
129
|
-
color: var(--
|
133
|
+
color: var(--alert-#{$type}-text);
|
130
134
|
font-weight: $icon-weight;
|
131
135
|
}
|
132
136
|
}
|
133
137
|
}
|
134
|
-
|
135
|
-
@mixin slide($append: null) {
|
136
|
-
$basic: transform 0.4s ease;
|
137
|
-
@if $append {
|
138
|
-
-webkit-transition: $basic, $append;
|
139
|
-
transition: $basic, $append;
|
140
|
-
} @else {
|
141
|
-
-webkit-transition: $basic;
|
142
|
-
transition: $basic;
|
143
|
-
}
|
144
|
-
}
|
data/_sass/addon/syntax.scss
CHANGED
@@ -0,0 +1,246 @@
|
|
1
|
+
/*
|
2
|
+
* SYNTAX HIGHLIGHTER
|
3
|
+
*/
|
4
|
+
|
5
|
+
@import "../theme/syntax-light";
|
6
|
+
@import "../theme/syntax-dark";
|
7
|
+
|
8
|
+
html {
|
9
|
+
@media (prefers-color-scheme: light) {
|
10
|
+
&:not([data-mode]),
|
11
|
+
&[data-mode=light] {
|
12
|
+
@include syntax-light;
|
13
|
+
}
|
14
|
+
&[data-mode=dark] {
|
15
|
+
@include syntax-dark;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
@media (prefers-color-scheme: dark) {
|
19
|
+
&:not([data-mode]),
|
20
|
+
&[data-mode=dark] {
|
21
|
+
@include syntax-dark;
|
22
|
+
}
|
23
|
+
&[data-mode=light] {
|
24
|
+
@include syntax-light;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
// CODE SNIPPETS
|
30
|
+
|
31
|
+
$code-radius: 6px;
|
32
|
+
|
33
|
+
%code-snippet-bg { background: var(--highlight-bg-color); }
|
34
|
+
|
35
|
+
%code-snippet-radius { border-radius: $code-radius; }
|
36
|
+
|
37
|
+
%code-snippet-padding {
|
38
|
+
padding-left: 1rem;
|
39
|
+
padding-right: 1.5rem;
|
40
|
+
}
|
41
|
+
|
42
|
+
.highlighter-rouge {
|
43
|
+
@extend %code-snippet-bg;
|
44
|
+
@extend %code-snippet-radius;
|
45
|
+
color: var(--highlighter-rouge-color);
|
46
|
+
margin-top: 0.5rem;
|
47
|
+
margin-bottom: 1.2rem;
|
48
|
+
}
|
49
|
+
|
50
|
+
.highlight {
|
51
|
+
@extend %code-snippet-bg;
|
52
|
+
@extend %code-snippet-radius;
|
53
|
+
|
54
|
+
@at-root figure#{&} { @extend %code-snippet-bg; }
|
55
|
+
|
56
|
+
overflow: auto;
|
57
|
+
padding-top: 0.5rem;
|
58
|
+
padding-bottom: 1rem;
|
59
|
+
|
60
|
+
pre {
|
61
|
+
margin-bottom: 0;
|
62
|
+
font-size: $code-font-size;
|
63
|
+
line-height: 1.4rem;
|
64
|
+
word-wrap: normal; /* fixes Safari overflow-x */
|
65
|
+
}
|
66
|
+
|
67
|
+
table {
|
68
|
+
td pre {
|
69
|
+
overflow: visible; /* fixes iOS Safari overflow-x */
|
70
|
+
word-break: normal; /* fixes iOS Safari line nos code break */
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
.lineno {
|
75
|
+
padding-right: 0.5rem;
|
76
|
+
min-width: 2.2rem;
|
77
|
+
text-align: right;
|
78
|
+
color: var(--highlight-lineno-color);
|
79
|
+
-webkit-user-select: none;
|
80
|
+
-khtml-user-select: none;
|
81
|
+
-moz-user-select: none;
|
82
|
+
-ms-user-select: none;
|
83
|
+
-o-user-select: none;
|
84
|
+
user-select: none;
|
85
|
+
}
|
86
|
+
|
87
|
+
.gp { user-select: none; } /* sets the dollar sign to be non-selectable */
|
88
|
+
} /* .highlight */
|
89
|
+
|
90
|
+
code {
|
91
|
+
-webkit-hyphens: none;
|
92
|
+
-ms-hyphens: none;
|
93
|
+
-moz-hyphens: none;
|
94
|
+
hyphens: none;
|
95
|
+
|
96
|
+
&.highlighter-rouge {
|
97
|
+
font-size: $code-font-size;
|
98
|
+
padding: 3px 5px;
|
99
|
+
word-break: break-word;
|
100
|
+
border-radius: 4px;
|
101
|
+
background-color: var(--inline-code-bg);
|
102
|
+
}
|
103
|
+
|
104
|
+
&.filepath {
|
105
|
+
background-color: inherit;
|
106
|
+
color: var(--filepath-text-color);
|
107
|
+
font-weight: 600;
|
108
|
+
padding: 0;
|
109
|
+
}
|
110
|
+
|
111
|
+
a > &.highlighter-rouge {
|
112
|
+
padding-bottom: 0; /* show link's underlinke */
|
113
|
+
color: inherit;
|
114
|
+
}
|
115
|
+
|
116
|
+
a:hover > &.highlighter-rouge { border-bottom: none; }
|
117
|
+
|
118
|
+
blockquote & { color: inherit; }
|
119
|
+
|
120
|
+
.highlight > & { color: transparent; }
|
121
|
+
}
|
122
|
+
|
123
|
+
td.rouge-code {
|
124
|
+
@extend %code-snippet-padding;
|
125
|
+
|
126
|
+
/* prevent browser extensions from changing the URL sting of the code block */
|
127
|
+
a {
|
128
|
+
color: inherit !important;
|
129
|
+
border-bottom: none !important;
|
130
|
+
pointer-events: none;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
/* hide line numbers for default, console, and terminal code snippets */
|
135
|
+
div {
|
136
|
+
&[class^='highlighter-rouge'],
|
137
|
+
&.language-plaintext.highlighter-rouge,
|
138
|
+
&.language-console.highlighter-rouge,
|
139
|
+
&.language-terminal.highlighter-rouge,
|
140
|
+
&.nolineno {
|
141
|
+
pre.lineno { display: none; }
|
142
|
+
|
143
|
+
td.rouge-code { padding-left: 1.5rem; }
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
.code-header {
|
148
|
+
@extend %no-cursor;
|
149
|
+
$code-header-height: 2.25rem;
|
150
|
+
|
151
|
+
border-top-left-radius: $code-radius;
|
152
|
+
border-top-right-radius: $code-radius;
|
153
|
+
display: flex;
|
154
|
+
justify-content: space-between;
|
155
|
+
align-items: center;
|
156
|
+
height: $code-header-height;
|
157
|
+
|
158
|
+
&::before {
|
159
|
+
$dot-size: 0.75rem;
|
160
|
+
$dot-margin: 0.5rem;
|
161
|
+
|
162
|
+
content: "";
|
163
|
+
display: inline-block;
|
164
|
+
margin-left: 1rem;
|
165
|
+
width: $dot-size;
|
166
|
+
height: $dot-size;
|
167
|
+
border-radius: 50%;
|
168
|
+
background-color: var(--code-header-muted-color);
|
169
|
+
box-shadow:
|
170
|
+
($dot-size + $dot-margin) 0 0 var(--code-header-muted-color),
|
171
|
+
($dot-size + $dot-margin) * 2 0 0 var(--code-header-muted-color);
|
172
|
+
}
|
173
|
+
|
174
|
+
/* the label block */
|
175
|
+
span {
|
176
|
+
/* label icon */
|
177
|
+
i {
|
178
|
+
font-size: 1rem;
|
179
|
+
margin-right: 0.4rem;
|
180
|
+
color: var(--code-header-icon-color);
|
181
|
+
|
182
|
+
&.small {
|
183
|
+
font-size: 70%;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
|
187
|
+
@at-root [file] #{&} > i {
|
188
|
+
position: relative;
|
189
|
+
top: 1px; /* center the file icon */
|
190
|
+
}
|
191
|
+
|
192
|
+
/* label text */
|
193
|
+
&::after {
|
194
|
+
content: attr(data-label-text);
|
195
|
+
font-size: 0.85rem;
|
196
|
+
font-weight: 600;
|
197
|
+
color: var(--code-header-text-color);
|
198
|
+
}
|
199
|
+
}
|
200
|
+
|
201
|
+
/* clipboard */
|
202
|
+
button {
|
203
|
+
@extend %cursor-pointer;
|
204
|
+
|
205
|
+
border: 1px solid transparent;
|
206
|
+
border-radius: $code-radius;
|
207
|
+
height: $code-header-height;
|
208
|
+
width: $code-header-height;
|
209
|
+
padding: 0;
|
210
|
+
background-color: inherit;
|
211
|
+
|
212
|
+
i { color: var(--code-header-icon-color); }
|
213
|
+
|
214
|
+
&[timeout] {
|
215
|
+
&:hover { border-color: var(--clipboard-checked-color); }
|
216
|
+
|
217
|
+
i { color: var(--clipboard-checked-color); }
|
218
|
+
}
|
219
|
+
|
220
|
+
&:not([timeout]):hover {
|
221
|
+
background-color: rgba(128, 128, 128, 0.37);
|
222
|
+
|
223
|
+
i { color: white; }
|
224
|
+
}
|
225
|
+
|
226
|
+
&:focus { outline: none; }
|
227
|
+
}
|
228
|
+
}
|
229
|
+
|
230
|
+
@media all and (max-width: 576px) {
|
231
|
+
.post-content {
|
232
|
+
> div[class^='language-'] {
|
233
|
+
@include ml-mr(-1.25rem);
|
234
|
+
|
235
|
+
border-radius: 0;
|
236
|
+
|
237
|
+
.highlight { padding-left: 0.25rem; }
|
238
|
+
|
239
|
+
.code-header {
|
240
|
+
border-radius: 0;
|
241
|
+
padding-left: 0.4rem;
|
242
|
+
padding-right: 0.5rem;
|
243
|
+
}
|
244
|
+
}
|
245
|
+
}
|
246
|
+
}
|
File without changes
|
@@ -6,21 +6,36 @@
|
|
6
6
|
* MIT Licensed
|
7
7
|
*/
|
8
8
|
|
9
|
+
// -----------------------------------------------------------------
|
10
|
+
// IMPORT BOOTSTRAP FUNCTIONS & VARIABLES
|
11
|
+
// -----------------------------------------------------------------
|
12
|
+
@import "../assets/lib/bootstrap-5.0.2/scss/functions";
|
13
|
+
@import "../assets/lib/bootstrap-5.0.2/scss/variables";
|
14
|
+
|
15
|
+
// -----------------------------------------------------------------
|
16
|
+
// IMPORT THEME COLORS
|
17
|
+
// -----------------------------------------------------------------
|
9
18
|
@import
|
10
|
-
"
|
11
|
-
"
|
12
|
-
"
|
13
|
-
"colors/dark-syntax",
|
19
|
+
"theme/scheme-brew",
|
20
|
+
"theme/scheme-dark",
|
21
|
+
"theme/scheme-light";
|
14
22
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
23
|
+
// -----------------------------------------------------------------
|
24
|
+
// IMPORT THEME MIXINS & VARIABLES
|
25
|
+
// -----------------------------------------------------------------
|
26
|
+
@import "addon/mixins";
|
27
|
+
@import "theme/variables";
|
28
|
+
|
29
|
+
// -----------------------------------------------------------------
|
30
|
+
// IMPORT MAIN BOOTSTRAP SCSS
|
31
|
+
// -----------------------------------------------------------------
|
32
|
+
@import "../assets/lib/bootstrap-5.0.2/scss/bootstrap";
|
20
33
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
"
|
26
|
-
"layout/
|
34
|
+
// -----------------------------------------------------------------
|
35
|
+
// IMPORT REMAINING THEME FILES
|
36
|
+
// -----------------------------------------------------------------
|
37
|
+
@import
|
38
|
+
"variables-hook",
|
39
|
+
"layout/base",
|
40
|
+
"addon/alerts",
|
41
|
+
"addon/typography";
|
File without changes
|
@@ -0,0 +1,220 @@
|
|
1
|
+
/*
|
2
|
+
* DARK MODE THEME
|
3
|
+
*/
|
4
|
+
|
5
|
+
@mixin dark-scheme {
|
6
|
+
|
7
|
+
/* COMMON COLORS */
|
8
|
+
|
9
|
+
--blue: #0078D2;
|
10
|
+
--indigo: #3C00D2;
|
11
|
+
--purple: #6900D2;
|
12
|
+
--pink: #D200B4;
|
13
|
+
--red: #D20000;
|
14
|
+
--orange: #D26900;
|
15
|
+
--yellow: #D2B400;
|
16
|
+
--green: #3CD200;
|
17
|
+
--teal: #00D278;
|
18
|
+
--cyan: #00D2D2;
|
19
|
+
--violet: #D200D2;
|
20
|
+
--black: #000000;
|
21
|
+
--white: #FFFFFF;
|
22
|
+
--smoke: #EDDCC9;
|
23
|
+
--darkslategray: #2F4F4F;
|
24
|
+
--dodger-blue: #1E90FF;
|
25
|
+
--cyan-cobalt: #1D58A5;
|
26
|
+
|
27
|
+
/* FRAMEWORK */
|
28
|
+
|
29
|
+
--primary-bg: rgb(33, 37, 41);
|
30
|
+
--secondary-bg: rgb(56, 66, 94);
|
31
|
+
--tertiary-bg: rgb(25, 28, 36);
|
32
|
+
|
33
|
+
--primary: var(--red);
|
34
|
+
--secondary: var(--orange);
|
35
|
+
--success: var(--green);
|
36
|
+
--info: var(--blue);
|
37
|
+
--warning: var(--yellow);
|
38
|
+
--danger: #CD0202;
|
39
|
+
--light: #AAB2BD;
|
40
|
+
--dark: #12151E;
|
41
|
+
--bright: var(--white);
|
42
|
+
--subdued: #808080;
|
43
|
+
|
44
|
+
/* FONTS */
|
45
|
+
|
46
|
+
--text-color: var(--light);
|
47
|
+
--text-muted: var(--subdued);
|
48
|
+
--heading-primary: var(--white);
|
49
|
+
--heading-secondary: var(--red);
|
50
|
+
--subheading: rgb(108, 114, 147);
|
51
|
+
|
52
|
+
/* ALERTS */
|
53
|
+
|
54
|
+
--alert-primary-bg: rgb(210 0 0 / 25%);
|
55
|
+
--alert-primary-text: var(--red);
|
56
|
+
--alert-primary-border: rgb(210 0 0 / 50%);
|
57
|
+
--alert-secondary-bg: rgb(210 105 0 / 25%);
|
58
|
+
--alert-secondary-text: var(--orange);
|
59
|
+
--alert-secondary-border: rgb(210 105 3 / 50%);
|
60
|
+
--alert-success-bg: rgb(60 210 0 / 25%);
|
61
|
+
--alert-success-text: var(--green);
|
62
|
+
--alert-success-border: rgb(60 210 0 / 50%);
|
63
|
+
--alert-danger-bg: rgb(205 2 2 / 25%);
|
64
|
+
--alert-danger-text: var(--danger);
|
65
|
+
--alert-danger-border: rgb(205 2 2 / 50%);
|
66
|
+
--alert-warning-bg: rgb(210 180 0 / 25%);
|
67
|
+
--alert-warning-text: var(--yellow);
|
68
|
+
--alert-warning-border: rgb(210 180 0 / 50%);
|
69
|
+
--alert-info-bg: rgb(0 120 210 / 25%);
|
70
|
+
--alert-info-text: var(--blue);
|
71
|
+
--alert-info-border: rgb(0 120 210 / 50%);
|
72
|
+
--alert-light-bg: rgb(170 178 189 / 25%);
|
73
|
+
--alert-light-text: var(--dark);
|
74
|
+
--alert-light-border: rgb(170 178 189 / 50%);
|
75
|
+
--alert-dark-bg: rgb(18 21 30 / 25%);
|
76
|
+
--alert-dark-text: var(--light);
|
77
|
+
--alert-dark-border: rgb(18 21 30 / 50%);
|
78
|
+
|
79
|
+
/* BACK-TO-TOP */
|
80
|
+
|
81
|
+
--btt-bg: var(--red);
|
82
|
+
--btt-text: var(--yellow);
|
83
|
+
--btt-border: var(--alert-danger-border);
|
84
|
+
--btt-radius: 1rem;
|
85
|
+
--btt-shadow: var(--dark);
|
86
|
+
|
87
|
+
/* BLOCKQUOTES */
|
88
|
+
|
89
|
+
--blockquote-bg: rgb(56 66 94 / 50%);
|
90
|
+
--blockquote-color: var(--subdued);
|
91
|
+
--blockquote-border: rgb(56 66 94);
|
92
|
+
--blockquote-radius: .45rem;
|
93
|
+
--blockquote-highlight: var(--yellow);
|
94
|
+
--blockquote-shadow: var(--dark);
|
95
|
+
|
96
|
+
/* BORDERS */
|
97
|
+
|
98
|
+
--main-border-color: var(--secondary-bg);
|
99
|
+
|
100
|
+
/* BREADCRUMBS */
|
101
|
+
|
102
|
+
--crumb-bg: var(--tertiary-bg);
|
103
|
+
--crumb-color: var(--subdued);
|
104
|
+
--crumb-active-color: var(--red);
|
105
|
+
--crumb-link-color: var(--orange);
|
106
|
+
--crumb-hover-color: var(--red);
|
107
|
+
|
108
|
+
/* BUTTONS */
|
109
|
+
|
110
|
+
--btn-bg: rgb(210 0 0 / 50%);
|
111
|
+
--btn-text: var(--yellow);
|
112
|
+
--btn-border: rgb(210 0 0 / 25%);
|
113
|
+
--btn-radius: .45rem;
|
114
|
+
--btn-shadow: var(--dark);
|
115
|
+
|
116
|
+
/* CARDS */
|
117
|
+
|
118
|
+
--card-bg1: var(--secondary-bg);
|
119
|
+
--card-text1: var(--light);
|
120
|
+
--card-border1: rgb(56 66 94 / 50%);
|
121
|
+
--card-bg2: var(--tertiary-bg);
|
122
|
+
--card-text2: var(--light);
|
123
|
+
--card-border2: rgb(25 28 36 / 75%);
|
124
|
+
--card-bg3: var(--primary-bg);
|
125
|
+
--card-text3: var(--smoke);
|
126
|
+
--card-border3: rgb(33 37 41 / 75%);
|
127
|
+
--card-header-bg1: rgb(210 0 0 / 50%);
|
128
|
+
--card-header-text1: var(--white);
|
129
|
+
--card-header-bg2: var(--light);
|
130
|
+
--card-header-text2: var(--dark);
|
131
|
+
--card-header-bg3: var(--secondary-bg);
|
132
|
+
--card-header-text3: var(--light);
|
133
|
+
--card-border-radius: .45rem;
|
134
|
+
--card-box-shadow: var(--dark);
|
135
|
+
|
136
|
+
/* HORIZONTAL RULES */
|
137
|
+
|
138
|
+
--hr1: var(--secondary-bg);
|
139
|
+
--hr2: var(--tertiary-bg);
|
140
|
+
--hr3: var(--primary-bg);
|
141
|
+
|
142
|
+
// KBD
|
143
|
+
--kbd-bg: var(--secondary-bg);
|
144
|
+
--kbd-text: var(--light);
|
145
|
+
--kbd-wrap: var(--light);
|
146
|
+
|
147
|
+
/* LABEL */
|
148
|
+
--label-color: var(--light);
|
149
|
+
|
150
|
+
/* LINKS */
|
151
|
+
|
152
|
+
--link-color: var(--white);
|
153
|
+
--link-hover: var(--red);
|
154
|
+
--link-active: var(--orange);
|
155
|
+
--link-disabled: var(--subdued);
|
156
|
+
|
157
|
+
/* NAVBAR */
|
158
|
+
|
159
|
+
--navbar-bg: var(--secondary-bg);
|
160
|
+
--navbar-text: var(--smoke);
|
161
|
+
--navbar-muted: rgb(237 220 201 / 50%);
|
162
|
+
--navbar-shadow: var(--dark);
|
163
|
+
--navbar-link: var(--white);
|
164
|
+
--navbar-hover: var(--red);
|
165
|
+
--navbar-active: var(--orange);
|
166
|
+
|
167
|
+
/* NAVBAR - DROPDOWN */
|
168
|
+
|
169
|
+
--navbar-dd-bg: lighten(var(--secondary-bg), 50%);
|
170
|
+
--navbar-dd-text: var(--smoke);
|
171
|
+
--navbar-dd-muted: var(--navbar-muted);
|
172
|
+
--navbar-dd-border: lighten(var(--secondary-bg), 75%);
|
173
|
+
--navbar-dd-radius: .45rem;
|
174
|
+
--navbar-dd-shadow: var(--dark);
|
175
|
+
--navbar-dd-link: var(--white);
|
176
|
+
--navbar-dd-hover: var(--red);
|
177
|
+
--navbar-dd-active: var(--orange);
|
178
|
+
--navbar-dd-separator: var(--secondary-bg);
|
179
|
+
--navbar-search-bg: var(--secondary-bg);
|
180
|
+
--navbar-search-border: darken(var(--secondary-bg), 50%);
|
181
|
+
--navbar-search-icon: var(--subdued);
|
182
|
+
--navbar-search-focus: var(--secondary-bg);
|
183
|
+
--navbar-search-focus-border: var(--orange);
|
184
|
+
--navbar-search-focus-text: var(--orange);
|
185
|
+
--navbar-search-focus-icon: var(--orange);
|
186
|
+
--navbar-search-holder-text: var(--subdued);
|
187
|
+
|
188
|
+
/* SIDEBAR */
|
189
|
+
|
190
|
+
--sidebar-bg: var(--secondary-bg);
|
191
|
+
--sidebar-text: var(--light);
|
192
|
+
--sidebar-muted: var(--subdued);
|
193
|
+
--sidebar-link: var(--white);
|
194
|
+
--sidebar-hover: var(--red);
|
195
|
+
--sidebar-active: var(--orange);
|
196
|
+
|
197
|
+
/* TABLES */
|
198
|
+
--table-header-bg1: var(--primary-bg);
|
199
|
+
--table-header-bg2: var(--secondary-bg);
|
200
|
+
--table-header-text1: var(--white);
|
201
|
+
--table-header-text2: var(--white);
|
202
|
+
--table-row-bg1: lighten(var(--primary-bg), 100%);
|
203
|
+
--table-row-bg2: var(--primary-bg);
|
204
|
+
--table-row-text1: var(--light);
|
205
|
+
--table-row-text2: var(--light);
|
206
|
+
--table-row-hover1: var(--secondary-bg);
|
207
|
+
--table-row-hover2: var(--primary-bg);
|
208
|
+
--table-caption: var(--subdued);
|
209
|
+
|
210
|
+
/* TAGS */
|
211
|
+
--tag-bg: var(--primary-bg);
|
212
|
+
--tag-text: var(--light);
|
213
|
+
--tag-hover-bg: var(--primary-bg);
|
214
|
+
--tag-hover-border: var(--yellow);
|
215
|
+
--tag-muted: var(--subdued);
|
216
|
+
--tag-border: var(--secondary-bg);
|
217
|
+
--tag-shadow: var(--dark);
|
218
|
+
--tag-dash: var(--red);
|
219
|
+
|
220
|
+
} /* dark-scheme */
|