nav_sidebar.scss 2.74 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
  background: #F5F5F5;
}

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

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

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

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

40 41
.nav-sidebar li {
  &.active a {
42
    color: #333;
43
    background: #FFF !important;
44
    font-weight: bold;
45 46 47
    border: 1px solid #EEE;
    border-right: 1px solid transparent;
    border-left: 3px solid $style_color;
48 49

    &.no-highlight {
50
      background: none !important;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
51
      border: none;
52
    }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
53 54 55 56

    i {
      color: #444;
    }
57
  }
58 59 60 61 62 63 64 65 66 67
}

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

  a {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
68
    color: #555;
69 70
    display: block;
    text-decoration: none;
71
    padding: 8px 15px;
72 73 74
    font-size: 13px;
    line-height: 20px;
    text-shadow: 0 1px 2px #FFF;
75
    padding-left: 20px;
76 77 78 79

    &:hover {
      text-decoration: none;
      color: #333;
80
      background: #EEE;
81 82 83 84 85
    }

    &:active, &:focus {
      text-decoration: none;
    }
86 87 88

    i {
      width: 20px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
89
      color: #888;
90
      margin-right: 23px;
91
    }
92 93 94
  }
}

95
.sidebar-subnav {
96 97 98 99 100 101 102 103
  margin-left: 0px;
  padding-left: 0px;

  li {
    list-style: none;
  }
}

104
@mixin expanded-sidebar {
105
  padding-left: $sidebar_width;
106 107

  .sidebar-wrapper {
108
    width: $sidebar_width;
109 110

    .nav-sidebar {
111
      margin-top: 29px;
112
      position: fixed;
113
      top: 45px;
114
      width: $sidebar_width;
115
    }
116 117 118 119 120 121
  }

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

123
@mixin folded-sidebar {
124
  padding-left: 50px;
125 126 127 128 129

  .sidebar-wrapper {
    width: 52px;

    .nav-sidebar {
130
      margin-top: 29px;
131
      position: fixed;
132 133 134 135 136 137
      top: 45px;
      width: 52px;

      li a {
        padding-left: 18px;
        font-size: 14px;
138
        padding: 8px 15px;
139 140
        text-align: center;

141

142 143 144 145 146
        & > span {
          display: none;
        }
      }
    }
147 148 149 150 151

    .collapse-nav a {
      left: 0px;
      padding: 5px 23px 3px 22px;
    }
152 153
  }
}
154

155 156
.collapse-nav a {
  position: fixed;
157 158 159 160 161 162
  top: 47px;
  padding: 5px 13px 3px 13px;
  left: 197px;
  background: #EEE;
  color: black;
  border: 1px solid rgba(0,0,0,0.035);
163 164
}

165 166 167
@media (max-width: $screen-md-max) {
  .page-sidebar-collapsed {
    @include folded-sidebar;
168 169
  }

170 171
  .page-sidebar-expanded {
    @include folded-sidebar;
172 173
  }

174 175 176
  .collapse-nav {
    display: none;
  }
177 178
}

179
@media(min-width: $screen-md-max) {
180 181 182
  .page-sidebar-collapsed {
    @include folded-sidebar;
  }
183

184 185
  .page-sidebar-expanded {
    @include expanded-sidebar;
186 187
  }
}