Modern Business: Add a utility css class for spacer block

This commit is contained in:
Takashi Irie 2019-05-22 20:14:55 +01:00
parent 8ca09c1bec
commit a256e70d55
3 changed files with 31 additions and 0 deletions

View file

@ -805,6 +805,17 @@
}
}
//! Spacer
.wp-block-spacer {
&.desktop-only {
display: none;
@include media(tablet) {
display: block;
}
}
}
//! Twitter Embed
.wp-block-embed-twitter {
word-break: break-word;

View file

@ -4255,6 +4255,16 @@ body.page .main-navigation {
display: none;
}
.entry .entry-content .wp-block-spacer.desktop-only {
display: none;
}
@media only screen and (min-width: 768px) {
.entry .entry-content .wp-block-spacer.desktop-only {
display: block;
}
}
.entry .entry-content .wp-block-embed-twitter {
word-break: break-word;
}

View file

@ -4267,6 +4267,16 @@ body.page .main-navigation {
display: none;
}
.entry .entry-content .wp-block-spacer.desktop-only {
display: none;
}
@media only screen and (min-width: 768px) {
.entry .entry-content .wp-block-spacer.desktop-only {
display: block;
}
}
.entry .entry-content .wp-block-embed-twitter {
word-break: break-word;
}