Skip to content

Commit

Permalink
Merge pull request #9 from navnorth/NN-431
Browse files Browse the repository at this point in the history
NN-431 - NN Web Button Block Style
  • Loading branch information
johnpaulbalagolan authored Jan 21, 2025
2 parents f3830aa + ffdcff8 commit 9ddb53c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 19 deletions.
14 changes: 14 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
* Text Domain: navnorth
**/
/* NN Blue Button Hover Style */
.wp-block-button
> .wp-block-button__link:not(.has-text-color, .has-background):hover {
background-color: var(--wp--preset--color--cyan);
}
.wp-block-button
> .wp-block-button__link:not(.has-text-color, .has-background):focus {
background-color: var(--wp--preset--color--cyan);
}
.wp-block-button.is-style-nn-blue
> .wp-block-button__link:not(.has-text-color, .has-background):hover {
background-color: var(--wp--preset--color--cyan);
Expand All @@ -19,6 +27,12 @@
background-color: var(--wp--preset--color--blue);
color: var(--wp--preset--color--base);
}
/* NN Yellow Button Hover Style */
.wp-block-button.is-style-nn-yellow
> .wp-block-button__link:not(.has-text-color, .has-background):focus {
background-color: var(--wp--preset--color--blue);
color: var(--wp--preset--color--base);
}
header .wp-block-navigation {
flex-grow: 1;
}
Expand Down
19 changes: 0 additions & 19 deletions theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,25 +266,6 @@
},
"elements": {
"button": {
":active": {
"color": {
"background": "var(--wp--preset--color--contrast)",
"text": "var(--wp--preset--color--base)"
}
},
":focus": {
"color": {
"background": "var(--wp--preset--color--blue)",
"text": "var(--wp--preset--color--base)"
},
"outline": {
"color": "var(--wp--preset--color--blue)",
"offset": "2px"
},
"border": {
"color": "var(--wp--preset--color--blue)"
}
},
":hover": {
"color": {
"background": "var(--wp--preset--color--blue)",
Expand Down

0 comments on commit 9ddb53c

Please sign in to comment.