owncast/web/styles/ant-overrides.scss
gingervitis a122ee6c42 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>
2021-02-12 23:55:59 -08:00

367 lines
7.1 KiB
SCSS

// GENERAL ANT OVERRIDES
// RESET BG, TEXT COLORS
.ant-layout,
.ant-layout-header,
.ant-layout-sider,
.ant-layout-footer,
.ant-card,
.ant-collapse,
.ant-collapse-content,
.ant-table,
.ant-table-thead > tr > th,
.ant-table-small .ant-table-thead > tr > th,
th.ant-table-column-sort,
td.ant-table-column-sort,
.ant-table-tbody > tr.ant-table-row:hover > td,
.ant-table-thead th.ant-table-column-sort,
.ant-menu,
.ant-menu-submenu > .ant-menu,
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
background-color: transparent;
color: var(--default-text-color)
}
h1.ant-typography,
h2.ant-typography,
h3.ant-typography,
h4.ant-typography,
h5.ant-typography,
.ant-typography,
.ant-typography h1,
.ant-typography h2,
.ant-typography h3,
.ant-typography h4,
.ant-typography h5 {
color: var(--default-text-color);
font-weight: 500;
}
.ant-typography.ant-typography-secondary {
color: rgba(255,255,255,.85);
font-weight: 400;
}
.ant-progress-text,
.ant-progress-circle .ant-progress-text {
color: var(--default-text-color);
}
// ANT MENU
// menu base
.ant-menu-item {
transition-duration: var(--ant-transition-duration);
.anticon {
transition-duration: var(--ant-transition-duration);
color: var(--nav-text);
}
a {
transition-duration: var(--ant-transition-duration);
color: var(--nav-text);
&:hover {
color: white;
}
}
&:hover {
background-color: rgba(0,0,0,.15);
.anticon {
color: white;
}
}
}
// menu item selected
.ant-menu-item-selected,
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
background-color: black;
a {
color: var(--nav-selected-text);
}
.anticon {
color: var(--nav-selected-text);
}
// the right border color
&:after {
border-color: var(--nav-selected-text);
transition-duration: var(--ant-transition-duration);
}
}
// submenu items
.ant-menu-submenu {
&> .ant-menu {
border-left: 1px solid rgba(255,255,255,.4);
background-color: rgba(0,0,0,.15);
}
.ant-menu-submenu-title {
transition-duration: var(--ant-transition-duration);
color: var(--nav-text);
.anticon {
color: var(--nav-text);
}
.ant-menu-submenu-arrow {
&:before,
&:after {
transition-duration: var(--ant-transition-duration);
background-image: linear-gradient(to right, var(--nav-text), var(--nav-text));
}
}
}
&:hover {
.ant-menu-submenu-title {
color: white;
.anticon {
color: white;
}
.ant-menu-submenu-arrow {
&:before,
&:after {
background-image: linear-gradient(to right, white, white);
}
}
}
}
}
// ANT RESULT
.ant-result-title {
color: var(--default-text-color);
}
.ant-result-subtitle {
color: var(--default-text-color);
}
// ANT CARD
.ant-card {
border-radius: var(--container-border-radius);
background-color: var(--container-bg-color);
color: var(--default-text-color);
}
.ant-card-bordered {
border-color: rgba(255,255,255,.25);
}
.ant-card-meta-title,
.ant-card-meta-description {
color: white;
}
// ANT INPUT
.ant-input-affix-wrapper,
.ant-input-number {
background-color: var(--textfield-bg);
border-color: var(--textfield-border);
input,
textarea {
background-color: transparent;
color: rgba(255,255,255,.85);
border-color: rgba(0,0,0,1);
&::placeholder {
color: var(--textfield-border);
}
&:-webkit-autofill {
background-color: transparent;
}
}
}
.ant-input-number:hover,
.ant-input-affix-wrapper:hover {
border-color: var(--owncast-purple-highlight);
input,
textarea {
border-color: var(--owncast-purple-highlight);
}
}
.ant-input-number:focus,
.ant-input-affix-wrapper:focus,
.ant-input-affix-wrapper-focused {
border-color: var(--owncast-purple);
input,
textarea {
color: white;
border-color: var(--owncast-purple);
}
}
.ant-input-textarea-clear-icon,
.ant-input-clear-icon {
color: rgba(255,255,255,.5);
}
textarea.ant-input {
padding-right: 25px;
}
// ANT BUTTON
.ant-btn-primary {
background-color: var(--owncast-purple);
border-color: var(--owncast-purple);
}
.ant-btn-primary:hover,
.ant-btn-primary:focus {
background-color: var(--form-focused);
border-color: var(--form-focused);
}
.ant-btn.ant-btn-primary:hover {
border-color: white;
}
.ant-btn-primary[disabled] {
background-color: rgba(255,255,255,.2);
border-color: rgba(255,255,255,.2);
color: white;
&:hover {
background-color: rgba(255,255,255,.2);
border-color: rgba(255,255,255,.2);
}
}
.ant-input-affix-wrapper,
.ant-btn {
transition-delay: 0s;
transition-duration: 0.15s;
}
// ANT TABLE
.ant-table-thead > tr > th,
.ant-table-small .ant-table-thead > tr > th {
transition-duration: var(--ant-transition-duration);
background-color: #112;
font-weight: 500;
color: var(--owncast-purple);
}
.ant-table-tbody > tr > td,
.ant-table-thead > tr > th,
.ant-table-small .ant-table-thead > tr > th {
border-color: var(--textfield-border);
}
.ant-table-tbody > tr > td {
transition-duration: var(--ant-transition-duration);
background-color: var(--textfield-bg);
}
.ant-table-tbody > tr:nth-child(odd) > td {
background-color: var(--textfield-bg);
}
.ant-empty {
color: white;
opacity: .75;
}
.ant-table-empty .ant-table-tbody > tr.ant-table-placeholder {
&:hover > td {
background-color: transparent;
}
}
.ant-table-thead th.ant-table-column-has-sorters:hover {
background-color: var(--textfield-border);
.ant-table-filter-trigger-container {
background-color: var(--textfield-border);
}
}
// MODAL
.ant-modal-content {
border-radius: var(--container-border-radius);
border: 1px solid var(--owncast-purple-highlight);
}
.ant-modal-header {
border-radius: var(--container-border-radius) var(--container-border-radius) 0 0;
}
.ant-modal-close-x {
color: white;
}
.ant-modal-title {
font-weight: 500;
font-size: 1.25em;
color: var(--nav-selected-text);
}
.ant-modal-body {
background-color: var(--nav-bg-color);
color: var(--default-text-color);
}
.ant-modal-header,
.ant-modal-footer {
background-color: black;
}
.ant-modal-content,
.ant-modal-header,
.ant-modal-footer {
border-color: #333;
}
// SELECT
.ant-select-dropdown {
background-color: #334;
}
// SLIDER
// .ant-slider-with-marks {
// margin-right: 2em;
// }
.ant-slider-mark-text {
font-size: .85em;
white-space: nowrap;
}
// ANT SWITCH
.ant-switch {
background-color: #666;
}
.ant-switch-checked {
background-color: var(--ant-success);
.ant-switch-inner {
color: white;
}
}
// ANT COLLAPSE
.ant-collapse {
border-color: transparent;
&> .ant-collapse-item,
.ant-collapse-content {
border-color: transparent;
&> .ant-collapse-header {
border-color: transparent;
background-color: var(--textfield-bg);
color: var(--nav-text);
font-weight: 500;
}
}
}
.ant-collapse-content {
background-color: #181231;
}
// ANT POPOVER
.ant-popover {
}
.ant-popover-inner {
background-color: black;
}
.ant-popover-message,
.ant-popover-inner-content {
color: var(--default-text-color);
}
.ant-popover-placement-topLeft > .ant-popover-content > .ant-popover-arrow {
border-color: black;
}