cssOMS/button.scss
2022-02-19 13:57:39 +01:00

73 lines
1.3 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;
box-shadow: none;
justify-content: center;
align-items: center;
outline: 0;
font-family: inherit;
font-size: .9rem;
user-select: none;
&::-moz-focus-inner {
border: 0;
}
&:hover, &:focus {
background: var(--button-colored-background-hover);
}
i {
margin: 0 .5rem 0 0;
}
}
button.save, .button.save {
color: rgba(0, 0, 0, 0.75);
background: #8fff79;
&:hover, &:focus {
background: #a1ffa1;
}
}
button.cancel, .button.cancel {
background: #ee5649;
&:hover, &:focus {
background: #ff7d79;
}
}
button.close, .button.close {
color: rgba(0, 0, 0, 0.75);
background: #fffc3e;
&:hover, &:focus {
background: #fffd7b;
}
}
button.disabled, .button.disabled {
color: rgba(0, 0, 0, 0.5);
background: #e1e1e1;
cursor: not-allowed;
&:hover, &:focus {
background: #e1e1e1;
}
}