Files
copenlight/styles/_collapsible-sidebar.scss
Ivan Carlos de Almeida 6fa41a771d
Some checks failed
Build, Push, Publish / Build & Release (push) Failing after 2s
Sync Repo / sync (push) Failing after 2s
first load
2025-12-16 04:40:00 -03:00

70 lines
1.1 KiB
SCSS

/* Sidebar navigation that collapses on mobile */
.collapsible-sidebar {
@include desktop {
max-height: none;
padding: 0;
}
flex: 1;
max-height: 45px;
overflow: hidden;
padding: 10px 0;
position: relative;
&-title {
margin-top: 0;
}
&-toggle {
@include desktop { display: none; }
position: absolute;
top: calc(45px / 2);
transform: translateY(-50%);
right: 0;
padding: 0;
border: 0;
background: none;
width: 25px;
height: 25px;
border-radius: 50%;
[dir="rtl"] & {
left: 0;
right: auto;
}
&-icon {
display: none;
}
&[aria-expanded="false"] {
.chevron-icon {
display: inline-block;
}
}
&[aria-expanded="true"] {
.x-icon {
display: inline-block;
}
}
&:focus {
outline: none;
border: 1px solid $brand_color;
}
}
&-body {
@include desktop { display: block; }
display: none;
}
&[aria-expanded="true"] {
max-height: none;
.collapsible-sidebar-body {
display: block;
}
}
}