summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/pages/profiles/preferences.scss
blob: 68d40b56133f1438a1c55a69ff475af67b4593e2 (plain)
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
88
89
90
91
92
93
94
95
96
97
@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;
  }
}

.multi-file-editor-options {
  label {
    margin-right: 20px;
    text-align: center;
  }

  .preview {
    font-size: 0;

    img {
      border: 1px solid $border-color-settings;
      border-radius: 4px;
    }
  }
}

.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;
  }
}

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

    .preview {
      margin-bottom: 10px;
      width: 160px;

      img {
        border-radius: 4px;

        max-width: 100%;
      }
    }
  }
}