Skip to content

Commit c751b05

Browse files
committed
Fixed nav bar behavior
1 parent d820fed commit c751b05

3 files changed

Lines changed: 20 additions & 8 deletions

File tree

themes/pinetheme/assets/css/documentation.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ body {
7373
}
7474
#doc-nav a {
7575
color: var(--fg);
76+
padding-right: 5px;
7677
}
7778
#doc-nav a:hover {
7879
color: var(--blue);
@@ -84,24 +85,28 @@ body {
8485
padding-left: 0 !important;
8586
}
8687
#doc-nav .sidebar-nav ul ul {
87-
margin-left: 10px;
88+
margin-left: 4px;
89+
border-left: 1px solid #868686b7;
90+
}
91+
#doc-nav .sidebar-nav ul ul li {
92+
margin-left: 8px;
8893
}
8994
#doc-nav .doc-nav-head {
9095
color: var(--fg);
9196
font-weight: 500 !important;
9297
}
9398
#doc-nav li {
94-
padding-top: 10px;
99+
padding: 5px 0;
95100
}
96101
.button_collapse {
97102
font-weight: 600;
98103
padding: 5px 10px;
99104
border-radius: 5px;
100-
float: right;
105+
/* float: right */
101106
cursor: pointer;
102107
}
103108
.button_collapse:hover, .button_collapse:active {
104-
background-color: #f1f1f1;
109+
background-color: #50505067;
105110
}
106111
#doc-nav .c_active > ul {display: block;}
107112
.active > ul {
@@ -214,6 +219,7 @@ div#doc-page article > blockquote {
214219
}
215220
#doc-nav nav.sidebar-nav {
216221
max-height: 250px;
222+
overflow-y: scroll;
217223
}
218224
#doc-page {
219225
padding: 0 10px 0 10px;

themes/pinetheme/assets/css/style.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,12 +582,12 @@ input#hamburger_cb,
582582
#main_menu {
583583
margin-left: 0;
584584
width: 100%;
585-
background: white;
585+
background: var(--bg);
586586
position: absolute;
587587
top: 140px;
588588
z-index: 999;
589-
border-top: 2px solid #eee;
590-
border-bottom: 2px solid #eee;
589+
border-top: 2px solid #8383831a;
590+
border-bottom: 2px solid #8383831a;
591591
padding-bottom: 20px;
592592
box-shadow: 3px 25px 20px 0px rgba(87, 87, 87, 0.75);
593593

@@ -611,6 +611,8 @@ input#hamburger_cb,
611611
padding: 4px 10px;
612612
background-color: #2969B1;
613613
border-radius: 5px;
614+
box-shadow: none;
615+
border: none;
614616
}
615617
#hamburger:hover{
616618
box-shadow: 0 0 15px rgba(92, 123, 182, 0.7);
@@ -633,6 +635,9 @@ input#hamburger_cb,
633635
input#hamburger_cb:checked ~ #main_menu {
634636
display: block;
635637
}
638+
input#hamburger_cb:checked + #hamburger {
639+
border: 1px solid var(--fg) !important;
640+
}
636641
.dropdown label {
637642
display: flex; justify-content: flex-end
638643
}

themes/pinetheme/layouts/partials/header.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<div id="header">
22
<div id="header-container">
33
<!-- Hamburger -->
4-
<div id="hamburger"><label for="hamburger_cb">&#9776;</label></div><input type="checkbox" id="hamburger_cb"/>
4+
<input type="checkbox" id="hamburger_cb"/>
5+
<div id="hamburger"><label for="hamburger_cb">&#9776;</label></div>
56

67
<!-- Logo -->
78
<a id="logo" href="/" aria-label="A link to the main page"><img src="/img/logo.png" alt="The PINE64 logo"></a>

0 commit comments

Comments
 (0)