119119 float : right;
120120 font-size : 1.8em ;
121121 padding-top : 2px ;
122- position : relative;
123- z-index : 1 ;
124122}
125123
126124
@@ -150,7 +148,7 @@ header {
150148 opacity : 0.8 ;
151149}
152150# logo-wrapper {
153- height : 64 px ;
151+ height : 52 px ;
154152 position : relative;
155153 padding : 16px ;
156154 margin : 0 auto;
@@ -168,89 +166,79 @@ header {
168166}
169167
170168
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;
179171}
180172
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 ;
186178}
187-
188-
189- /* Sidebar styles */
190-
191-
192- /* Ensure #menu-toggle is hidden on larger screens */
193- # menu-toggle {
179+ .toggle-sidebar {
194180 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 ;
195198}
196199
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 ;
206213 }
207214
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;
216217 }
217218
218- .sidebar-left . open {
219- display : block ;
219+ .content {
220+ padding : 1 rem ;
220221 }
221222
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;
233225 }
234226}
235227
236- .sidebar-left {
237- padding : 20px ;
238- border-right : 1px solid # 394a60 ;
239- }
240- .sidebar-left ul {
228+ .sidebar ul {
241229 list-style : none;
242230 padding : 0 ;
243231 margin : 0 ;
244232}
245- .sidebar-left ul li {
233+ .sidebar ul li {
246234 margin : 5px 0 ;
247235}
248- .sidebar-left ul li a {
236+ .sidebar ul li a {
249237 padding-top : 10px ;
250238 padding-left : 10px ;
251239 padding-bottom : 10px ;
252240}
253- .sidebar-left ul li p {
241+ .sidebar ul li p {
254242 padding-top : 10px ;
255243 padding-left : 10px ;
256244 padding-bottom : 0 ;
0 commit comments