Created
June 6, 2023 03:55
-
-
Save russo97/8da08ea8a5456ddf5f4a18e35cde5d19 to your computer and use it in GitHub Desktop.
helpers to scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin sizedBox ($width: 10px, $height: $width) { | |
width: $width; | |
height: $height; | |
} | |
@mixin clampLines ($lines: 1) { | |
text-overflow: ellipsis; | |
display: -webkit-box; | |
-webkit-line-clamp: $lines; | |
-webkit-box-orient: vertical; | |
} | |
@mixin automaticPaddingInline ($siteWidth: 1200px, $paddingInline: 24px) { | |
padding-inline: clamp(0px, calc(($siteWidth - 100%) / 2 + $paddingInline), $paddingInline); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment