Skip to content

Commit

Permalink
Move Navigation Link block style to theme.json, prune media query CSS.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgardner committed May 10, 2023
1 parent 1dddabd commit 02bd339
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 28 deletions.
28 changes: 0 additions & 28 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -197,31 +197,3 @@ textarea {
}

}

@media only screen and (min-width: 800px) {

/* Navigation Link
--------------------------------------------- */

.wp-block-navigation-item.is-style-outline a {
border: 1px solid currentColor;
padding: 8px 15px;
}

/* Pullquote
--------------------------------------------- */

.wp-block-pullquote.alignleft,
.wp-block-pullquote.alignright {
max-width: 300px;
}

.wp-block-pullquote.alignleft {
margin-right: 30px !important;
}

.wp-block-pullquote.alignright {
margin-left: 30px !important;
}

}
3 changes: 3 additions & 0 deletions theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"core/navigation-link": {
"css": ".is-style-outline a {@media only screen and (min-width: 800px) {border: 1px solid currentColor;border-radius: 5px;padding: 7px 15px;}}"
},
"core/paragraph": {
"css": ".has-background {padding: 20px 30px;}",
"spacing": {
Expand Down

0 comments on commit 02bd339

Please sign in to comment.