source: imaps-frontend/src/components/SideBar/SideBar.module.css

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/* Sidebar container */
2.sidebar {
3 position: fixed;
4 top: 0;
5 left: 0;
6 height: 100vh;
7 width: 280px;
8 background-color: #2c3e50;
9 color: #ecf0f1;
10 transition: transform 0.3s ease;
11 transform: translateX(-100%);
12 z-index: 1000;
13 display: flex;
14 flex-direction: column;
15 justify-content: flex-start;
16 align-items: flex-start;
17 padding-top: 4vh;
18 box-shadow: 2px 0 5px rgba(0, 0, 0, 0.15); /* Subtle shadow */
19}
20
21.sidebar.open {
22 transform: translateX(0);
23}
24
25/* Toggle button */
26.toggleBtn {
27 position: absolute;
28 top: 20px;
29 left: 300px;
30 background-color: #34495e;
31 color: white;
32 border: none;
33 padding: 8px;
34 border-radius: 50%;
35 cursor: pointer;
36 z-index: 1100;
37 display: flex;
38 align-items: center;
39 justify-content: center;
40 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
41 transition: background-color 0.3s ease;
42}
43
44.toggleBtn:hover {
45 background-color: #3b5998;
46}
47
48.toggleBtn img {
49 width: 28px;
50 height: 28px;
51 object-fit: contain;
52}
53
54/* Sidebar content */
55.sidebarContent {
56 width: 100%;
57 padding: 20px;
58}
59
60.sidebarContent ul {
61 list-style: none;
62 padding: 0;
63 margin: 0;
64 width: 100%;
65}
66
67.sidebarContent ul li {
68 margin: 20px 0;
69}
70
71.sidebarContent ul li a {
72 color: #ecf0f1;
73 text-decoration: none;
74 font-size: 18px;
75 padding: 12px;
76 display: block;
77 border-radius: 8px;
78 transition: background-color 0.3s ease, transform 0.2s ease;
79}
80
81.sidebarContent ul li a:hover {
82 background-color: #34495e;
83 transform: translateX(10px);
84 text-decoration: none;
85}
86
87/* Overlay when sidebar is open */
88.overlay {
89 position: fixed;
90 top: 0;
91 left: 0;
92 width: 100%;
93 height: 100%;
94 background-color: rgba(0, 0, 0, 0.4);
95 z-index: 900;
96}
Note: See TracBrowser for help on using the repository browser.