* [PATCH yew-widget-toolkit-assets] calendar grid: add `pwt-calendar-hide-weekends` class
@ 2026-08-12 10:32 Dominik Csapak
0 siblings, 0 replies; only message in thread
From: Dominik Csapak @ 2026-08-12 10:32 UTC (permalink / raw)
To: yew-devel
necessary for the hide_weekends flag of the calendar grid, since we need
to overwrite the number of grid columns.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
this is also necessary for
https://lore.proxmox.com/yew-devel/20260812103115.1710697-1-d.csapak@proxmox.com/T/#u
forgot to send it as a series, will do so if a v2 is necessary.
scss/_calendar_grid.scss | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/scss/_calendar_grid.scss b/scss/_calendar_grid.scss
index 79dfdcc..5522d5f 100644
--- a/scss/_calendar_grid.scss
+++ b/scss/_calendar_grid.scss
@@ -11,6 +11,8 @@
/// height; its grid then slices evenly instead of sizing on content.
/// - `pwt-calendar-grid` / `-grid-header` - the seven-column day grid and its
/// weekday-label row; `pwt-calendar-weekday` is one header label.
+/// - `pwt-calendar-hide-weekends` - the root when the widget drops Saturday and
+/// Sunday (`hide_weekends`); both grids then narrow to five columns.
/// - `pwt-calendar-day` - one day cell; `-outside` (not the anchored month),
/// `-today` and `-weekend` tint or mark it. `pwt-calendar-daynum` is the
/// day number.
@@ -68,6 +70,13 @@
width: 100%;
}
+// The working week: the widget emits no cell at all for Saturday and Sunday, so
+// both grids drop to five columns and the remaining days share the full width.
+.pwt-calendar-hide-weekends .pwt-calendar-grid,
+.pwt-calendar-hide-weekends .pwt-calendar-grid-header {
+ grid-template-columns: repeat(5, minmax(0, 1fr));
+}
+
.pwt-calendar-grid-header {
gap: 0;
}
--
2.47.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-12 10:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-12 10:32 [PATCH yew-widget-toolkit-assets] calendar grid: add `pwt-calendar-hide-weekends` class Dominik Csapak
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.