Files
olehomelchenko.com/styles.css
2026-01-10 05:15:42 +02:00

75 lines
1.7 KiB
CSS

/* Minimal custom styling for olehomelchenko.com */
/* Vega-Lite visualization container */
.vega-viz-container {
margin: 20px 0;
}
/* Reverse order to put filters on top of canvas */
.chart-wrapper {
display: flex;
flex-direction: column-reverse;
align-items: center;
gap: 20px;
}
/* Vega-Lite visualization styling - center and add subtle shadow */
.vega-embed {
justify-content: center;
display: flex;
}
.vega-embed canvas.marks {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin: 10px;
}
/* Style the interactive parameter filters */
/* Hide when empty, style only when it has content */
.vega-bindings:empty {
display: none;
}
.vega-bindings:not(:empty) {
background: var(--color-background, #f5f3f0);
border: 1px solid rgba(45, 42, 38, 0.2);
border-radius: 0;
padding: 15px 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
width: fit-content;
}
.vega-bindings label {
display: inline-flex;
align-items: center;
gap: 10px;
margin-right: 20px;
font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 14px;
color: var(--color-text, #2d2a26);
font-weight: 500;
}
.vega-bindings input,
.vega-bindings select {
padding: 6px 12px;
border: 1px solid rgba(45, 42, 38, 0.2);
border-radius: 0;
background: white;
font-size: 14px;
color: var(--color-text, #2d2a26);
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.vega-bindings input:focus,
.vega-bindings select:focus {
border-color: var(--color-primary-blue, #1789fc);
outline: 0;
box-shadow: 0 0 0 0.2rem rgba(23, 137, 252, 0.25);
}
.vega-bindings select {
cursor: pointer;
min-width: 150px;
}