Created
August 7, 2018 17:19
-
-
Save machelinos/24d12b7981741496cd4f10735508045f to your computer and use it in GitHub Desktop.
Some Gutenberg block styles for the frontend using SASS and some internal mixins
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
/* | |
breakpoint(intern) is a mixin to show this block only on screen sizez bigger than 768px | |
*/ | |
.alignfull { | |
@include breakpoint(intern){ | |
margin-left: calc(50% - 50vw); | |
margin-right: calc(50% - 50vw); | |
width: auto; | |
max-width: 1000%; | |
} | |
} | |
.alignwide { | |
@include breakpoint(intern){ | |
margin-left: calc(25% - 25vw); | |
margin-right: calc(25% - 25vw); | |
width: auto; | |
max-width: 1000%; | |
} | |
} | |
.alignwide img, | |
.alignfull img { | |
@include breakpoint(intern){ | |
display: block; | |
margin: 0 auto; | |
width: 100% !important; | |
} | |
} | |
blockquote{ | |
background: transparent; | |
margin: 0 0 1em; | |
@include font-size(18); | |
font-style: italic; | |
padding: 0; | |
text-align: center; | |
cite { | |
display: block; | |
@include font-size(16); | |
margin-top: 17px; | |
} | |
p:last-of-type { | |
margin-bottom: 0; | |
} | |
&.is-large.wp-block-quote { | |
@include font-size(22); | |
margin: 0 0 1em; | |
padding: 0; | |
cite { | |
text-align: center; | |
} | |
} | |
&.wp-block-pullquote { | |
border-top: 2px solid $basecolor; | |
border-bottom: 2px solid $basecolor; | |
padding: 1em 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment