summaryrefslogtreecommitdiff
path: root/assets/sass/_sidebar.sass
blob: c872c1d7ac69c15065baf15be2c8e9d38574010b (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
51
52
53
54
55
56
57
58
59
60
61
62
@import variables
@import mixins

.sidebar-container
  height: 100%
  display: flex
  flex-flow: row

  @include sm-device
    flex-flow: wrap

.sidebar-content
  padding-left: 10px
  flex: 1 100%

  @include sm-device
    padding-left: 0
    order: 1

.sidebar
  width: 230px

  @include sm-device
    flex: 1 auto
    order: 2

  h2
    margin-top: 0
  > ul
    a
      text-decoration: none
      color: color('light')
      font-weight: 300
      &:hover
        color: color('primary')
    li
      list-style-type: none
      line-height: 35px
      border-bottom: 1px dotted #efefef
      padding-left: 13px
      &:hover
        border-left: 5px solid #555
        padding-left: 8px
      &.active
        border-left: 5px solid #333
        padding-left: 8px
        a
          color: color('primary')
          font-weight: bold

.sidebar-icons > ul li
  padding-left: 0
  &:hover, &.active
    padding-left: 0
    border-left: none

.sidebar > ul li
  &.active a
    &:focus, &:hover
      color: color('medium')
  &:last-child
    margin-bottom: 15px