MP-3110: adjusted and finalized TV styling (#309)

This commit is contained in:
Linkie Link 2023-07-20 10:53:24 +02:00 committed by GitHub
parent ac0658224e
commit 055dfe6abf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,11 @@
:root { :root {
--tv-background: #220e1d; --tv-background: #220e1d;
--tv-menu-background: #31142a !important; --tv-form-background: #7f78e8;
--tv-menu-text: rgba(255, 255, 255, 0.3) !important; --tv-button-background: linear-gradient(180deg, #7f78e8 0%, #926ac8 100%);
--tv-menu-text-hover: rgba(255, 255, 255, 1) !important; --tv-button-background-hover: linear-gradient(180deg, #926ac8 0%, #7f78e8 100%);
--tv-menu-background: #31142a;
--tv-menu-text: rgba(255, 255, 255, 0.3);
--tv-menu-text-hover: rgba(255, 255, 255, 1);
} }
.theme-dark:root { .theme-dark:root {
@ -19,6 +22,9 @@
--tv-color-toolbar-toggle-button-background-active: rgba(255, 255, 255, 0.2); --tv-color-toolbar-toggle-button-background-active: rgba(255, 255, 255, 0.2);
--tv-color-toolbar-toggle-button-background-active-hover: rgba(255, 255, 255, 0.2); --tv-color-toolbar-toggle-button-background-active-hover: rgba(255, 255, 255, 0.2);
--tv-color-toolbar-divider-background: var(--tv-menu-text); --tv-color-toolbar-divider-background: var(--tv-menu-text);
--ui-lib-button-default-color-content: #fff;
--ui-lib-button-default-color-border: var(--tv-form-background);
--ui-lib-button-default-color-bg: var(--tv-button-background);
} }
/* Favorited menus */ /* Favorited menus */
@ -36,8 +42,7 @@
/* Floating menu */ /* Floating menu */
.floating-toolbar-react-widgets__button:hover, .floating-toolbar-react-widgets__button:hover,
.button-reABrhVR:hover:before, [class^='button-']:hover:before {
.button-uO7HM85b.isInteractive-uO7HM85b:hover:before {
background: var(--tv-menu-background) !important; background: var(--tv-menu-background) !important;
color: var(--tv-menu-text-hover) !important; color: var(--tv-menu-text-hover) !important;
border-color: var(--tv-menu-background) !important; border-color: var(--tv-menu-background) !important;
@ -52,100 +57,254 @@ div[data-role='button']:hover,
/* Indiator dialog list items */ /* Indiator dialog list items */
div[data-role="dialog-content"] div[data-role="list-item"]:hover, div[data-role="dialog-content"] div[data-role="list-item"]:hover,
/* Series left sidebar */ /* Series left sidebar */
.active-a7Y2yl3G { [class^='active-'] {
cursor: pointer; cursor: pointer;
} }
/* General pop-up menus */ /* General pop-up menus */
div[data-name='popup-menu-container'] div:not(.swatch-pNRFZrPx, .opacitySliderGradient-uujjxY8O), div[data-name='popup-menu-container'] div:not([class^='swatch-'], [class^='opacitySliderGradient-']),
/* Indicator dialog */ /* Indicator dialog */
div[data-name='indicators-dialog'] *, div[data-name='indicators-dialog'] *,
/* Layers dialog */ /* Layers dialog */
div[data-name="object-tree-dialog"] * , div[data-name="object-tree-dialog"] * ,
/* Layers dialog */ /* Layers dialog */
div[data-name="series-properties-dialog"], div[data-name="series-properties-dialog"],
/* Series left sidetabs */
.tab-a7Y2yl3G:hover,
.active-a7Y2yl3G,
/* Checkbox */ /* Checkbox */
.check-bUw_gKIQ, [class^='close-'],
/* Close buton series popup */ /* Close buton series popup */
.close-HS2PTQRJ:hover { [class^='close-']:hover {
background: var(--tv-menu-background) !important; background: var(--tv-menu-background) !important;
outline: white !important; outline: white !important;
} }
/* General toolbar popup list items */ /* Element Highlighting */
.item-RhC5uhZw, [class^='highlight-'] {
/* Emoji topbar items */ border-color: transparent !important;
.wrapper-rSoA6gh6 svg,
.wrapper-rSoA6gh6.categories-TlKkLixs,
/* Emoji items */
.wrapper-yrezKVPX svg,
/* Indiator dialog list items */
div[data-role="dialog-content"] div[data-role="list-item"] span,
/* Layers dialog list item */
.wrap-G4AKrzja span,
/* Series proerties */
div[data-name="series-properties-dialog"],
/* Series left sidetabs */
.tab-a7Y2yl3G ,
/* Close buton series popup */
.close-HS2PTQRJ {
color: var(--tv-menu-text) !important;
} }
/* General toolbar popup list items */ /* Element Highlighting */
.item-RhC5uhZw:hover, [class^='wrap-'] [class^='title-'],
/* Sub headers for inteval popup */ [class^='label-'] [class^='title-'] {
.section-_8r4li9v:hover,
/* Emoji picker categories */
.wrapper-wawooJAf:hover,
/* Emoji topbar items */
.isActive-rSoA6gh6,
.isActive-rSoA6gh6.categories-TlKkLixs,
.wrapper-rSoA6gh6:hover svg,
.wrapper-rSoA6gh6.categories-TlKkLixs:hover,
/* Emoji items */
.isActive-yrezKVPX,
.wrapper-yrezKVPX:hover svg,
/* Indiator dialog list items */
div[data-role="dialog-content"] div[data-role="list-item"]:hover span,
/* Layers dialog list item */
.wrap-G4AKrzja:hover span,
/* Series left sidetabs */
.tab-a7Y2yl3G:hover,
/* Series left sidetabs */
.active-a7Y2yl3G,
/* Close buton series popup */
.close-HS2PTQRJ:hover {
cursor: pointer !important;
color: var(--tv-menu-text-hover) !important; color: var(--tv-menu-text-hover) !important;
} }
/* Range Slider */
[class^='opacitySliderGradient-'] {
background: linear-gradient(90deg, transparent, rgb(255, 160, 187)) !important;
}
[class^='opacitySlider-'] {
color: var(--tv-menu-text) !important;
}
[class^='rangeSliderMiddle-'] {
background-color: var(--tv-form-background) !important;
}
/* Devider Lines */
[class^='content-'],
[class^='container-'],
[class^='footer-'] {
border-color: var(--tv-menu-text) !important;
}
/* General toolbar popup list items */
[class^='item-'],
/* Emoji topbar items */
/* Emoji items */
[class^='wrapper-'],
[class^='categories-'],
/* Indiator dialog list items */
div[data-role="dialog-content"] div[data-role="list-item"] span,
/* Layers dialog list item */
[class^='wrap-'],
/* Series proerties */
div[data-name="series-properties-dialog"],
/* Series left sidetabs */
[class^='tab-'],
/* Close buton series popup */
[class^='close-'] {
color: var(--tv-menu-text) !important;
}
/* General toolbar popup list items */
[class^='item-']:hover,
[class^='item-'][class*='interactive-'][class*='hovered-'],
/* Sub headers for inteval popup */
[class^='section-']:hover,
/* Emoji topbar items */
[class^='isActive-'],
[class^='categories-'],
[class^='categories-']:hover,
/* Indiator dialog list items */
div[data-role="dialog-content"] div[data-role="list-item"]:hover span,
/* Layers dialog list item */
[class^='wrap-'] [class^='dropdown-']:hover span,
[class^='wrap-'] [class^='dropdown-']:hover [class^='arrowIcon-'],
[class^='menuItem-']:hover,
/* Close buton series popup */
[class^='close-']:hover {
cursor: pointer !important;
color: var(--tv-menu-text-hover) !important;
background-color: transparent !important;
}
[class^='scroll-wrap-']:before {
background-color: var(--tv-menu-text) !important;
}
[class^='underline-tabs-']:before {
background-color: transparent !important;
}
/* Series left sidetabs */
[class^='tab-'][class*='active-'],
[class^='tab-'][class*='active-'] svg,
[class^='tab-']:hover,
[class^='tab-'][class*='active-']:hover,
[class^='tab-'][class*='active-']:hover svg {
background-color: transparent !important;
color: var(--tv-menu-text-hover) !important;
cursor: pointer !important;
}
/* Top info bar */
[class^='legendMainSourceWrapper-'] [class^='item-'],
[class^='legendMainSourceWrapper-'] [class^='item-']:hover {
color: transparent !important;
}
/* Menu Boxes */
[class^='menuBox-'],
[class^='dialog'] {
background: var(--tv-menu-background) !important;
}
/* Top and bottom scroll indicator for toolbar */ /* Top and bottom scroll indicator for toolbar */
.scrollBot-g7ay5OPA, [class^='scrollBot-'],
.scrollTop-g7ay5OPA { [class^='scrollTop-'] {
cursor: pointer; cursor: pointer;
background: var(--tv-menu-background) !important; background: var(--tv-menu-background) !important;
} }
/* Checkbox */ /* Buttons for series popup */
.check-bUw_gKIQ { button,
border-color: var(--tv-menu-text) !important; button:hover {
cursor: pointer !important;
} }
/* Buttons for series popup */ [class^='button-'] {
.variant-secondary-OvB35Th_, background-color: transparent !important;
.variant-primary-OvB35Th_ { border-radius: 4px !important;
border-color: var(--tv-menu-text) !important;
color: var(--tv-menu-text) !important;
cursor: pointer;
background: none !important;
} }
.variant-secondary-OvB35Th_:hover,
.variant-primary-OvB35Th_:hover { [class^='button-']:hover {
border-color: var(--tv-menu-text-hover) !important; cursor: pointer !important;
background-color: transparent !important;
}
button[class^='button-'][class*='primary-'] {
border: none !important;
color: var(--tv-menu-text-hover) !important;
background: var(--tv-button-background) !important;
}
button[class^='button-'][class*='primary-']:hover {
color: var(--tv-menu-text-hover) !important;
background: var(--tv-button-background-hover) !important;
}
button[class^='button-'][class*='secondary-'] {
border: 1px solid var(--tv-menu-text) !important;
color: var(--tv-menu-text-hover) !important; color: var(--tv-menu-text-hover) !important;
background: none !important; background: none !important;
} }
button[class^='button-'][class*='secondary-']:hover {
border: 1px solid var(--tv-menu-text-hover) !important;
color: var(--tv-menu-text-hover) !important;
background: none !important;
}
/* Checkbox */
[class^='check-'] {
border-color: var(--tv-menu-text) !important;
}
[class^='checkbox-'] [class^='wrapper-'] [class^='input-'] + [class^='box-'] {
border-color: var(--tv-menu-text) !important;
}
[class^='checkbox-'] [class^='wrapper-'] [class^='input-']:hover + [class^='box-'] {
border-color: var(--tv-form-background) !important;
cursor: pointer !important;
}
[class^='checkbox-'] [class^='wrapper-'] [class^='input-']:checked + [class^='box-'] {
border-color: var(--tv-form-background) !important;
background-color: var(--tv-form-background) !important;
}
[class^='checkbox-'] [class^='wrapper-'] [class^='input-']:disabled + [class^='box-'] {
opacity: 0.5 !important;
border-color: var(--tv-menu-text) !important;
background-color: transparent !important;
}
[class^='checkbox-'] [class^='wrapper-'] [class^='input-']:disabled + [class^='box-'] {
cursor: default !important;
}
[class^='checkbox-'] [class^='wrapper-'] [class^='input-']:checked:disabled + [class^='box-'] {
border-color: var(--tv-menu-text) !important;
background-color: transparent !important;
}
[class^='checkbox-'] [class^='wrapper-'] [class^='input-']:checked:disabled + [class^='box-'] svg {
color: var(--tv-menu-text) !important;
stroke: var(--tv-menu-text) !important;
}
[class^='checkbox-'] [class^='wrapper-'] [class^='input-']:checked + [class^='box-'] svg {
color: var(--tv-menu-text-hover) !important;
stroke: var(--tv-menu-text-hover) !important;
}
/* Input */
[class^='container-'][class*='disabled-'] {
background-color: transparent !important;
opacity: 0.5 !important;
}
/* Select */
[class^='container-'][class*='button-'] {
border: 1px solid var(--tv-menu-text) !important;
}
[class^='container-'][class*='button-'][class*='disabled-'] {
opacity: 0.5 !important;
border: 1px solid var(--tv-menu-text) !important;
background-color: transparent !important;
}
[class^='button-children-'] span {
color: var(--tv-menu-text-hover) !important;
}
/* Scrollbars */
[class^='scrollWrap-']::-webkit-scrollbar,
[class^='tabContent-']::-webkit-scrollbar {
height: 4px;
width: 4px;
}
[class^='scrollWrap-']::-webkit-scrollbar-thumb,
[class^='tabContent-']::-webkit-scrollbar-thumb {
background-color: var(--tv-menu-text) !important;
border: transparent !important;
border-radius: 2px;
}
[class^='scrollWrap-']::-webkit-scrollbar-track,
[class^='tabContent-']::-webkit-scrollbar-track {
border-radius: 2px;
}