Skip to content

Commit f4e37a1

Browse files
committed
refactor: anchor link and css fixes
1 parent 1ade779 commit f4e37a1

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<title>{{ if .Title }}{{ .Title }} {{ else }}{{ .Site.Title }}{{ end }}</title>
1111
<meta name="description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.SiteDescription }}{{ end }}">
1212

13-
13+
<script src="/js/smooth-scroll.js"></script>
1414
<link href="/css/doc-theme.css?" rel="stylesheet">
1515
<link rel="icon" href="/favicon.ico">
1616
</head>

themes/doc-theme/layouts/partials/toolbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
app
33
fixed
44
height=68
5-
class="pr-3 pl-2"
5+
class="pr-3 pl-2 navbar"
66
dark
77
style="background-color: #171730;"
88
>

themes/doc-theme/static/css/doc-theme.css

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
html {
22
/*font-size: 100%;*/
3+
scroll-behavior: smooth;
34
}
45

56
/* Style the header */
@@ -122,7 +123,7 @@ a.bread:hover {
122123
.bread {
123124
font-family: 'BebasNeueBold',sans-serif;
124125
letter-spacing: 0.1em;
125-
color: rgb(120, 0, 255)!important;
126+
color: #00cc96 !important;
126127
}
127128

128129
.theme--dark.v-navigation-drawer:not(.v-navigation-drawer--floating) .v-navigation-drawer__border {
@@ -148,7 +149,7 @@ li.lefttree > a {
148149

149150
li.hot > a.hot {
150151
text-decoration: none;
151-
color: #7800FF!important;
152+
color: #00cc96!important;
152153
padding: 6px;
153154

154155
}
@@ -245,8 +246,8 @@ nav#TableOfContents {
245246

246247
img {
247248
max-width: 90%;
248-
margin-left: 5%;
249-
padding: 18px;
249+
margin-left: 0;
250+
padding: 5px;
250251
}
251252

252253
[v-cloak] > * { display:none }
@@ -281,11 +282,11 @@ table td, table th {
281282
}
282283

283284
.ppurple {
284-
color: #7800FF;
285+
color: #00cc96;
285286
}
286287

287288
.pbgpurple {
288-
background-color: #7800FF!important;
289+
background-color: #00cc96!important;
289290
color: white;
290291
}
291292

@@ -324,7 +325,7 @@ code {
324325
}
325326

326327
.primary--text {
327-
color: #7800FF;
328+
color: #00cc96;
328329
}
329330

330331
.v-window {

0 commit comments

Comments
 (0)