Last active
May 4, 2021 13:42
-
-
Save Fedozie/86a0d76b392039e8de8929c5214a6f6a to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
$total: 7; | |
@function col-width($col, $total){ | |
@return percentage($col/$total); | |
} | |
.col-1{ | |
width: col-width($col:1, $total:7); | |
} | |
.col-2{ | |
width: col-width($col:2, $total:7); | |
} | |
.col-4{ | |
width: col-width($col:4, $total:7); | |
} |
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
.col-1 { | |
width: 14.2857142857%; | |
} | |
.col-2 { | |
width: 28.5714285714%; | |
} | |
.col-4 { | |
width: 57.1428571429%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment