BigW Consortium Gitlab

labels.scss 2.93 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
  }
11 12

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.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
163 164 165 166 167 168 169 170 171

.filtered-labels {
  .label-row {
    &:not(:last-child) {
      margin-right: 5px;
    }
  }

  .label-remove {
172
    border-left: 1px solid rgba(0, 0, 0, .1);
Phil Hughes committed
173 174 175 176 177 178 179
    z-index: 3;
  }

  .btn {
    color: inherit;
  }
}
Phil Hughes committed
180 181 182 183

.label-options-toggle {
  width: 100%;
}
Phil Hughes committed
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199

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

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

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