aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/sidebars/index.scss
blob: b9845d564fe4b1476e0c6fe73f6ba3c866fcda3c (plain) (blame)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
@import './sidebar-content';

.sidebar-right-enter {
  transition: transform 300ms ease-in-out;
  transform: translateX(-100%);
}

.sidebar-right-enter.sidebar-right-enter-active {
  transition: transform 300ms ease-in-out;
  transform: translateX(0%);
}

.sidebar-right-leave {
  transition: transform 200ms ease-out;
  transform: translateX(0%);
}

.sidebar-right-leave.sidebar-right-leave-active {
  transition: transform 200ms ease-out;
  transform: translateX(-100%);
}

.sidebar-left-enter {
  transition: transform 300ms ease-in-out;
  transform: translateX(100%);
}

.sidebar-left-enter.sidebar-left-enter-active {
  transition: transform 300ms ease-in-out;
  transform: translateX(0%);
}

.sidebar-left-leave {
  transition: transform 200ms ease-out;
  transform: translateX(0%);
}

.sidebar-left-leave.sidebar-left-leave-active {
  transition: transform 200ms ease-out;
  transform: translateX(100%);
}

.sidebar-left {
  flex: 1 0 230px;
  background: rgb(250, 250, 250);
  z-index: $sidebar-z-index;
  position: fixed;
  left: 15%;
  right: 0;
  bottom: 0;
  opacity: 1;
  visibility: visible;
  will-change: transform;
  overflow-y: auto;
  box-shadow: rgba(0, 0, 0, .15) 2px 2px 4px;
  width: 85%;
  height: 100%;

  @media screen and (min-width: 769px) {
    width: 408px;
    left: calc(100% - 408px);
  }

  @media screen and (max-width: $break-small) {
    width: 100%;
    left: 0%;
  }
}

.sidebar-overlay {
  z-index: $sidebar-overlay-z-index;
  position: fixed;
  height: 100%;
  width: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
  visibility: visible;
  background-color: rgba(0, 0, 0, .3);
}