]> code.citadel.org Git - citadel.git/blob - webcit-ng/static/css/webcit.css
Don't show a focus border on contenteditable items
[citadel.git] / webcit-ng / static / css / webcit.css
1 /*
2         Copyright (c) 1996-2022 by Art Cancro and the citadel.org team.
3         This program is open source software.  Use, duplication, or disclosure
4         are subject to the terms of the GNU General Public License, version 3.
5 */
6
7 * {                                             /* This makes grids consume exactly 100% of their parent containers */
8         box-sizing: border-box;
9         padding: 0;
10         margin: 0;
11 }
12
13 [contenteditable]:focus {
14         outline: 0px solid transparent;
15
16
17 .ctdl-main-grid-container {                     /* This grid implements the "holy grail layout" of the screen */
18         display: grid;
19         grid-template-rows: 5vh auto;
20         grid-template-columns: 12vw auto;
21         grid-template-areas:
22                 'ctdl-mg-banner ctdl-mg-banner'
23                 'ctdl-mg-menu ctdl-mg-main';
24         gap: 3px;
25         background-color: DarkSlateGrey;        /* This is the color of the lines between the boxes, and also the boxes themselves if not overridden */
26         padding: 0;                             /* This is the border around the edges of the screen */
27         width: 100vw;
28         height: 100vh;
29 }
30
31 .ctdl-grid-banner-item {                        /* Top banner, referenced by the grid container */
32         grid-area: ctdl-mg-banner;
33         background-color: DarkSlateGrey;
34 }
35
36 .ctdl-grid-sidebar-item {                       /* Side bar, referenced by the grid container */
37         grid-area: ctdl-mg-menu;
38         background-color: GhostWhite;
39 }
40
41 .ctdl-grid-main-item {                          /* Main content area of the screen, referenced by the grid container */
42         grid-area: ctdl-mg-main;
43         overflow-x: hidden;
44         overflow-y: auto;
45 }
46
47 .ctdl-main-grid-container > div {
48         text-align: left;
49 }
50
51 .ctdl-banner-buttons {                          /* Flexbox container for everything we stick into the banner */
52         display: flex;
53         flex-direction: row;
54         flex-wrap: nowrap;
55         justify-content: space-between;
56         align-items: center;
57         margin: 0;
58         width: 100%;
59         height: 100%;
60         overflow: hidden;
61 }
62
63 .ctdl-banner-left {                             /* Items which should be grouped to the LEFT side of the banner */
64         display: flex;
65         flex-direction: row;
66         flex-wrap: nowrap;
67         align-items: center;
68 }
69
70 .ctdl-banner-center {                           /* Items which should be grouped to the MIDDLE of the banner */
71         display: flex;
72         flex-direction: row;
73         flex-wrap: nowrap;
74         align-items: center;
75 }
76
77 .ctdl-banner-right {                            /* Items which should be grouped to the RIGHT side of the banner */
78         display: flex;
79         flex-direction: row;
80         flex-wrap: nowrap;
81         align-items: center;
82 }
83
84 .ctdl-banner-buttons li, .ctdl-banner-buttons li button {
85         float: left;
86         display: block;
87         background-color: DarkSlateGrey;
88         color: White;
89         font-size: 1.25vw;
90         border: none;
91         padding-left: 4px;
92         padding-right: 4px;
93 }
94
95 .ctdl-banner-buttons li button:hover {
96         background-color: Black;
97 }
98
99 .ctdl-banner-buttons a {                        /* For example, the Login / Log Off button */
100         color: White;
101 }
102
103 .ctdl-banner-buttons span {                     /* For example, the name of the logged in user */
104         color: White;
105 }
106
107 .ctdl-logo-img {
108         background-color: White;
109         border-radius: 5px;
110         padding-bottom: 3px;
111         padding-left: 3px;
112         padding-right: 3px;
113 }
114
115 html,body,h1,h2,h3,h4,h5 {
116         font-family: sans-serif
117 }
118
119 .ctdl-modal {
120         display: none;                          /* set to "block" to make the modal appear */
121         z-index: 9;
122         position: fixed;
123         top: 50%;
124         left: 50%;
125         transform: translate(-50%, -50%);
126         border-style: outset;
127         border-width: 3px;
128         border-color: Black;
129         justify-content: center;
130         align-items: center;
131         padding: 10px;
132         background-color: GhostWhite;
133 }
134
135 .ctdl-modal-header {
136         background-color: GhostWhite;
137         padding: 10px;
138 }
139
140 .ctdl-modal-main {
141         padding: 10px;
142 }
143
144 .ctdl-modal-footer {
145         background-color: GhostWhite;
146         padding: 10px;
147 }
148
149 .ctdl-sidebar-button {
150         width: 100%;
151         padding: 10px;
152         text-align: left;
153         border: 1px solid GhostWhite;
154         background-color: GhostWhite;
155         color: Black;
156         font-size: 1vw;
157         border-radius: 5px;
158 }
159
160 .ctdl-sidebar-button:hover {
161         border-color: Blue;
162 }
163
164 .ctdl-sidebar-button-selected {
165         font-weight: bold;
166         background-color: Gainsboro;
167 }
168
169 .ctdl-grid-banner-item button {
170         background-color: #888888;
171         color: #FFFFFF;
172 }
173
174 .ctdl-forum-reading-pane {
175         background-color: DarkSlateGrey;        /* Background behind the message boxes */
176 }
177
178 .ctdl-fmsg-wrapper {                            /* message wrapper for forum view */
179         overflow: hidden;
180         border-radius: 10px;
181         background-color: White;
182         margin: 1vw;
183         padding: 5px;                           /* inside the box */
184 }
185
186 .ctdl-mmsg-wrapper {                            /* message wrapper for mailbox view */
187         overflow: hidden;
188         background-color: White;
189         padding: 5px;                           /* inside the box */
190 }
191
192 .ctdl-msg-reply {
193         margin-left: 5vw;
194 }
195
196 .ctdl-msg-header {
197         overflow: hidden;
198         padding: 4px;
199         min-height: 35px;
200         background-color: GhostWhite;
201         margin-bottom: 10px;                    /* this is the vertical space between the header and the message text */
202 }
203
204 .ctdl-msg-header-info {
205         float: left;
206 }
207
208 .ctdl-msg-header-buttons {
209         float: right;
210 }
211
212 .ctdl-msg-button {
213         margin-left: 2px;
214         border-radius: 5px;
215         background-color: Blue;
216         color: Black;
217         padding: 2px;
218         background-color: GhostWhite;
219         border-style: solid;
220         border-width: thin;
221         border-color: Black;
222 }
223
224 .ctdl-msg-button a {
225         color: Black;
226 }
227
228 .ctdl-msg-button:hover {
229         background-color: #123456;
230         color: GhostWhite;
231         transition: .3s;
232         border-color: #123456;
233 }
234
235 .ctdl-msg-button a:hover {
236         color: White;
237 }
238
239
240 .ctdl-msg-button a {
241         text-decoration: none;
242 }
243
244 .ctdl-avatar {
245         width: 32px;
246 }
247
248 .ctdl-avatar img {
249         clip-path: circle(50%);
250 }
251
252 .ctdl-username {
253         font-weight: bold;
254         color: #000055;
255 }
256
257 .ctdl-username a {
258         text-decoration: none;
259         padding-right: 4px;
260 }
261
262 .ctdl-msgdate {
263         padding-left: 4px;
264 }
265
266 .ctdl-msgsubject {
267         font-weight: bold;
268 }
269
270 .ctdl-fmsg-content {                            /* message text, when in forum view */
271         margin-left: 32px;
272 }
273
274 .ctdl-mmsg-content {                            /* message text, when in mailbox view */
275         margin-left: 0;
276 }
277
278 .ctdl-avatar {
279         float: left;
280         padding-right: 2px;
281 }
282
283 .ctdl-forum-nav {
284         text-align: center;
285         color: Black;
286         background-color: Gainsboro;
287         padding-top: 5px;
288         padding-bottom: 5px;
289 }
290
291 .ctdl-forum-nav a {
292         text-decoration: none;
293 }
294
295 blockquote {
296         background-color: #f5f5f5 !important;
297         color: Navy !important;
298         margin-bottom: 0px;
299         padding-bottom: 0px;
300 }
301
302 blockquote blockquote {
303         background-color: #ebebeb !important;
304         color: Maroon !important;
305 }
306
307 blockquote blockquote blockquote {
308         background-color: #e1e1e1 !important;
309         color: Green !important;
310 }
311
312 blockquote blockquote blockquote blockquote {
313         background-color: #d7d7d7 !important;
314         color: Purple !important;
315 }
316
317 blockquote blockquote blockquote blockquote blockquote {
318         background-color: #cdcdcd !important;
319         color: Teal !important;
320 }
321
322 blockquote pre {
323         margin-left: 1%;
324         margin-right: 1%;
325 }
326
327 .ctdl-forum-urlmodal {
328         width: 75%;
329 }
330
331 .ctdl-roomlist-top {
332         background-color: GhostWhite;
333         width: 100%;
334         height: 100%;
335         overflow: auto;
336         border: none;
337 }
338
339 .ctdl-roomlist-floor {
340 }
341
342 .ctdl-roomlist-floor-label {
343         font-size: x-large;
344         margin: 1vw;
345         margin-bottom: 0;
346 }
347
348 .ctdl-roomlist-floor-rooms {
349 }
350
351 .ctdl-roomlist-room {
352         display: flex;
353         flex-direction: row;
354         flex-wrap: nowrap;
355         justify-content: space-around;
356         align-items: center;
357         overflow: hidden;
358         border-radius: 10px;
359         border-style: outset;
360         background-color: White;
361         padding: 0.3vw;
362         margin-top: 0;
363         margin-bottom: 0.25vw;
364         margin-left: 1vw;
365         margin-right: 1vw;
366 }
367
368 .ctdl-roomlist-roomicon {
369         overflow: hidden;
370         font-size: large;
371         margin-right: auto;
372 }
373
374 .ctdl-roomlist-roomname {
375         font-size: large;
376         margin-right: auto;
377         padding-left: 1vw;
378         padding-right: 1vw;
379 }
380
381 .ctdl-roomlist-roomname-hasnewmsgs {
382         font-weight: bold;
383         margin-right: auto;
384 }
385
386 .ctdl-roomlist-mtime {
387         margin-left: auto;
388 }
389
390 .ctdl-mailbox-grid-container {
391         display: grid;
392         position: relative;
393         overflow: hidden;
394         width: 100%;
395         height: 100%;
396         background-color: GhostWhite;
397         grid-template-rows: 15vw 1fr;           /* "1fr" means "all of the remaining space" */
398 }
399
400 .ctdl-mailbox-pane {                            /* list of messages when in mailbox view */
401         overflow-x: hidden;
402         overflow-y: scroll;
403         background-color: #DDDDDD;
404         border-bottom: solid 3px SlateGrey;     /* We can probably turn this into a drag handle */
405 }
406
407 .ctdl-mailbox-table {
408         width: 100%;
409         background-color: GhostWhite;
410         border-collapse: collapse;
411 }
412
413 .ctdl-mailbox-table td {
414         padding: 5px;
415 }
416
417 .ctdl-mailbox-table tr {
418         cursor: pointer;
419         border-top: solid 1px LightGrey;
420 }
421
422 .ctdl-mailbox-table tr:hover {
423         border-top: solid 1px Blue;
424         border-bottom: solid 1px Blue;
425         background-color: LightGrey;
426 }
427
428 .ctdl-mailbox-table th {
429         position: sticky;
430         top: 0;
431         z-index: 6;
432         background-color: SlateGrey;
433         color: White;
434         padding-top: 5px;
435         padding-bottom: 5px;
436 }
437
438 .ctdl-mailbox-table th:hover {                  /* Suppress highlighting the header bar */
439         background-color: SlateGrey;
440         color: White;
441         cursor: default;
442 }
443
444 .ctdl-mail-selected {
445         background-color: Blue;
446         color: White;
447 }
448
449 .ctdl-mail-subject {                            /* Subject column in mailbox message list */
450 }
451
452 .ctdl-mail-sender {                             /* Sender column in mailbox message list */
453 }
454
455 .ctdl-mail-date {                               /* Date column in mailbox message list */
456         white-space: nowrap;
457 }
458
459 .ctdl-mail-msgnum {                             /* # column in mailbox message list */
460         white-space: nowrap;
461 }
462
463 .ctdl-mailbox-reading-pane {                    /* message reading pane when in mailbox view */
464         overflow: auto;
465         background-color: GhostWhite;
466         padding: 5px;
467         overflow: auto;
468         border: none;
469 }
470
471 .ctdl-compose-mail {                            /* mail composition window */
472         width: 100%;
473         height: 100%;
474         overflow: none;
475         border: none;
476         padding: 0;
477         background-color: GhostWhite;
478         display: grid;
479         grid-template-rows: auto auto 1fr auto;
480         grid-template-columns: auto 1fr;
481         grid-template-areas:
482                 'ctdl-compose-to-label ctdl-compose-to-field'
483                 'ctdl-compose-subject-label ctdl-compose-subject-field'
484                 'ctdl-compose-message-box ctdl-compose-message-box'
485                 'ctdl-compose-toolbar ctdl-compose-toolbar';
486         gap: 3px;
487 }
488
489 .ctdl-compose-to-label {
490         grid-area: ctdl-compose-to-label;
491         padding: 0.5vw;
492 }
493
494 .ctdl-compose-to-field {
495         grid-area: ctdl-compose-to-field;
496         padding: 0.5vw;
497         border-bottom: 1px solid Grey;
498         margin-right: 0.5vw;
499 }
500
501 .ctdl-compose-subject-label {
502         grid-area: ctdl-compose-subject-label;
503         padding: 0.5vw;
504 }
505
506 .ctdl-compose-subject-field {
507         grid-area: ctdl-compose-subject-field;
508         padding: 0.5vw;
509         border-bottom: 1px solid Grey;
510         margin-right: 0.5vw;
511 }
512
513 .ctdl-compose-message-box {
514         grid-area: ctdl-compose-message-box;
515         overflow-x: wrap;
516         overflow-y: auto;
517         padding: 0.5vw;
518 }
519
520 .ctdl-compose-toolbar {
521         grid-area: ctdl-compose-toolbar;
522         overflow: none;
523         padding: 0.5vw;
524 }
525
526 .ctdl-login-screen-grid-container {
527         display: grid;
528         grid-template-columns: auto auto;
529 }
530
531 .ctdl-login-screen-grid-item {
532         padding: 20px;
533         font-size: 1.25em;
534         vertical-align: middle;
535 }
536
537 .ctdl-login-screen-grid-item input {
538         height: 100%;
539         border: none;
540         font-size: 1.25em;
541 }