Skip to content
Snippets Groups Projects
Commit c2df969b authored by waffle's avatar waffle
Browse files

Fix hover issues for real this time

parent bcfc72a5
Branches
No related tags found
No related merge requests found
...@@ -24,8 +24,15 @@ input[type=submit] { ...@@ -24,8 +24,15 @@ input[type=submit] {
select { select {
@apply pl-2 pr-6 py-1; @apply pl-2 pr-6 py-1;
} }
.session-holder { @apply w-full; } .session-holder {
.session-holder:hover { height: auto; min-height: var(--height); } @apply w-full;
height: var(--height);
display: flex;
}
.session-holder:hover {
height: auto;
min-height: var(--height);
}
.session { .session {
@apply border p-2 bg-slate-100 border-slate-300 rounded-md w-full hover:shadow-2xl; @apply border p-2 bg-slate-100 border-slate-300 rounded-md w-full hover:shadow-2xl;
......
...@@ -120,7 +120,6 @@ current_time = Time.zone.now.in_time_zone(@conference.time_zone) ...@@ -120,7 +120,6 @@ current_time = Time.zone.now.in_time_zone(@conference.time_zone)
position: absolute; position: absolute;
top: <%= (session.starts_at - timeline_starts_at) / 3600.0 * pixels_per_hour %>px; top: <%= (session.starts_at - timeline_starts_at) / 3600.0 * pixels_per_hour %>px;
--height: <%= (session.ends_at - session.starts_at) / 3600.0 * pixels_per_hour %>px; --height: <%= (session.ends_at - session.starts_at) / 3600.0 * pixels_per_hour %>px;
height: var(--height);
"> ">
<%= render partial: "sessions/session", locals: { session: session } %> <%= render partial: "sessions/session", locals: { session: session } %>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment