]> code.citadel.org Git - citadel.git/blob - webcit-ng/static/css/webcit.css
6f01f71019a7ff5a1ecf845ae7b6a562f0c74953
[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 .ctdl-main-grid-container {                     /* This grid contains the "holy grail layout" of the screen */
14         display: grid;
15         grid-template-rows: 100px auto;
16         grid-template-columns: 200px auto;
17         grid-template-areas:
18                 'header header'
19                 'menu main';
20         gap: 3px;
21         background-color: DarkSlateGrey;        /* This is the color of the lines between the boxes, and also the boxes themselves if not overridden */
22         padding: 0;                             /* This is the border around the edges of the screen */
23         width: 100vw;
24         height: 100vh;
25 }
26
27 .ctdl-grid-banner-item {                        /* Top banner, referenced by the grid container */
28         grid-area: header;
29         background-color: DarkSlateGrey;
30 }
31
32 .ctdl-grid-sidebar-item {                       /* Side bar, referenced by the grid container */
33         grid-area: menu;
34         background-color: GhostWhite;
35 }
36
37 .ctdl-grid-main-item {                          /* Main content area of the screen, referenced by the grid container */
38         grid-area: main;
39         overflow-x: hidden;
40         overflow-y: auto;
41 }
42
43 .ctdl-main-grid-container > div {
44         text-align: left;
45         padding: 0;
46 }
47
48 .ctdl-banner-buttons li, .ctdl-banner-buttons li button {
49         float: left;
50         display: block;
51         padding: 8px;
52         background-color: DarkSlateGrey;
53         color: White;
54         font-size: 1.25vw;
55         border: none;
56 }
57
58 .ctdl-banner-buttons li button:hover {
59         background-color: Black;
60 }
61
62 .ctdl-banner-buttons a {
63         color: White;
64 }
65
66 html,body,h1,h2,h3,h4,h5 {
67         font-family: sans-serif
68 }
69
70 .ctdl-modal {
71         display: none;                          /* set to "block" to make the modal appear */
72         z-index: 9;
73         position: fixed;
74         top: 50%;
75         left: 50%;
76         transform: translate(-50%, -50%);
77         border-style: outset;
78         border-width: 3px;
79         border-color: Black;
80         justify-content: center;
81         align-items: center;
82         padding: 10px;
83         background-color: GhostWhite;
84 }
85
86 .ctdl-modal-header {
87         background-color: GhostWhite;
88         padding: 10px;
89 }
90
91 .ctdl-modal-main {
92         padding: 10px;
93 }
94
95 .ctdl-modal-footer {
96         background-color: GhostWhite;
97         padding: 10px;
98 }
99
100 .ctdl-sidebar-class button {
101         width: 100%;
102         padding: 10px;
103         text-align: left;
104         border-color: GhostWhite;
105         background-color: GhostWhite;
106         color: #000000;
107         font-size: 1vw;
108 }
109
110 .ctdl-sidebar-class button:hover {
111         background-color: White;
112 }
113
114 .ctdl-grid-banner-item button {
115         background-color: #888888;
116         color: #FFFFFF;
117 }
118
119 .ctdl-forum-reading-pane {
120         background-color: DarkSlateGrey;        /* Background behind the message boxes */
121 }
122
123 .ctdl-fmsg-wrapper {                            /* message wrapper for forum view */
124         overflow: hidden;
125         border-radius: 10px;
126         background-color: White;
127         margin: 1vw;
128         padding: 5px;                           /* inside the box */
129 }
130
131 .ctdl-mmsg-wrapper {                            /* message wrapper for mailbox view */
132         overflow: hidden;
133         background-color: White;
134         padding: 5px;                           /* inside the box */
135 }
136
137 .ctdl-msg-reply {
138         margin-left: 5vw;
139 }
140
141 .ctdl-msg-header {
142         overflow: hidden;
143         padding: 4px;
144         min-height: 35px;
145         background-color: GhostWhite;
146         margin-bottom: 10px;                    /* this is the vertical space between the header and the message text */
147 }
148
149 .ctdl-msg-header-info {
150         float: left;
151 }
152
153 .ctdl-msg-header-buttons {
154         float: right;
155 }
156
157 .ctdl-msg-button {
158         margin-left: 2px;
159         border-radius: 5px;
160         background-color: Blue;
161         color: Black;
162         padding: 2px;
163         background-color: GhostWhite;
164         border-style: solid;
165         border-width: thin;
166         border-color: Black;
167 }
168
169 .ctdl-msg-button a {
170         color: Black;
171 }
172
173 .ctdl-msg-button:hover {
174         background-color: #123456;
175         color: GhostWhite;
176         transition: .3s;
177         border-color: #123456;
178 }
179
180 .ctdl-msg-button a:hover {
181         color: White;
182 }
183
184
185 .ctdl-msg-button a {
186         text-decoration: none;
187 }
188
189 .ctdl-avatar {
190         width: 32px;
191 }
192
193 .ctdl-avatar img {
194         clip-path: circle(50%);
195 }
196
197 .ctdl-username {
198         font-weight: bold;
199         color: #000055;
200 }
201
202 .ctdl-username a {
203         text-decoration: none;
204         padding-right: 4px;
205 }
206
207 .ctdl-msgdate {
208         padding-left: 4px;
209 }
210
211 .ctdl-msgsubject {
212         font-weight: bold;
213 }
214
215 .ctdl-fmsg-content {                            /* message text, when in forum view */
216         margin-left: 32px;
217 }
218
219 .ctdl-mmsg-content {                            /* message text, when in mailbox view */
220         margin-left: 0;
221 }
222
223 .ctdl-avatar {
224         float: left;
225         padding-right: 2px;
226 }
227
228 .ctdl-forum-nav {
229         text-align: center;
230         color: #ffff00;
231 }
232
233 .ctdl-forum-nav a {
234         text-decoration: none;
235 }
236
237 blockquote {
238         background-color: #f5f5f5 !important;
239         color: Navy !important;
240         margin-bottom: 0px;
241         padding-bottom: 0px;
242 }
243
244 blockquote blockquote {
245         background-color: #ebebeb !important;
246         color: Maroon !important;
247 }
248
249 blockquote blockquote blockquote {
250         background-color: #e1e1e1 !important;
251         color: Green !important;
252 }
253
254 blockquote blockquote blockquote blockquote {
255         background-color: #d7d7d7 !important;
256         color: Purple !important;
257 }
258
259 blockquote blockquote blockquote blockquote blockquote {
260         background-color: #cdcdcd !important;
261         color: Teal !important;
262 }
263
264 blockquote pre {
265         margin-left: 1%;
266         margin-right: 1%;
267 }
268
269 .ctdl-forum-urlmodal {
270         width: 75%;
271 }
272
273 .ctdl-roomlist-top {
274         background-color: GhostWhite;
275         width: 100%;
276         height: 100%;
277         overflow: auto;
278         border: none;
279 }
280
281 .ctdl-roomlist-floor {
282 }
283
284 .ctdl-roomlist-floor-label {
285         font-size: x-large;
286         margin: 1vw;
287         margin-bottom: 0;
288 }
289
290 .ctdl-roomlist-floor-rooms {
291 }
292
293 .ctdl-roomlist-room {
294         display: flex;
295         flex-direction: row;
296         flex-wrap: nowrap;
297         justify-content: space-around;
298         align-items: stretch;
299         overflow: hidden;
300         border-radius: 10px;
301         border-style: outset;
302         background-color: White;
303         padding: 0.5vw;
304         margin-top: 0;
305         margin-bottom: 0.25vw;
306         margin-left: 1vw;
307         margin-right: 1vw;
308 }
309
310 .ctdl-roomlist-roomicon {
311         overflow: hidden;
312         font-size: large;
313         margin-left: 1vw;
314         margin-right: 1vw;
315         padding-left: 0.75vw;
316         padding-right: 1.75vw;
317         padding-top: 0.75vw;
318         padding-bottom: 0.75vw;
319 }
320
321 .ctdl-roomlist-roomname {
322         font-size: large;
323 }
324
325 .ctdl-roomlist-roomname-hasnewmsgs {
326         font-weight: bold;
327 }
328
329 .ctdl-roomlist-mtime {
330 }
331
332 .ctdl-mailbox-grid-container {
333         display: grid;
334         position: relative;
335         overflow: hidden;
336         width: 100%;
337         height: 100%;
338         background-color: GhostWhite;
339 }
340
341 .ctdl-mailbox-pane {                            /* list of messages when in mailbox view */
342         height: 15vw;
343         overflow-x: hidden;
344         overflow-y: scroll;
345         background-color: #DDDDDD;
346         border-bottom: solid 3px SlateGrey;     /* We can probably turn this into a drag handle */
347 }
348
349 .ctdl-mailbox-table {
350         width: 100%;
351         background-color: GhostWhite;
352         border-collapse: collapse;
353 }
354
355 .ctdl-mailbox-table td {
356         padding: 5px;
357 }
358
359 .ctdl-mailbox-table tr {
360         cursor: pointer;
361 }
362
363 .ctdl-mailbox-table tr:nth-child(even) {        /* this gives us the alternating-bar effect */
364         background-color: Gainsboro;
365 }
366
367 .ctdl-mailbox-table tr:hover {
368         background-color: Blue;
369         color: White;
370 }
371
372 .ctdl-mailbox-table th {
373         position: sticky;
374         top: 0;
375         z-index: 6;
376         background-color: SlateGrey;
377         color: White;
378         padding-top: 5px;
379         padding-bottom: 5px;
380 }
381
382 .ctdl-mailbox-table th:hover {                  /* Suppress highlighting the header bar */
383         background-color: SlateGrey;
384         color: White;
385         cursor: default;
386 }
387
388 .ctdl-mail-subject {                            /* Subject column in mailbox message list */
389 }
390
391 .ctdl-mail-sender {                             /* Sender column in mailbox message list */
392 }
393
394 .ctdl-mail-date {                               /* Date column in mailbox message list */
395         white-space: nowrap;
396 }
397
398 .ctdl-mail-msgnum {                             /* # column in mailbox message list */
399         white-space: nowrap;
400 }
401
402 .ctdl-mailbox-reading-pane {                    /* message reading pane when in mailbox view */
403         overflow: auto;
404         background-color: GhostWhite;
405         padding: 5px;
406         overflow: auto;
407         border: none;
408 }
409
410 .ctdl-compose-mail {                            /* mail composition window */
411         width: 100%;
412         height: 100%;
413         overflow: auto;
414         border: 2px dashed red;                 /* FIXME this goes away after testing */
415 }
416
417 .ctdl-login-screen-grid-container {
418         display: grid;
419         grid-template-columns: auto auto;
420 }
421
422 .ctdl-login-screen-grid-item {
423         padding: 20px;
424         font-size: 1.25em;
425         vertical-align: middle;
426 }
427
428 .ctdl-login-screen-grid-item input {
429         height: 100%;
430         border: none;
431         font-size: 1.25em;
432 }