thibaud frere
test playwright
e0ad823
raw
history blame
4.9 kB
@use "./variables" as *;
@use "./base" as *;
@use "./layout" as *;
@use "./components/footer" as *;
@use "./components/code" as *;
/* Dark-mode form tweak */
[data-theme="dark"] .plotly_input_container > select { background-color: #1a1f27; border-color: var(--border-color); color: var(--text-color); }
[data-theme="dark"] .plot-card { background: #12151b; border-color: rgba(255,255,255,.15); }
[data-theme="dark"] .right-aside .aside-card { background: #12151b; border-color: rgba(255,255,255,.15); }
[data-theme="dark"] .content-grid main pre { background: #12151b; border-color: rgba(255,255,255,.15); }
[data-theme="dark"] .toc nav { border-left-color: rgba(255,255,255,.15); }
[data-theme="dark"] .distill-footer { border-top-color: rgba(255,255,255,.15); color: rgba(200,200,200,.8); }
[data-theme="dark"] .citation { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,.15); color: rgba(200,200,200,1); }
[data-theme="dark"] .citation a { color: rgba(255,255,255,0.75); }
/* Opt-in zoomable images */
img[data-zoomable] { cursor: zoom-in; }
.medium-zoom--opened img[data-zoomable] { cursor: zoom-out; }
// ============================================================================
// Hero (full-bleed)
// ============================================================================
.hero { width: 100%; padding: 48px 16px 16px; text-align: center; }
.hero-title { font-size: clamp(28px, 4vw, 48px); font-weight: 800; line-height: 1.1; margin: 0 0 8px;
max-width: 60%;
margin: auto;}
.hero-banner { max-width: 980px; margin: 0 auto; }
.hero-desc { color: var(--muted-color); font-style: italic; margin: 0 0 16px 0; }
// ============================================================================
// Meta (byline-like header)
// ============================================================================
.meta {
border-top: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color);
padding: 1rem 0;
font-size: 0.9rem;
line-height: 1.8em;
}
.meta-container {
max-width: 720px;
display: flex;
flex-direction: row;
justify-content: space-between;
margin: 0 auto;
gap: 8px;
}
.meta-container-cell {
display: flex;
flex-direction: column;
gap: 8px;
}
.meta-container-cell h3 {
margin: 0;
font-size: 12px;
font-weight: 400;
color: var(--muted-color);
text-transform: uppercase;
letter-spacing: .02em;
}
.meta-container-cell p { margin: 0; }
// ============================================================================
// Plotly – fragments & controls
// ============================================================================
.plot-card { background: var(--code-bg); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px; margin: 8px 0; }
.plot-card svg text { fill: var(--text-color) !important; }
.plotly-graph-div { width: 100% !important; min-height: 320px; }
@media (max-width: 768px) { .plotly-graph-div { min-height: 260px; } }
[id^="plot-"] { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.plotly_caption { font-style: italic; margin-top: 10px; }
.plotly_controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.plotly_input_container { display: flex; align-items: center; flex-direction: column; gap: 10px; }
.plotly_input_container > select { padding: 2px 4px; line-height: 1.5em; text-align: center; border-radius: 4px; font-size: 12px; background-color: var(--distill-gray-lightest); outline: none; border: 1px solid var(--distill-gray-lighter); }
.plotly_slider { display: flex; align-items: center; gap: 10px; }
.plotly_slider > input[type="range"] { -webkit-appearance: none; appearance: none; height: 2px; background: var(--distill-gray-light); border-radius: 5px; outline: none; }
.plotly_slider > input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--distill-blue); cursor: pointer; }
.plotly_slider > input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--distill-blue); cursor: pointer; }
.plotly_slider > span { font-size: 14px; line-height: 1.6em; min-width: 16px; }
// ============================================================================
// Theme Toggle button (moved from component)
// ============================================================================
#theme-toggle { display: inline-flex; align-items: center; gap: 8px; border: none; background: transparent; padding: 6px 10px; border-radius: 8px; cursor: pointer; margin: 12px 16px; }
#theme-toggle .icon.dark { display: none; }
[data-theme="dark"] #theme-toggle .icon.light { display: none; }
[data-theme="dark"] #theme-toggle .icon.dark { display: inline; }
[data-theme="dark"] #theme-toggle .icon { filter: invert(1) brightness(1.2); }