-
Notifications
You must be signed in to change notification settings - Fork 113
/
sidebar.scss
68 lines (57 loc) · 1.33 KB
/
sidebar.scss
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
@import '../../../styles/variables';
@import '../../../styles/extends';
.pipeline-sidebar {
@extend %sidebar;
position: absolute;
top: -1px; /* Avoids pixel rounding gaps */
bottom: -1px;
left: $global-toolbar-width;
// Ensures sidebar tooltips are above code panel
z-index: 1;
display: flex;
width: 100%;
transform: translateX(calc(-100% + #{$sidebar-width-closed}));
transition: transform ease 0.4s;
@media (min-width: $metadata-sidebar-code-breakpoint) {
z-index: 3;
}
@media (min-width: $sidebar-width-breakpoint) {
$sidebar-ui-width: $sidebar-width-open - $sidebar-width-closed;
width: $sidebar-width-open;
transform: translateX(-$sidebar-ui-width);
}
&--visible {
transform: translateX(0);
}
@media print {
display: none;
}
&--visible {
transform: translateX(0);
}
}
.pipeline-ui {
position: relative;
z-index: 2;
display: flex;
flex-direction: column;
flex-grow: 1;
height: 100%;
background: var(--color-bg-3);
visibility: hidden;
transition: visibility 0.3s;
.pipeline-sidebar--visible & {
visibility: visible;
transition: visibility 0s;
}
}
.pipeline-toolbar {
position: relative;
z-index: 2;
display: flex;
flex-direction: column;
align-items: center;
width: $sidebar-width-closed;
height: 100%;
background: var(--color-bg-2);
}