Skip to content

Commit f1dba6f

Browse files
committed
js style fixes
1 parent 5bc682d commit f1dba6f

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

build/shale.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/shale.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scss/components/_typography.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
.#{$shale}code {
4949
background: var(--#{$shale}code-background);
5050
border-radius: .2rem;
51-
color: var(--#{$shale}text-colour);
51+
color: var(--#{$shale}code-text-colour, var(--#{$shale}text-colour));
5252
font-family: var(--#{$shale}font-family-mono);
5353
padding: .25rem;
5454
white-space: pre-wrap;

shalecss.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* toggles dark theme
99
*
10-
* @param {element} e element whos child has a .icon elem
10+
* @param {Element} e element which has a .icon elem as a child
1111
*/
1212
function toggleDark(e) {
1313
if (document.documentElement.classList.contains("shale-v1-dark")) {
@@ -24,7 +24,7 @@ function toggleDark(e) {
2424
/**
2525
* toggles contrast theme
2626
*
27-
* @param {element} e element whos child has a .icon elem
27+
* @param {Element} e element which has a .icon elem as a child
2828
*/
2929
function toggleContrast(e) {
3030
if (document.documentElement.classList.contains("shale-v1-contrast")) {
@@ -41,7 +41,7 @@ function toggleContrast(e) {
4141
/**
4242
* toggles larger text size
4343
*
44-
* @param {element} e element whos child has a .icon elem
44+
* @param {Element} e element which has a .icon elem as a child
4545
*/
4646
function toggleTextSize(e) {
4747
if (document.documentElement.classList.contains("shale-v1-bigger-text")) {
@@ -130,7 +130,6 @@ function rainbowz() {
130130
document.documentElement.style.setProperty("--shale-v1-accent", `rgb(${r}, ${g}, ${b})`);
131131
}
132132

133-
/* Put both together */
134133
onKonamiCode(function() {
135134
setInterval(rainbowz, 10);
136135
});

0 commit comments

Comments
 (0)