Skip to content

Commit 423fdec

Browse files
committed
Made the navbar great again, added more people, evicted unwanted spaces
1 parent 5e04b73 commit 423fdec

File tree

7 files changed

+24
-11
lines changed

7 files changed

+24
-11
lines changed

_config.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ servers:
145145
contributors:
146146
regulars:
147147
- geisterfurz007: "https://stackoverflow.com/users/6707985/"
148-
- "Baum mit Augen": "https://chat.stackoverflow.com/users/3002139/"
149-
148+
- "Baum mit Augen": "https://stackoverflow.com/users/3002139/"
149+
- "Petter Friberg": "https://stackoverflow.com/users/5292302/"
150+
- "Shree": "https://stackoverflow.com/users/965146"
151+
- "Floern": "https://stackoverflow.com/users/559745"
152+
- "Zoe": "https://stackoverflow.com/users/6296561"
153+
- "Jonathan": "https://stackoverflow.com/users/2263949"
154+
- "double-beep": "https://stackoverflow.com/users/10607772"
150155
#coders:

_includes/head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<head>
2-
<title>{{page.title}}</title>
2+
<title>{% if page.title %}{{page.title}} | {% endif %}SOBotics</title>
33

44
<meta name="viewport" content="width=device-width, initial-scale=1" />
55
<meta charset="utf-8">

_includes/header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<div class="topnav right">
99
{% include nav.html %}
1010
</div>
11-
<span class="sidenav-trigger" onclick="openSidenav()">&#9776</span>
11+
<span class="sidenav-trigger" onclick="openSidenav()">&#9776;</span>
1212
</div>
1313

1414
</header>

_includes/nav.html

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
<a href="/">Contributors</a>
2-
<a href="/servers/">Server hosts</a>
3-
1+
<a href="/" {% if page.active and page.active == "contributors" %} class="active" {% endif %}>Contributors</a><a href="/servers/" {% if page.active and page.active == "servers" %} class="active" {% endif %}>Server hosts</a>

assets/css/style.scss

+9-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
// Colors
77
$background-primary: #222;
8+
$background-primary-active: #2c2c2c;
89
$color-primary-dark: #ffffff;
910
$color-link-dark: #ee4444;
1011

@@ -128,8 +129,11 @@ main {
128129
.topnav {
129130
font-size: 20px;
130131
a {
131-
padding-left: 10px;
132-
padding-right: 10px;
132+
padding: 15px;
133+
}
134+
a:hover {
135+
136+
background-color: $background-primary-active;
133137
}
134138
}
135139

@@ -157,4 +161,6 @@ main {
157161
}
158162
}
159163

160-
164+
.active {
165+
background-color: $background-primary-active;
166+
}

index.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
layout: default
3+
active: contributors
4+
title: Contributors
35
---
46

57
<!-- Maybe this should be moved to a separate file? -->
@@ -15,4 +17,4 @@ <h2>Regulars</h2>
1517
{% endfor %}
1618
{% endfor %}
1719
</ul>
18-
</div>
20+
</div>

servers/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
layout: default
3+
active: servers
4+
title: Project host locations
35
---
46

57
<div id="hosts">

0 commit comments

Comments
 (0)