Files
reflector/www/app/styles/button.css
2023-09-20 17:16:24 +02:00

118 lines
2.8 KiB
CSS

/* Define basic button styles */
input[type="button"],
button {
/* Reset default button styles */
border: none;
background-color: transparent;
font-family: inherit;
padding: 0;
cursor: pointer;
/* Visual */
border-radius: 8px;
/* Size */
padding: 0.4em 1em;
min-height: 44px;
/* Text */
text-align: center;
line-height: 1.1;
/* Display */
display: inline-flex;
align-items: center;
justify-content: center;
/* Animation */
transition: 220ms all ease-in-out;
}
@media (max-width: 768px) {
input[type="button"],
button {
padding: 0.25em 0.75em;
min-height: 30px;
}
}
/* Button modifiers */
input[type="button"].small,
button.small {
font-size: 1.15rem;
}
input[type="button"].block,
button.block {
width: 100%;
}
/* Disabled styles */
input[type="button"][disabled],
button[disabled] {
border-color: #ccc;
background: #b8b8b8 !important;
cursor: not-allowed;
}
input[type="button"][disabled]:hover,
button[disabled]:hover {
background: #b8b8b8 !important;
cursor: not-allowed !important;
}
/* Red button states */
input[type="button"][data-color="red"],
button[data-color="red"],
input[type="button"][data-color="red"]:hover,
button[data-color="red"]:hover,
input[type="button"][data-color="red"]:active,
button[data-color="red"]:active {
background-color: #cc3347;
}
/* Green button states */
input[type="button"][data-color="green"],
button[data-color="green"],
input[type="button"][data-color="green"]:hover,
button[data-color="green"]:hover,
input[type="button"][data-color="green"]:active,
button[data-color="green"]:active {
background-color: #33cc47;
}
/* Blue button states */
input[type="button"][data-color="blue"],
button[data-color="blue"],
input[type="button"][data-color="blue"]:hover,
button[data-color="blue"]:hover,
input[type="button"][data-color="blue"]:active,
button[data-color="blue"]:active {
background-color: #3347cc;
}
/* Orange button states */
input[type="button"][data-color="orange"],
button[data-color="orange"],
input[type="button"][data-color="orange"]:hover,
button[data-color="orange"]:hover,
input[type="button"][data-color="orange"]:active,
button[data-color="orange"]:active {
background-color: #ff7f00;
}
/* Purple button states */
input[type="button"][data-color="purple"],
button[data-color="purple"],
input[type="button"][data-color="purple"]:hover,
button[data-color="purple"]:hover,
input[type="button"][data-color="purple"]:active,
button[data-color="purple"]:active {
background-color: #800080;
}
/* Yellow button states */
input[type="button"][data-color="yellow"],
button[data-color="yellow"],
input[type="button"][data-color="yellow"]:hover,
button[data-color="yellow"]:hover,
input[type="button"][data-color="yellow"]:active,
button[data-color="yellow"]:active {
background-color: #ffff00;
}