BigW Consortium Gitlab

settings.scss 2.94 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
@keyframes expandMaxHeight {
  0% {
    max-height: 0;
  }

  99% {
    max-height: 100vh;
  }

  100% {
    max-height: none;
  }
}

@keyframes collapseMaxHeight {
  0% {
    max-height: 100vh;
  }

  100% {
    max-height: 0;
  }
}

.settings {
  overflow: hidden;
  border-bottom: 1px solid $gray-darker;

  &:first-of-type {
    margin-top: 10px;
  }
32 33 34 35

  &.expanded {
    overflow: visible;
  }
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
}

.settings-header {
  position: relative;
  padding: 20px 110px 10px 0;

  h4 {
    margin-top: 0;
  }

  button {
    position: absolute;
    top: 20px;
    right: 6px;
    min-width: 80px;
  }
}

.settings-content {
  max-height: 1px;
  overflow-y: scroll;
57
  padding-right: 110px;
58 59 60 61
  animation: collapseMaxHeight 300ms ease-out;

  &.expanded {
    max-height: none;
62
    overflow-y: visible;
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
    animation: expandMaxHeight 300ms ease-in;
  }

  &.no-animate {
    animation: none;
  }

  @media(max-width: $screen-sm-max) {
    padding-right: 20px;
  }

  &::before {
    content: ' ';
    display: block;
    height: 1px;
    overflow: hidden;
    margin-bottom: 4px;
  }

  &::after {
    content: ' ';
    display: block;
    height: 1px;
    overflow: hidden;
    margin-top: 20px;
  }
89 90 91 92 93 94 95 96 97

  .sub-section {
    margin-bottom: 32px;
    padding: 16px;
    border: 1px solid $border-color;
    background-color: $gray-light;
  }

  .bs-callout,
tauriedavis committed
98 99
  .checkbox:first-child,
  .help-block {
100 101
    margin-top: 0;
  }
tauriedavis committed
102 103 104 105

  .label-light {
    margin-bottom: 0;
  }
106 107
}

108
.settings-list-icon {
109
  color: $gl-text-color-secondary;
110 111 112 113 114 115 116 117 118 119 120 121
  font-size: $settings-icon-size;
  line-height: 42px;
}

.settings-message {
  padding: 5px;
  line-height: 1.3;
  color: $warning-message-color;
  background-color: $warning-message-bg;
  border: 1px solid $warning-message-border;
  border-radius: $border-radius-base;
}
122 123 124 125 126 127 128 129

.warning-title {
  color: $gl-warning;
}

.danger-title {
  color: $gl-danger;
}
130 131 132 133

.service-settings .control-label {
  padding-top: 0;
}
134

135
.token-token-container {
136
  #impersonation-token-token {
137 138 139 140 141 142 143 144
    width: 80%;
    display: inline;
  }

  .btn-clipboard {
    margin-left: 5px;
  }
}
145 146 147

.prometheus-metrics-monitoring {
  .panel {
148
    .panel-toggle {
149 150
      width: 14px;
    }
151

152 153
    .badge {
      font-size: inherit;
154 155
    }

156 157 158
    .panel-heading .badge-count {
      color: $white-light;
      background: $common-gray-dark;
159 160 161 162 163 164
    }

    .panel-body {
      padding: 0;
    }

165 166
    .flash-container {
      margin-bottom: 0;
167
      cursor: default;
168 169 170 171 172

      .flash-notice {
        border-radius: 0;
      }
    }
173 174
  }

175
  .loading-metrics,
176
  .empty-metrics {
177
    padding: 30px 10px;
178 179 180 181

    p,
    .btn {
      margin-top: 10px;
182
      margin-bottom: 0;
183 184
    }
  }
185

186
  .loading-metrics .metrics-load-spinner {
187 188 189
    color: $loading-color;
  }

190
  .metrics-list {
191
    margin-bottom: 0;
192 193

    li {
194
      padding: $gl-padding;
195

196 197
      .badge {
        margin-left: 5px;
198 199 200 201 202 203 204 205 206
        background: $badge-bg;
      }
    }

    /* Ensure we don't add border if there's only single li */
    li + li {
      border-top: 1px solid $border-color;
    }
  }
207
}