summaryrefslogtreecommitdiffhomepage
path: root/website/content/_sass/sidebar.scss
blob: 4d738dbaa5dcb8ba65b8e347727791df7f6de2e4 (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
$sidebar-border-color: #fff;
$sidebar-hover-border-color: #66bb6a;

.sidebar {
  margin-top: 40px;

  ul.sidebar-nav {
    list-style-type: none;
    padding: 0;

    li {
      &.sidebar-nav-heading {
        padding: 10px 0;
        margin: 0;
        display: block;
        font-size: 16px;
        font-weight: 300;
      }

      a {
        padding: 4px 0;
        display: block;
        border-right: 2px solid $sidebar-border-color;

        &:focus {
          text-decoration: none;
        }

        &:active,
        &:hover {
          border-right: 2px solid $sidebar-hover-border-color;
          text-decoration: none;
        }

        .caret {
          float: right;
          margin-top: 8px;
          margin-right: 10px;
        }
      }

      &.active {
        a {
          border-right: 2px solid $sidebar-hover-border-color;
        }
      }
    }

    ul.sidebar-nav {
      padding-left: 10px;
    }
  }
}

@media (min-width: 992px) {
  .sidebar-toggle {
    display: none;
  }

  .sidebar {
    &.collapse {
      display: block;
    }
  }
}