Archived topic
Button formatting
3 replies · Started by Scott on March 16, 2021
Viewing posts 1–4 of 4
Hi
I'm using the below CSS to format my buttons site-wide (standard Gutenberg buttons).
I'm happy with how these are displaying on desktop but on mobile the formatting breaks.
/* Button border */
button, html input[type="button"], input[type="reset"], input[type="submit"], a.button, a.button:visited, a.wp-block-button__link:not(.has-background) {
pointer-events: initial !important;
border: 3px solid;
border-color: #48bc78
}
/* Button hover */
button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
a.button:hover,
a.wp-block-button__link:not(.has-background):hover {
background: #48bc78;
color: black;
}
Any ideas?
Hi Scott,
It seems one }is missing from the end of one CSS snippet:
https://www.screencast.com/t/UmH3V0d46d
Thanks Ying! I would have never figured that out.
You are welcome!
This archived topic is closed to new replies.