]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/static/css/webcit.css
Make the font sizes less cartoonish at extreme viewport sizes
[citadel.git] / webcit-ng / static / css / webcit.css
index aa9ef894af6475bfee6b183db1696c7f653cc7a2..0470c8b26915659a24af220f59cbc4efe28050a4 100644 (file)
@@ -21,9 +21,9 @@
        grid-template-areas:
                'ctdl-mg-banner ctdl-mg-banner'
                'ctdl-mg-menu ctdl-mg-main';
-       gap: 3px;
-       background-color: DarkSlateGrey;        /* This is the color of the lines between the boxes, and also the boxes themselves if not overridden */
-       padding: 0;                             /* This is the border around the edges of the screen */
+       gap: 1px;                               /* This is the thickness of the lines between the boxes */
+       background-color: DarkSlateGrey;        /* This is the color of the lines between the boxes */
+       padding: 0;                             /* This is the border around the edges of the screen (0 for no border) */
        width: 100vw;
        height: 100vh;
 }
@@ -42,6 +42,7 @@
        grid-area: ctdl-mg-main;
        overflow-x: hidden;
        overflow-y: auto;
+       background-color: GhostWhite;
 }
 
 .ctdl-main-grid-container > div {
@@ -86,7 +87,8 @@
        display: block;
        background-color: DarkSlateGrey;
        color: White;
-       font-size: 1.7vh;
+       /* font-size: 1.7vh; */
+       font-size: calc(50% + 0.6vw);
        border: none;
        padding: 1vh;
 }
@@ -152,7 +154,7 @@ html,body,h1,h2,h3,h4,h5 {
        border: 1px solid GhostWhite;
        background-color: GhostWhite;
        color: Black;
-       font-size: 1.5vh;
+       font-size: calc(50% + 0.7vh);
        border-radius: 5px;
 }
 
@@ -171,7 +173,7 @@ html,body,h1,h2,h3,h4,h5 {
 }
 
 .ctdl-forum-reading-pane {
-       background-color: White;        /* Background behind the message boxes */
+       background-color: White;                /* Background behind the message boxes */
 }
 
 .ctdl-fmsg-wrapper {                           /* message wrapper for forum view */
@@ -278,11 +280,17 @@ html,body,h1,h2,h3,h4,h5 {
 }
 
 .ctdl_mail_folders li {
-       color: DarkSlateGrey;
+       color: Black;
+       padding-left: 10px;
 }
 
 .ctdl_mail_folders li:hover {
-       color: Black;
+       color: DarkSlateGrey;
+}
+
+.ctdl_mail_folder_droppable {
+       background-color: LightGrey;
+       font-weight: bold;
 }
 
 .ctdl-avatar {
@@ -355,6 +363,19 @@ blockquote pre {
        width: 75%;
 }
 
+/* use this class for any small item that needs to be centered on the screen in the main div */
+.ctdl-middle {
+       display: flex;
+       flex-direction: column;
+       justify-content: center;
+       align-items: center;
+       text-align: center;
+       min-height: 100vh;
+       background-color: GhostWhite;
+       overflow: none;
+       border: none;
+}
+
 .ctdl-roomlist-top {
        background-color: GhostWhite;
        width: 100%;
@@ -617,6 +638,39 @@ blockquote pre {
        overflow: hidden;
 }
 
+.ctdl-upload {
+       display: none;                          /* set to 'block' to make it appear when needed */
+       width: 95%;
+       height: 95%;
+       border: 2px dashed #ccc;
+       border-radius: 20px;
+       border-color: Black;
+       justify-content: center;
+       align-items: center;
+       padding: 1em;
+       background-color: GhostWhite;
+}
+
+.ctdl-upload.highlight {
+       border-color: Blue;
+}
+
+.ctdl-compose-attachments-title {
+       padding: 1em;
+       background: Gainsboro;
+       display: flex;
+       flex-wrap: nowrap;
+       flex-direction: row;
+       justify-content: space-between;
+       align-items: auto;
+       align-content: start
+}
+
+.ctdl-upload-form {
+       text-align: center;
+       margin-bottom: 10px;
+}
+
 .ctdl-login-screen-grid-container {
        display: grid;
        grid-template-columns: auto auto;