Skip to content

Commit

Permalink
tweak city
Browse files Browse the repository at this point in the history
  • Loading branch information
royalfig committed Jul 10, 2023
1 parent ba7e2ee commit cfe44aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions assets/css/components/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@
object-fit: cover;
}

.sm-tag-card a {
.sm-tag-card-body > p {
position: relative;
font-size: var(--h4);
font-weight: 900;
}

.sm-tag-card p {
.sm-card-tag-meta p {
font-size: var(--x-small);
text-transform: uppercase;
letter-spacing: var(--letter-spacing);
Expand Down
7 changes: 3 additions & 4 deletions assets/js/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ function animateOnScroll() {
const el = entry.target;
const ratio = entry.intersectionRatio;

if (ratio > 0.4) {
// remove from observation

// remove from observation
if (ratio >= 0.6) {
el.style.opacity = 1;
observer.unobserve(el);
return;
Expand All @@ -47,7 +46,7 @@ function animateOnScroll() {
return 0;
}

if (num >= 0.4) {
if (num >= 0.6) {
return 1;
}

Expand Down
2 changes: 1 addition & 1 deletion partials/card.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<div class="sm-card-header">
{{#if primary_tag}}<p class="sm-card-tag">{{primary_tag.name}}</p>{{/if}}
</div>
<h2 class="sm-card-title">{{^if access}}<svg aria-label="premium content"><use href="#sm-lock-icon"></use></svg>{{/if}}<a herf={{url}}>{{title}}</a></h2>
<h2 class="sm-card-title">{{^if access}}<svg aria-label="premium content"><use href="#sm-lock-icon"></use></svg>{{/if}}{{title}}</h2>
{{^if feature_image}}
{{^if featured}}
<p class="sm-card-excerpt">
Expand Down

0 comments on commit cfe44aa

Please sign in to comment.