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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Phil Hughes's avatar
Phil Hughes committed
102 103
    &:hover {
      color: $gl-link-color;
104

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

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

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

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

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

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

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

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

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

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

  .btn {
    color: inherit;
  }
}
Phil Hughes's avatar
Phil Hughes committed
179 180 181 182

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

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

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

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