Skip to content

Commit

Permalink
Attempt to clear border support styles on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Apr 1, 2022
1 parent bd5022c commit 935574a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/block-library/src/columns/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,20 @@
}
}
}

&:where(:not(.is-not-stacked-on-mobile)) {
@media (max-width: #{ ($break-medium - 1) }) {
& > .wp-block-column[class*="has-border-"], // Clear when color defined.
& > .wp-block-column[style*="border-style"], // Clear when border style set.
& > .wp-block-column[style*="border-width"],
& > .wp-block-column[style*="border-top-width"],
& > .wp-block-column[style*="border-right-width"],
& > .wp-block-column[style*="border-bottom-width"],
& > .wp-block-column[style*="border-left-width"] {
border-width: 0 !important;
}
}
}
}

// Add low specificity default padding to columns blocks with backgrounds.
Expand Down

0 comments on commit 935574a

Please sign in to comment.