Skip to content

Commit 98cf8f0

Browse files
committed
Update docs theme
1 parent 0a180b1 commit 98cf8f0

File tree

7 files changed

+21
-17
lines changed

7 files changed

+21
-17
lines changed

LDtk.Documentation/book.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ title = "LDtkMonogame"
77
description = "The LDtkMonogame nuget documentation"
88

99
[build]
10-
build-dir = "docs/docs"
10+
build-dir = "docs/docs/next"
1111

1212
[output.html]
1313
theme = "theme"
1414
default-theme = "ldtk"
1515
preferred-dark-theme = "ldtk"
16-
additional-js = ["csharpHighlight.js","toc.js"]
16+
additional-js = ["csharpHighlight.js","misc.js"]
1717
curly-quotes = false
1818
mathjax-support = false
1919
copy-fonts = true

LDtk.Documentation/misc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
document.querySelectorAll("a>strong").forEach((prefix) => prefix.parentElement.removeChild(prefix));
2+
3+
console.log("test");
4+
document.querySelectorAll("img").forEach((badge) => {
5+
if (badge.src.includes("img.shields.io")) {
6+
badge.parentElement.removeChild(badge);
7+
}
8+
});

LDtk.Documentation/theme/css/chrome.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ ul#searchresults span.teaser em {
491491

492492
.spacer {
493493
width: 100%;
494-
height: 3px;
494+
height: 2px;
495495
margin: 5px 0px;
496496
}
497497

LDtk.Documentation/theme/css/general.css

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ body {
1515
overflow-x: hidden;
1616
}
1717

18-
code {
19-
font-family: "Roboto", Helvetica, Arial, sans-serif !important;
20-
font-size: 0.875em;
21-
/* please adjust the ace font size accordingly in editor.js */
22-
}
23-
2418
/* Don't change font size in headers. */
2519
h1 code,
2620
h2 code,
@@ -74,7 +68,7 @@ h4:target::before,
7468
h5:target::before,
7569
h6:target::before {
7670
display: inline-block;
77-
content: "»";
71+
content: "#";
7872
margin-left: -30px;
7973
width: 30px;
8074
}
@@ -151,13 +145,16 @@ h6:target::before {
151145
}
152146

153147
table {
148+
width: 140%;
149+
left: -20%;
150+
position: relative;
154151
margin: 0 auto;
155152
border-collapse: collapse;
156153
}
157154

158155
table td {
159156
padding: 3px 20px;
160-
border: 1px var(--table-border-color) solid;
157+
border: none;
161158
}
162159

163160
table thead {
@@ -174,7 +171,7 @@ table thead th {
174171
}
175172

176173
table thead tr {
177-
border: 1px var(--table-header-bg) solid;
174+
border: none;
178175
}
179176

180177
/* Alternate background colors for rows */

LDtk.Documentation/theme/css/variables.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
--links: #ffcc00;
2424

25-
--inline-code-color: #ff7a8b;
25+
--inline-code-color: #c5c5c5;
2626

2727
--theme-popup-bg: #14191f;
2828
--theme-popup-border: #5c6773;
@@ -31,9 +31,9 @@
3131
--quote-bg: #252832;
3232
--quote-border: #303441;
3333

34-
--table-border-color: #1e2229;
34+
--table-border-color: #16181d;
3535
--table-header-bg: #16181d;
36-
--table-alternate-bg: #1e2229;
36+
--table-alternate-bg: #0000002c;
3737

3838
--menu-bar-bg: #16181d;
3939

LDtk.Documentation/toc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)