Skip to content

Commit

Permalink
use border width instead of padding
Browse files Browse the repository at this point in the history
  • Loading branch information
DokterKaj committed Oct 22, 2024
1 parent 7b5643c commit c71661c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1237,9 +1237,9 @@ a.search_subreddit:hover {
.gallery_progress {
position: absolute;
bottom: 10px;
padding: 10px;
background-color: rgba(0, 0, 0, 0.8);
border-radius: 20px;
border: 10px solid transparent;
border-radius: 15px;
display: flex;
gap: 10px;
}
Expand All @@ -1263,11 +1263,11 @@ a.search_subreddit:hover {

@keyframes galleryDotIndicatorScroll {
from {
left: 10px;
left: 0;
}

to {
left: calc(100% - 10px);
left: 100%;
transform: translateX(-100%);
}
}
Expand Down
4 changes: 2 additions & 2 deletions templates/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ <h1 class="post_title">
<div class="gallery_overlay" title="Hide overlay">
<div class="gallery_length" tabindex="-1">gallery<br>({{ post.gallery.len() }} images)</div>
<div class="gallery_progress" tabindex="-1">
{% for _ in 0..post.gallery.len() %}
<!-- {% for _ in 0..post.gallery.len() %}
<div class="gallery_dot"></div>
{% endfor %}
{% endfor %} -->
<div class="gallery_dot_indicator"></div>
</div>
</div>
Expand Down

0 comments on commit c71661c

Please sign in to comment.