]> code.citadel.org Git - citadel.git/blob - webcit-ng/static/css/webcit.css
Render user pic as a circle using clip-path() CSS
[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         overflow: hidden;
295         border-radius: 10px;
296         border-style: outset;
297         background-color: White;
298         padding: 0.5vw;
299         margin-top: 0;
300         margin-bottom: 0.25vw;
301         margin-left: 1vw;
302         margin-right: 1vw;
303 }
304
305 .ctdl-roomlist-roomicon {
306         overflow: hidden;
307         font-size: large;
308         margin-left: 1vw;
309         margin-right: 1vw;
310         padding-left: 0.75vw;
311         padding-right: 1.75vw;
312         padding-top: 0.75vw;
313         padding-bottom: 0.75vw;
314 }
315
316 .ctdl-roomlist-roomname {
317         font-size: large;
318 }
319
320 .ctdl-roomlist-roomname-hasnewmsgs {
321         font-weight: bold;
322 }
323
324 .ctdl-roomlist-mtime {
325 }
326
327 .ctdl-mailbox-grid-container {
328         display: grid;
329         position: relative;
330         overflow: hidden;
331         width: 100%;
332         height: 100%;
333         background-color: GhostWhite;
334 }
335
336 .ctdl-mailbox-pane {                            /* list of messages when in mailbox view */
337         height: 15vw;
338         overflow-x: hidden;
339         overflow-y: scroll;
340         background-color: #DDDDDD;
341         border-bottom: solid 3px SlateGrey;     /* We can probably turn this into a drag handle */
342 }
343
344 .ctdl-mailbox-table {
345         width: 100%;
346         background-color: GhostWhite;
347         border-collapse: collapse;
348 }
349
350 .ctdl-mailbox-table td {
351         padding: 5px;
352 }
353
354 .ctdl-mailbox-table tr {
355         cursor: pointer;
356 }
357
358 .ctdl-mailbox-table tr:nth-child(even) {        /* this gives us the alternating-bar effect */
359         background-color: Gainsboro;
360 }
361
362 .ctdl-mailbox-table tr:hover {
363         background-color: Blue;
364         color: White;
365 }
366
367 .ctdl-mailbox-table th {
368         position: sticky;
369         top: 0;
370         z-index: 6;
371         background-color: SlateGrey;
372         color: White;
373         padding-top: 5px;
374         padding-bottom: 5px;
375 }
376
377 .ctdl-mailbox-table th:hover {                  /* Suppress highlighting the header bar */
378         background-color: SlateGrey;
379         color: White;
380         cursor: default;
381 }
382
383 .ctdl-mail-subject {                            /* Subject column in mailbox message list */
384 }
385
386 .ctdl-mail-sender {                             /* Sender column in mailbox message list */
387 }
388
389 .ctdl-mail-date {                               /* Date column in mailbox message list */
390         white-space: nowrap;
391 }
392
393 .ctdl-mail-msgnum {                             /* # column in mailbox message list */
394         white-space: nowrap;
395 }
396
397 .ctdl-mailbox-reading-pane {                    /* message reading pane when in mailbox view */
398         overflow: auto;
399         background-color: GhostWhite;
400         padding: 5px;
401         overflow: auto;
402         border: none;
403 }
404
405 .ctdl-compose-mail {                            /* mail composition window */
406         width: 100%;
407         height: 100%;
408         overflow: auto;
409         border: 2px dashed red;                 /* FIXME this goes away after testing */
410 }
411
412 .ctdl-login-screen-grid-container {
413         display: grid;
414         grid-template-columns: auto auto;
415 }
416
417 .ctdl-login-screen-grid-item {
418         padding: 20px;
419         font-size: 1.25em;
420         vertical-align: middle;
421 }
422
423 .ctdl-login-screen-grid-item input {
424         height: 100%;
425         border: none;
426         font-size: 1.25em;
427 }