1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

get last item spacing

* work around felxbox containers not taking padding into account
This commit is contained in:
Matthias Kretschmann 2018-12-03 14:58:14 +01:00
parent aaa3b10f71
commit 25083df18e
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -7,7 +7,6 @@
-webkit-overflow-scrolling: touch;
margin-left: calc(-50vw + 50%);
margin-right: calc(-50vw + 50%);
padding-right: $spacer;
display: flex;
@media (min-width: $break-point--medium) {
@ -31,10 +30,12 @@
margin-left: 0;
}
}
}
&:last-child {
margin-right: $spacer * 1.4;
}
// add final right margin
&:after {
content: '';
flex: 0 0 $spacer * 2;
}
// custom scrollbar