-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Sidebar): Add collapsible functionality to sidebar + Responsiveness
This commit adds the ability to collapse and expand the sidebar in the Sidebar component. The "toggleSidebar" function is implemented to toggle the "collapsed" class on the aside element when the sidebar toggler button is clicked. Additionally, a click event listener is registered for the sidebar toggler button. The Sidebar component's styling is also updated to include a new class "collapsed" that adjusts its height and hides certain elements when collapsed. The styling for the sidebar toggler button and its icon is added as well. A new responsive mixin file "_responsive.scss" is introduced, which defines flex-direction changes based on different breakpoints. This allows for a responsive layout where the Sidebar component switches between column and row direction depending on screen size. The global styles file "_global.scss" imports "_responsive.scss", ensuring that responsive styles are applied throughout the application. The variables file "_variables.scss" now includes a map of responsive breakpoints, defining values for different screen sizes.
- Loading branch information
1 parent
8861aa8
commit 8dfb5a6
Showing
7 changed files
with
129 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@use "variables" as *; | ||
|
||
@each $breakpoint, $value in $breakpoints { | ||
.flex-row-#{$breakpoint} { | ||
@media (max-width: $value) { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
@media (min-width: $value) { | ||
display: flex; | ||
flex-direction: row; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
// Responsive breakpoints | ||
$breakpoints: ( | ||
xs: 0, | ||
sm: 576px, | ||
md: 768px, | ||
lg: 992px, | ||
xl: 1200px, | ||
xxl: 1400px | ||
); | ||
|
||
|
||
$accent: #883AEB; | ||
$accent-light: #E0CCFA; | ||
$accent-dark: #310A65; | ||
$accent-gradient: linear-gradient(45deg, $accent, $accent-light 30%, white 60%); | ||
|
||
$background: #13151A; | ||
|
||
.bg-dark-acrylic { | ||
background-color: rgba($background, .6); | ||
|
||
-webkit-backdrop-filter: blur(50px); | ||
backdrop-filter: blur(50px); | ||
} | ||
$background: #13151A; |