src/main/webapp/lightpit.css

changeset 415
f0a1631eaf00
parent 414
1f1bce90127e
child 416
a01dbf277f89
equal deleted inserted replaced
414:1f1bce90127e 415:f0a1631eaf00
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 * POSSIBILITY OF SUCH DAMAGE. 26 * POSSIBILITY OF SUCH DAMAGE.
27 * 27 *
28 */ 28 */
29 29
30 :root {
31 --color-background: white;
32 --color-background-popup: ghostwhite;
33 --color-foreground: #1c204e;
34 --color-foreground-inverted: white;
35 --color-link: #3060f8;
36 --color-background-mainmenu: #e0e0e5;
37 --color-background-mainmenu-active: #d0d0d5;
38 --color-background-sidemenu: #f7f7ff;
39 --color-background-sidemenu-active: #e7e7ef;
40 --color-background-th: #f0f0f0;
41 --color-background-tr-even: #f7f7ff;
42 --color-border-primary: #606060;
43 --color-border-primary-fade: #d0d0d5;
44 --color-border-secondary: #c0c0c0;
45 --color-border-secondary-fade: #d3d3d3;
46 --color-button-secondary: #f0f0f0;
47 --color-button-secondary-hover: #f0f0ff;
48 --color-button-primary: #20a0ff;
49 --color-button-primary-text: white;
50 --color-button-primary-hover: #1090cf;
51 --color-background-issue-data: #f7f7f7;
52 --color-background-comment-author: #e7e7ef;
53 }
54
55 @media (prefers-color-scheme: dark) {
56 :root {
57 --color-background: #2c404e;
58 --color-foreground: #fefaf7;
59 --color-foreground-inverted: #1c204e;
60 --color-background-popup: #4f6778;
61 --color-link: #90e8ff;
62 --color-background-mainmenu: #3c3c49;
63 --color-background-mainmenu-active: #5c5c69;
64 --color-background-sidemenu: #5a5a80;
65 --color-background-sidemenu-active: #7a7aa0;
66 --color-background-th: #595970;
67 --color-background-tr-even: #3c505e;
68 --color-border-primary: #ececec;
69 --color-border-primary-fade: #a9a9a9;
70 --color-border-secondary: #d0d0d0;
71 --color-border-secondary-fade: #959595;
72 --color-button-secondary: #595970;
73 --color-button-secondary-hover: #656585;
74 --color-button-primary: #20a0ff;
75 --color-button-primary-text: white;
76 --color-button-primary-hover: #1090cf;
77 --color-background-issue-data: #4c606e;
78 --color-background-comment-author: #7a7aa0;
79 }
80 }
81
82 .light-text {
83 color: white;
84 }
85
86 .dark-text {
87 color: #1c204e;
88 }
89
90 input, select, textarea {
91 background: var(--color-background);
92 color: var(--color-foreground);
93 border: var(--color-border-primary) solid thin;
94 border-radius: 2pt;
95 }
96
30 html { 97 html {
31 font-family: sans-serif; 98 font-family: sans-serif;
32 font-size: 11pt; 99 font-size: 11pt;
33 background: white; 100 background: var(--color-background);
34 color: #1c204e; 101 color: var(--color-foreground);
35 margin: 0; 102 margin: 0;
36 padding: 0; 103 padding: 0;
37 height: 100vh; 104 height: 100vh;
38 } 105 }
39 106
47 margin: 0.75em 0; 114 margin: 0.75em 0;
48 } 115 }
49 116
50 h3 { 117 h3 {
51 margin: 0.25em 0; 118 margin: 0.25em 0;
52 }
53
54 .light-text {
55 color: white;
56 }
57
58 .dark-text {
59 color: #1c204e;
60 } 119 }
61 120
62 .edit-icon { 121 .edit-icon {
63 margin-left: 1ex; 122 margin-left: 1ex;
64 margin-right: 1ex; 123 margin-right: 1ex;
83 font-size: inherit; 142 font-size: inherit;
84 } 143 }
85 144
86 a { 145 a {
87 cursor: pointer; 146 cursor: pointer;
88 color: #3060f8; 147 color: var(--color-link);
89 text-decoration: none; 148 text-decoration: none;
90 } 149 }
91 150
92 #page-area { 151 #page-area {
93 display: flex; 152 display: flex;
102 } 161 }
103 162
104 #mainMenu { 163 #mainMenu {
105 display: flex; 164 display: flex;
106 flex-flow: row nowrap; 165 flex-flow: row nowrap;
107 border-image-source: linear-gradient(to right, #606060, rgba(60, 60, 60, .25)); 166 border-image-source: linear-gradient(to right, var(--color-border-primary), var(--color-border-primary-fade));
108 border-image-slice: 1; 167 border-image-slice: 1;
109 border-bottom-style: solid; 168 border-bottom-style: solid;
110 border-bottom-width: thin; 169 border-bottom-width: thin;
111 background: #e0e0e5; 170 background: var(--color-background-mainmenu);
112 } 171 }
113 172
114 #sideMenu { 173 #sideMenu {
115 min-width: 32ex; 174 min-width: 32ex;
116 width: 15vw; 175 width: 15vw;
117 display: flex; 176 display: flex;
118 flex-flow: column; 177 flex-flow: column;
119 color: #3060f8; 178 color: var(--color-link);
120 border-image-source: linear-gradient(to bottom, #606060, rgba(60, 60, 60, .25)); 179 border-image-source: linear-gradient(to bottom, var(--color-border-primary), var(--color-border-primary-fade));
121 border-image-slice: 1; 180 border-image-slice: 1;
122 border-right-style: solid; 181 border-right-style: solid;
123 border-right-width: thin; 182 border-right-width: thin;
124 background: #f7f7ff; 183 background: var(--color-background-sidemenu);
125 } 184 }
126 185
127 #mainMenu .menuEntry { 186 #mainMenu .menuEntry {
128 font-size: 1.2rem; 187 font-size: 1.2rem;
129 padding: .25em 1em .25em 1em; 188 padding: .25em 1em .25em 1em;
156 #sideMenu .menuEntry:hover .edit-icon { 215 #sideMenu .menuEntry:hover .edit-icon {
157 display: initial; 216 display: initial;
158 } 217 }
159 218
160 #mainMenu .menuEntry[data-active] { 219 #mainMenu .menuEntry[data-active] {
161 background: #d0d0d5; 220 background: var(--color-background-mainmenu-active);
162 } 221 }
163 222
164 #sideMenu .menuEntry[data-active] { 223 #sideMenu .menuEntry[data-active] {
165 background: #e7e7ef 224 background: var(--color-background-sidemenu-active);
166 } 225 }
167 226
168 #sideMenu .level-0 { 227 #sideMenu .level-0 {
169 padding-left: .75em; 228 padding-left: .75em;
170 } 229 }
181 flex-grow: 1; 240 flex-grow: 1;
182 padding: 1.5em; 241 padding: 1.5em;
183 } 242 }
184 243
185 #whats-new { 244 #whats-new {
186 background: ghostwhite; 245 background: var(--color-background-popup);
187 position: fixed; 246 position: fixed;
188 top: 10%; 247 top: 10%;
189 left: 50%; 248 left: 50%;
190 transform: translate(-50%, 0); 249 transform: translate(-50%, 0);
191 padding: 1.5em; 250 padding: 1.5em;
192 border: #1c204e solid 2px; 251 border: var(--color-foreground) solid 2px;
193 border-radius: 4px; 252 border-radius: 4px;
194 } 253 }
195 254
196 .blurred { 255 .blurred {
197 filter: blur(5px); 256 filter: blur(5px);
200 button, a.button { 259 button, a.button {
201 display: inline-block; 260 display: inline-block;
202 font-size: medium; 261 font-size: medium;
203 border-style: solid; 262 border-style: solid;
204 border-width: thin; 263 border-width: thin;
205 border-color: #606060; 264 border-color: var(--color-border-primary);
206 color: inherit; 265 color: inherit;
207 background: #f0f0f0; 266 background: var(--color-button-secondary);
208 267
209 padding: .25em .5em .25em .5em; 268 padding: .25em .5em .25em .5em;
210 cursor: default; 269 cursor: default;
211 text-decoration: none; 270 text-decoration: none;
212 text-align: center; 271 text-align: center;
213 font-variant-caps: small-caps; 272 font-variant-caps: small-caps;
214 } 273 }
215 274
216 button:hover, a.button:hover { 275 button:hover, a.button:hover {
217 background: #f0f0ff; 276 background: var(--color-button-secondary-hover);
218 }
219
220 button[data-toggle], a.button[data-toggle] {
221 border-color: #1040a0;
222 background: #d0d0d5;
223 } 277 }
224 278
225 button[type=submit], a.button.submit { 279 button[type=submit], a.button.submit {
226 background: #20a0ff; 280 background: var(--color-button-primary);
227 color: white; 281 color: var(--color-button-primary-text);
228 } 282 }
229 283
230 button[type=submit]:hover, a.button.submit:hover { 284 button[type=submit]:hover, a.button.submit:hover {
231 background: #1090cf; 285 background: var(--color-button-primary-hover);
232 } 286 }
233 287
234 th { 288 th {
235 text-align: left; 289 text-align: left;
236 } 290 }
237 291
238 table.datatable { 292 table.datatable {
239 border-style: solid; 293 border-style: solid;
240 border-width: thin; 294 border-width: thin;
241 border-color: silver; 295 border-color: var(--color-border-secondary);
242 border-collapse: collapse; 296 border-collapse: collapse;
243 } 297 }
244 298
245 table.datatable th { 299 table.datatable th {
246 white-space: nowrap; 300 white-space: nowrap;
247 font-weight: bold; 301 font-weight: bold;
248 background: #f7f7ff; 302 background: var(--color-background-th);
249 } 303 }
250 304
251 table.datatable th, table.datatable td { 305 table.datatable th, table.datatable td {
252 border-style: solid; 306 border-style: solid;
253 border-width: thin; 307 border-width: thin;
254 border-color: lightgray; 308 border-color: var(--color-border-secondary-fade);
255 padding: .4em; 309 padding: .4em;
256 } 310 }
257 311
258 table.datatable tr:nth-child(2n) { 312 table.datatable tr:nth-child(2n) {
259 background: #faffff; 313 background: var(--color-background-tr-even);
260 } 314 }
261 315
262 table.formtable { 316 table.formtable {
263 border-style: none; 317 border-style: none;
264 border-collapse: separate; 318 border-collapse: separate;
320 374
321 .bigskip { 375 .bigskip {
322 margin-top: 1.5em; 376 margin-top: 1.5em;
323 } 377 }
324 378
325 .info-box, .error-box, .warn-box { 379 .info-box, .error-box {
326 margin: 1.5em; 380 margin: 1.5em;
327 border-style: dashed; 381 border-style: dashed;
328 border-width: thin; 382 border-width: thin;
329 border-color: deepskyblue; 383 border-color: deepskyblue;
330 padding: 1em; 384 padding: 1em;
332 386
333 .error-box { 387 .error-box {
334 border-style: outset; 388 border-style: outset;
335 border-color: red; 389 border-color: red;
336 background: lightcoral; 390 background: lightcoral;
337 }
338
339 .warn-box {
340 border-style: outset;
341 border-color: gold;
342 background: lightgoldenrodyellow;
343 } 391 }
344 392
345 .table { 393 .table {
346 display: table; 394 display: table;
347 border-spacing: .5em; 395 border-spacing: .5em;
476 padding: .1em 2ex .1em 2ex; 524 padding: .1em 2ex .1em 2ex;
477 display: inline-block; 525 display: inline-block;
478 box-sizing: border-box; 526 box-sizing: border-box;
479 border-style: solid; 527 border-style: solid;
480 border-width: thin; 528 border-width: thin;
481 border-color: silver; 529 border-color: var(--color-border-secondary);
482 border-radius: 4pt; 530 border-radius: 4pt;
483 background: darkgray; 531 background: darkgray;
484 text-align: center; 532 text-align: center;
485 font-weight: bolder; 533 font-weight: bolder;
486 font-size: x-small; 534 font-size: x-small;
547 color: lightgray; 595 color: lightgray;
548 background: darkgray; 596 background: darkgray;
549 } 597 }
550 598
551 hr.issue-view-separator { 599 hr.issue-view-separator {
552 border-image-source: linear-gradient(to right, rgba(60, 60, 60, .1), rgba(96, 96, 96, 1), rgba(60, 60, 60, .1)); 600 border-image-source: linear-gradient(to right, var(--color-border-primary-fade), var(--color-border-primary), var(--color-border-primary-fade));
553 border-image-slice: 1; 601 border-image-slice: 1;
554 border-width: thin; 602 border-width: thin;
555 border-style: none; 603 border-style: none;
556 border-top-style: solid; 604 border-top-style: solid;
557 } 605 }
560 padding-left: .25rem; 608 padding-left: .25rem;
561 margin-bottom: 1.25em; 609 margin-bottom: 1.25em;
562 } 610 }
563 611
564 .comment-author { 612 .comment-author {
565 color: #3060f8; 613 color: var(--color-link);
566 background: #e7e7ef; 614 background: var(--color-background-comment-author);
567 margin-left: -.25rem; 615 margin-left: -.25rem;
568 padding: .25rem; 616 padding: .25rem;
569 } 617 }
570 618
571 .comment-author-name { 619 .comment-author-name {
586 } 634 }
587 635
588 div.mde-preview { 636 div.mde-preview {
589 border-style: solid; 637 border-style: solid;
590 border-width: 2px; 638 border-width: 2px;
591 border-color: silver; 639 border-color: var(--color-border-secondary);
592 padding: .25em; 640 padding: .25em;
593 border-radius: 8px; 641 border-radius: 8px;
594 } 642 }
595 643
596 span.eta-overdue { 644 span.eta-overdue {
601 border-collapse: collapse; 649 border-collapse: collapse;
602 margin-bottom: 1em; 650 margin-bottom: 1em;
603 } 651 }
604 652
605 table.issue-view td, table.issue-view th { 653 table.issue-view td, table.issue-view th {
606 background: #f7f7f7; 654 background: var(--color-background-issue-data);
607 border: solid silver 1pt; 655 border: solid var(--color-border-secondary) 1pt;
608 padding: .5em; 656 padding: .5em;
609 } 657 }
610 658
611 table.issue-view th { 659 table.issue-view th {
612 white-space: nowrap; 660 white-space: nowrap;

mercurial