Skip to content

Commit 650fd26

Browse files
Merge pull request #6 from CSESoc-CompClub/theme
ugly but fine
2 parents 753331c + 5a17976 commit 650fd26

4 files changed

Lines changed: 27 additions & 27 deletions

File tree

book.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ language = "en"
88
build-dir = "book"
99

1010
[output.html]
11-
default-theme = "scifi"
11+
default-theme = "pirate"
1212
additional-css = ["theme/custom.css"]
1313

1414
[preprocessor.callouts]

theme/css/variables.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
--sidebar-bg: linear-gradient(180deg, hsl(262, 36%, 11%), hsl(247, 32%, 23%));
2121
--sidebar-fg: #c8c9db;
2222
--sidebar-non-existant: #505274;
23-
--sidebar-active: hsl(91, 54%, 52%);
23+
--sidebar-active: hsl(60, 54%, 52%);
2424
--sidebar-spacer: #2d334f;
2525

2626
--scrollbar: var(--sidebar-fg);
2727

28-
--icons: #7079d4;
29-
--icons-hover: #3c4ee8;
28+
--icons: #d47070;
29+
--icons-hover: #e83c3c;
3030

31-
--links: hsl(91, 34%, 52%);
31+
--links: #ddd417;
3232

3333
--inline-code-color: hsl(91, 54%, 52%);
3434

@@ -52,7 +52,7 @@
5252
--searchresults-header-fg: #5f5f71;
5353
--searchresults-border-color: #5c5c68;
5454
--searchresults-li-bg: #242430;
55-
--search-mark-bg: #a2cff5;
55+
--search-mark-bg: #1b56f8;
5656

5757
--color-scheme: dark;
5858

theme/custom.css

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap');
2-
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Share+Tech+Mono&display=swap');
1+
@import url('https://fonts.googleapis.com/css2?family=Pirata+One&display=swap');
2+
@import url('https://fonts.googleapis.com/css2?family=Pirata+One&family=Texturina:ital,opsz,wght@0,12..72,100..900;1,12..72,100..900&display=swap');
33

44
html.scifi, body.scifi {
55
font-family: "Nunito", "Ubuntu", sans-serif;
66
background-color: #0a0f1c;
7-
color: #e0e0ff;
7+
color: #ffe0e0;
88
}
99

1010
/* Fonts */
1111
html.scifi, body.scifi {
12-
font-family: 'Ubuntu', sans-serif;
12+
font-family: 'Texturina';
1313
font-size: 10px;
1414
line-height: 1.6;
1515
color: var(--fg);
1616
}
1717

1818
.scifi h1, .scifi h2, .scifi h3, .scifi h4 {
19-
font-family: 'Orbitron', sans-serif;
19+
font-family: 'Pirata One';
2020
text-transform: uppercase;
2121
letter-spacing: 0.05em;
22-
color: #a882ff;
23-
text-shadow: 0 0 6px #a882ff66;
22+
color: black;
23+
text-shadow: 0 0 6px red;
2424
}
2525

2626
.scifi pre, .scifi code {
@@ -29,13 +29,13 @@ html.scifi, body.scifi {
2929

3030
/* Sidebar */
3131
.scifi .sidebar {
32-
background: linear-gradient(180deg, #140a28, #1b0e3f);
32+
background: linear-gradient(180deg, #760a0a, #5e2a0e);
3333
color: #c8c9db;
3434
border-right: 1px solid #362f59;
3535
}
3636

3737
.scifi .sidebar a {
38-
color: #a882ff;
38+
color: black;
3939
}
4040

4141
.scifi .sidebar a:hover {
@@ -49,8 +49,8 @@ html.scifi, body.scifi {
4949

5050
/* Headings */
5151
.scifi h1, .scifi h2, .scifi h3, .scifi h4 {
52-
color: #a882ff;
53-
text-shadow: 0 0 5px rgba(168, 130, 255, 0.3);
52+
color: #760a0a;
53+
text-shadow: 0 0 5px rgba(255, 130, 140, 0.3);
5454
}
5555

5656
/* Inline code */
@@ -115,20 +115,20 @@ html.scifi, body.scifi {
115115
}
116116

117117
.scifi a:hover {
118-
color: #a882ff;
119-
text-shadow: 0 0 8px #a882ff66;
118+
color: #ff8282;
119+
text-shadow: 0 0 8px #ff828263;
120120
}
121121

122122
/* Scrollbar */
123123
.scifi ::-webkit-scrollbar {
124124
width: 8px;
125125
}
126126
.scifi ::-webkit-scrollbar-thumb {
127-
background: #444866;
127+
background: #664444;
128128
border-radius: 4px;
129129
}
130130
.scifi ::-webkit-scrollbar-thumb:hover {
131-
background: #a882ff;
131+
background: #ff8282;
132132
}
133133

134134
/* Table Styling */
@@ -143,20 +143,20 @@ html.scifi, body.scifi {
143143
}
144144
.scifi th {
145145
background-color: #29294b;
146-
color: #a882ff;
146+
color: #ff8282;
147147
}
148148

149149
/* Footnotes */
150150
.scifi .footnote {
151151
background-color: #1b1e2e;
152-
border-left: 3px solid #a882ff;
152+
border-left: 3px solid red;
153153
padding: 0.5em;
154154
margin-top: 1em;
155155
}
156156

157157

158158
.scifi h1, .scifi h2 {
159-
text-shadow: 0 0 8px #a882ff66;
159+
text-shadow: 0 0 8px #ff828266;
160160
}
161161

162162
html.scifi, body.scifi {
@@ -187,15 +187,15 @@ html.scifi, body.scifi {
187187
.answer-button {
188188
padding: 10px 20px;
189189
font-size: 16px;
190-
background-color: #4CAF50;
190+
background-color: #5e2a0e;
191191
color: white;
192192
border: none;
193193
border-radius: 5px;
194194
cursor: pointer;
195195
}
196196

197197
.answer-button:hover {
198-
background-color: #45a049;
198+
background-color: #ddd417;
199199
}
200200

201201
.correct {

theme/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li>
154154
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li>
155155
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li>
156-
<li role="none"><button role="menuitem" class="theme" id="scifi">SciFi</button></li>
156+
<li role="none"><button role="menuitem" class="theme" id="scifi">Pirate</button></li>
157157
</ul>
158158
{{#if search_enabled}}
159159
<button id="search-toggle" class="icon-button" type="button" title="Search (`/`)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="/ s" aria-controls="searchbar">

0 commit comments

Comments
 (0)