Skip to content

Commit 62d4bab

Browse files
authored
Merge pull request #2660 from basecamp/mobile/tweak-activity-headers
Mobile / Tweak activity headers
2 parents 646b552 + 98d019d commit 62d4bab

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

app/assets/stylesheets/ios.css

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,25 @@
1818
/* ------------------------------------------------------------------------ */
1919

2020
.events__column-header {
21-
-webkit-backdrop-filter: blur(16px);
22-
backdrop-filter: blur(16px);
23-
background-color: oklch(from var(--color-canvas) l c h / 0.5);
24-
border-radius: 10em;
21+
background-color: unset;
22+
23+
& > span {
24+
display: inline-block;
25+
position: relative;
26+
27+
&::before {
28+
content: "";
29+
display: block;
30+
background-color: oklch(from var(--color-canvas) l c h / 0.8);
31+
-webkit-backdrop-filter: blur(16px);
32+
backdrop-filter: blur(16px);
33+
border-radius: 10em;
34+
position: absolute;
35+
inset-inline: -1.5ch;
36+
inset-block: calc(var(--events-gap) * -0.8);
37+
z-index: -1;
38+
}
39+
}
2540
}
2641
}
2742
}

app/views/events/day_timeline/_column.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="events__column">
22
<h3 class="events__column-header">
3-
<%= column.title %>
3+
<span><%= column.title %></span>
44

55
<% if column.events_by_hour.any? %>
66
<%= link_to events_day_timeline_column_path(column, day: column.day_timeline.day.to_date), class: "events__maximize-button btn btn--circle txt-x-small borderless", data: { turbo_frame: "_top" } do %>

0 commit comments

Comments
 (0)