cssOMS/button.scss
2023-03-11 23:38:20 +01:00

72 lines
1.5 KiB
SCSS
Executable File

.btn {
cursor: pointer;
user-select: none;
}
button, input[type="submit"], input[type="button"], label.button, a.button {
cursor: pointer;
display: inline-flex;
min-width: 70px;
background: var(--button-colored-background);
color: var(--text-on-background-color-2);
margin: 0;
padding: 0 1rem 0 1rem;
flex-grow: 0;
height: 32px;
//border: none;
border: 1px solid var(--box-border);
box-shadow: none;
justify-content: center;
align-items: center;
outline: 0;
font-family: inherit;
font-size: .9rem;
user-select: none;
font-weight: 100;
&::-moz-focus-inner {
border: 0;
}
&:hover, &:focus {
background: var(--button-colored-background-hover);
color: var(--text-on-background-color-2);
}
}
button.save, .button.save, input[type="submit"].save {
color: rgba(0, 0, 0, 0.75);
background: #8fff79;
&:hover, &:focus {
background: #a1ffa1;
}
}
button.cancel, .button.cancel, input[type="submit"].cancel {
background: #ee5649;
&:hover, &:focus {
background: #ff7d79;
}
}
button.close, .button.close, input[type="submit"].close {
color: rgba(0, 0, 0, 0.75);
background: #fffc3e;
&:hover, &:focus {
background: #fffd7b;
}
}
button.disabled, .button.disabled, input[type="submit"].disabled {
color: rgba(0, 0, 0, 0.5);
background: #e1e1e1;
cursor: not-allowed;
&:hover, &:focus {
background: #e1e1e1;
}
}