BigW Consortium Gitlab

labels.scss 3.89 KB
Newer Older
1 2
.suggest-colors {
  margin-top: 5px;
3

4
  a {
Clement Ho committed
5
    border-radius: 4px;
6 7 8 9
    width: 30px;
    height: 30px;
    display: inline-block;
    margin-right: 10px;
10
    margin-bottom: 10px;
11
    text-decoration: none;
12
  }
13 14

  &.suggest-colors-dropdown {
15 16 17 18
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: $border-radius-base;
    overflow: hidden;
19

20
    a {
Clement Ho committed
21
      border-radius: 0;
22
      width: (100% / 7);
23 24 25 26
      margin-right: 0;
      margin-bottom: -5px;
    }
  }
27 28
}

29 30 31 32 33 34 35 36 37
.dropdown-new-label {
  .dropdown-content {
    max-height: 260px;
  }
}

.dropdown-label-color-input {
  position: relative;
  margin-bottom: 10px;
38 39

  &.is-active {
40
    padding-left: 32px;
41 42 43
  }
}

44 45 46 47 48 49 50 51 52 53
.dropdown-label-color-preview {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-top-left-radius: $border-radius-base;
  border-bottom-left-radius: $border-radius-base;
}

Tap committed
54
.label-row {
55
  .label-name {
56
    display: inline-block;
Phil Hughes committed
57 58 59 60 61 62
    margin-bottom: 10px;

    @media (min-width: $screen-sm-min) {
      width: 200px;
      margin-bottom: 0;
    }
63 64 65 66 67 68

    .label {
      overflow: hidden;
      text-overflow: ellipsis;
      vertical-align: middle;
      max-width: 100%;
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
    }
  }

  .label-type {
    display: block;
    margin-bottom: 10px;
    margin-left: 50px;

    @media (min-width: $screen-sm-min) {
      display: inline-block;
      width: 100px;
      margin-left: 10px;
      margin-bottom: 0;
      vertical-align: middle;
    }
Phil Hughes committed
84 85 86 87 88
  }

  .label-description {
    display: block;
    margin-bottom: 10px;
89
    margin-left: 50px;
90

Phil Hughes committed
91 92
    @media (min-width: $screen-sm-min) {
      display: inline-block;
93
      width: 30%;
Phil Hughes committed
94 95 96
      margin-left: 10px;
      margin-bottom: 0;
      vertical-align: middle;
97
    }
98 99
  }

100
  .label {
101
    padding: 8px 9px 9px;
102 103 104
    font-size: 14px;
  }
}
Dmitriy Zaporozhets committed
105 106

.color-label {
107 108
  padding: 3px 7px;
  border-radius: $label-border-radius;
Dmitriy Zaporozhets committed
109
}
110

111 112 113 114 115 116
.dropdown-labels-error {
  padding: 5px 10px;
  margin-bottom: 10px;
  background-color: $gl-danger;
  color: $white-light;
}
117 118

.manage-labels-list {
Phil Hughes committed
119 120
  .btn-action {
    color: $gl-dark-link-color;
121

Phil Hughes committed
122 123 124
    .fa {
      font-size: 18px;
      vertical-align: middle;
125 126
    }

Phil Hughes committed
127 128
    &:hover {
      color: $gl-link-color;
129

Phil Hughes committed
130 131
      &.remove-row {
        color: $gl-danger;
132
      }
133
    }
Phil Hughes committed
134
  }
135

Phil Hughes committed
136 137 138
  .dropdown {
    @media (min-width: $screen-sm-min) {
      float: right;
139 140 141
    }
  }
}
142

143 144 145 146 147 148 149
.draggable-handler {
  display: inline-block;
  opacity: 0;
  transition: opacity .3s;
  color: $gray-darkest;
}

150
.prioritized-labels {
151 152
  margin-bottom: 30px;

153 154
  .add-priority {
    display: none;
155
    color: $gray-light;
156
  }
157 158 159 160 161 162 163

  li:hover {
    .draggable-handler {
      display: inline-block;
      opacity: 1;
    }
  }
164 165
}

166
.other-labels {
167 168 169 170
  .remove-priority {
    display: none;
  }
}
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186

.toggle-priority {
  display: inline-block;
  vertical-align: middle;

  button {
    border-color: transparent;
    padding: 5px 8px;
    vertical-align: top;
    font-size: 14px;

    &:hover {
      border-color: transparent;
    }
  }
}
Phil Hughes committed
187 188

.filtered-labels {
189 190 191
  font-size: 0;
  padding: 12px 16px;

Phil Hughes committed
192
  .label-row {
193 194 195
    margin-top: 4px;
    margin-bottom: 4px;

Phil Hughes committed
196
    &:not(:last-child) {
197
      margin-right: 8px;
Phil Hughes committed
198 199 200 201
    }
  }

  .label-remove {
202
    border-left: 1px solid $label-remove-border;
Phil Hughes committed
203
    z-index: 3;
204 205
    border-radius: $label-border-radius;
    padding: 6px 10px 6px 9px;
Phil Hughes committed
206 207 208 209 210
  }

  .btn {
    color: inherit;
  }
211 212 213 214 215 216 217 218 219 220 221

  a.btn {
    padding: 0;

    .has-tooltip {
      top: 0;
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
      line-height: 1.1;
    }
  }
Phil Hughes committed
222
}
Phil Hughes committed
223 224 225 226

.label-options-toggle {
  width: 100%;
}
Phil Hughes committed
227

228 229 230 231 232 233 234 235
.label-subscription {
  vertical-align: middle;

  .dropdown-group-label a {
    cursor: pointer;
  }
}

Phil Hughes committed
236
.label-subscribe-button {
237 238 239 240 241 242 243
  .label-subscribe-button-icon {
    &[disabled] {
      opacity: 0.5;
      pointer-events: none;
    }
  }

Phil Hughes committed
244 245 246 247 248 249 250 251 252 253 254 255 256 257
  .label-subscribe-button-loading {
    display: none;
  }

  &.disabled {
    .label-subscribe-button-icon {
      display: none;
    }

    .label-subscribe-button-loading {
      display: block;
    }
  }
}