Skip to content

Commit bf647c4

Browse files
Fixed #674. Some minor style issues related to dark theme
1 parent 9cec980 commit bf647c4

5 files changed

Lines changed: 50 additions & 13 deletions

File tree

config.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ refLinksNotFoundURL = '#'
2525
pluralizeListTitles = false
2626

2727
[[menu.main]]
28-
name = "Documentation"
28+
name = "Docs"
2929
identifier = "sldn"
3030
url = "/reference/softlayerapi"
3131
[[menu.main]]
@@ -36,10 +36,6 @@ pluralizeListTitles = false
3636
name = "Go"
3737
identifier = "go"
3838
url = "/go/"
39-
[[menu.main]]
40-
name = "Perl"
41-
identifier = "perl"
42-
url = "/perl/"
4339
[[menu.main]]
4440
name = "Java"
4541
identifier = "java"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: "Release notes: June 19, 2024"
3+
date: "2024-06-19"
4+
tags:
5+
- "release notes"
6+
---
7+
8+
9+
#### SLDN
10+
11+
Introducting Dark Mode for SLDN! If there are any issues with this theme please let me know by [opening a GitHub Issue](https://github.com/softlayer/githubio_source/issues/new).
12+
You can also switch to Light Mode by clicking the SUN Icon: <span><i class="fas fa-sun"></i></span> on the top right corner.

layouts/partials/navbar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<a class="navbar-brand" href="{{ .Site.BaseURL}}">{{ .Site.Title }}</a>
1111
</div>
1212

13-
<div class="navbar-header" style="width: calc(100% - 400px)">
13+
<div class="navbar-header" style="width: calc(100% - 350px)">
1414
<ul class="nav navbar-nav" style="width: 100%">
1515
{{ range .Site.Menus.main }}
1616
<li><a href="{{.URL}}">{{ .Name }}</a></li>
@@ -23,7 +23,7 @@
2323
</ul>
2424
</div>
2525

26-
<div id="custom-search-input" class="pull-right" style="width: 250px">
26+
<div id="custom-search-input" class="pull-right" style="width: 200px">
2727
<form class="navbar-form" role="search" method="get" action="https://www.bing.com/search">
2828
<div class="input-group col-md-12">
2929
<input type="text" class="form-control input-md" placeholder="Search" name="q" id="srch-term">

static/css/custom.css

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ div.release-note h3 {
4141

4242
a {
4343
color: var(--Red);
44+
font-weight: bold;
45+
}
46+
47+
a:hover {
48+
color: var(--Pink);
49+
font-weight: bold;
4450
}
4551

4652
div.release-note {
@@ -599,11 +605,34 @@ code {
599605
.navbar-nav li {
600606
display: table-cell;
601607
position: relative;
602-
text-align: center;
608+
text-align: left;
603609
vertical-align: middle;
604-
width: 8%;
605-
border: 0 0;
610+
width: 10%;
606611
overflow: hidden;
607612

608613
}
609614

615+
.pagination > .disabled > a {
616+
color: var(--Black);
617+
background-color: var(--Dark03);
618+
}
619+
620+
.pagination > .active > a {
621+
color: var(--White);
622+
background-color: var(--Pink);
623+
}
624+
625+
.pagination > .active > a:hover {
626+
color: var(--Pink);
627+
background-color: var(--Light02);
628+
}
629+
630+
.pagination > li > a:hover {
631+
color: var(--Pink);
632+
background-color: var(--Light02);
633+
}
634+
635+
.pagination > li > a {
636+
color: var(--GrayLight);
637+
background-color: var(--Dark03);
638+
}

static/css/light.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
:root {
22
--Dark01: #FFFFFF;
33
--Dark02: #fafafa;
4-
--Dark03: #FFFFFF;
4+
--Dark03: #c4c2c2;
55
--GrayDarkest: #FFFFFF;
66
--GrayDark: #FFFFFF;
77
--GrayMid: #FFFFFF;
88
--GrayLight: #FFFFFF;
99
--Light01: #999999;
10-
--Light02: #000000;
10+
--Light02: #3d3c3c;
1111
--Red: #008cba;
1212
--Orange: #FFFFFF;
1313
--Yellow: #FFFFFF;
@@ -16,6 +16,6 @@
1616
--Blue: #FFFFFF;
1717
--Purple: #FFFFFF;
1818
--Pink: #c7254e;
19-
--Black: #FFFFFF;
19+
--Black: #000000;
2020
--White: #FFFFFF;
2121
}

0 commit comments

Comments
 (0)