Skip to content

Instantly share code, notes, and snippets.

@deshabhishek007
Created November 29, 2018 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deshabhishek007/64e11be16f788b35ebe5cb923608568f to your computer and use it in GitHub Desktop.
Save deshabhishek007/64e11be16f788b35ebe5cb923608568f to your computer and use it in GitHub Desktop.
CSS for Gutenberg Support in themes
.has-regular-font-size {
font-size: 16px;
}
@media only screen and (min-width: 768px) {
.alignfull {
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
width: auto;
max-width: 1000%;
}
.alignwide {
margin-left: calc(25% - 25vw);
margin-right: calc(25% - 25vw);
width: auto;
max-width: 1000%;
}
.alignwide img,
.alignfull img {
display: block;
margin: 0 auto;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment