Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions styles-reveal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,45 @@ body.qwt-dark {
color: var(--qwt-muted);
background-color: transparent;
}

/* In a narrow panel column the number box beside a slider shrank to 56px,
which cut a value like -0.05 short. Keep it wide enough to read. The floor
takes width from the slider, so it applies only on screens wide enough to
spare it; on a phone it would leave the slider about 20px wide. */
@media (min-width: 768px) {
.widget-panel input[type="number"] {
min-width: 4.5em;
}
}

/* Interactive widgets sit on a light panel (`.widget-panel`), so their text is
dark. Keep input boxes light under dark slide deck mode. */
body.qwt-dark .widget-panel input[type="number"],
body.qwt-dark .widget-panel input[type="text"],
body.qwt-dark .widget-panel select {
background-color: #fff;
color: #222;
border: 1px solid #adb5bd;
}

/* Tables inside light widget panels: keep table text and headers dark ink with transparent backgrounds. */
.widget-panel table {
color: #222;
--bs-table-color: #222;
--bs-table-bg: transparent;
--bs-table-border-color: #dee2e6;
--bs-table-striped-color: #222;
--bs-table-striped-bg: rgba(0, 0, 0, 0.05);
}

.widget-panel table thead tr th {
background-color: transparent;
color: #222;
border-bottom: 2px solid #adb5bd;
}

.widget-panel table th,
.widget-panel table td {
color: #222;
border-color: #dee2e6;
}
47 changes: 47 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -227,3 +227,50 @@ body.quarto-dark code:not(pre > code) {
.equation-anchor:hover {
opacity: 1;
}

/* In a narrow panel column the number box beside a slider shrank to 56px,
which cut a value like -0.05 short. Keep it wide enough to read. The floor
takes width from the slider, so it applies only on screens wide enough to
spare it; on a phone it would leave the slider about 20px wide. */
@media (min-width: 768px) {
.widget-panel input[type="number"] {
min-width: 4.5em;
}
}

/* Interactive widgets sit on a light panel (`.widget-panel`), so their text is
dark. The dark theme gives text boxes a dark background, which hid the numbers
beside each slider; keep the boxes light inside a panel. The reveal.js theme
already leaves these boxes white, so the slides need no counterpart. */
body.quarto-dark .widget-panel input[type="number"],
body.quarto-dark .widget-panel input[type="text"],
body.quarto-dark .widget-panel select {
background-color: #fff;
color: #222;
border: 1px solid #adb5bd;
}

/* Tables inside light widget panels: Quarto's dark theme sets
`div.observablehq table thead tr th { background-color: var(--bs-body-bg); }`
which resolves to dark (#222), hiding the table header against the light
panel. Pin table text and headers to dark ink with transparent backgrounds. */
.widget-panel table {
color: #222;
--bs-table-color: #222;
--bs-table-bg: transparent;
--bs-table-border-color: #dee2e6;
--bs-table-striped-color: #222;
--bs-table-striped-bg: rgba(0, 0, 0, 0.05);
}

.widget-panel table thead tr th {
background-color: transparent;
color: #222;
border-bottom: 2px solid #adb5bd;
}

.widget-panel table th,
.widget-panel table td {
color: #222;
border-color: #dee2e6;
}
Loading