]> code.citadel.org Git - citadel.git/blob - webcit-ng/static/css/webcit.css
Tightened up the padding around the room list and rendered it with the flexbox model...
[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-button {
101         width: 100%;
102         padding: 10px;
103         text-align: left;
104         border-color: GhostWhite;
105         background-color: Gainsboro;
106         color: #000000;
107         font-size: 1vw;
108 }
109
110 .ctdl-sidebar-button:hover {
111         background-color: Blue;
112         color: White;
113 }
114
115 .ctdl-sidebar-button-selected {
116         font-weight: bold;
117         color: White;
118         background-color: SlateGrey;
119 }
120
121 .ctdl-grid-banner-item button {
122         background-color: #888888;
123         color: #FFFFFF;
124 }
125
126 .ctdl-forum-reading-pane {
127         background-color: DarkSlateGrey;        /* Background behind the message boxes */
128 }
129
130 .ctdl-fmsg-wrapper {                            /* message wrapper for forum view */
131         overflow: hidden;
132         border-radius: 10px;
133         background-color: White;
134         margin: 1vw;
135         padding: 5px;                           /* inside the box */
136 }
137
138 .ctdl-mmsg-wrapper {                            /* message wrapper for mailbox view */
139         overflow: hidden;
140         background-color: White;
141         padding: 5px;                           /* inside the box */
142 }
143
144 .ctdl-msg-reply {
145         margin-left: 5vw;
146 }
147
148 .ctdl-msg-header {
149         overflow: hidden;
150         padding: 4px;
151         min-height: 35px;
152         background-color: GhostWhite;
153         margin-bottom: 10px;                    /* this is the vertical space between the header and the message text */
154 }
155
156 .ctdl-msg-header-info {
157         float: left;
158 }
159
160 .ctdl-msg-header-buttons {
161         float: right;
162 }
163
164 .ctdl-msg-button {
165         margin-left: 2px;
166         border-radius: 5px;
167         background-color: Blue;
168         color: Black;
169         padding: 2px;
170         background-color: GhostWhite;
171         border-style: solid;
172         border-width: thin;
173         border-color: Black;
174 }
175
176 .ctdl-msg-button a {
177         color: Black;
178 }
179
180 .ctdl-msg-button:hover {
181         background-color: #123456;
182         color: GhostWhite;
183         transition: .3s;
184         border-color: #123456;
185 }
186
187 .ctdl-msg-button a:hover {
188         color: White;
189 }
190
191
192 .ctdl-msg-button a {
193         text-decoration: none;
194 }
195
196 .ctdl-avatar {
197         width: 32px;
198 }
199
200 .ctdl-avatar img {
201         clip-path: circle(50%);
202 }
203
204 .ctdl-username {
205         font-weight: bold;
206         color: #000055;
207 }
208
209 .ctdl-username a {
210         text-decoration: none;
211         padding-right: 4px;
212 }
213
214 .ctdl-msgdate {
215         padding-left: 4px;
216 }
217
218 .ctdl-msgsubject {
219         font-weight: bold;
220 }
221
222 .ctdl-fmsg-content {                            /* message text, when in forum view */
223         margin-left: 32px;
224 }
225
226 .ctdl-mmsg-content {                            /* message text, when in mailbox view */
227         margin-left: 0;
228 }
229
230 .ctdl-avatar {
231         float: left;
232         padding-right: 2px;
233 }
234
235 .ctdl-forum-nav {
236         text-align: center;
237         color: #ffff00;
238 }
239
240 .ctdl-forum-nav a {
241         text-decoration: none;
242 }
243
244 blockquote {
245         background-color: #f5f5f5 !important;
246         color: Navy !important;
247         margin-bottom: 0px;
248         padding-bottom: 0px;
249 }
250
251 blockquote blockquote {
252         background-color: #ebebeb !important;
253         color: Maroon !important;
254 }
255
256 blockquote blockquote blockquote {
257         background-color: #e1e1e1 !important;
258         color: Green !important;
259 }
260
261 blockquote blockquote blockquote blockquote {
262         background-color: #d7d7d7 !important;
263         color: Purple !important;
264 }
265
266 blockquote blockquote blockquote blockquote blockquote {
267         background-color: #cdcdcd !important;
268         color: Teal !important;
269 }
270
271 blockquote pre {
272         margin-left: 1%;
273         margin-right: 1%;
274 }
275
276 .ctdl-forum-urlmodal {
277         width: 75%;
278 }
279
280 .ctdl-roomlist-top {
281         background-color: GhostWhite;
282         width: 100%;
283         height: 100%;
284         overflow: auto;
285         border: none;
286 }
287
288 .ctdl-roomlist-floor {
289 }
290
291 .ctdl-roomlist-floor-label {
292         font-size: x-large;
293         margin: 1vw;
294         margin-bottom: 0;
295 }
296
297 .ctdl-roomlist-floor-rooms {
298 }
299
300 .ctdl-roomlist-room {
301         display: flex;
302         flex-direction: row;
303         flex-wrap: nowrap;
304         justify-content: space-around;
305         align-items: center;
306         overflow: hidden;
307         border-radius: 10px;
308         border-style: outset;
309         background-color: White;
310         padding: 0.3vw;
311         margin-top: 0;
312         margin-bottom: 0.25vw;
313         margin-left: 1vw;
314         margin-right: 1vw;
315 }
316
317 .ctdl-roomlist-roomicon {
318         overflow: hidden;
319         font-size: large;
320         margin-right: auto;
321 }
322
323 .ctdl-roomlist-roomname {
324         font-size: large;
325         margin-right: auto;
326         padding-left: 1vw;
327         padding-right: 1vw;
328 }
329
330 .ctdl-roomlist-roomname-hasnewmsgs {
331         font-weight: bold;
332         margin-right: auto;
333 }
334
335 .ctdl-roomlist-mtime {
336         margin-left: auto;
337 }
338
339 .ctdl-mailbox-grid-container {
340         display: grid;
341         position: relative;
342         overflow: hidden;
343         width: 100%;
344         height: 100%;
345         background-color: GhostWhite;
346 }
347
348 .ctdl-mailbox-pane {                            /* list of messages when in mailbox view */
349         height: 15vw;
350         overflow-x: hidden;
351         overflow-y: scroll;
352         background-color: #DDDDDD;
353         border-bottom: solid 3px SlateGrey;     /* We can probably turn this into a drag handle */
354 }
355
356 .ctdl-mailbox-table {
357         width: 100%;
358         background-color: GhostWhite;
359         border-collapse: collapse;
360 }
361
362 .ctdl-mailbox-table td {
363         padding: 5px;
364 }
365
366 .ctdl-mailbox-table tr {
367         cursor: pointer;
368 }
369
370 .ctdl-mailbox-table tr:nth-child(even) {        /* this gives us the alternating-bar effect */
371         background-color: Gainsboro;
372 }
373
374 .ctdl-mailbox-table tr:hover {
375         background-color: Blue;
376         color: White;
377 }
378
379 .ctdl-mailbox-table th {
380         position: sticky;
381         top: 0;
382         z-index: 6;
383         background-color: SlateGrey;
384         color: White;
385         padding-top: 5px;
386         padding-bottom: 5px;
387 }
388
389 .ctdl-mailbox-table th:hover {                  /* Suppress highlighting the header bar */
390         background-color: SlateGrey;
391         color: White;
392         cursor: default;
393 }
394
395 .ctdl-mail-subject {                            /* Subject column in mailbox message list */
396 }
397
398 .ctdl-mail-sender {                             /* Sender column in mailbox message list */
399 }
400
401 .ctdl-mail-date {                               /* Date column in mailbox message list */
402         white-space: nowrap;
403 }
404
405 .ctdl-mail-msgnum {                             /* # column in mailbox message list */
406         white-space: nowrap;
407 }
408
409 .ctdl-mailbox-reading-pane {                    /* message reading pane when in mailbox view */
410         overflow: auto;
411         background-color: GhostWhite;
412         padding: 5px;
413         overflow: auto;
414         border: none;
415 }
416
417 .ctdl-compose-mail {                            /* mail composition window */
418         width: 100%;
419         height: 100%;
420         overflow: auto;
421         border: 2px dashed red;                 /* FIXME this goes away after testing */
422 }
423
424 .ctdl-login-screen-grid-container {
425         display: grid;
426         grid-template-columns: auto auto;
427 }
428
429 .ctdl-login-screen-grid-item {
430         padding: 20px;
431         font-size: 1.25em;
432         vertical-align: middle;
433 }
434
435 .ctdl-login-screen-grid-item input {
436         height: 100%;
437         border: none;
438         font-size: 1.25em;
439 }