119
119
float : right;
120
120
font-size : 1.8em ;
121
121
padding-top : 2px ;
122
- position : relative;
123
- z-index : 1 ;
124
122
}
125
123
126
124
@@ -150,7 +148,7 @@ header {
150
148
opacity : 0.8 ;
151
149
}
152
150
# logo-wrapper {
153
- height : 64 px ;
151
+ height : 52 px ;
154
152
position : relative;
155
153
padding : 16px ;
156
154
margin : 0 auto;
@@ -168,89 +166,79 @@ header {
168
166
}
169
167
170
168
171
- /* Grid container */
172
- .grid-container {
173
- display : grid;
174
- grid-template-columns : 1fr 6fr ;
175
- grid-template-rows : auto;
176
- max-width : 100% ; /* Prevents the grid container from exceeding the page width */
177
- overflow-x : hidden; /* Prevents horizontal scrolling */
178
- box-sizing : border-box; /* Ensures padding is included in width calculations */
169
+ .container {
170
+ display : flex;
179
171
}
180
172
181
- /* Main content styles */
182
- # main-content {
183
- padding : 20 px ;
184
- max-width : 100 % ; /* Limits the width of the inner divs */
185
- box-sizing : border-box ;
173
+ . sidebar {
174
+ padding : 1 em ;
175
+ border-right : 1 px solid # 394a60 ;
176
+ display : block;
177
+ width : 150 px ;
186
178
}
187
-
188
-
189
- /* Sidebar styles */
190
-
191
-
192
- /* Ensure #menu-toggle is hidden on larger screens */
193
- # menu-toggle {
179
+ .toggle-sidebar {
194
180
display : none;
181
+ background-color : # 333 ;
182
+ border : none;
183
+ border-radius : 5px ;
184
+ color : white;
185
+ padding : 0.5em ;
186
+ cursor : pointer;
187
+ font-size : 1.6em ;
188
+ margin-left : auto;
189
+ position : absolute;
190
+ bottom : 20px ;
191
+ right : 20px ;
192
+ z-index : 1000 ;
193
+ }
194
+
195
+ .content {
196
+ flex : 1 ;
197
+ padding : 1rem ;
195
198
}
196
199
197
- /* Hide sidebar on smaller screens */
198
- @media (max-width : 768px ) {
199
- .grid-container {
200
- display : grid;
201
- grid-template-columns : 1fr ;
202
- grid-template-rows : auto;
203
- max-width : 100% ; /* Prevents the grid container from exceeding the page width */
204
- overflow-x : hidden; /* Prevents horizontal scrolling */
205
- box-sizing : border-box; /* Ensures padding is included in width calculations */
200
+ /* Media query for smaller screens */
201
+ @media (max-width : 900px ) {
202
+ .container {
203
+ flex-direction : column;
204
+ }
205
+
206
+ .sidebar {
207
+ display : none;
208
+ background-color : # 333 ;
209
+ border : none;
210
+ border : 2px solid # 394a60 ;
211
+ position : absolute;
212
+ right : 0 ;
206
213
}
207
214
208
- .sidebar-left {
209
- display : none;
210
- position : fixed;
211
- left : 0 ;
212
- width : 100% ;
213
- background : # 151b23 ;
214
- overflow-y : auto;
215
- z-index : 1000 ;
215
+ .sidebar .active {
216
+ display : block;
216
217
}
217
218
218
- .sidebar-left . open {
219
- display : block ;
219
+ .content {
220
+ padding : 1 rem ;
220
221
}
221
222
222
- # menu-toggle {
223
- display : inline-block;
224
- background : none;
225
- border : none;
226
- font-size : 1.5rem ;
227
- color : white;
228
- cursor : pointer;
229
- margin-left : auto;
230
- position : absolute;
231
- bottom : 20px ;
232
- right : 20px ;
223
+ .toggle-sidebar {
224
+ display : block;
233
225
}
234
226
}
235
227
236
- .sidebar-left {
237
- padding : 20px ;
238
- border-right : 1px solid # 394a60 ;
239
- }
240
- .sidebar-left ul {
228
+ .sidebar ul {
241
229
list-style : none;
242
230
padding : 0 ;
243
231
margin : 0 ;
244
232
}
245
- .sidebar-left ul li {
233
+ .sidebar ul li {
246
234
margin : 5px 0 ;
247
235
}
248
- .sidebar-left ul li a {
236
+ .sidebar ul li a {
249
237
padding-top : 10px ;
250
238
padding-left : 10px ;
251
239
padding-bottom : 10px ;
252
240
}
253
- .sidebar-left ul li p {
241
+ .sidebar ul li p {
254
242
padding-top : 10px ;
255
243
padding-left : 10px ;
256
244
padding-bottom : 0 ;
0 commit comments