]> code.citadel.org Git - citadel.git/blob - webcit-ng/static/css/webcit.css
Fixed the rendering on the 'older posts' and 'newer posts' buttons. No longer relies...
[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: Black;
238         background-color: Gainsboro;
239         padding-top: 5px;
240         padding-bottom: 5px;
241 }
242
243 .ctdl-forum-nav a {
244         text-decoration: none;
245 }
246
247 blockquote {
248         background-color: #f5f5f5 !important;
249         color: Navy !important;
250         margin-bottom: 0px;
251         padding-bottom: 0px;
252 }
253
254 blockquote blockquote {
255         background-color: #ebebeb !important;
256         color: Maroon !important;
257 }
258
259 blockquote blockquote blockquote {
260         background-color: #e1e1e1 !important;
261         color: Green !important;
262 }
263
264 blockquote blockquote blockquote blockquote {
265         background-color: #d7d7d7 !important;
266         color: Purple !important;
267 }
268
269 blockquote blockquote blockquote blockquote blockquote {
270         background-color: #cdcdcd !important;
271         color: Teal !important;
272 }
273
274 blockquote pre {
275         margin-left: 1%;
276         margin-right: 1%;
277 }
278
279 .ctdl-forum-urlmodal {
280         width: 75%;
281 }
282
283 .ctdl-roomlist-top {
284         background-color: GhostWhite;
285         width: 100%;
286         height: 100%;
287         overflow: auto;
288         border: none;
289 }
290
291 .ctdl-roomlist-floor {
292 }
293
294 .ctdl-roomlist-floor-label {
295         font-size: x-large;
296         margin: 1vw;
297         margin-bottom: 0;
298 }
299
300 .ctdl-roomlist-floor-rooms {
301 }
302
303 .ctdl-roomlist-room {
304         display: flex;
305         flex-direction: row;
306         flex-wrap: nowrap;
307         justify-content: space-around;
308         align-items: center;
309         overflow: hidden;
310         border-radius: 10px;
311         border-style: outset;
312         background-color: White;
313         padding: 0.3vw;
314         margin-top: 0;
315         margin-bottom: 0.25vw;
316         margin-left: 1vw;
317         margin-right: 1vw;
318 }
319
320 .ctdl-roomlist-roomicon {
321         overflow: hidden;
322         font-size: large;
323         margin-right: auto;
324 }
325
326 .ctdl-roomlist-roomname {
327         font-size: large;
328         margin-right: auto;
329         padding-left: 1vw;
330         padding-right: 1vw;
331 }
332
333 .ctdl-roomlist-roomname-hasnewmsgs {
334         font-weight: bold;
335         margin-right: auto;
336 }
337
338 .ctdl-roomlist-mtime {
339         margin-left: auto;
340 }
341
342 .ctdl-mailbox-grid-container {
343         display: grid;
344         position: relative;
345         overflow: hidden;
346         width: 100%;
347         height: 100%;
348         background-color: GhostWhite;
349 }
350
351 .ctdl-mailbox-pane {                            /* list of messages when in mailbox view */
352         height: 15vw;
353         overflow-x: hidden;
354         overflow-y: scroll;
355         background-color: #DDDDDD;
356         border-bottom: solid 3px SlateGrey;     /* We can probably turn this into a drag handle */
357 }
358
359 .ctdl-mailbox-table {
360         width: 100%;
361         background-color: GhostWhite;
362         border-collapse: collapse;
363 }
364
365 .ctdl-mailbox-table td {
366         padding: 5px;
367 }
368
369 .ctdl-mailbox-table tr {
370         cursor: pointer;
371 }
372
373 .ctdl-mailbox-table tr:nth-child(even) {        /* this gives us the alternating-bar effect */
374         background-color: Gainsboro;
375 }
376
377 .ctdl-mailbox-table tr:hover {
378         background-color: Blue;
379         color: White;
380 }
381
382 .ctdl-mailbox-table th {
383         position: sticky;
384         top: 0;
385         z-index: 6;
386         background-color: SlateGrey;
387         color: White;
388         padding-top: 5px;
389         padding-bottom: 5px;
390 }
391
392 .ctdl-mailbox-table th:hover {                  /* Suppress highlighting the header bar */
393         background-color: SlateGrey;
394         color: White;
395         cursor: default;
396 }
397
398 .ctdl-mail-subject {                            /* Subject column in mailbox message list */
399 }
400
401 .ctdl-mail-sender {                             /* Sender column in mailbox message list */
402 }
403
404 .ctdl-mail-date {                               /* Date column in mailbox message list */
405         white-space: nowrap;
406 }
407
408 .ctdl-mail-msgnum {                             /* # column in mailbox message list */
409         white-space: nowrap;
410 }
411
412 .ctdl-mailbox-reading-pane {                    /* message reading pane when in mailbox view */
413         overflow: auto;
414         background-color: GhostWhite;
415         padding: 5px;
416         overflow: auto;
417         border: none;
418 }
419
420 .ctdl-compose-mail {                            /* mail composition window */
421         width: 100%;
422         height: 100%;
423         overflow: auto;
424         border: 2px dashed red;                 /* FIXME this goes away after testing */
425 }
426
427 .ctdl-login-screen-grid-container {
428         display: grid;
429         grid-template-columns: auto auto;
430 }
431
432 .ctdl-login-screen-grid-item {
433         padding: 20px;
434         font-size: 1.25em;
435         vertical-align: middle;
436 }
437
438 .ctdl-login-screen-grid-item input {
439         height: 100%;
440         border: none;
441         font-size: 1.25em;
442 }