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