Skip to content

Commit 3114624

Browse files
Add clean JSdoc theme styles and build entry
Introduce a new SCSS theme for the JSdoc site and wire it into the build and docs. Added src/css/clean-jsdoc-theme.scss and a small src/js module that imports it, updated webpack.config.js to emit a clean-jsdoc-theme-css bundle, and included the generated CSS in jsdoc.json so the theme CSS is loaded alongside the existing Crowdin CSS.
1 parent 12bfbaa commit 3114624

4 files changed

Lines changed: 38 additions & 1 deletion

File tree

jsdoc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
"add_scripts": "window.initCrowdIn('LizardByte-docs', null);",
1717
"default_theme": "fallback-dark",
1818
"favicon": "favicon.ico",
19-
"include_css": ["./dist/crowdin-clean-jsdoc-css.css"],
19+
"include_css": [
20+
"./dist/clean-jsdoc-theme-css.css",
21+
"./dist/crowdin-clean-jsdoc-css.css"
22+
],
2023
"include_js": ["./dist/crowdin.js"],
2124
"menu": [
2225
{

src/css/clean-jsdoc-theme.scss

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
.navbar-container .navbar {
2+
max-width: 74rem;
3+
padding-left: 1.5rem;
4+
padding-right: 1.5rem;
5+
}
6+
7+
.navbar .navbar-left-items {
8+
min-width: 0;
9+
}
10+
11+
.navbar .navbar-item a {
12+
padding-left: 0.875rem;
13+
padding-right: 0.875rem;
14+
white-space: nowrap;
15+
}
16+
17+
@media screen and (min-width: 65em) and (max-width: 75em) {
18+
.navbar .navbar-item a {
19+
font-size: 0.8125rem;
20+
padding-left: 0.25rem;
21+
padding-right: 0.25rem;
22+
}
23+
24+
.navbar .icon-button {
25+
padding: 0.25rem;
26+
}
27+
28+
.navbar .navbar-right-item {
29+
margin-left: 0;
30+
margin-right: 0;
31+
}
32+
}

src/js/clean-jsdoc-theme-css.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import "../css/clean-jsdoc-theme.scss";

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ let production = process.env.NODE_ENV === 'production';
66

77
let config = {
88
entry: {
9+
'clean-jsdoc-theme-css': './src/js/clean-jsdoc-theme-css',
910
'crowdin': './src/js/crowdin',
1011
'crowdin-bootstrap-css': './src/js/crowdin-bootstrap-css',
1112
'crowdin-clean-jsdoc-css': './src/js/crowdin-clean-jsdoc-css',

0 commit comments

Comments
 (0)