summaryrefslogtreecommitdiff
path: root/frontend/src/components/app/sidebars/Sidebar.sass
blob: 4d0e5f1ee8a735dc29a1d127ee099a007ef5455f (plain)
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
@import ../../../style-globals/_variables.sass
@import ../../../style-globals/_mixins.sass

.sidebar-collapse-button
  position: absolute
  left: 5px
  top: 5px
  padding: 5px 7px

  background: white
  border: solid 1px $gray-semi-light
  z-index: 99

  +clickable
  +border-radius(5px)
  +transition(background, 200ms)

  &.sidebar-collapse-button-right
    left: auto
    right: 5px
    top: 5px

  &:hover
    background: #eeeeee

.sidebar
  position: absolute
  top: 0
  left: 0
  width: 350px

  z-index: 100
  background: white

  border-right: $gray-semi-dark 1px solid

  .sidebar-collapse-button
    left: auto
    right: -25px

.sidebar-right
  left: auto
  right: 0

  border-left: $gray-semi-dark 1px solid
  border-right: none

  .sidebar-collapse-button-right
    left: -25px
    right: auto