month-view: fix undershoot for new bottom bar

This adds the same styling as .undershoot-bottom would
while scrolling and adjusts the size allocation of month
rows, so that the top border of the month row right below
the last one is already visible.

Link: https://gitlab.gnome.org/GNOME/libadwaita/-/blob/649967044e269a0118ae09a9ff0ecba90cc58300/src/stylesheet/_drawing.scss#L57

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/542>
This commit is contained in:
Markus Göllnitz
2025-06-08 09:59:00 +00:00
committed by Marge Bot
parent 7764b4dc0a
commit c03c501888
2 changed files with 12 additions and 5 deletions
+11 -4
View File
@@ -295,14 +295,21 @@ monthcell:nth-child(7n + 1):dir(rtl) {
*/
calendar-view.scrolling > box {
background-color: transparent;
box-shadow: var(--headerbar-shade-color) 0 2px 4px;
transition: box-shadow 200ms;
}
calendar-view > box, calendar-view {
transition: box-shadow 200ms, background 200ms;
}
calendar-view:not(.scrolling) > box {
transition: box-shadow 200ms;
/* similar to https://gitlab.gnome.org/GNOME/libadwaita/-/blob/649967044e269a0118ae09a9ff0ecba90cc58300/src/stylesheet/_drawing.scss#L57 */
calendar-view.scrolling {
box-shadow: inset 0px -1px color-mix(in srgb, var(--shade-color) 75%, transparent);
background: linear-gradient(to top, color-mix(in srgb, var(--shade-color) 75%, transparent), transparent 4px);
}
.month-header {
padding-bottom: 6px;
}
/*