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

4
  a {
Clement Ho's avatar
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's avatar
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's avatar
Tap committed
54
.label-row {
55
  .label-name {
56
    display: inline-block;
Phil Hughes's avatar
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 69

    .label {
      overflow: hidden;
      text-overflow: ellipsis;
      vertical-align: middle;
      max-width: 100%;
    }    
Phil Hughes's avatar
Phil Hughes committed
70 71 72 73 74
  }

  .label-description {
    display: block;
    margin-bottom: 10px;
75
    margin-left: 50px;
76

Phil Hughes's avatar
Phil Hughes committed
77 78 79 80 81 82
    @media (min-width: $screen-sm-min) {
      display: inline-block;
      width: 40%;
      margin-left: 10px;
      margin-bottom: 0;
      vertical-align: middle;
83
    }
84 85
  }

86 87 88 89 90
  .label {
    padding: 9px;
    font-size: 14px;
  }
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
91 92 93 94

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

96 97 98 99 100 101
.dropdown-labels-error {
  padding: 5px 10px;
  margin-bottom: 10px;
  background-color: $gl-danger;
  color: $white-light;
}
102 103

.manage-labels-list {
Phil Hughes's avatar
Phil Hughes committed
104 105
  .btn-action {
    color: $gl-dark-link-color;
106

Phil Hughes's avatar
Phil Hughes committed
107 108 109
    .fa {
      font-size: 18px;
      vertical-align: middle;
110 111
    }

Phil Hughes's avatar
Phil Hughes committed
112 113
    &:hover {
      color: $gl-link-color;
114

Phil Hughes's avatar
Phil Hughes committed
115 116
      &.remove-row {
        color: $gl-danger;
117
      }
118
    }
Phil Hughes's avatar
Phil Hughes committed
119
  }
120

Phil Hughes's avatar
Phil Hughes committed
121 122 123
  .dropdown {
    @media (min-width: $screen-sm-min) {
      float: right;
124 125 126
    }
  }
}
127

128 129 130 131 132 133 134
.draggable-handler {
  display: inline-block;
  opacity: 0;
  transition: opacity .3s;
  color: $gray-darkest;
}

135
.prioritized-labels {
136 137
  margin-bottom: 30px;

138 139
  .add-priority {
    display: none;
140
    color: $gray-light;
141
  }
142 143 144 145 146 147 148

  li:hover {
    .draggable-handler {
      display: inline-block;
      opacity: 1;
    }
  }
149 150 151 152 153 154 155
}

.other-labels {
  .remove-priority {
    display: none;
  }
}
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171

.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's avatar
Phil Hughes committed
172 173

.filtered-labels {
174 175 176
  font-size: 0;
  padding: 12px 16px;

Phil Hughes's avatar
Phil Hughes committed
177
  .label-row {
178 179 180
    margin-top: 4px;
    margin-bottom: 4px;

Phil Hughes's avatar
Phil Hughes committed
181
    &:not(:last-child) {
182
      margin-right: 8px;
Phil Hughes's avatar
Phil Hughes committed
183 184 185 186
    }
  }

  .label-remove {
187
    border-left: 1px solid rgba(0, 0, 0, .1);
Phil Hughes's avatar
Phil Hughes committed
188 189 190 191 192 193
    z-index: 3;
  }

  .btn {
    color: inherit;
  }
194 195 196 197 198 199 200 201 202 203 204

  a.btn {
    padding: 0;

    .has-tooltip {
      top: 0;
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
      line-height: 1.1;
    }
  }
Phil Hughes's avatar
Phil Hughes committed
205
}
Phil Hughes's avatar
Phil Hughes committed
206 207 208 209

.label-options-toggle {
  width: 100%;
}
Phil Hughes's avatar
Phil Hughes committed
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225

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

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

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