settings.scss 1.7 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 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
@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;
  }
}

.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;
  margin-right: -20px;
  padding-right: 130px;
  animation: collapseMaxHeight 300ms ease-out;

  &.expanded {
    max-height: none;
    overflow-y: hidden;
    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;
  }
}

P
Phil Hughes 已提交
88
.settings-list-icon {
T
tauriedavis 已提交
89
  color: $gl-text-color-secondary;
P
Phil Hughes 已提交
90 91 92 93 94 95 96 97 98 99 100 101
  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;
}
P
Phil Hughes 已提交
102 103 104 105 106 107 108 109

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

.danger-title {
  color: $gl-danger;
}
L
Luke "Jared" Bennett 已提交
110 111 112 113

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

115
.token-token-container {
116
  #impersonation-token-token {
117 118 119 120 121 122 123 124
    width: 80%;
    display: inline;
  }

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