[UI] Posting form styling work

This commit is contained in:
rainydaysavings 2020-08-27 03:26:46 +01:00 committed by Hugo Sales
parent 1eab561b40
commit 9e3eb9992f
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
3 changed files with 127 additions and 52 deletions

View File

@ -141,9 +141,10 @@
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: 2%; padding: 1%;
} }
/* scope options */
.scope { .scope {
order: 1; order: 1;
width: 100%; width: 100%;
@ -152,31 +153,55 @@
color: var(--fg); color: var(--fg);
font-size: var(--medium-size); font-size: var(--medium-size);
} }
.scope div {
display: inline;
vertical-align: middle;
flex: 1;
color: var(--fg);
border-radius: var(--small-size);
background-color: var(--bg2);
padding: 1%;
}
.scope .required { .scope .required {
order: 1; order: 1;
width: 100%;
flex-grow: 1;
flex-shrink: 0;
font-weight: 800; font-weight: 800;
margin: 0;
padding: 0;
} }
.scope #form_scope { .scope #form_scope {
order: 2; order: 2;
width: 100%;
flex-grow: 1; flex-grow: 1;
flex-shrink: 0; flex-shrink: 1;
color: var(--fg);
border: none;
vertical-align: center;
overflow-x: hidden;
} }
.scope #form_scope label { .scope #form_scope label {
margin-right: var(--small-size); margin-right: var(--small-size);
margin-left: 0.2em; margin-left: 0.2em;
} }
.notice-input { /* input box */
.content-input {
order: 2; order: 2;
width: 80%; flex-grow: 1;
flex-shrink: 0;
}
#form_content {
background-color: var(--bg2);
padding: 1%;
color: var(--fg);
font-size: var(--unit-size);
border-radius: var(--small-size);
margin-top: 0.2em;
width: 100%;
box-sizing: border-box;
height: calc(8 * var(--unit-size));
}
/* options */
.notice-options {
order: 3;
display: inline-flex;
justify-content: flex-start;
width: 100%;
box-sizing: border-box;
}
.send {
margin-left: auto;
} }

View File

@ -135,45 +135,70 @@
flex: max-content; flex: max-content;
margin-left: 4%; margin-left: 4%;
margin-right: 4%; margin-right: 4%;
border-radius: var(--small-size);
border: solid 2px var(--accent-low);
background-color: var(--bg3);
padding: 1%;
} }
/* scope options */
.scope { .scope {
order: 1; order: 1;
width: 20%; width: 100%;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
color: var(--fg); color: var(--fg);
font-size: var(--medium-size); font-size: var(--medium-size);
}
.scope div {
display: inline;
vertical-align: middle;
flex: 1;
color: var(--fg);
border-radius: var(--small-size); border-radius: var(--small-size);
background-color: var(--bg3); background-color: var(--bg2);
padding: 2%; padding: 1%;
} }
.scope .required { .scope .required {
order: 1; order: 1;
width: 100%;
flex-grow: 1;
flex-shrink: 0;
font-weight: 800; font-weight: 800;
margin: 0;
padding: 0;
} }
.scope #form_scope { .scope #form_scope {
order: 2; order: 2;
width: 100%;
flex-grow: 1; flex-grow: 1;
flex-shrink: 0; flex-shrink: 1;
border-radius: var(--small-size);
background-color: var(--bg3);
box-shadow: var(--shadow);
color: var(--fg);
border: none;
} }
.scope #form_scope label { .scope #form_scope label {
width: 100%; margin-right: var(--small-size);
margin-left: 0.2em;
} }
.notice-input { /* input box */
.content-input {
order: 2; order: 2;
width: 80%; flex-grow: 1;
flex-shrink: 0;
}
#form_content {
background-color: var(--bg2);
padding: 1%;
color: var(--fg);
font-size: var(--unit-size);
border-radius: var(--small-size);
margin-top: 0.2em;
width: 100%;
box-sizing: border-box;
height: calc(8 * var(--unit-size));
}
/* options */
.notice-options {
order: 3;
display: inline-flex;
justify-content: flex-start;
width: 100%;
box-sizing: border-box;
}
.send {
margin-left: auto;
} }

View File

@ -135,45 +135,70 @@
flex: max-content; flex: max-content;
margin-left: 4%; margin-left: 4%;
margin-right: 4%; margin-right: 4%;
border-radius: var(--small-size);
border: solid 2px var(--accent-low);
background-color: var(--bg3);
padding: 1%;
} }
/* scope options */
.scope { .scope {
order: 1; order: 1;
width: 20%; width: 100%;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
color: var(--fg); color: var(--fg);
font-size: var(--medium-size); font-size: var(--medium-size);
}
.scope div {
display: inline;
vertical-align: middle;
flex: 1;
color: var(--fg);
border-radius: var(--small-size); border-radius: var(--small-size);
background-color: var(--bg3); background-color: var(--bg2);
padding: 2%; padding: 1%;
} }
.scope .required { .scope .required {
order: 1; order: 1;
width: 100%;
flex-grow: 1;
flex-shrink: 0;
font-weight: 800; font-weight: 800;
margin: 0;
padding: 0;
} }
.scope #form_scope { .scope #form_scope {
order: 2; order: 2;
width: 100%;
flex-grow: 1; flex-grow: 1;
flex-shrink: 0; flex-shrink: 1;
border-radius: var(--small-size);
background-color: var(--bg3);
box-shadow: var(--shadow);
color: var(--fg);
border: none;
} }
.scope #form_scope label { .scope #form_scope label {
width: 100%; margin-right: var(--small-size);
margin-left: 0.2em;
} }
.notice-input { /* input box */
.content-input {
order: 2; order: 2;
width: 80%; flex-grow: 1;
flex-shrink: 0;
}
#form_content {
background-color: var(--bg2);
padding: 1%;
color: var(--fg);
font-size: var(--unit-size);
border-radius: var(--small-size);
margin-top: 0.2em;
width: 100%;
box-sizing: border-box;
height: calc(8 * var(--unit-size));
}
/* options */
.notice-options {
order: 3;
display: inline-flex;
justify-content: flex-start;
width: 100%;
box-sizing: border-box;
}
.send {
margin-left: auto;
} }