[UI] Post form new structure first styling implementation

This commit is contained in:
rainydaysavings 2020-08-26 07:58:29 +01:00 committed by Hugo Sales
parent 8a5cadf8d2
commit 9fcd18f751
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
3 changed files with 154 additions and 100 deletions

View File

@ -46,6 +46,10 @@
list-style-type: none; list-style-type: none;
font-weight: 700; font-weight: 700;
} }
.notes-wrap .main-nav ul {
font-size: var(--unit-size);
}
.active { .active {
color: var(--fg) !important; color: var(--fg) !important;
font-weight: 700; font-weight: 700;
@ -110,6 +114,9 @@
flex-shrink: 0; flex-shrink: 0;
width: 100%; width: 100%;
} }
.notice-info b {
margin-left: var(--small-size);
}
.notice-info a img { .notice-info a img {
width: calc(2 * var(--unit-size)); width: calc(2 * var(--unit-size));
height: auto; height: auto;
@ -119,44 +126,57 @@
padding: var(--small-size); padding: var(--small-size);
border-radius: 0 0 var(--small-size) var(--small-size); border-radius: 0 0 var(--small-size) var(--small-size);
} }
/* posting form */
.note-post { /* POSTING */
width: calc(100% - (6 * var(--unit-size))); .content > form {
border: solid 2px var(--accent-low); display: flex;
border-radius: var(--small-size); flex: max-content;
} }
#form { .create-notice {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} flex: max-content;
#form div { margin-left: 4%;
flex-grow: 1; margin-right: 4%;
flex-shrink: 0; border-radius: var(--small-size);
width: 100%; border: solid 2px var(--accent-low);
} background-color: var(--bg3);
#form div:nth-of-type(2) { padding: 2%;
display: flex;
justify-content: right;
} }
textarea#form_content { .scope {
background-color: var(--bg3); order: 1;
border-radius: var(--small-size) var(--small-size) 0 0;
color: var(--fg);
height: calc(8 * var(--unit-size));
width: 100%; width: 100%;
box-sizing: border-box; display: flex;
padding: var(--unit-size); flex-wrap: wrap;
word-wrap: break-word;
resize: vertical;
font-size: var(--unit-size);
}
button#form_send {
color: var(--fg); color: var(--fg);
font-size: var(--small-size); font-size: var(--medium-size);
background-color: var(--bg1); }
padding: var(--small-size) var(--main-size) var(--small-size) var(--main-size); .scope .required {
border: solid 2px var(--accent-low); order: 1;
border-radius: var(--main-size); width: 100%;
margin: var(--small-size); flex-grow: 1;
flex-shrink: 0;
font-weight: 800;
margin: 0;
padding: 0;
}
.scope #form_scope {
order: 2;
width: 100%;
flex-grow: 1;
flex-shrink: 0;
color: var(--fg);
border: none;
vertical-align: center;
overflow-x: hidden;
}
.scope #form_scope label {
margin-right: var(--small-size);
margin-left: 0.2em;
}
.notice-input {
order: 2;
width: 80%;
} }

View File

@ -26,7 +26,6 @@
flex: 1; flex: 1;
background-color: var(--bg1); background-color: var(--bg1);
padding: var(--medium-size); padding: var(--medium-size);
font-size: var(--medium-size);
font-family: var(--head-font); font-family: var(--head-font);
border-radius: var(--small-size) var(--small-size) 0 0; border-radius: var(--small-size) var(--small-size) 0 0;
} }
@ -36,6 +35,7 @@
align-items: stretch; align-items: stretch;
justify-content: space-evenly; justify-content: space-evenly;
width: 100%; width: 100%;
font-size: var(--medium-size);
margin-left: 1%; margin-left: 1%;
margin-right: 1%; margin-right: 1%;
padding: 0; padding: 0;
@ -46,6 +46,10 @@
list-style-type: none; list-style-type: none;
font-weight: 700; font-weight: 700;
} }
.notes-wrap .main-nav ul {
font-size: var(--unit-size);
}
.active { .active {
color: var(--fg) !important; color: var(--fg) !important;
font-weight: 700; font-weight: 700;
@ -119,44 +123,57 @@
padding: var(--small-size); padding: var(--small-size);
border-radius: 0 0 var(--small-size) var(--small-size); border-radius: 0 0 var(--small-size) var(--small-size);
} }
/* posting form */
.note-post { /* POSTING */
width: calc(100% - (6 * var(--unit-size))); .content > form {
border: solid 2px var(--accent-low); display: flex;
border-radius: var(--small-size); flex: max-content;
} }
#form { .create-notice {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} flex: max-content;
#form div { margin-left: 4%;
flex-grow: 1; margin-right: 4%;
flex-shrink: 0;
width: 100%;
}
#form div:nth-of-type(2) {
display: flex;
justify-content: right;
} }
textarea#form_content { .scope {
order: 1;
width: 20%;
display: flex;
flex-wrap: wrap;
color: var(--fg);
font-size: var(--medium-size);
border-radius: var(--small-size);
background-color: var(--bg3); background-color: var(--bg3);
border-radius: var(--small-size) var(--small-size) 0 0; padding: 2%;
color: var(--fg); }
height: calc(8 * var(--unit-size)); .scope .required {
order: 1;
width: 100%; width: 100%;
box-sizing: border-box; flex-grow: 1;
padding: var(--unit-size); flex-shrink: 0;
word-wrap: break-word; font-weight: 800;
resize: vertical; margin: 0;
font-size: var(--unit-size); padding: 0;
} }
button#form_send { .scope #form_scope {
order: 2;
width: 100%;
flex-grow: 1;
flex-shrink: 0;
border-radius: var(--small-size);
background-color: var(--bg3);
box-shadow: var(--shadow);
color: var(--fg); color: var(--fg);
font-size: var(--small-size); border: none;
background-color: var(--bg1); }
padding: var(--small-size) var(--main-size) var(--small-size) var(--main-size); .scope #form_scope label {
border: solid 2px var(--accent-low); width: 100%;
border-radius: var(--main-size);
margin: var(--small-size); }
.notice-input {
order: 2;
width: 80%;
} }

