-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path_sidebar.scss
More file actions
36 lines (28 loc) · 898 Bytes
/
_sidebar.scss
File metadata and controls
36 lines (28 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$ui-02: $eccgui-color-workspace-background !default;
@import "~@carbon/react/scss/components/ui-shell/side-nav/index";
// tweak original layout
.#{$prefix}--side-nav--ux {
top: mini-units(8);
width: mini-units(40);
max-width: mini-units(40);
}
.#{$prefix}--side-nav.#{$prefix}--side-nav--rail:not(.#{$prefix}--side-nav--fixed) {
width: mini-units(8);
transform: translateX(0);
&:hover {
width: mini-units(40);
transition: width $pt-transition-duration ease-in 0.75s;
}
}
.#{$prefix}--side-nav--collapsed {
transform: translateX(mini-units(-40));
}
.#{$prefix}--side-nav__navigation {
padding: $eccgui-size-block-whitespace calc(0.5 * (#{mini-units(8)} - 30px));
transition: none;
}
.#{$eccgui}-application__menu__toggler.cds--header__action {
&:focus-visible {
@extend .#{$eccgui}-a11y-focus-by-keyboard-animated;
}
}