[UI] Posting form re-styling

This commit is contained in:
rainydaysavings 2020-08-28 07:18:05 +01:00 committed by Hugo Sales
parent ecfda08d37
commit e812dba033
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
3 changed files with 164 additions and 38 deletions

View File

@ -141,7 +141,39 @@
border-radius: var(--small-size); border-radius: var(--small-size);
border: solid 2px var(--accent-low); border: solid 2px var(--accent-low);
background-color: var(--bg3); background-color: var(--bg3);
padding: 1%; }
.create-right {
order: 2;
width: 90%;
border-radius: 0 var(--small-size) var(--small-size) 0;
background-color: var(--bg3);
}
/* target multi-select */
.target {
order: 1;
width: 10%;
background-color: var(--bg1);
border-radius: var(--small-size) 0 0 var(--small-size);
font-size: var(--medium-size);
}
.target-top {
padding: var(--unit-size);
}
.target-bot {
padding-left: var(--unit-size);
padding-bottom: var(--unit-size);
}
.target .required {
font-weight: 800;
font-family: var(--head-font);
}
.target #form_to {
font-weight: 400;
font-family: var(--main-font);
}
.target #form_to label {
margin-left: 0.5em;
} }
/* scope options */ /* scope options */
@ -152,31 +184,41 @@
flex-wrap: wrap; flex-wrap: wrap;
color: var(--fg); color: var(--fg);
font-size: var(--medium-size); font-size: var(--medium-size);
background-color: var(--bg1);
border-radius: 0 var(--small-size) 0 0;
} }
.scope div { .scope div {
display: inline; display: inline;
vertical-align: middle; vertical-align: middle;
flex: 1; flex: 1;
color: var(--fg); color: var(--fg);
border-radius: var(--small-size); padding: var(--unit-size);
background-color: var(--bg2);
padding: 1%;
} }
.scope .required { .scope .required {
order: 1; order: 1;
font-weight: 800; font-weight: 800;
font-family: var(--head-font);
}
#form_visibility .required {
font-family: var(--main-font);
font-weight: 400;
margin-left: 0.2em;
margin-right: 0.5em;
} }
.scope #form_scope { .scope #form_scope {
order: 2; order: 2;
flex-grow: 1; flex-grow: 1;
flex-shrink: 1; flex-shrink: 1;
} }
.scope #form_scope label {
margin-right: var(--small-size);
margin-left: 0.2em;
}
/* input box */ /* input box */
.input-wrapper {
order: 2;
display: inline-flex;
justify-content: flex-start;
width: 100%;
box-sizing: border-box;
}
.content-input { .content-input {
order: 2; order: 2;
flex-grow: 1; flex-grow: 1;
@ -184,11 +226,10 @@
} }
#form_content { #form_content {
background-color: var(--bg2); background-color: var(--bg2);
padding: 1%; padding: var(--unit-size);
color: var(--fg); color: var(--fg);
font-size: var(--unit-size); font-size: var(--medium-size);
border-radius: var(--small-size); font-family: var(--main-font);
margin-top: 0.2em;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
height: calc(8 * var(--unit-size)); height: calc(8 * var(--unit-size));
@ -201,6 +242,7 @@
justify-content: flex-start; justify-content: flex-start;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 1%;
} }
.send { .send {
margin-left: auto; margin-left: auto;

View File

@ -138,7 +138,39 @@
border-radius: var(--small-size); border-radius: var(--small-size);
border: solid 2px var(--accent-low); border: solid 2px var(--accent-low);
background-color: var(--bg3); background-color: var(--bg3);
padding: 1%; }
.create-right {
order: 2;
width: 80%;
border-radius: 0 var(--small-size) var(--small-size) 0;
background-color: var(--bg3);
}
/* target multi-select */
.target {
order: 1;
width: 20%;
background-color: var(--bg1);
border-radius: var(--small-size) 0 0 var(--small-size);
font-size: var(--medium-size);
}
.target-top {
padding: var(--unit-size);
}
.target-bot {
padding-left: var(--unit-size);
padding-bottom: var(--unit-size);
}
.target .required {
font-weight: 800;
font-family: var(--head-font);
}
.target #form_to {
font-weight: 400;
font-family: var(--main-font);
}
.target #form_to label {
margin-left: 0.5em;
} }
/* scope options */ /* scope options */
@ -149,31 +181,41 @@
flex-wrap: wrap; flex-wrap: wrap;
color: var(--fg); color: var(--fg);
font-size: var(--medium-size); font-size: var(--medium-size);
background-color: var(--bg1);
border-radius: 0 var(--small-size) 0 0;
} }
.scope div { .scope div {
display: inline; display: inline;
vertical-align: middle; vertical-align: middle;
flex: 1; flex: 1;
color: var(--fg); color: var(--fg);
border-radius: var(--small-size); padding: var(--unit-size);
background-color: var(--bg2);
padding: 1%;
} }
.scope .required { .scope .required {
order: 1; order: 1;
font-weight: 800; font-weight: 800;
font-family: var(--head-font);
}
#form_visibility .required {
font-family: var(--main-font);
font-weight: 400;
margin-left: 0.2em;
margin-right: 0.5em;
} }
.scope #form_scope { .scope #form_scope {
order: 2; order: 2;
flex-grow: 1; flex-grow: 1;
flex-shrink: 1; flex-shrink: 1;
} }
.scope #form_scope label {
margin-right: var(--small-size);
margin-left: 0.2em;
}
/* input box */ /* input box */
.input-wrapper {
order: 2;
display: inline-flex;
justify-content: flex-start;
width: 100%;
box-sizing: border-box;
}
.content-input { .content-input {
order: 2; order: 2;
flex-grow: 1; flex-grow: 1;
@ -181,11 +223,10 @@
} }
#form_content { #form_content {
background-color: var(--bg2); background-color: var(--bg2);
padding: 1%; padding: var(--unit-size);
color: var(--fg); color: var(--fg);
font-size: var(--unit-size); font-size: var(--medium-size);
border-radius: var(--small-size); font-family: var(--main-font);
margin-top: 0.2em;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
height: calc(8 * var(--unit-size)); height: calc(8 * var(--unit-size));
@ -198,6 +239,7 @@
justify-content: flex-start; justify-content: flex-start;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 1%;
} }
.send { .send {
margin-left: auto; margin-left: auto;

View File

@ -133,12 +133,44 @@
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
flex: max-content; flex: max-content;
margin-left: 4%; margin-left: 1%;
margin-right: 4%; margin-right: 1%;
border-radius: var(--small-size); border-radius: var(--small-size);
border: solid 2px var(--accent-low); border: solid 2px var(--accent-low);
background-color: var(--bg3); background-color: var(--bg3);
padding: 1%; }
.create-right {
order: 2;
width: 80%;
border-radius: 0 var(--small-size) var(--small-size) 0;
background-color: var(--bg3);
}
/* target multi-select */
.target {
order: 1;
width: 20%;
background-color: var(--bg1);
border-radius: var(--small-size) 0 0 var(--small-size);
font-size: var(--medium-size);
}
.target-top {
padding: var(--unit-size);
}
.target-bot {
padding-left: var(--unit-size);
padding-bottom: var(--unit-size);
}
.target .required {
font-weight: 800;
font-family: var(--head-font);
}
.target #form_to {
font-weight: 400;
font-family: var(--main-font);
}
.target #form_to label {
margin-left: 0.5em;
} }
/* scope options */ /* scope options */
@ -149,31 +181,41 @@
flex-wrap: wrap; flex-wrap: wrap;
color: var(--fg); color: var(--fg);
font-size: var(--medium-size); font-size: var(--medium-size);
background-color: var(--bg1);
border-radius: 0 var(--small-size) 0 0;
} }
.scope div { .scope div {
display: inline; display: inline;
vertical-align: middle; vertical-align: middle;
flex: 1; flex: 1;
color: var(--fg); color: var(--fg);
border-radius: var(--small-size); padding: var(--unit-size);
background-color: var(--bg2);
padding: 1%;
} }
.scope .required { .scope .required {
order: 1; order: 1;
font-weight: 800; font-weight: 800;
font-family: var(--head-font);
}
#form_visibility .required {
font-family: var(--main-font);
font-weight: 400;
margin-left: 0.2em;
margin-right: 0.5em;
} }
.scope #form_scope { .scope #form_scope {
order: 2; order: 2;
flex-grow: 1; flex-grow: 1;
flex-shrink: 1; flex-shrink: 1;
} }
.scope #form_scope label {
margin-right: var(--small-size);
margin-left: 0.2em;
}
/* input box */ /* input box */
.input-wrapper {
order: 2;
display: inline-flex;
justify-content: flex-start;
width: 100%;
box-sizing: border-box;
}
.content-input { .content-input {
order: 2; order: 2;
flex-grow: 1; flex-grow: 1;
@ -181,11 +223,10 @@
} }
#form_content { #form_content {
background-color: var(--bg2); background-color: var(--bg2);
padding: 1%; padding: var(--unit-size);
color: var(--fg); color: var(--fg);
font-size: var(--unit-size); font-size: var(--medium-size);
border-radius: var(--small-size); font-family: var(--main-font);
margin-top: 0.2em;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
height: calc(8 * var(--unit-size)); height: calc(8 * var(--unit-size));
@ -198,6 +239,7 @@
justify-content: flex-start; justify-content: flex-start;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 1%;
} }
.send { .send {
margin-left: auto; margin-left: auto;