|
1 | 1 | .sidebar { |
2 | | - width: var(--mantine-sidebar-width); |
3 | | - height: 100%; |
4 | | - & .topRow { |
5 | | - display: flex; |
6 | | - padding-left: var(--mantine-spacing-xs); |
7 | | - padding-top: 0.5rem; |
8 | | - padding-bottom: 0.5rem; |
9 | | - height: 3.25rem; |
10 | | - justify-content: space-between; |
11 | | - align-items: center; |
12 | | - } |
13 | | - & .sidebarItem { |
14 | | - border-radius: var(--mantine-radius-sm); |
15 | | - |
16 | | - &[data-active] span { |
17 | | - font-weight: 600; |
18 | | - color: swap(theme, "primary", 6, 6); |
| 2 | + width: var(--mantine-sidebar-width); |
| 3 | + height: 100%; |
| 4 | + & .topRow { |
| 5 | + display: flex; |
| 6 | + padding-left: var(--mantine-spacing-xs); |
| 7 | + padding-top: 0.5rem; |
| 8 | + padding-bottom: 0.5rem; |
| 9 | + height: 3.25rem; |
| 10 | + justify-content: space-between; |
| 11 | + align-items: center; |
19 | 12 | } |
20 | 13 |
|
21 | | - &:active { |
22 | | - transform: scale(0.99); |
23 | | - } |
| 14 | + & .sidebarItem { |
| 15 | + transition: none; |
| 16 | + border-radius: var(--mantine-radius-sm); |
24 | 17 |
|
25 | | - & .sidebarItemLabel { |
26 | | - font-size: var(--mantine-font-size-sm); |
27 | | - font-weight: 300; |
28 | | - } |
| 18 | + & .sidebarItemLabel { |
| 19 | + font-size: var(--mantine-font-size-sm); |
| 20 | + } |
29 | 21 |
|
30 | | - & .sidebarItemIcon { |
31 | | - svg { |
32 | | - stroke-width: 1.5px; |
33 | | - width: 1.2rem; |
34 | | - } |
| 22 | + & .sidebarItemIcon { |
| 23 | + svg { |
| 24 | + stroke-width: 1.5px; |
| 25 | + width: 1.2rem; |
| 26 | + } |
| 27 | + } |
35 | 28 | } |
36 | | - } |
37 | 29 |
|
38 | | - /*MINIMAL MODE*/ |
39 | | - &.minimalMode { |
40 | | - width: 3.5rem; |
41 | | - display: inline-block; |
42 | | - padding: var(--mantine-spacing-md) var(--mantine-spacing-xs); |
43 | | - & .topRow { |
44 | | - display: none; |
45 | | - } |
46 | | - & .sidebarItem { |
47 | | - gap: 0; |
48 | | - padding: 0.5rem; |
49 | | - width: 2.5rem; |
50 | | - justify-content: center; |
51 | | - & .sidebarItemBody { |
52 | | - display: none; |
53 | | - } |
54 | | - & .sidebarItemIcon { |
55 | | - margin-right: 0; |
56 | | - } |
| 30 | + /*MINIMAL MODE*/ |
| 31 | + &.minimalMode { |
| 32 | + width: 3.5rem; |
| 33 | + display: inline-block; |
| 34 | + padding: var(--mantine-spacing-md) var(--mantine-spacing-xs); |
| 35 | + & .topRow { |
| 36 | + display: none; |
| 37 | + } |
| 38 | + & .sidebarItem { |
| 39 | + gap: 0; |
| 40 | + padding: 0.5rem; |
| 41 | + width: 2.5rem; |
| 42 | + justify-content: center; |
| 43 | + & .sidebarItemBody { |
| 44 | + display: none; |
| 45 | + } |
| 46 | + & .sidebarItemIcon { |
| 47 | + margin-right: 0; |
| 48 | + } |
| 49 | + } |
57 | 50 | } |
58 | | - } |
59 | 51 |
|
60 | | - /*FULLSCREEN MODE*/ |
61 | | - &.fullscreenMode { |
62 | | - width: "100%"; |
63 | | - visible: hidden; |
64 | | - transform: translateX(-100vw); |
65 | | - transition: transform 200ms ease-in-out; |
66 | | - box-shadow: var(--mantine-shadow-xl); |
67 | | - &.landscapeMode { |
68 | | - transform: translateX(-100vh); |
69 | | - } |
70 | | - &.fullscreenModeOpened { |
71 | | - transform: translateX(0); |
72 | | - visible: visible; |
| 52 | + /*FULLSCREEN MODE*/ |
| 53 | + &.fullscreenMode { |
| 54 | + width: "100%"; |
| 55 | + visible: hidden; |
| 56 | + transform: translateX(-100vw); |
| 57 | + transition: transform 200ms ease-in-out; |
| 58 | + box-shadow: var(--mantine-shadow-xl); |
| 59 | + &.landscapeMode { |
| 60 | + transform: translateX(-100vh); |
| 61 | + } |
| 62 | + &.fullscreenModeOpened { |
| 63 | + transform: translateX(0); |
| 64 | + visible: visible; |
| 65 | + } |
73 | 66 | } |
74 | | - } |
75 | 67 | } |
0 commit comments