summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/new_sidebar.scss
blob: efcf456a8d1429ed845926571a6e5a7c588e8576 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
@import "framework/variables";
@import 'framework/tw_bootstrap_variables';
@import "bootstrap/variables";

$new-sidebar-width: 220px;

.page-with-new-sidebar {
  @media (min-width: $screen-sm-min) {
    padding-left: $new-sidebar-width;
  }

  // Override position: absolute
  .right-sidebar {
    position: fixed;
    height: 100%;
  }
}

.context-header {
  background-color: $gray-normal;
  border-bottom: 1px solid $border-color;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 10px 14px;

  .avatar-container {
    flex: 0 0 40px;
  }

  &:hover {
    background-color: $border-color;
  }
}

.settings-avatar {
  background-color: $white-light;

  .fa-wrench,
  .fa-user {
    font-size: 20px;
    width: 100%;
    color: $gl-text-color-secondary;
    text-align: center;
    align-self: center;
  }
}

.nav-sidebar {
  position: fixed;
  z-index: 400;
  width: $new-sidebar-width;
  top: 50px;
  bottom: 0;
  left: 0;
  overflow: auto;
  background-color: $gray-light;
  border-right: 1px solid $border-color;

  ul {
    padding: 0;
    list-style: none;
  }

  li {
    a {
      display: block;
      padding: 12px 14px;
    }
  }

  a {
    color: $gl-text-color;
    text-decoration: none;
  }
}

.sidebar-sub-level-items {
  display: none;

  > li {
    a {
      padding: 12px 24px;
      color: $gl-text-color-light;

      &:hover {
        color: $gl-text-color;
        background-color: $border-color;
      }
    }

    &.active {
      > a {
        color: $purple-650;
        font-weight: 600;
      }
    }
  }
}

.sidebar-top-level-items {
  > li {
    .badge {
      float: right;
      background-color: $border-color;
      color: $gl-text-color;
    }

    &.active {
      > a {
        background-color: $purple-600;
        color: $white-light;
        font-weight: 600;
      }

      .badge {
        background-color: $purple-700;
        color: $white-light;
      }

      .sidebar-sub-level-items {
        background-color: $gray-normal;
        border-left: 6px solid $purple-600;
        display: block;
      }
    }

    &:not(.active) > a:hover {
      background-color: $border-color;

      .badge {
        transition: background-color 100ms linear;
        background-color: $gray-normal;
      }
    }
  }
}


// Make issue boards full-height now that sub-nav is gone

.boards-list {
  height: calc(100vh - 50px);

  @media (min-width: $screen-sm-min) {
    height: 475px; // Needed for PhantomJS
    // scss-lint:disable DuplicateProperty
    height: calc(100vh - 120px);
    // scss-lint:enable DuplicateProperty
  }
}