Skip to content

Commit 15f155a

Browse files
committedJun 1, 2022
sidenav bar modified correctly
1 parent f065918 commit 15f155a

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed
 

‎templates/home/htmlsidenav.html

+13-10
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,36 @@
44
font-family: "Lato", sans-serif;
55
}
66

7-
.sidebar {
7+
.sidenavbar {
88
margin: 0;
99
padding: 0;
1010
padding-top: 50px;
1111
padding-left: 25px;
1212
padding-right: 25px;
13-
width: 300px;
13+
width: 300px !important;
1414
background-color:blue;
1515
color:white;
1616
border-right: 1px solid #eee;
1717
position: fixed;
18-
top:70px;
18+
top:60px;
19+
left:70px;
1920
height: 100%;
2021
overflow: auto;
2122
}
2223

23-
.sidebar h2 a {
24+
.sidenavbar h2 a {
2425
display: block;
2526
color: black;
2627
padding: 15px;
2728
background-color: rgb(81, 125, 255) !important;
2829
text-decoration: none;
2930
}
3031

31-
.sidebar h2 a.active {
32+
.sidenavbar h2 a.active {
3233
color: white;
3334
}
3435

35-
.sidebar h2 a:hover:not(.active) {
36+
.sidenavbar h2 a:hover:not(.active) {
3637
background-color: #555;
3738
color: white;
3839
}
@@ -51,6 +52,8 @@
5152
#sn.fill{
5253
top:0;
5354
padding-top:100px;
55+
width: 300px;
56+
5457
}
5558

5659
@media screen and (max-width: 700px) {
@@ -59,7 +62,7 @@
5962
height: auto;
6063
position: relative;
6164
}
62-
.sidebar a {float: left;}
65+
.sidenavbar a {float: left;}
6366
div.content {margin-left: 0;}
6467
}
6568

@@ -79,7 +82,7 @@
7982
<a href="#contact">Contact</a>
8083
<a href="#about">About</a>
8184
</div> -->
82-
<div id="sn" class="col-sm-3 col-md-2 sidebar">
85+
<div id="sn" class="col-sm-3 col-md-2 sidenavbar">
8386

8487

8588

@@ -93,7 +96,7 @@ <h2><a href="{% url 'html1' %}?data=style" class="btn btn-lg btn-block" style="c
9396

9497
</div>
9598

96-
<script>
99+
<!-- <script>
97100
98101
const sidenav = document.querySelector("#sn");
99102
@@ -104,5 +107,5 @@ <h2><a href="{% url 'html1' %}?data=style" class="btn btn-lg btn-block" style="c
104107
});
105108
106109
107-
</script>
110+
</script> -->
108111

0 commit comments

Comments
 (0)
Please sign in to comment.