button:focus,
button:hover,
button:active {
background: blue;
}
/* ์๋์ ๊ฐ์ด ๊ฐ๊ฒฐํ๊ฒ ์์ฑ ๊ฐ๋ฅ */
button:where(:focus, :hover, :active) {
background: blue;
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
appearance: none;
cursor: pointer;
margin: 0;
border: none;
border-radius: 1em;
padding: 0.5em 1em;
color: white;
font-weight: bold;
background: royalblue;
}
/* ์๋์ ๊ฐ์ด ์ฌ๋ฌ ์์์ ๋์ผํ ์คํ์ผ ์ ์ฉ ๊ฐ๋ฅ */
:where(button, input[type="button"], input[type="reset"], input[type="submit"]) {
appearance: none;
cursor: pointer;
margin: 0;
border: none;
border-radius: 1em;
padding: 0.5em 1em;
color: white;
font-weight: bold;
background: royalblue;
}
button:focus,
button:hover,
button:active,
input[type="button"]:focus,
input[type="button"]:hover,
input[type="button"]:active,
input[type="reset"]:focus,
input[type="reset"]:hover,
input[type="reset"]:active,
input[type="submit"]:focus,
input[type="submit"]:hover,
input[type="submit"]:active {
background: blue;
}
/* ํ์ํ ์ ํ์๋ฅผ ๋ง์ด ์ค์ผ ์ ์๋ค. */
:where(button, input[type="button"], input[type="reset"], input[type="submit"]):where(:focus, :hover, :active) {
background: blue;
}