Created
March 17, 2018 07:10
-
-
Save samikeijonen/b78912d9e29e632d4f1c14da043f5ed9 to your computer and use it in GitHub Desktop.
Align full and wide CSS example for WP editor
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
// Align full and wide. | |
.alignfull { | |
margin-left: calc(50% - 50vw); | |
margin-right: calc(50% - 50vw); | |
max-width: 1000%; | |
width: auto; | |
} | |
@media (min-width: $breakpoint-1) { | |
.alignwide { | |
margin-left: calc(25% - 25vw); | |
margin-right: calc(25% - 25vw); | |
&.wp-block-gallery { | |
margin-left: calc(25% - 25vw - #{ $global-spacing-unit-1 }); | |
margin-right: calc(25% - 25vw - #{ $global-spacing-unit-1 }); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment