about summary refs log tree commit diff
path: root/app/javascript/glitch/components/settings/style.scss
blob: 48cc3798422c233d1a6f8b5c650681c46cdab589 (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
@import 'variables';

.settings-modal {
  position: relative;
  display: flex;
  flex-direction: row;
  background: $ui-secondary-color;
  color: $ui-base-color;
  border-radius: 8px;
  height: 80vh;
  width: 80vw;
  max-width: 740px;
  max-height: 450px;
  overflow: hidden;

  label {
    display: block;
  }

  h1 {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 20px;
  }

  h2 {
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
  }
}

.settings-modal__navigation {
  background: $primary-text-color;
  color: $ui-base-color;
  width: 200px;
  font-size: 15px;
  line-height: 20px;
  overflow-y: auto;

  .settings-modal__navigation-item, .settings-modal__navigation-close {
    display: block;
    padding: 15px 20px;
    cursor: pointer;
    outline: none;
    text-decoration: none;
  }

  .settings-modal__navigation-item {
    background: $primary-text-color;
    color: inherit;
    border-bottom: 1px $ui-primary-color solid;
    transition: background .3s;

    &:hover {
      background: $ui-secondary-color;
    }

    &.active {
      background: $ui-highlight-color;
      color: $primary-text-color;
    }
  }

  .settings-modal__navigation-close {
    background: $error-value-color;
    color: $primary-text-color;
  }
}

.settings-modal__content {
  display: block;
  flex: auto;
  padding: 15px 20px 15px 20px;
  width: 360px;
  overflow-y: auto;

  select {
    margin-bottom: 5px;
  }
}