Skip to content

Commit

Permalink
updated sidebar and added accordion wrapper (#115)
Browse files Browse the repository at this point in the history
* updated sidebar and added accordion wrapper

* updated mobilesidebar css
  • Loading branch information
Swathi-eGov authored Aug 29, 2024
1 parent 33fb521 commit 358ff19
Show file tree
Hide file tree
Showing 19 changed files with 674 additions and 168 deletions.
2 changes: 1 addition & 1 deletion react/css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egovernments/digit-ui-components-css",
"version": "0.0.2-beta.25",
"version": "0.0.2-beta.26",
"license": "MIT",
"main": "dist/index.css",
"author": "Jagankumar <jagan.kumar@egovernments.org>",
Expand Down
67 changes: 67 additions & 0 deletions react/css/src/digitv2/components/accordionV2.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,71 @@
&.cardBg{
background-color: theme(digitv2.lightTheme.paper-secondary);
}
}

@keyframes rotateOpen {
from {
transform: rotate(-180deg);
}
to {
transform: rotate(-90deg);
}
}

@keyframes rotateClose {
from {
transform: rotate(-90deg);
}
to {
transform: rotate(-180deg);
}
}

.digit-accordion-toggle.animate-open svg {
animation: rotateOpen 0.5s ease forwards;
}

.digit-accordion-toggle.animate-close svg {
animation: rotateClose 0.5s ease forwards;
}


/* .digit-accordion-content {
transform: scaleY(0);
transform-origin: top;
opacity: 0;
height: 0;
overflow: hidden;
transition: transform 0.3s ease, opacity 0.3s ease;
}
.digit-accordion-content.open {
transform: scaleY(1);
opacity: 1;
height: auto;
overflow: visible;
}*/

.digit-accordion-wrapper{
display: flex;
flex-direction: column;

@media (max-aspect-ratio: 9/16) {
/* Media query for mobile */
gap: theme(digitv2.spacers.spacer4);
}

@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
/* Media query for tablets */
gap: theme(digitv2.spacers.spacer5);
}

@media (min-aspect-ratio: 3/4) {
/* Media query for desktop */
gap: theme(digitv2.spacers.spacer6);
}
}

.digit-accordion-divider{
width: 100%;
}
Loading

0 comments on commit 358ff19

Please sign in to comment.