View File

@ -4,8 +4,8 @@
margin-top: calc(4 * var(--main-size)); margin-top: calc(4 * var(--main-size));
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin-left: 1%; margin-left: 0;
margin-right: 1%; margin-right: 0;
margin-bottom: var(--unit-size); margin-bottom: var(--unit-size);
} }
.content .main { .content .main {
@ -26,7 +26,6 @@
flex: 1; flex: 1;
background-color: var(--bg1); background-color: var(--bg1);
padding: var(--medium-size); padding: var(--medium-size);
font-size: var(--medium-size);
font-family: var(--head-font); font-family: var(--head-font);
border-radius: var(--small-size) var(--small-size) 0 0; border-radius: var(--small-size) var(--small-size) 0 0;
} }
@ -36,6 +35,7 @@
align-items: stretch; align-items: stretch;
justify-content: space-evenly; justify-content: space-evenly;
width: 100%; width: 100%;
font-size: var(--medium-size);
margin-left: 1%; margin-left: 1%;
margin-right: 1%; margin-right: 1%;
padding: 0; padding: 0;
@ -46,6 +46,10 @@
list-style-type: none; list-style-type: none;
font-weight: 700; font-weight: 700;
} }
.notes-wrap .main-nav ul {
font-size: var(--unit-size);
}
.active { .active {
color: var(--fg) !important; color: var(--fg) !important;
font-weight: 700; font-weight: 700;
@ -119,44 +123,57 @@
padding: var(--small-size); padding: var(--small-size);
border-radius: 0 0 var(--small-size) var(--small-size); border-radius: 0 0 var(--small-size) var(--small-size);
} }
/* posting form */
.note-post { /* POSTING */
width: calc(100% - (2 * var(--unit-size))); .content > form {
border: solid 2px var(--accent-low); display: flex;
border-radius: var(--small-size); flex: max-content;
} }
#form { .create-notice {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} flex: max-content;
#form div { margin-left: 4%;
flex-grow: 1; margin-right: 4%;
flex-shrink: 0;
width: 100%;
}
#form div:nth-of-type(2) {
display: flex;
justify-content: right;
} }
textarea#form_content { .scope {
order: 1;
width: 20%;
display: flex;
flex-wrap: wrap;
color: var(--fg);
font-size: var(--medium-size);
border-radius: var(--small-size);
background-color: var(--bg3); background-color: var(--bg3);
border-radius: var(--small-size) var(--small-size) 0 0; padding: 2%;
color: var(--fg); }
height: calc(8 * var(--unit-size)); .scope .required {
order: 1;
width: 100%; width: 100%;
box-sizing: border-box; flex-grow: 1;
padding: var(--unit-size); flex-shrink: 0;
word-wrap: break-word; font-weight: 800;
resize: vertical; margin: 0;
font-size: var(--unit-size); padding: 0;
} }
button#form_send { .scope #form_scope {
order: 2;
width: 100%;
flex-grow: 1;
flex-shrink: 0;
border-radius: var(--small-size);
background-color: var(--bg3);
box-shadow: var(--shadow);
color: var(--fg); color: var(--fg);
font-size: var(--small-size); border: none;
background-color: var(--bg1); }
padding: var(--small-size) var(--main-size) var(--small-size) var(--main-size); .scope #form_scope label {
border: solid 2px var(--accent-low); width: 100%;
border-radius: var(--main-size);
margin: var(--small-size); }
.notice-input {
order: 2;
width: 80%;
} }