Skip to content

Commit 5a93bc0

Browse files
Updated the sidebar
1 parent c8bdb32 commit 5a93bc0

File tree

3 files changed

+34
-9
lines changed

3 files changed

+34
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Responsive Sales Dashboard
22

3-
This is a responsive sales dashboard built using **HTML 5**, **CSS 3** and **JavaScript**. Charts are built using **ApexCharts 3**.
3+
This is a responsive sales dashboard built using **HTML 5**, **CSS 3**, and **JavaScript**. Charts are built using **ApexCharts 3**.
44

55
![plot](https://github.com/BobsProgrammingAcademy/responsive-sales-dashboard/blob/master/images/large.png?raw=true)
66

css/styles.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,20 @@ body {
8484
cursor: pointer;
8585
}
8686

87+
.sidebar-list-item > a {
88+
text-decoration: none;
89+
color: #9e9ea4;
90+
}
91+
8792
.sidebar-responsive {
8893
display: inline !important;
8994
position: absolute;
95+
/*
96+
the z-index of the ApexCharts is 11
97+
we want the z-index of the sidebar higher so that
98+
the charts are not showing over the sidebar
99+
on small screens
100+
*/
90101
z-index: 12 !important;
91102
}
92103

index.html

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,39 @@
4444

4545
<ul class="sidebar-list">
4646
<li class="sidebar-list-item">
47-
<span class="material-icons-outlined">dashboard</span> Dashboard
47+
<a href="#" target="_blank">
48+
<span class="material-icons-outlined">dashboard</span> Dashboard
49+
</a>
4850
</li>
4951
<li class="sidebar-list-item">
50-
<span class="material-icons-outlined">inventory_2</span> Products
52+
<a href="#" target="_blank">
53+
<span class="material-icons-outlined">inventory_2</span> Products
54+
</a>
5155
</li>
5256
<li class="sidebar-list-item">
53-
<span class="material-icons-outlined">category</span> Categories
57+
<a href="#" target="_blank">
58+
<span class="material-icons-outlined">category</span> Categories
59+
</a>
5460
</li>
55-
<li class="sidebar-list-item">
56-
<span class="material-icons-outlined">groups</span> Customers
61+
<li class="sidebar-list-item">
62+
<a href="#" target="_blank">
63+
<span class="material-icons-outlined">groups</span> Customers
64+
</a>
5765
</li>
5866
<li class="sidebar-list-item">
59-
<span class="material-icons-outlined">fact_check</span> Inventory
67+
<a href="#" target="_blank">
68+
<span class="material-icons-outlined">fact_check</span> Inventory
69+
</a>
6070
</li>
6171
<li class="sidebar-list-item">
62-
<span class="material-icons-outlined">poll</span> Reports
72+
<a href="#" target="_blank">
73+
<span class="material-icons-outlined">poll</span> Reports
74+
</a>
6375
</li>
6476
<li class="sidebar-list-item">
65-
<span class="material-icons-outlined">settings</span> Settings
77+
<a href="#" target="_blank">
78+
<span class="material-icons-outlined">settings</span> Settings
79+
</a>
6680
</li>
6781
</ul>
6882
</aside>

0 commit comments

Comments
 (0)