Fix House index position when ending with 1

This commit is contained in:
2022-06-27 21:03:12 +02:00
parent 14d88e6d6e
commit 67602b4fbc
2 changed files with 11 additions and 3 deletions

View File

@@ -56,8 +56,11 @@
/>
</figure>
</a>
<span class="house__index title-index" class:has-one-start={index.startsWith('1')}>
{index}
</span>
<span class="house__index title-index"
class:has-one-start={index.startsWith('1')}
class:has-one-end={index.endsWith('1')}
>
{index}
</span>
</div>
</div>

View File

@@ -216,6 +216,11 @@
transform: translate3d(calc(-8% - var(--offset)), 0, 0);
}
}
&.has-one-end {
@include bp (sm) {
transform: translate3d(calc(-15% - var(--offset)), 0, 0);
}
}
}
}
}