~cytrogen/masto-fe

ref: bc69d48652e431b06a1fff2c3fd0a67b54d23f81 masto-fe/app/javascript/flavours/glitch/styles/components/local_settings.scss -rw-r--r-- 2.9 KiB
bc69d486 — Cytrogen Cherry-pick PR #104: Reduced motion accessibility 15 days ago
                                                                                
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
164
165
166
167
168
169
170
171
172
173
.glitch.local-settings {
  position: relative;
  display: flex;
  flex-direction: row;
  background: $ui-secondary-color;
  color: $inverted-text-color;
  border-radius: 8px;
  height: 80vh;
  width: 80vw;
  max-width: 740px;
  max-height: 450px;
  overflow: hidden;

  label,
  legend {
    display: block;
    font-size: 14px;
  }

  .boolean label,
  .radio_buttons label {
    position: relative;
    padding-inline-start: 28px;
    padding-top: 3px;

    input {
      position: absolute;
      inset-inline-start: 0;
      top: 0;
    }
  }

  span.hint {
    display: block;
    color: $lighter-text-color;
  }

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

.glitch.local-settings__navigation__item {
  display: block;
  padding: 15px 20px;
  color: inherit;
  background: lighten($ui-secondary-color, 8%);
  border: 0;
  border-bottom: 1px $ui-secondary-color solid;
  cursor: pointer;
  text-decoration: none;
  outline: none;
  transition: background 0.3s;
  box-sizing: border-box;
  width: 100%;
  text-align: start;
  font-size: inherit;

  .text-icon-button {
    color: inherit;
    transition: unset;
    unicode-bidi: embed;
  }

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

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

  &.close,
  &.close:hover {
    background: $error-value-color;
    color: $primary-text-color;
  }
}

.glitch.local-settings__navigation {
  background: lighten($ui-secondary-color, 8%);
  width: 212px;
  font-size: 15px;
  line-height: 20px;
  overflow-y: auto;
}

.glitch.local-settings__page {
  display: block;
  flex: auto;
  padding: 15px 20px;
  width: 360px;
  overflow-y: auto;
}

.glitch.local-settings__page__item {
  margin-bottom: 2px;

  .hint a {
    color: $lighter-text-color;
    font-weight: 500;
    text-decoration: underline;

    &:active,
    &:focus,
    &:hover {
      text-decoration: none;
    }
  }

  #mastodon-settings--collapsed-auto-height {
    width: calc(4ch + 20px);
  }
}

.glitch.local-settings__page__item.string,
.glitch.local-settings__page__item.radio_buttons {
  margin-top: 10px;
  margin-bottom: 10px;
}

@media screen and (width <= 630px) {
  .glitch.local-settings__navigation {
    width: 40px;
    flex-shrink: 0;
  }

  .glitch.local-settings__navigation__item {
    padding: 10px;

    span:last-of-type {
      display: none;
    }
  }
}

.deprecated-settings-label {
  white-space: nowrap;
}

.deprecated-settings-info {
  text-align: start;

  ul {
    padding: 10px;
    margin-inline-start: 12px;
    list-style: disc inside;
  }

  a {
    color: $lighter-text-color;
    font-weight: 500;
    text-decoration: underline;

    &:active,
    &:focus,
    &:hover {
      text-decoration: none;
    }
  }
}