aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/pages/settings/index.scss
blob: a19105bb4de93ed8c3c6831b862d10812b3463ee (plain) (blame)
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
@import 'info-tab/index';

@import 'settings-tab/index';

.settings-page {
  position: relative;
  background: $white;
  display: flex;
  flex-flow: column nowrap;

  &__header {
    display: flex;
    flex-flow: row nowrap;
    padding: 12px 24px;
    align-items: center;
    border-bottom: 1px solid $alto;
    flex: 0 0 auto;

    &__title {
      flex: 1 0 auto;
      font-size: 24px;
    }
  }

  &__subheader {
    padding: 16px 4px;
    font-size: 20px;
    border-bottom: 1px solid $alto;
    margin-right: 24px;

    @media screen and (max-width: 575px) {
      display: none;
    }
  }

  &__back-button {
    display: none;

    @media screen and (max-width: 575px) {
      display: block;
      background-image: url('/images/caret-left-black.svg');
      width: 18px;
      height: 18px;
      opacity: .5;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      margin-right: 16px;
      cursor: pointer;
    }
  }

  &__close-button::after {
    content: '\00D7';
    font-size: 40px;
    color: $dusty-gray;
    cursor: pointer;
  }

  &__content {
    display: flex;
    flex-flow: row nowrap;
    height: auto;
    overflow: auto;

    &__tabs {
      display: flex;
      flex-direction: column;
      flex: 1 1 auto;

      @media screen and (min-width: 576px) {
        flex: 0 0 40%;
        max-width: 210px;
        padding-top: 8px;
      }

      .tab-bar__tab {
        @media screen and (min-width: 576px) {
          padding: 16px 24px 0;
        }
      }
    }

    &__modules {
      overflow-y: auto;
      flex: 1 1 auto;

      @media screen and (max-width: 575px) {
        display: none;
      }
    }
  }

  &__body {
    padding: 12px 24px;

    @media screen and (min-width: 576px) {
      padding: 12px;
    }
  }

  &__content-row {
    display: flex;
    flex-direction: column;
    padding: 10px 0 20px;
  }

  &__content-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 71px;

    @media screen and (max-width: 575px) {
      height: initial;
      padding: 5px 0;
    }

    &--without-height {
      height: initial;
    }
  }

  &__content-label {
    text-transform: capitalize;
  }

  &__content-description {
    font-size: 14px;
    color: $dusty-gray;
    padding-top: 5px;
  }

  &__content-item-col {
    max-width: 300px;
    display: flex;
    flex-direction: column;

    @media screen and (max-width: 575px) {
      max-width: 100%;
      width: 100%;
    }
  }

  &--selected {
    .settings-page {
      &__content {
        &__tabs {
          @media screen and (max-width: 575px) {
            display: none;
          }
        }

        &__modules {
          @media screen and (max-width: 575px) {
            display: block;
          }
        }
      }
    }
  }
}