Fix House index position when ending with 1
This commit is contained in:
@@ -56,8 +56,11 @@
|
|||||||
/>
|
/>
|
||||||
</figure>
|
</figure>
|
||||||
</a>
|
</a>
|
||||||
<span class="house__index title-index" class:has-one-start={index.startsWith('1')}>
|
<span class="house__index title-index"
|
||||||
|
class:has-one-start={index.startsWith('1')}
|
||||||
|
class:has-one-end={index.endsWith('1')}
|
||||||
|
>
|
||||||
{index}
|
{index}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -216,6 +216,11 @@
|
|||||||
transform: translate3d(calc(-8% - var(--offset)), 0, 0);
|
transform: translate3d(calc(-8% - var(--offset)), 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
&.has-one-end {
|
||||||
|
@include bp (sm) {
|
||||||
|
transform: translate3d(calc(-15% - var(--offset)), 0, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user