100 lines
2.1 KiB
SCSS
100 lines
2.1 KiB
SCSS
$customPrefix: 'bs-';
|
|
|
|
.g-sidebar {
|
|
--#{$customPrefix}sidebar-border-width: #{$gnosis-sidebar-border-width};
|
|
--#{$customPrefix}sidebar-border-style: #{$gnosis-sidebar-border-style};
|
|
--#{$customPrefix}sidebar-border-color: #{$gnosis-sidebar-border-color};
|
|
--#{$customPrefix}sidebar-mobile-border-width: #{$gnosis-sidebar-mobile-border-width};
|
|
--#{$customPrefix}sidebar-item-border-width: #{$gnosis-sidebar-item-border-width};
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
border-width: var(--#{$customPrefix}sidebar-border-width);
|
|
border-style: var(--#{$customPrefix}sidebar-border-style);
|
|
border-color: var(--#{$customPrefix}sidebar-border-color);
|
|
|
|
a.g-sidebar-item {
|
|
transition: all 0.25s ease-in;
|
|
* {
|
|
transition: all 0.25s ease-in;
|
|
}
|
|
@media (prefers-reduced-motion) {
|
|
* {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
padding: 1rem;
|
|
width: 100%;
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
text-wrap: wrap;
|
|
border-width: var(--#{$customPrefix}sidebar-item-border-width);
|
|
border-style: var(--#{$customPrefix}sidebar-border-style);
|
|
border-color: var(--#{$customPrefix}sidebar-border-color);
|
|
|
|
text-decoration: none;
|
|
|
|
h6 {
|
|
padding: 0;
|
|
margin: 0;
|
|
line-height: 1;
|
|
}
|
|
|
|
span.helper {
|
|
font-size: 0.825rem;
|
|
width: 100%;
|
|
flex-shrink: 0;
|
|
padding: 0;
|
|
opacity: 0.75;
|
|
}
|
|
&:hover {
|
|
span.helper {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
@include media-breakpoint-down(md) {
|
|
position: fixed;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
max-width: unset;
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
height: 3rem;
|
|
border: 0;
|
|
|
|
border-width: var(--#{$customPrefix}sidebar-mobile-border-width);
|
|
border-style: var(--#{$customPrefix}sidebar-border-style);
|
|
border-color: var(--#{$customPrefix}sidebar-border-color);
|
|
|
|
a.g-sidebar-item {
|
|
flex-direction: column;
|
|
padding: 0.25rem;
|
|
flex-wrap: nowrap;
|
|
justify-content: center;
|
|
height: 100%;
|
|
opacity: 0.5;
|
|
&.active,
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
h6 {
|
|
font-size: $smaller-font-size;
|
|
font-weight: semibold;
|
|
}
|
|
|
|
span.helper {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|