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; }
60button:disabled {
61 opacity: 0.45;
62 cursor: not-allowed;
63}
64#apply-status.ok { color: #b8d4a0; }
65.error { color: #f0a0a0; }
66.hint { color: #9aa3b2; font-size: 0.85rem; }
67.open-toggle { display: flex; gap: 0.4rem; align-items: center; }
68article { margin-bottom: 0.75rem; }
69fieldset { border-color: #3a4250; margin-top: 1rem; }
70#selection-border {
71 position: fixed;
72 pointer-events: none;
73 box-sizing: border-box;
74 border: 2px solid #e23d3d;
75 box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
76 z-index: 4;
77}
78
79label { display: block; margin: 0.4rem 0; }
80
81#settings-backdrop {
82 position: fixed;
83 inset: 0;
84 background: rgba(0, 0, 0, 0.62);
85 z-index: 19;
86}
87
88#settings-modal {
89 position: fixed;
90 inset: 4vh 4vw;
91 z-index: 20;
92 display: flex;
93 background: #161a22;
94 border: 1px solid #3a4250;
95 box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
96}
97
98#settings-modal[hidden],
99#settings-backdrop[hidden] {
100 display: none !important;
101}
102
103#settings-main {
104 flex: 1;
105 min-width: 0;
106 display: flex;
107 flex-direction: column;
108}
109
110#settings-main header,
111#settings-main footer {
112 display: flex;
113 align-items: center;
114 justify-content: space-between;
115 gap: 0.75rem;
116 padding: 0.75rem 1rem;
117 border-bottom: 1px solid #2c3340;
118}
119
120#settings-main footer {
121 border-bottom: 0;
122 border-top: 1px solid #2c3340;
123}
124
125#settings-form {
126 flex: 1;
127 overflow: auto;
128 padding: 0;
129 display: flex;
130 flex-direction: column;
131 min-height: 0;
132}
133
134.settings-tabs {
135 display: flex;
136 flex-wrap: wrap;
137 gap: 0.25rem;
138 padding: 0.65rem 1rem 0.5rem;
139 border-bottom: 1px solid #2c3340;
140 background: #12151c;
141}
142
143.settings-tab {
144 appearance: none;
145 border: 1px solid transparent;
146 background: transparent;
147 color: #a8a295;
148 padding: 0.35rem 0.7rem;
149 border-radius: 4px;
150 cursor: pointer;
151 font: inherit;
152}
153
154.settings-tab:hover {
155 color: #e8e2d4;
156 background: #1c222c;
157}
158
159.settings-tab.active {
160 color: #1a1510;
161 background: #d4c48a;
162 border-color: #d4c48a;
163}
164
165.settings-panels {
166 flex: 1;
167 overflow: auto;
168 padding: 0.75rem 1rem 1.25rem;
169}
170
171.settings-category {
172 margin-bottom: 0;
173}
174
175.settings-category h3 {
176 margin: 0 0 0.5rem;
177 font-size: 0.95rem;
178 color: #d4c48a;
179 border-bottom: 1px solid #2c3340;
180 padding-bottom: 0.25rem;
181}
182
183.setting-row {
184 display: grid;
185 grid-template-columns: minmax(12rem, 1fr) minmax(8rem, 14rem) 4rem;
186 gap: 0.4rem 0.75rem;
187 align-items: center;
188 padding: 0.45rem 0.5rem;
189 margin: 0.2rem 0;
190 border-radius: 4px;
191}
192
193.setting-row .hint {
194 grid-column: 1 / -1;
195 margin: 0;
196}
197
198.setting-row.dirty {
199 background: #4a3d18;
200 box-shadow: inset 0 0 0 1px #c4a35a;
201}
202
203.setting-value {
204 font-variant-numeric: tabular-nums;
205 color: #c5c0b4;
206}
207
208#settings-log-wrap {
209 width: min(340px, 32vw);
210 flex-shrink: 0;
211 border-left: 1px solid #2c3340;
212 display: flex;
213 flex-direction: column;
214 background: #1a1e26;
215}
216
217#settings-log-wrap h2 {
218 margin: 0;
219 padding: 0.75rem 1rem;
220 border-bottom: 1px solid #2c3340;
221 font-size: 1rem;
222}
223
224#settings-log {
225 flex: 1;
226 overflow: auto;
227 padding: 0.75rem 1rem;
228}