Skip to content

Commit b5c0db3

Browse files
author
ZYROUGE
committed
Minor Changes & Addition of Fontawesome icons
1 parent 42add2d commit b5c0db3

File tree

5 files changed

+40
-27
lines changed

5 files changed

+40
-27
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "A clean and minimalistic JSDoc theme",
55
"main": "publish.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "jsdoc -R ../jsdoc-skyceil-docs/example/readme.md -d ../jsdoc-skyceil-docs/example -t . --verbose ../jsdoc-skyceil-docs/example/thecode.js"
88
},
99
"repository": {
1010
"type": "git",

static/scripts/nav.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ const init = async () => {
4141

4242
if (DBTheme === "dark" && bodyTheme !== "dark") {
4343
body.setAttribute("data-theme", "dark");
44-
themeBtn.innerHTML = "💡 Turn on the lights";
44+
themeBtn.innerHTML = "<i class=\"fas fa-sun\"></i>";
4545
} else if (DBTheme === "light" && bodyTheme !== "light") {
4646
body.setAttribute("data-theme", "light");
47-
themeBtn.innerHTML = "🌙 Turn off the lights";
47+
themeBtn.innerHTML = "<i class=\"fas fa-moon\"></i>";
4848
}
4949
}
5050

static/styles/skyceil.css

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
:root {
1616
--font: #4d4e53;
1717
--second-font: #aaa;
18+
--theme-font: #aaa;
1819

1920
--background: #fff;
2021

@@ -37,6 +38,7 @@
3738
body[data-theme="dark"] {
3839
--font: #ccc;
3940
--second-font: #e1e1ff;
41+
--theme-font: #4b4b4b;
4042

4143
--background: #161616;
4244

@@ -55,16 +57,13 @@ body[data-theme="dark"] {
5557

5658
.theme {
5759
padding: 10px 15px;
58-
background: #161616;
59-
color: #fff;
60+
color: var(--font);
6061
border: none;
6162
border-radius: 10px;
6263
outline: none;
63-
}
64-
65-
body[data-theme="dark"] .theme {
66-
background: #fff;
67-
color: #161616;
64+
background: transparent !important;
65+
font-size: 1.5rem;
66+
cursor: pointer;
6867
}
6968

7069
html
@@ -204,8 +203,6 @@ nav li {
204203
top: 10px;
205204
right: 10px;
206205
z-index: 1;
207-
background: rgb(245, 245, 245, 0.5);
208-
border-radius: 5px;
209206
padding: 3px;
210207
transition: 0.5s;
211208
}
@@ -214,15 +211,11 @@ nav li {
214211
margin: 4px;
215212
padding: 3px;
216213
background: var(--font);
217-
border-radius: 5px;
214+
border-radius: 1px;
218215
opacity: 1;
219216
transition: 0.5s;
220217
}
221218

222-
.burger.is-active {
223-
border-radius: 20px;
224-
}
225-
226219
.burger.is-active .burger-line-1 {
227220
transform: translateY(10px) rotate(45deg);
228221
}
@@ -350,7 +343,7 @@ tr > th:last-child { border-right: 1px solid var(--border); }
350343
}
351344

352345
.type-signature {
353-
color: var(--second-font);
346+
color: var(--theme-font);
354347
}
355348

356349
.name {
@@ -412,7 +405,7 @@ tr > th:last-child { border-right: 1px solid var(--border); }
412405

413406
.prettyprint.linenums
414407
{
415-
padding: 10px 10px 0 70px;
408+
padding: 10px 10px 10px 70px;
416409
-webkit-user-select: none;
417410
-moz-user-select: none;
418411
-ms-user-select: none;
@@ -509,21 +502,21 @@ hr {
509502
vertical-align: middle;
510503
}
511504

512-
/* scrollbar */
505+
/* Scrollbar */
513506
::-webkit-scrollbar {
514-
width: 5px;
507+
width: 5px;
515508
}
516509

517510
::-webkit-scrollbar-track {
518-
background: #f2f2f2;
511+
background: var(--font);
519512
}
520513

521514
::-webkit-scrollbar-thumb {
522-
background: var(--alpha-dark);
515+
background: var(--alpha-dark);
523516
}
524517

525518
::-webkit-scrollbar-thumb:hover {
526-
background: var(--dark-lite);
519+
background: var(--dark-lite);
527520
}
528521

529522
body[data-theme="dark"] .small-icon {
@@ -609,6 +602,6 @@ nav .has-class-methods {
609602
}
610603

611604
footer {
612-
padding: 0;
605+
padding: 10px;
613606
}
614607
}

tmpl/details.tmpl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,24 @@ if (data.defaultvalue && (data.defaultvaluetype === 'object' || data.defaultvalu
2020

2121
<?js } ?>
2222

23+
<?js if(
24+
data.version ||
25+
data.since ||
26+
(data.inherited && data.inherits && !data.overrides) ||
27+
data.overrides ||
28+
(data.implementations && data.implementations.length) ||
29+
(data.implements && data.implements.length) ||
30+
(data.mixes && data.mixes.length) ||
31+
data.deprecated ||
32+
(data.author && author.length) ||
33+
data.copyright ||
34+
data.license ||
35+
data.defaultvalue ||
36+
(data.meta && self.outputSourceFiles) ||
37+
(data.tutorials && tutorials.length) ||
38+
(data.see && see.length) ||
39+
(data.todo && todo.length)
40+
) {?>
2341
<dl class="details">
2442

2543
<?js if (data.version) {?>
@@ -141,3 +159,4 @@ if (data.defaultvalue && (data.defaultvaluetype === 'object' || data.defaultvalu
141159
</dd>
142160
<?js } ?>
143161
</dl>
162+
<?js } ?>

tmpl/layout.tmpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212

1313
<link type="text/css" rel="stylesheet" href="styles/skyceil.css">
1414
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
15+
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css">
1516
</head>
1617

1718
<body>
1819

1920
<nav class="navbar">
2021
<div class="utilities">
2122
<center>
22-
<button class="theme" data-theme="light">🌙 Turn off the lights</button>
23+
<button class="theme" data-theme="light"><i class="fas fa-moon"></i></button>
2324
</center>
2425
</div>
2526
<hr>
@@ -42,7 +43,7 @@
4243
<br class="clear">
4344

4445
<footer>
45-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc <?js= env.version.number ?></a><?js if(env.conf.templates && env.conf.templates.default && env.conf.templates.default.includeDate !== false) { ?> on <?js= (new Date()) ?><?js } ?> using <a href="https://github.com/zyrouge/jsdoc-skyceil">Skyceil Theme</a>
46+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc <?js= env.version.number ?></a><?js if(env.conf.templates && env.conf.templates.default && env.conf.templates.default.includeDate !== false) { ?> on <?js= (new Date()) ?><?js } ?> using <a href="https://github.com/devsnowflake/jsdoc-skyceil">Skyceil Theme</a>
4647
</footer>
4748

4849
<script>prettyPrint();</script>

0 commit comments

Comments
 (0)