Skip to content

Commit

Permalink
Merge pull request #60 from Codeinwp/reduce-buttons-padding-on-mobile
Browse files Browse the repository at this point in the history
Changes the padding on Mobile for buttons
  • Loading branch information
cristian-ungureanu authored Aug 2, 2023
2 parents cad26e5 + 943a52c commit cedd914
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions assets/css/src/common/_generic.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@custom-media --mobile (max-width: 481px);

* {
box-sizing: border-box;
}
Expand Down Expand Up @@ -76,4 +78,15 @@ body .wp-block-button.is-style-outline > .wp-block-button__link,
body .wp-block-button .wp-block-button__link.is-style-outline {
border: 2px solid;
padding: 16px 40px;

@media (--mobile) {
padding: 16px 20px;
}
}

body .wp-block-button .wp-block-button__link {

@media (--mobile) {
padding: 16px 20px;
}
}

0 comments on commit cedd914

Please sign in to comment.