Skip to content

Commit

Permalink
fix: updated style to move arrows off of main images
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean1572 committed Apr 25, 2024
1 parent 17cf476 commit 5bcfce9
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions _includes/carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@
{% endfor %}

.carousel__control {
height: 30px;
width: 30px;
height: 12px;
width: 12px;
margin-top: -15px;
top: 50%;
top: 60%;
position: absolute;
display: block;
cursor: pointer;
Expand All @@ -139,12 +139,12 @@
transform: rotate(45deg);
}
.carousel__indicators {
position: absolute;
position: relative;
bottom: 0;
height: 50px;
width: 100%;
text-align: center;
background-color: #000000a6;
background-color: #000000;
padding-top: 5px;
}
.carousel__indicator {
Expand All @@ -161,13 +161,14 @@
opacity: 0.75;
}
.carousel__track {
position: absolute;
position: relative;
top: 0;
right: 0;
bottom: 0;
left: 0;
padding: 0;
margin: 0;
height: 92%;
}
.carousel__track .carousel__slide {
display: block;
Expand Down Expand Up @@ -209,8 +210,19 @@
}
{% endfor %}

.carousel_titles {

.carousel__meta_controls {
height: 8%;
position: relative;
}

.carousel_titles {
height: 5%;
top: 87%;
width: 100%;
background-color: #000000a6;
position: absolute;
padding: 5px;
}

{% for item in carousels[number].images %}
Expand All @@ -223,14 +235,14 @@

.carousel_title {
width: 90%;
bottom: -5px;
color: white;
position: absolute;
left: 10px;
padding-left: 10px;
position: fixed;
overflow: hidden;
text-overflow: ellipsis;
text-wrap: nowrap;
text-align: justify;

}
</style>

Expand Down

0 comments on commit 5bcfce9

Please sign in to comment.