Sophisticated Business: Fix column block responsive pattern
This commit is contained in:
parent
8fe774da17
commit
3b088bca42
5 changed files with 10 additions and 19 deletions
|
@ -903,11 +903,7 @@
|
|||
padding-right: $size__spacing-unit;
|
||||
}
|
||||
|
||||
@include media(mobile) {
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
@include media(tabletalt) {
|
||||
|
||||
.wp-block-column {
|
||||
margin-left: #{0.5 * $size__spacing-unit};
|
||||
|
|
|
@ -12,6 +12,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
@if tabletalt == $res {
|
||||
@media only screen and (min-width: $tablet_alt_width) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@if desktop == $res {
|
||||
@media only screen and (min-width: $desktop_width) {
|
||||
@content;
|
||||
|
|
|
@ -12,6 +12,7 @@ $size__site-desktop-content: calc(6 * (100vw / 12) - 28px);
|
|||
|
||||
$mobile_width: 600px;
|
||||
$tablet_width: 768px;
|
||||
$tablet_alt_width: 782px;
|
||||
$desktop_width: 1168px;
|
||||
$wide_width: 1379px;
|
||||
|
||||
|
|
|
@ -4294,13 +4294,7 @@ body.page .main-navigation {
|
|||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 600px) {
|
||||
.entry .entry-content .wp-block-columns {
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
@media only screen and (min-width: 782px) {
|
||||
.entry .entry-content .wp-block-columns .wp-block-column {
|
||||
margin-right: 0.5rem;
|
||||
margin-left: 0.5rem;
|
||||
|
|
|
@ -4306,13 +4306,7 @@ body.page .main-navigation {
|
|||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 600px) {
|
||||
.entry .entry-content .wp-block-columns {
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
@media only screen and (min-width: 782px) {
|
||||
.entry .entry-content .wp-block-columns .wp-block-column {
|
||||
margin-left: 0.5rem;
|
||||
margin-right: 0.5rem;
|
||||
|
|
Loading…
Add table
Reference in a new issue