BigW Consortium Gitlab

preferences.scss 1.58 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
@mixin application-theme-preview($color-1, $color-2, $color-3, $color-4) {
  .one {
    background-color: $color-1;
    border-top-left-radius: $border-radius-default;
  }

  .two {
    background-color: $color-2;
    border-top-right-radius: $border-radius-default;
  }

  .three {
    background-color: $color-3;
    border-bottom-left-radius: $border-radius-default;
  }

  .four {
    background-color: $color-4;
    border-bottom-right-radius: $border-radius-default;
  }
}

.application-theme {
  label {
    margin-right: 20px;
    text-align: center;
  }

  .preview {
    font-size: 0;
    margin-bottom: 10px;

    &.indigo {
      @include application-theme-preview($indigo-900, $indigo-700, $indigo-800, $indigo-500);
    }

    &.dark {
      @include application-theme-preview($theme-gray-900, $theme-gray-700, $theme-gray-800, $theme-gray-600);
    }

    &.light {
      @include application-theme-preview($theme-gray-600, $theme-gray-200, $theme-gray-400, $theme-gray-100);
    }

    &.blue {
      @include application-theme-preview($theme-blue-900, $theme-blue-700, $theme-blue-800, $theme-blue-500);
    }

    &.green {
      @include application-theme-preview($theme-green-900, $theme-green-700, $theme-green-800, $theme-green-500);
    }
  }

  .preview-row {
    display: block;
  }

  .quadrant {
    display: inline-block;
    height: 50px;
    width: 80px;
  }
}

65
.syntax-theme {
66 67 68 69
  label {
    margin-right: 20px;
    text-align: center;

70
    .preview {
71
      margin-bottom: 10px;
72
      width: 160px;
73 74

      img {
Clement Ho committed
75
        border-radius: 4px;
76 77

        max-width: 100%;
78 79 80 81
      }
    }
  }
}