Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
113 lines (94 loc) · 1.96 KB
/
Copy pathstyle.css
File metadata and controls
113 lines (94 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
body {
margin: 0;
font-family: Arial, sans-serif;
}
.navbar {
background-color: #333;
color: #fff;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
position: relative;
}
.navbar-left {
display: flex;
align-items: center;
}
.user-info {
display: flex;
align-items: center;
}
.user-icon {
font-size: 24px;
margin-right: 10px;
}
.user-name {
font-size: 18px;
}
.menu-toggle {
display: none;
font-size: 24px;
cursor: pointer;
}
.navbar-menu {
display: flex;
}
.navbar-menu ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
}
.navbar-menu li {
margin: 0 15px;
}
.navbar-menu a {
color: #fff;
text-decoration: none;
display: flex;
align-items: center;
}
.navbar-menu i {
margin-right: 8px;
}
/* Mobile Styles */
@media (max-width:1000px) {
.navbar-menu {
position: absolute;
top: 40px; /* Adjust according to navbar height */
left: 0; /* Align to the left edge */
background-color: #333;
width: 100%; /* Full width for mobile */
max-height: 0; /* Initially hidden */
overflow: hidden; /* Hide overflowing content */
flex-direction: column;
transition:0.5s;
}
.navbar-menu.active {
display: flex;
max-height: 300px; /* Adjust based on expected menu height */
transition:0.5s;
}
.menu-toggle {
display: block;
}
.navbar-menu ul {
padding: 0;
margin: 0;
list-style: none;
width: 100%;
display: flex;
flex-direction: column; /* Stack menu items vertically */
}
.navbar-menu li {
margin: 0; /* Remove margin for list items */
}
.navbar-menu a {
display: block;
padding: 15px; /* Adjust padding for better touch targets */
color: #fff;
text-decoration: none;
text-align: center;
}
}