BigW Consortium Gitlab

nav_sidebar.scss 2.48 KB
Newer Older
1 2
.page-with-sidebar {
  background: #F5F5F5;
3 4 5 6 7 8 9 10

  .sidebar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    border-right: 1px solid #EAEAEA;
  }
11 12 13
}

.sidebar-wrapper {
14
  z-index: 99;
15 16 17 18 19 20 21 22 23 24 25 26 27
  overflow-y: auto;
  background: #F5F5F5;
}

.content-wrapper {
  width: 100%;
  padding: 15px;
  background: #FFF;
}

.nav-sidebar {
  margin: 0;
  list-style: none;
28 29 30 31

  &.navbar-collapse {
    padding: 0px !important;
  }
32 33 34 35 36
}

.nav-sidebar li a .count {
  float: right;
  background: #eee;
37
  padding: 0px 8px;
38 39 40
  @include border-radius(6px);
}

41 42
.nav-sidebar li {
  &.active a {
43
    color: #111;
44 45 46 47 48 49
    background: #EEE;
    font-weight: bold;

    &.no-highlight {
      background: none;
    }
50 51 52 53

    i {
      color: #444;
    }
54
  }
55 56 57 58 59 60 61 62 63 64
}

.nav-sidebar li {
  &.separate-item {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
  }

  a {
65
    color: #555;
66 67 68 69 70 71
    display: block;
    text-decoration: none;
    padding: 6px 15px;
    font-size: 13px;
    line-height: 20px;
    text-shadow: 0 1px 2px #FFF;
72
    padding-left: 20px;
73 74 75 76 77 78 79 80 81 82

    &:hover {
      text-decoration: none;
      color: #333;
      background: #DDD;
    }

    &:active, &:focus {
      text-decoration: none;
    }
83 84 85

    i {
      width: 20px;
86
      color: #888;
87
      margin-right: 23px;
88
    }
89 90 91
  }
}

92
.sidebar-subnav {
93 94 95 96 97 98 99 100
  margin-left: 0px;
  padding-left: 0px;

  li {
    list-style: none;
  }
}

101
@mixin expanded-sidebar {
102
  padding-left: $sidebar_width;
103 104

  .sidebar-wrapper {
105
    width: $sidebar_width;
106 107 108

    .nav-sidebar {
      margin-top: 20px;
109
      position: fixed;
110
      top: 45px;
111
      width: $sidebar_width;
112
    }
113 114 115 116 117 118
  }

  .content-wrapper {
    padding: 20px;
  }
}
119

120
@mixin folded-sidebar {
121
  padding-left: 50px;
122 123 124

  .sidebar-wrapper {
    width: 52px;
125
    overflow-x: hidden;
126 127 128

    .nav-sidebar {
      margin-top: 20px;
129
      position: fixed;
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
      top: 45px;
      width: 52px;

      li a {
        padding-left: 18px;
        font-size: 14px;
        padding: 10px 15px;
        text-align: center;

        & > span {
          display: none;
        }
      }
    }
  }
}
146

147 148 149 150 151
.collapse-nav a {
  position: fixed;
  bottom: 15px;
  padding: 10px;
  background: #DDD;
152 153
}

154 155 156
@media (max-width: $screen-md-max) {
  .page-sidebar-collapsed {
    @include folded-sidebar;
157 158
  }

159 160
  .page-sidebar-expanded {
    @include folded-sidebar;
161 162
  }

163 164 165
  .collapse-nav {
    display: none;
  }
166 167
}

168
@media(min-width: $screen-md-max) {
169 170 171
  .page-sidebar-collapsed {
    @include folded-sidebar;
  }
172

173 174
  .page-sidebar-expanded {
    @include expanded-sidebar;
175 176
  }
}