BlueGit

timfa questward

Files

questward / client / ui / editor.css

editor.css

editor.css 3.7 KiB Download Raw
1:root {
2 color-scheme: dark;
3 font-family: "Segoe UI", sans-serif;
4 background: #12151b;
5 color: #e8e4d9;
6}
7
8html, body {
9 margin: 0;
10 min-height: 100%;
11}
12
13body > header {
14 padding: 0.6rem 1rem;
15 border-bottom: 1px solid #2c3340;
16}
17
18body > aside {
19 position: absolute;
20 left: 0;
21 top: 56px;
22 width: 250px;
23 bottom: 0;
24 overflow: auto;
25 padding: 0.75rem;
26 box-sizing: border-box;
27 background: #1a1e26;
28 border-right: 1px solid #2c3340;
29}
30
31#changelog-wrap {
32 position: absolute;
33 right: 0;
34 top: 56px;
35 width: 280px;
36 bottom: 0;
37 overflow: auto;
38 padding: 0.75rem;
39 box-sizing: border-box;
40 background: #1a1e26;
41 border-left: 1px solid #2c3340;
42}
43
44.nav, .palette {
45 display: flex;
46 flex-direction: column;
47 gap: 0.35rem;
48 margin: 0.75rem 0;
49}
50
51button, input {
52 font: inherit;
53 background: #101216;
54 color: inherit;
55 border: 1px solid #3a4250;
56 padding: 0.3rem 0.5rem;
57}
58
59button { cursor: pointer; }
60.error { color: #f0a0a0; }
61.hint { color: #9aa3b2; font-size: 0.85rem; }
62.open-toggle { display: flex; gap: 0.4rem; align-items: center; }
63article { margin-bottom: 0.75rem; }
64fieldset { border-color: #3a4250; margin-top: 1rem; }
65#selection-border {
66 position: fixed;
67 pointer-events: none;
68 box-sizing: border-box;
69 border: 2px solid #e23d3d;
70 box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
71 z-index: 4;
72}
73
74label { display: block; margin: 0.4rem 0; }
75
76#settings-backdrop {
77 position: fixed;
78 inset: 0;
79 background: rgba(0, 0, 0, 0.62);
80 z-index: 19;
81}
82
83#settings-modal {
84 position: fixed;
85 inset: 4vh 4vw;
86 z-index: 20;
87 display: flex;
88 background: #161a22;
89 border: 1px solid #3a4250;
90 box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
91}
92
93#settings-modal[hidden],
94#settings-backdrop[hidden] {
95 display: none !important;
96}
97
98#settings-main {
99 flex: 1;
100 min-width: 0;
101 display: flex;
102 flex-direction: column;
103}
104
105#settings-main header,
106#settings-main footer {
107 display: flex;
108 align-items: center;
109 justify-content: space-between;
110 gap: 0.75rem;
111 padding: 0.75rem 1rem;
112 border-bottom: 1px solid #2c3340;
113}
114
115#settings-main footer {
116 border-bottom: 0;
117 border-top: 1px solid #2c3340;
118}
119
120#settings-form {
121 flex: 1;
122 overflow: auto;
123 padding: 0;
124 display: flex;
125 flex-direction: column;
126 min-height: 0;
127}
128
129.settings-tabs {
130 display: flex;
131 flex-wrap: wrap;
132 gap: 0.25rem;
133 padding: 0.65rem 1rem 0.5rem;
134 border-bottom: 1px solid #2c3340;
135 background: #12151c;
136}
137
138.settings-tab {
139 appearance: none;
140 border: 1px solid transparent;
141 background: transparent;
142 color: #a8a295;
143 padding: 0.35rem 0.7rem;
144 border-radius: 4px;
145 cursor: pointer;
146 font: inherit;
147}
148
149.settings-tab:hover {
150 color: #e8e2d4;
151 background: #1c222c;
152}
153
154.settings-tab.active {
155 color: #1a1510;
156 background: #d4c48a;
157 border-color: #d4c48a;
158}
159
160.settings-panels {
161 flex: 1;
162 overflow: auto;
163 padding: 0.75rem 1rem 1.25rem;
164}
165
166.settings-category {
167 margin-bottom: 0;
168}
169
170.settings-category h3 {
171 margin: 0 0 0.5rem;
172 font-size: 0.95rem;
173 color: #d4c48a;
174 border-bottom: 1px solid #2c3340;
175 padding-bottom: 0.25rem;
176}
177
178.setting-row {
179 display: grid;
180 grid-template-columns: minmax(12rem, 1fr) minmax(8rem, 14rem) 4rem;
181 gap: 0.4rem 0.75rem;
182 align-items: center;
183 padding: 0.45rem 0.5rem;
184 margin: 0.2rem 0;
185 border-radius: 4px;
186}
187
188.setting-row .hint {
189 grid-column: 1 / -1;
190 margin: 0;
191}
192
193.setting-row.dirty {
194 background: #4a3d18;
195 box-shadow: inset 0 0 0 1px #c4a35a;
196}
197
198.setting-value {
199 font-variant-numeric: tabular-nums;
200 color: #c5c0b4;
201}
202
203#settings-log-wrap {
204 width: min(340px, 32vw);
205 flex-shrink: 0;
206 border-left: 1px solid #2c3340;
207 display: flex;
208 flex-direction: column;
209 background: #1a1e26;
210}
211
212#settings-log-wrap h2 {
213 margin: 0;
214 padding: 0.75rem 1rem;
215 border-bottom: 1px solid #2c3340;
216 font-size: 1rem;
217}
218
219#settings-log {
220 flex: 1;
221 overflow: auto;
222 padding: 0.75rem 1rem;
223}