summaryrefslogtreecommitdiff
path: root/assets/sass/_sidebar.sass
blob: 35e9c0060f1183272727b556e27deb1aeea8d4e2 (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
63
64
65
66
67
68
69
@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%
  max-width: 85%
  overflow-wrap: break-word

  @include sm-device
    padding-left: 0
    order: 1
    max-width: 100%

  @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 1)
    max-width: 75%

.sidebar
  max-width: 25%
  min-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