Files
blockly3d/webclient/src/index.scss
T
2026-06-12 11:46:14 +03:00

91 lines
1.9 KiB
SCSS

:root {
--text: #6b6375;
--text-h: #08060d;
--bg: #fff;
--border: #e5e4e7;
--code-bg: #f4f3ec;
--accent: #aa3bff;
--accent-bg: rgba(170, 59, 255, 0.1);
--accent-border: rgba(170, 59, 255, 0.5);
--social-bg: rgba(244, 243, 236, 0.5);
--shadow:
rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;
--sans: system-ui, 'Segoe UI', Roboto, sans-serif;
--heading: system-ui, 'Segoe UI', Roboto, sans-serif;
--mono: ui-monospace, Consolas, monospace;
font: 16px/100% var(--sans);
line-height: 1;
letter-spacing: 0.18px;
color-scheme: light dark;
color: var(--text);
background: var(--bg);
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@media (prefers-color-scheme: dark) {
:root {
--text: #9ca3af;
--text-h: #f3f4f6;
--bg: #16171d;
--border: #2e303a;
--code-bg: #1f2028;
--accent: #c084fc;
--accent-bg: rgba(192, 132, 252, 0.15);
--accent-border: rgba(192, 132, 252, 0.5);
--social-bg: rgba(47, 48, 58, 0.5);
--shadow:
rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px;
}
#social .button-icon {
filter: invert(1) brightness(2);
}
}
#root {
width: 100%;
max-width: 100%;
margin: 0 auto;
border-inline: 1px solid var(--border);
min-height: 100svh;
display: flex;
flex-direction: column;
box-sizing: border-box;
}
html,
body {
margin: 0;
overscroll-behavior: none;
}
// *:not(.panel.main) svg {
// fill: currentColor;
// display: inline-block;
// height: 1em;
// top: 0.125em;
// vertical-align: bottom;
// }
button,
input,
select,
textarea {
font: inherit;
}
* {
box-sizing: border-box;
}
// Blockly appends its dropdown/widget overlays to document.body.
// They need a z-index above .overlay-panels (15000) to be visible.
.blocklyDropDownDiv,
.blocklyWidgetDiv {
z-index: 16000 !important;
}