Skip to content

Commit 57a96f4

Browse files
Aiden-JeonJongseob Jeon
andauthored
upgrade theme version (#106)
* update theme version Signed-off-by: Jongseob Jeon <aiden@Jongseobs-MacBook-Pro.local> * update pre-commit hook Signed-off-by: Jongseob Jeon <aiden@Jongseobs-MacBook-Pro.local> Co-authored-by: Jongseob Jeon <aiden@Jongseobs-MacBook-Pro.local>
1 parent 8ab63bc commit 57a96f4

47 files changed

Lines changed: 2071 additions & 3094 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
}
2929
]
3030
}
31-
}
31+
}

.markdownlint-cli2.jsonc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"config": {
3+
"default": true,
4+
"MD013": false,
5+
"MD024": false,
6+
"MD026": false,
7+
"MD033": false,
8+
"MD034": false
9+
},
10+
"ignores": ["node_modules", "CHANGELOG.md", "README.md"]
11+
}

.stylelintrc.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
11
{
2-
"extends": "stylelint-config-standard",
2+
"extends": "stylelint-config-standard-scss",
33
"rules": {
44
"no-empty-source": null,
55
"string-quotes": "double",
6+
"scss/comment-no-empty": null,
7+
"max-line-length": null,
8+
"scss/at-extend-no-missing-placeholder": null,
9+
"scss/dollar-variable-colon-space-after": null,
10+
"scss/dollar-variable-empty-line-before": null,
11+
"color-function-notation": null,
12+
"alpha-value-notation": null,
13+
"selector-id-pattern": null,
14+
"selector-class-pattern": null,
15+
"scss/no-global-function-names": null,
16+
"number-max-precision": null,
17+
"hue-degree-notation": null,
18+
"value-no-vendor-prefix": null,
19+
"property-no-vendor-prefix": null,
620
"at-rule-no-unknown": [
721
true,
822
{
@@ -31,4 +45,4 @@
3145
}
3246
]
3347
}
34-
}
48+
}

assets/js/alert-init.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Object.keys(localStorage).forEach(function(key) {
2+
if (/^global-alert-/.test(key)) {
3+
document.documentElement.setAttribute('data-global-alert', 'closed');
4+
}
5+
});

assets/js/alert.js

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@ var announcement = document.getElementById('announcement');
22

33
if (announcement !== null) {
44

5-
if (localStorage.getItem('announcement') === null ) {
6-
7-
announcement.classList.remove('d-none');
8-
9-
}
5+
var id = announcement.dataset.id;
6+
7+
Object.keys(localStorage).forEach(function(key) {
8+
if (/^global-alert-/.test(key)) {
9+
if (key !== id ) {
10+
localStorage.removeItem(key);
11+
document.documentElement.removeAttribute('data-global-alert');
12+
}
13+
}
14+
});
1015

1116
announcement.addEventListener('closed.bs.alert', () => {
12-
13-
localStorage.setItem('announcement', 'closed');
14-
17+
localStorage.setItem(id, 'closed');
1518
});
1619

17-
}
20+
}

assets/js/app.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Adds scroll position lock for default docs sidebar
2+
3+
if (document.querySelector('#sidebar-default') !== null) {
4+
let sidebar = document.getElementById('sidebar-default');
5+
6+
let pos = sessionStorage.getItem('sidebar-scroll');
7+
if (pos !== null) {
8+
sidebar.scrollTop = parseInt(pos, 10);
9+
}
10+
11+
window.addEventListener('beforeunload', () => {
12+
sessionStorage.setItem('sidebar-scroll', sidebar.scrollTop);
13+
});
14+
}

assets/js/mermaid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import mermaid from 'mermaid/dist/mermaid';
1+
import mermaid from 'mermaid';
22

33
var config = {
44
theme: 'default',

assets/scss/app.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
@import "components/alerts";
2121
@import "components/buttons";
2222
@import "components/code";
23+
@import "components/details";
2324
@import "components/syntax";
2425
@import "components/comments";
2526
@import "components/forms";

assets/scss/common/_dark.scss

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,15 @@ $navbar-dark-active-color: $link-color-dark;
140140
color: $body-bg-dark;
141141
}
142142

143-
[data-dark-mode] body .alert-warning {
143+
[data-dark-mode] body .alert-doks {
144144
background: $body-overlay-dark;
145145
color: $body-color-dark;
146146
}
147147

148+
[data-dark-mode] body .alert-doks a {
149+
color: $link-color-dark;
150+
}
151+
148152
[data-dark-mode] body .page-links a {
149153
color: $body-color-dark;
150154
}
@@ -523,3 +527,35 @@ $navbar-dark-active-color: $link-color-dark;
523527
border-color: $border-dark;
524528
}
525529
}
530+
531+
[data-dark-mode] .dropdown-menu.dropdown-menu-main {
532+
background: $body-overlay-dark;
533+
}
534+
535+
[data-dark-mode] .dropdown-menu-main .dropdown-item {
536+
color: $body-color-dark;
537+
}
538+
539+
[data-dark-mode] .dropdown-menu-main .dropdown-item:hover {
540+
color: $link-color-dark;
541+
}
542+
543+
[data-dark-mode] .dropdown-menu-main .dropdown-item.active {
544+
color: $link-color-dark;
545+
}
546+
547+
[data-dark-mode] details {
548+
border: 1px solid $border-dark;
549+
}
550+
551+
[data-dark-mode] summary:hover {
552+
background: $body-overlay-dark;
553+
}
554+
555+
[data-dark-mode] details[open] > summary {
556+
border-bottom: 1px solid $border-dark;
557+
}
558+
559+
[data-dark-mode] details summary::before {
560+
content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28222, 226, 230, 0.75%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
561+
}

