Skip to content

Commit b4c5009

Browse files
committed
update theme style
1 parent 85d0c01 commit b4c5009

6 files changed

Lines changed: 27 additions & 18 deletions

File tree

themes/mytheme/layouts/partials/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
crossorigin="anonymous"></script>
2626

2727
<!-- highlight.js -->
28-
<link rel="stylesheet" href='{{ absURL "css/atom-one-dark.min.css" }}'>
28+
<link rel="stylesheet" href='{{ absURL "css/atom-one-dark-reasonable.min.css" }}'>
2929
<script src='{{ absURL "js/highlight.min.js" }}'></script>
3030
<script>hljs.highlightAll();</script>
3131

themes/mytheme/layouts/partials/site-nav.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
<nav id="index">
44
<ul>
55
{{ range site.Sections.ByWeight }}
6-
<li>
6+
7+
<li class="sections">
8+
<hr>
79
<strong>{{ .Title }}</strong>
810
<ul>
9-
1011
{{ range .Sections.ByWeight }}
1112
<li>
1213

themes/mytheme/static/css/atom-one-dark-reasonable.min.css

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

themes/mytheme/static/css/atom-one-dark.min.css

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

themes/mytheme/static/css/style.css

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,16 @@
113113
border-bottom: 4px solid rgb(82, 82, 82);
114114
}
115115

116+
input {
117+
background-color: rgb(19, 20, 22) !important;
118+
border: 1px solid rgb(55, 59, 62) !important;
119+
color: white !important;
120+
}
121+
122+
input::placeholder {
123+
color: rgb(121, 121, 121) !important;
124+
}
125+
116126

117127
/* Top bar style */
118128
.navbar-brand-blur {
@@ -184,21 +194,15 @@
184194
#TableOfContents li a,
185195
#index li a {
186196
display: block;
187-
padding-top: 2px;
188-
padding-bottom: 2px;
197+
padding-top: 5px;
198+
padding-bottom: 5x;
189199
text-decoration: none;
190200
transition: 0.3s;
191-
color: rgb(180, 180, 180);
201+
color: rgb(185, 194, 214);
192202
opacity: 0.8;
193203
font-size: 15px;
194204
}
195205

196-
#sidebarLeft:hover li a,
197-
#sidebarRight:hover li a {
198-
color: rgb(207, 207, 207);
199-
opacity: 1;
200-
}
201-
202206
#TableOfContents li a.active,
203207
#index li a.active {
204208
color: #00CCFF;
@@ -208,17 +212,19 @@
208212
#TableOfContents li a:hover,
209213
#index li a:hover {
210214
color: white;
211-
background-color: rgb(67, 69, 74);
215+
text-decoration: underline;
212216
}
213217

214-
#TableOfContents ul ul,
215-
#index ul ul {
218+
#TableOfContents ul ul {
216219
padding-left: 15px;
217220
}
218221

219-
#TableOfContents ul ul ul,
220222
#index ul ul ul {
221-
padding-left: 30px;
223+
padding-left: 15px;
224+
}
225+
226+
.sections {
227+
margin-bottom: 10px;
222228
}
223229

224230

themes/mytheme/static/js/anchors.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ document.querySelectorAll('#TableOfContents a[href^="#"]').forEach(anchor => {
1616
behavior: "smooth"
1717
});
1818
}
19+
20+
history.pushState(null, null, '#' + targetId);
1921
});
2022
});

0 commit comments

Comments
 (0)