Skip to content

Commit b7c1224

Browse files
committed
Improve menu
1 parent 7d9edd7 commit b7c1224

2 files changed

Lines changed: 28 additions & 19 deletions

File tree

‎_includes/layouts/ircdocs-default.html‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width">
66
<title>{{ page.title }} - IRC DevDocs</title>
77

8-
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" referrerpolicy="no-referrer">
8+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous" referrerpolicy="no-referrer">
99

1010
<link rel="stylesheet" href="/assets/styles/index.css">
1111
<link rel="stylesheet" href="/assets/styles/foundation.css">
@@ -23,7 +23,14 @@
2323
<span class="logo-text">ircdocs<span class="logo-part">.horse</span></span>
2424
</a>
2525

26-
<nav class="desktop-nav">
26+
<nav class="desktop-nav category-nav">
27+
<a href="{{ site.baseurl | relative_url }}refs/commands/">commands</a>
28+
<a href="{{ site.baseurl | relative_url }}refs/numerics/">numerics</a>
29+
<!-- <a href="/">guides</a> -->
30+
<a href="{{ site.baseurl | relative_url }}refs/glossary/">glossary</a>
31+
</nav>
32+
33+
<nav class="desktop-nav ircdocs-nav">
2734
<a href="https://ircdocs.horse/">index</a>
2835
<a class="active" href="/">DevDocs</a>
2936
<a href="https://defs.ircdocs.horse/">Defs</a>
@@ -39,6 +46,11 @@
3946
<nav id="header-mobile-nav">
4047
<div class="close-sidebar" role="button" aria-label="Close mobile nav menu button" onclick="document.getElementById('header-mobile-nav').classList.toggle('shown')"><i class="fas fa-times"></i></div>
4148
<div class="link-container">
49+
<a href="{{ site.baseurl | relative_url }}refs/commands/">commands</a>
50+
<a href="{{ site.baseurl | relative_url }}refs/numerics/">numerics</a>
51+
<!-- <a href="/">guides</a> -->
52+
<a href="{{ site.baseurl | relative_url }}refs/glossary/">glossary</a>
53+
<p>&nbsp;</p>
4254
<a href="https://ircdocs.horse/">index</a>
4355
<a class="active" href="/">DevDocs</a>
4456
<a href="https://defs.ircdocs.horse/">Defs</a>
@@ -56,7 +68,6 @@
5668
</div>
5769

5870
<footer>
59-
<!-- <a href="/"><img class="logo-img" src="/assets/irc_logos/irc_white.svg" alt="IRC Foundation Logo"></a> -->
6071
<p>&copy; 2018 <a href="https://irc.com/">IRC.com</a></p>
6172
<p>&copy; 2020 ircdocs</p>
6273
</footer>

‎assets/styles/index.scss‎

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,15 @@
11
---
22
---
33

4-
$comHeaderColour: #78d5e4;
54
$foundationHeaderColour: #aac7ec;
6-
$socialHeaderColour: #74a8cb;
75

86
header, header .header-dropdown-menu, footer, .full-width-page-header, .full-width-search-bar {
97
background-color: #2a3135;
108
}
11-
header .logo-part, header .desktop-nav a:hover {
12-
color: $comHeaderColour;
13-
}
149
.full-width-page-header, .full-width-search-bar {
1510
color: #fff;
1611
background: #314157;
1712
}
18-
body.index {
19-
header .logo-part, header .desktop-nav a:hover {
20-
color: $socialHeaderColour;
21-
}
22-
.full-width-page-header, .full-width-search-bar {
23-
color: #fff;
24-
}
25-
}
2613
body.foundation {
2714
header .logo-part, header .desktop-nav a:hover, header .desktop-nav a.active {
2815
color: $foundationHeaderColour;
@@ -60,6 +47,7 @@ header, footer {
6047
height: 100%;
6148
}
6249

50+
// css reset
6351
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption {
6452
margin: 0;
6553
padding: 0;
@@ -183,6 +171,11 @@ header {
183171
flex: 1 1 auto;
184172
text-align: right;
185173

174+
&.category-nav {
175+
padding: 0 2em;
176+
text-align: left;
177+
}
178+
186179
a {
187180
transition: color 0.2s;
188181
color: #fff;
@@ -239,7 +232,6 @@ header {
239232
display: none;
240233
color: #fff;
241234
text-align: right;
242-
width: 100%;
243235
flex: 1 1 auto;
244236
font-size: 1.4em;
245237
padding: 0.3em 0 0.3em 0.3em;
@@ -301,6 +293,7 @@ header {
301293
display: block;
302294
text-align: center;
303295
padding: 0.25em 0;
296+
text-transform: uppercase;
304297
}
305298
hr {
306299
border: none;
@@ -309,11 +302,11 @@ header {
309302
}
310303
}
311304

312-
@media (max-width: 35rem) {
305+
@media (max-width: 65rem) {
313306
.mobile-nav-button {
314307
display: inline-block !important;
315308
}
316-
.desktop-nav {
309+
.ircdocs-nav {
317310
display: none;
318311
}
319312
#header-mobile-nav {
@@ -323,6 +316,11 @@ header {
323316
}
324317
}
325318
}
319+
@media (max-width: 35rem) {
320+
.desktop-nav {
321+
display: none;
322+
}
323+
}
326324
}
327325

328326
.intro-container {

0 commit comments

Comments
 (0)