Admin css overhaul pt2 (#19)

* tweaks to offline state in admin viewers page

If stream is offline, hide current viewers statistic and viewers table.
Also, change wording for describing max viewers.

* take out ant dark stylesheet, organize ant color overrides

* remove ant dark css; cleanup ant overrides; format public-detail page

* combine toggleswitch component style with textfield so layout can be shared

* fix toggleswitch status message placement

* - update styles for modals, collapses
- move reset dir into its own component
- assorted style cleanups ans consistencies

* hide entire advanced section for resetyp if no yp

* temp adjustments to video modal

* temp comment out toggle switch use for later'

* address PR comments

* lint

* update type

* allow warnings during lint

Co-authored-by: nebunez <uoj2y7wak869@opayq.net>
This commit is contained in:
gingervitis
2021-02-12 23:55:59 -08:00
committed by GitHub
parent 250acbf6e9
commit a122ee6c42
40 changed files with 1150 additions and 552 deletions

View File

@@ -1,8 +1,14 @@
// Base styles for form-textfield, form-textfield-with-submit
/*
Base styles for
- form-textfield,
- form-textfield-with-submit
- form-toggleswitch
Both text and toggle use this class for base layout.
*/
.formfield-container {
--form-label-container-width: 15em;
/* TEXTFIELD-CONTAINER BASE */
.textfield-container {
display: flex;
flex-direction: row;
align-items: flex-start;
@@ -10,14 +16,14 @@
width: 100%;
max-width: 600px;
.label-side {
padding-right: .75em;
padding-right: 1.25em;
text-align: right;
width: 12em;
width: var(--form-label-container-width);
margin: .2em 0;
}
.textfield-label {
font-weight: 400;
font-size: .85em;
.formfield-label {
font-weight: 500;
font-size: 1em;
color: var(--owncast-purple);
&::after {
@@ -25,7 +31,7 @@
}
}
&.required {
.textfield-label {
.formfield-label {
&::before {
content: '*';
display: inline-block;
@@ -97,7 +103,7 @@
justify-content: flex-start;
.label-spacer {
width: 12em;
width: var(--form-label-container-width);
}
.lower-content {
display: flex;
@@ -138,3 +144,26 @@
}
}
}
/* TOGGLE SWITCH CONTAINER BASE */
.toggleswitch-container {
margin: 2em 0 1em;
.label-side {
margin-top: 0;
}
.input-group {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
.status-container {
width: auto;
margin: 0 0 0 1em;
display: inline-block;
}
}
}