BigW Consortium Gitlab

labels.scss 3.2 KB
Newer Older
1 2 3 4 5 6 7 8
.suggest-colors {
  margin-top: 5px;
  a {
    @include border-radius(4px);
    width: 30px;
    height: 30px;
    display: inline-block;
    margin-right: 10px;
9
    margin-bottom: 10px;
10
    text-decoration: none;
11
  }
12 13

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

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

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

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

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

43 44 45 46 47 48 49 50 51 52
.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
53
.label-row {
54
  .label-name {
55
    display: inline-block;
Phil Hughes committed
56 57 58 59 60 61 62 63 64 65 66
    margin-bottom: 10px;

    @media (min-width: $screen-sm-min) {
      width: 200px;
      margin-bottom: 0;
    }
  }

  .label-description {
    display: block;
    margin-bottom: 10px;
67
    margin-left: 50px;
68

Phil Hughes committed
69 70 71 72 73 74
    @media (min-width: $screen-sm-min) {
      display: inline-block;
      width: 40%;
      margin-left: 10px;
      margin-bottom: 0;
      vertical-align: middle;
75
    }
76 77
  }

78 79 80 81 82
  .label {
    padding: 9px;
    font-size: 14px;
  }
}
Dmitriy Zaporozhets committed
83 84 85 86

.color-label {
  padding: 3px 4px;
}
87

88 89 90 91 92 93
.dropdown-labels-error {
  padding: 5px 10px;
  margin-bottom: 10px;
  background-color: $gl-danger;
  color: $white-light;
}
94 95

.manage-labels-list {
Phil Hughes committed
96 97
  .btn-action {
    color: $gl-dark-link-color;
98

Phil Hughes committed
99 100 101
    .fa {
      font-size: 18px;
      vertical-align: middle;
102 103
    }

Phil Hughes committed
104 105
    &:hover {
      color: $gl-link-color;
106

Phil Hughes committed
107 108
      &.remove-row {
        color: $gl-danger;
109
      }
110
    }
Phil Hughes committed
111
  }
112

Phil Hughes committed
113 114 115
  .dropdown {
    @media (min-width: $screen-sm-min) {
      float: right;
116 117 118
    }
  }
}
119

120 121 122 123 124 125 126
.draggable-handler {
  display: inline-block;
  opacity: 0;
  transition: opacity .3s;
  color: $gray-darkest;
}

127
.prioritized-labels {
128 129
  margin-bottom: 30px;

130 131
  .add-priority {
    display: none;
132
    color: $gray-light;
133
  }
134 135 136 137 138 139 140

  li:hover {
    .draggable-handler {
      display: inline-block;
      opacity: 1;
    }
  }
141 142 143 144 145 146 147
}

.other-labels {
  .remove-priority {
    display: none;
  }
}
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163

.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
164 165

.filtered-labels {
166 167 168
  font-size: 0;
  padding: 12px 16px;

Phil Hughes committed
169
  .label-row {
170 171 172
    margin-top: 4px;
    margin-bottom: 4px;

Phil Hughes committed
173
    &:not(:last-child) {
174
      margin-right: 8px;
Phil Hughes committed
175 176 177 178
    }
  }

  .label-remove {
179
    border-left: 1px solid rgba(0, 0, 0, .1);
Phil Hughes committed
180 181 182 183 184 185
    z-index: 3;
  }

  .btn {
    color: inherit;
  }
186 187 188 189 190 191 192 193 194 195 196

  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
197
}
Phil Hughes committed
198 199 200 201

.label-options-toggle {
  width: 100%;
}
Phil Hughes committed
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217

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

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

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