Portal/rsconcept/frontend/src/styling/overrides.css

78 lines
1.4 KiB
CSS
Raw Normal View History

2024-06-07 20:17:03 +03:00
/**
* Module: Override imported components CSS styling.
*/
2024-07-27 22:49:20 +03:00
@import './constants.css';
2025-04-22 00:52:17 +03:00
@import './reactflow.css';
2024-06-07 20:17:03 +03:00
/* stylelint-disable selector-class-pattern */
2024-06-07 20:17:03 +03:00
:root {
2025-04-17 14:37:47 +03:00
/* Toastify */
--toastify-color-dark: var(--color-secondary);
--toastify-toast-width: 20rem;
--toastify-toast-padding: 0.75rem;
2025-04-17 14:37:47 +03:00
--toastify-toast-min-height: 0;
--toastify-toast-max-height: 40rem;
2024-06-07 20:17:03 +03:00
}
2025-04-17 14:37:47 +03:00
/* Light Theme */
/* prettier-ignore */
:not(.dark):root {
/* React Tooltip */
--rt-color-white: var(--color-input);
--rt-color-dark: var(--color-foreground);
}
/* Dark Theme */
/* prettier-ignore */
.dark:root {
/* React Tooltip */
--rt-color-white: var(--color-foreground);
--rt-color-dark: var(--color-input);
}
/* ----- Code Mirror ------ */
.cm-tooltip {
z-index: 100;
2025-04-16 15:22:04 +03:00
2025-04-17 14:37:47 +03:00
border-color: var(--color-border);
2025-04-16 15:22:04 +03:00
border-width: 1px;
border-radius: 0.25rem;
}
.cm-selectionBackground {
background: highlight !important;
}
.cm-content ::selection {
background: highlight !important;
color: highlighttext !important;
}
2024-06-07 20:17:03 +03:00
.cm-editor {
resize: vertical;
overflow-y: auto;
overscroll-behavior-y: contain;
2025-04-17 14:37:47 +03:00
border-color: var(--color-border);
border-width: 1px;
border-radius: 0.25rem;
padding: 0.15rem 0.375rem;
2024-06-07 20:17:03 +03:00
}
2024-06-07 20:17:03 +03:00
.cm-editor.cm-focused {
2025-04-17 14:37:47 +03:00
border-color: var(--color-primary);
outline: 2px solid var(--color-primary);
2024-06-07 20:17:03 +03:00
}
.cm-editor .cm-placeholder {
font-family: var(--font-main);
2025-04-17 14:37:47 +03:00
color: var(--color-muted-foreground);
user-select: none;
2024-06-07 20:17:03 +03:00
}