2021-02-13 10:55:59 +03:00
|
|
|
/*
|
|
|
|
Base styles for
|
|
|
|
- form-textfield,
|
|
|
|
- form-textfield-with-submit
|
|
|
|
- form-toggleswitch
|
2021-02-01 08:36:14 +03:00
|
|
|
|
2021-02-13 10:55:59 +03:00
|
|
|
Both text and toggle use this class for base layout.
|
|
|
|
*/
|
|
|
|
.formfield-container {
|
|
|
|
--form-label-container-width: 15em;
|
2021-02-01 08:36:14 +03:00
|
|
|
|
2021-01-31 21:13:35 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: flex-start;
|
|
|
|
justify-content: flex-start;
|
|
|
|
width: 100%;
|
2021-02-01 08:36:14 +03:00
|
|
|
max-width: 600px;
|
2021-01-31 21:13:35 +03:00
|
|
|
.label-side {
|
2021-02-13 10:55:59 +03:00
|
|
|
padding-right: 1.25em;
|
2021-01-31 21:13:35 +03:00
|
|
|
text-align: right;
|
2021-02-13 10:55:59 +03:00
|
|
|
width: var(--form-label-container-width);
|
2022-05-12 09:31:31 +03:00
|
|
|
margin: 0.2em 0;
|
2021-01-31 21:13:35 +03:00
|
|
|
}
|
2021-02-13 10:55:59 +03:00
|
|
|
.formfield-label {
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: 1em;
|
2021-01-31 21:13:35 +03:00
|
|
|
color: var(--owncast-purple);
|
2021-02-01 08:36:14 +03:00
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: ':';
|
|
|
|
}
|
2021-01-31 21:13:35 +03:00
|
|
|
}
|
2021-02-01 08:36:14 +03:00
|
|
|
&.required {
|
2021-02-13 10:55:59 +03:00
|
|
|
.formfield-label {
|
2021-02-01 08:36:14 +03:00
|
|
|
&::before {
|
|
|
|
content: '*';
|
|
|
|
display: inline-block;
|
2022-05-12 09:31:31 +03:00
|
|
|
margin-right: 0.25em;
|
2021-02-01 08:36:14 +03:00
|
|
|
color: var(--ant-error);
|
|
|
|
}
|
|
|
|
}
|
2021-01-31 21:13:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.input-side {
|
|
|
|
max-width: 500px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2021-02-01 08:36:14 +03:00
|
|
|
.input-group {
|
2021-01-31 21:13:35 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.status-container {
|
2022-05-12 09:31:31 +03:00
|
|
|
margin: 0.25em;
|
2021-02-01 08:36:14 +03:00
|
|
|
width: 100%;
|
|
|
|
display: block;
|
|
|
|
&.empty {
|
2021-02-01 11:01:38 +03:00
|
|
|
display: none;
|
2021-02-01 08:36:14 +03:00
|
|
|
visibility: visible;
|
2021-01-31 21:13:35 +03:00
|
|
|
}
|
|
|
|
}
|
2022-05-12 09:31:31 +03:00
|
|
|
|
2021-02-01 08:36:14 +03:00
|
|
|
.field-tip {
|
2022-05-12 09:31:31 +03:00
|
|
|
margin: 0.5em 0.5em;
|
2021-01-31 21:13:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 800px) {
|
|
|
|
flex-wrap: wrap;
|
|
|
|
.label-side {
|
2021-02-01 08:36:14 +03:00
|
|
|
width: 100%;
|
2021-01-31 21:13:35 +03:00
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-04 19:04:00 +03:00
|
|
|
/* TEXTFIELD-WITH-SUBMIT-CONTAINER BASE */
|
|
|
|
/* TEXTFIELD-WITH-SUBMIT-CONTAINER BASE */
|
2021-02-01 09:07:00 +03:00
|
|
|
/* TEXTFIELD-WITH-SUBMIT-CONTAINER BASE */
|
2021-02-01 08:36:14 +03:00
|
|
|
.textfield-with-submit-container {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: flex-start;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
|
|
|
|
.textfield-component {
|
|
|
|
width: 100%;
|
|
|
|
.textfield-container {
|
|
|
|
.field-tip,
|
|
|
|
.status-container {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2021-01-31 21:13:35 +03:00
|
|
|
}
|
2021-02-01 08:36:14 +03:00
|
|
|
|
|
|
|
// for lack of a better name
|
|
|
|
.lower-container {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: flex-start;
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
|
|
|
.label-spacer {
|
2022-05-12 09:31:31 +03:00
|
|
|
width: var(--form-label-container-width);
|
2021-02-01 08:36:14 +03:00
|
|
|
}
|
|
|
|
.lower-content {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: flex-start;
|
|
|
|
justify-content: flex-end;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.field-tip {
|
|
|
|
margin-right: 1em;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.status-container {
|
2022-05-12 09:31:31 +03:00
|
|
|
margin: 0.5em;
|
2021-02-01 09:07:00 +03:00
|
|
|
&.empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-02-01 08:36:14 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.update-button-container {
|
|
|
|
visibility: hidden;
|
2022-05-12 09:31:31 +03:00
|
|
|
margin: 0.25em 0;
|
2021-02-01 08:36:14 +03:00
|
|
|
}
|
2021-01-31 21:13:35 +03:00
|
|
|
}
|
|
|
|
|
2021-02-01 08:36:14 +03:00
|
|
|
&.submittable {
|
|
|
|
.lower-container {
|
|
|
|
.update-button-container {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-01-31 21:13:35 +03:00
|
|
|
|
2021-02-01 08:36:14 +03:00
|
|
|
@media (max-width: 800px) {
|
|
|
|
.label-spacer {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-01-31 21:13:35 +03:00
|
|
|
}
|
2021-02-01 08:36:14 +03:00
|
|
|
}
|
2021-02-13 10:55:59 +03:00
|
|
|
|
|
|
|
/* TOGGLE SWITCH CONTAINER BASE */
|
|
|
|
.toggleswitch-container {
|
|
|
|
margin: 2em 0 1em;
|
|
|
|
|
2022-05-12 09:31:31 +03:00
|
|
|
.label-side {
|
2021-02-13 10:55:59 +03:00
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-group {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: center;
|
2022-05-12 09:31:31 +03:00
|
|
|
|
2021-02-13 10:55:59 +03:00
|
|
|
.status-container {
|
|
|
|
width: auto;
|
|
|
|
margin: 0 0 0 1em;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|