assets/scss/common/_fonts.scss

Lines changed: 42 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,101 @@
11
/* jost-regular - latin */
22
@font-face {
3-
font-family: "Jost";
3+
font-family: Jost;
44
font-style: normal;
55
font-weight: 400;
66
font-display: swap;
77
src:
8-
local("Jost"),
8+
// Google Fonts Jost
9+
local("Jost Regular Regular"), // Full Name
10+
local("Jost-Regular"), // PostScript name
11+
// indestructible Jost*
12+
local("Jost* Book"),
13+
local("Jost-Book"),
914
url("fonts/vendor/jost/jost-v4-latin-regular.woff2") format("woff2"),
1015
url("fonts/vendor/jost/jost-v4-latin-regular.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
1116
}
1217

1318
/* jost-500 - latin */
1419
@font-face {
15-
font-family: "Jost";
20+
font-family: Jost;
1621
font-style: normal;
1722
font-weight: 500;
1823
font-display: swap;
1924
src:
20-
local("Jost"),
25+
// Google Fonts Jost
26+
local("Jost Regular Medium"),
27+
local("JostRoman-Medium"),
28+
// indestructible Jost*
29+
local("Jost* Medium"),
30+
local("Jost-Medium"),
2131
url("fonts/vendor/jost/jost-v4-latin-500.woff2") format("woff2"),
2232
url("fonts/vendor/jost/jost-v4-latin-500.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
2333
}
2434

2535
/* jost-700 - latin */
2636
@font-face {
27-
font-family: "Jost";
37+
font-family: Jost;
2838
font-style: normal;
2939
font-weight: 700;
3040
font-display: swap;
3141
src:
32-
local("Jost"),
42+
// Google Fonts Jost
43+
local("Jost Regular Bold"),
44+
local("JostRoman-Bold"),
45+
// indestructible Jost*
46+
local("Jost* Bold"),
47+
local("Jost-Bold"),
3348
url("fonts/vendor/jost/jost-v4-latin-700.woff2") format("woff2"),
3449
url("fonts/vendor/jost/jost-v4-latin-700.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
3550
}
3651

3752
/* jost-italic - latin */
3853
@font-face {
39-
font-family: "Jost";
54+
font-family: Jost;
4055
font-style: italic;
4156
font-weight: 400;
4257
font-display: swap;
4358
src:
44-
local("Jost"),
59+
// Google Fonts Jost
60+
local("Jost Italic Italic"),
61+
local("Jost-Italic"),
62+
// indestructible Jost*
63+
local("Jost* BookItalic"),
64+
local("Jost-BookItalic"),
4565
url("fonts/vendor/jost/jost-v4-latin-italic.woff2") format("woff2"),
4666
url("fonts/vendor/jost/jost-v4-latin-italic.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
4767
}
4868

4969
/* jost-500italic - latin */
5070
@font-face {
51-
font-family: "Jost";
71+
font-family: Jost;
5272
font-style: italic;
5373
font-weight: 500;
5474
font-display: swap;
5575
src:
56-
local("Jost"),
76+
// Google Fonts Jost
77+
local("Jost Italic Medium Italic"),
78+
local("JostItalic-Medium"),
79+
// indestructible Jost*
80+
local("Jost* Medium Italic"),
81+
local("Jost-MediumItalic"),
5782
url("fonts/vendor/jost/jost-v4-latin-500italic.woff2") format("woff2"),
5883
url("fonts/vendor/jost/jost-v4-latin-500italic.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
5984
}
6085

6186
/* jost-700italic - latin */
6287
@font-face {
63-
font-family: "Jost";
88+
font-family: Jost;
6489
font-style: italic;
6590
font-weight: 700;
6691
font-display: swap;
6792
src:
68-
local("Jost"),
93+
// Google Fonts Jost
94+
local("Jost Italic Bold Italic"),
95+
local("JostItalic-Bold"),
96+
// indestructible Jost*
97+
local("Jost* Bold Italic"),
98+
local("Jost-BoldItalic"),
6999
url("fonts/vendor/jost/jost-v4-latin-700italic.woff2") format("woff2"),
70100
url("fonts/vendor/jost/jost-v4-latin-700italic.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
71101
}

0 commit comments

Comments
 (0)