Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f09fd7c

Browse files
committed
More cleanup
1 parent d6eaf24 commit f09fd7c

File tree

18 files changed

+402
-915
lines changed

18 files changed

+402
-915
lines changed

assets/js/jemsu.js

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,6 @@
22
littlefoot.default({
33
activateOnHover: false,
44
dismissDelay: 50,
5-
buttonTemplate: '<button aria-label="Footnote <% number %>" class="littlefoot__button" id="<% reference %>" title="See Footnote <% number %>" /> <% number %> </button>'
5+
// buttonTemplate: '<button aria-label="Footnote <% number %>" class="littlefoot__button" id="<% reference %>" title="See Footnote <% number %>" /> <% number %> </button>'
6+
buttonTemplate: '<button class="littlefoot__button" id="<% reference %>" title="See Footnote <% number %>" data-footnote-id="<% number %>"><% number %></button>'
67
})
7-
8-
9-
// Scroll to top thing: https://www.w3schools.com/howto/howto_js_scroll_to_top.asp
10-
11-
//Get the button:
12-
scrollbutton = document.getElementById("totop");
13-
14-
if (typeof (scrollbutton) != 'undefined' && scrollbutton != null) {
15-
16-
// When the user scrolls down 1000px from the top of the document, show the button
17-
window.onscroll = function () { scrollFunction() };
18-
19-
function scrollFunction() {
20-
if (document.body.scrollTop > 1000 || document.documentElement.scrollTop > 1000) {
21-
scrollbutton.style.visibility = "visible";
22-
scrollbutton.style.opacity = "1";
23-
} else {
24-
scrollbutton.style.visibility = "hidden";
25-
scrollbutton.style.opacity = "0";
26-
27-
}
28-
}
29-
30-
// When the user clicks on the button, scroll to the top of the document
31-
function topFunction() {
32-
document.body.scrollTop = 0; // For Safari
33-
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
34-
}
35-
36-
}

assets/scss/_tables.scss

Lines changed: 0 additions & 52 deletions
This file was deleted.

assets/scss/_text.scss

Lines changed: 4 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
1-
// Sounds nice in principle but gets kind of annoying
2-
// html {
3-
// scroll-behavior: smooth;
4-
// }
5-
6-
/* Regular text */
7-
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+Pro:wght@400;700&display=swap');
8-
9-
body,
10-
a {
11-
// font-family: $text-font-family;
12-
font-weight: 400;
13-
}
14-
15-
h1 small,
16-
h2 small,
17-
h3 small,
18-
h4 small {
1+
h1>small,
2+
h2>small,
3+
h3>small,
4+
h4>small {
195
font-size: 60%;
206
}
217

@@ -99,88 +85,3 @@ code {
9985
margin-right: auto;
10086
max-width: 100%;
10187
}
102-
103-
// Auto-linked headers
104-
105-
// a>svg.anchor-symbol {
106-
// color: transparent;
107-
// margin-left: 1rem;
108-
// }
109-
110-
111-
@mixin anchor-dark {
112-
a>svg.anchor-symbol {
113-
// fill: $link-color-dark;
114-
}
115-
116-
a>svg.anchor-symbol:hover {
117-
// fill: $link-color;
118-
}
119-
}
120-
121-
@mixin anchor-light {
122-
a>svg.anchor-symbol {
123-
fill: $link-color;
124-
}
125-
126-
a>svg.anchor-symbol:hover {
127-
fill: $link-color-dark;
128-
}
129-
}
130-
131-
// Scroll to top button
132-
#totop {
133-
//display: none; /* Hidden by default */
134-
visibility: hidden;
135-
opacity: 0;
136-
-webkit-transition: visibility 0s, opacity 0.5s linear;
137-
transition: visibility 0s, opacity 0.5s linear;
138-
position: fixed;
139-
/* Fixed/sticky position */
140-
bottom: 20px;
141-
/* Place the button at the bottom of the page */
142-
right: 30px;
143-
/* Place the button 30px from the right */
144-
z-index: 1;
145-
/* Make sure it does not overlap */
146-
border: none;
147-
/* Remove borders */
148-
outline: none;
149-
/* Remove outline */
150-
cursor: pointer;
151-
/* Add a mouse pointer on hover */
152-
padding: 10px;
153-
/* Some padding */
154-
border-radius: 1rem;
155-
/* Rounded corners */
156-
//font-size: 18px; /* Increase font size */
157-
font-family: $font-family;
158-
}
159-
160-
#totop:hover {
161-
transition: visibility 0s, opacity 0.5s linear;
162-
}
163-
164-
@mixin scrolltop-light {
165-
#totop {
166-
background-color: $alt-bg-color;
167-
/* Set a background color */
168-
}
169-
170-
#totop:hover {
171-
color: $link-color;
172-
/* Add a dark-grey background on hover */
173-
}
174-
}
175-
176-
@mixin scrolltop-dark {
177-
#totop {
178-
background-color: $alt-bg-color-dark;
179-
/* Set a background color */
180-
}
181-
182-
#totop:hover {
183-
color: $link-color-dark;
184-
/* Add a dark-grey background on hover */
185-
}
186-
}

assets/scss/jemsu.scss

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
@import "variables";
1+
@import "variables"; // variables are imported in _variables.scss from parent theme
22
@import "text";
33
@import "monokai";
44
@import "mathjax";
5-
@import "tables";
65
@import "thirdparty";
76
@import "shortcodes";
87

@@ -11,28 +10,22 @@
1110
body.colorscheme-dark {
1211
@include monokai-base();
1312
@include monokai-dark();
14-
@include math-dark();
15-
@include table-dark();
1613
@include inline-code-dark();
14+
@include math-dark();
1715
@include littlefoot-dark();
1816
@include notebox-dark();
1917
@include summary-dark();
20-
@include anchor-dark();
21-
@include scrolltop-dark();
2218
}
2319

2420
body.colorscheme-auto {
2521
@media (prefers-color-scheme: dark) {
2622
@include monokai-base();
2723
@include monokai-dark();
28-
@include math-dark();
29-
@include table-dark();
3024
@include inline-code-dark();
25+
@include math-dark();
3126
@include littlefoot-dark();
3227
@include notebox-dark();
3328
@include summary-dark();
34-
@include anchor-dark();
35-
@include scrolltop-dark();
3629
}
3730
}
3831

@@ -45,8 +38,6 @@ body.colorscheme-light {
4538
@include littlefoot-light();
4639
@include notebox-light();
4740
@include summary-light();
48-
@include anchor-light();
49-
@include scrolltop-light();
5041
}
5142

5243
body.colorscheme-auto {
@@ -58,7 +49,5 @@ body.colorscheme-auto {
5849
@include littlefoot-light();
5950
@include notebox-light();
6051
@include summary-light();
61-
@include anchor-light();
62-
@include scrolltop-light();
6352
}
6453
}

assets_bak/scss/_icomoon.scss

Lines changed: 0 additions & 31 deletions
This file was deleted.

assets_bak/scss/_mathjax.scss

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)