mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-12 11:31:36 +00:00
(@fuse/drawer) Expose the width variable as a css custom property, so it can be overridden from the outside
100 lines
3.0 KiB
SCSS
100 lines
3.0 KiB
SCSS
/* Variables */
|
|
:root {
|
|
--fuse-vertical-navigation-thin-width: 80px;
|
|
}
|
|
|
|
fuse-vertical-navigation {
|
|
|
|
/* Thin appearance overrides */
|
|
&.fuse-vertical-navigation-appearance-thin {
|
|
width: var(--fuse-vertical-navigation-thin-width);
|
|
min-width: var(--fuse-vertical-navigation-thin-width);
|
|
max-width: var(--fuse-vertical-navigation-thin-width);
|
|
|
|
/* Left positioned */
|
|
&.fuse-vertical-navigation-position-left {
|
|
|
|
&.fuse-vertical-navigation-mode-side {
|
|
margin-left: calc(var(--fuse-vertical-navigation-thin-width) * -1);
|
|
}
|
|
|
|
&.fuse-vertical-navigation-opened {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
/* Right positioned */
|
|
&.fuse-vertical-navigation-position-right {
|
|
|
|
&.fuse-vertical-navigation-mode-side {
|
|
margin-right: calc(var(--fuse-vertical-navigation-thin-width) * -1);
|
|
}
|
|
|
|
&.fuse-vertical-navigation-opened {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.fuse-vertical-navigation-aside-wrapper {
|
|
left: auto;
|
|
right: var(--fuse-vertical-navigation-thin-width);
|
|
}
|
|
}
|
|
|
|
/* Wrapper */
|
|
.fuse-vertical-navigation-wrapper {
|
|
|
|
/* Content */
|
|
.fuse-vertical-navigation-content {
|
|
|
|
> fuse-vertical-navigation-aside-item,
|
|
> fuse-vertical-navigation-basic-item {
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
height: 64px;
|
|
min-height: 64px;
|
|
max-height: 64px;
|
|
padding: 0 16px;
|
|
|
|
.fuse-vertical-navigation-item-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
.fuse-vertical-navigation-item {
|
|
justify-content: center;
|
|
padding: 12px;
|
|
border-radius: 4px;
|
|
|
|
.fuse-vertical-navigation-item-icon {
|
|
margin: 0;
|
|
}
|
|
|
|
.fuse-vertical-navigation-item-arrow,
|
|
.fuse-vertical-navigation-item-badge-content,
|
|
.fuse-vertical-navigation-item-title-wrapper {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
> fuse-vertical-navigation-collapsable-item {
|
|
display: none
|
|
}
|
|
|
|
> fuse-vertical-navigation-group-item {
|
|
|
|
> .fuse-vertical-navigation-item-wrapper {
|
|
display: none
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Aside wrapper */
|
|
.fuse-vertical-navigation-aside-wrapper {
|
|
left: var(--fuse-vertical-navigation-thin-width);
|
|
}
|
|
}
|
|
}
|