Skip to content

Commit

Permalink
carousel indicators follow resize
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Sep 10, 2021
1 parent 98931b1 commit 46687f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/javascript/stylesheets/projects.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
.carousel-open:checked+.carousel-item {
position: static;
opacity: 100;
min-height: 60vh;
visibility: visible;
}

.carousel-item {
height: 60vh;
transition: opacity 0.6s ease-out;
}
/*
Expand Down
6 changes: 3 additions & 3 deletions app/views/projects/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<!-- Slide 1 -->
<input class="carousel-open" type="radio" id="carousel-1" name="carousel" aria-hidden="true" hidden="" checked="checked">
<div class="carousel-item absolute opacity-0 bg-gray-200 p-4"><!-- Inner wrapper for title + card start -->
<div class="carousel-item absolute opacity-0 bg-gray-200 p-4 invisible"><!-- Inner wrapper for title + card start -->
<h3 class="text-lg font-medium leading-6 text-gray-900 mb-3"><%= t('pages.projectNew.request_info.title') %></h3> <!-- User info -->
<div class="px-4 sm:px-0">
<% unless logged_in? %>
Expand Down Expand Up @@ -77,7 +77,7 @@

<!-- Slide 2 -->
<input class="carousel-open" type="radio" id="carousel-2" name="carousel" aria-hidden="true" hidden="">
<div class="carousel-item absolute opacity-0 bg-gray-200 p-4"><!-- Inner wrapper for title + card start -->
<div class="carousel-item absolute opacity-0 bg-gray-200 p-4 invisible"><!-- Inner wrapper for title + card start -->
<h3 class="text-lg font-medium leading-6 text-gray-900 mb-3"><%= t('pages.projectNew.marriageDatePlaceTitle') %></h3> <!-- User info -->
<div class="mt-5 md:mt-0"><!-- Card outer wrapper start -->
<div class="shadow sm:rounded-md sm:overflow-hidden"><!-- Card inner wrapper start -->
Expand Down Expand Up @@ -129,7 +129,7 @@

<!-- Slide 3 -->
<input class="carousel-open" type="radio" id="carousel-3" name="carousel" aria-hidden="true" hidden="">
<div class="carousel-item absolute opacity-0 mt-10 sm:mt-0 bg-gray-200 p-4">
<div class="carousel-item absolute opacity-0 mt-10 sm:mt-0 bg-gray-200 p-4 invisible">
<h3 class="text-lg font-medium leading-6 text-gray-900 mb-3"><%= t('pages.projectNew.wedding_party.title') %></h3><!-- Wedding party -->
<p class="mt-1 text-sm text-gray-600">
<%= t('pages.projectNew.wedding_party.description') %><!-- C -->
Expand Down

0 comments on commit 46687f1

Please sign in to comment.