Smoth scroll on small screens
This commit is contained in:
parent
393dc37602
commit
5dc13634e4
|
@ -130,6 +130,10 @@
|
||||||
.column {
|
.column {
|
||||||
margin: 20px 10px;
|
margin: 20px 10px;
|
||||||
width: 250px;
|
width: 250px;
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
scroll-snap-align: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
header {
|
header {
|
||||||
|
|
|
@ -106,7 +106,7 @@
|
||||||
</section>
|
</section>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<style>
|
<style lang="less">
|
||||||
section {
|
section {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -125,5 +125,6 @@
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
padding: 0 40px;
|
padding: 0 40px;
|
||||||
|
scroll-snap-type: x mandatory;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue