Created
August 28, 2018 14:47
-
-
Save amielucha/f1dd8b67b627779880a55b40ffacbfc1 to your computer and use it in GitHub Desktop.
Bootstrap - half-width container
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
/* | |
* Half of a Bootstrap container | |
* | |
* Useful when one of the columns is supposed to match the grid, | |
* and the other stretch to 50% of the viewport. | |
*/ | |
$container-half-widths: ( | |
md: map-get($container-max-widths, md) / 2, | |
lg: map-get($container-max-widths, lg) / 2, | |
xl: map-get($container-max-widths, xl) / 2 | |
); | |
.container-half { | |
@include make-container(); | |
@include make-container-max-widths($container-half-widths); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment