2022-01-18 15:13:48 +01:00
|
|
|
/**
|
|
|
|
* Sharable button styles constant
|
|
|
|
*/
|
|
|
|
|
|
|
|
import {css} from "@lion/core";
|
|
|
|
import {colorsDefStyles} from "../Styles/colorsDefStyles";
|
|
|
|
|
|
|
|
export const buttonStyles = [
|
|
|
|
colorsDefStyles,
|
|
|
|
css`
|
|
|
|
:host {
|
|
|
|
border: 1px solid gray;
|
|
|
|
color: var(--gray_70, #505050);
|
|
|
|
background-color: var(--gray_10, #e6e6e6);
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
2022-04-05 00:24:01 +02:00
|
|
|
:host([disabled]) {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
:host([disabled]) ::slotted(img) {
|
|
|
|
filter: grayscale(1) contrast(0.2);
|
|
|
|
}
|
|
|
|
:host(:hover):not([disabled]) {
|
2022-01-18 15:13:48 +01:00
|
|
|
box-shadow: 1px 1px 1px rgb(0 0 0 / 60%);
|
|
|
|
background-color: var(--bg_color_15_gray, #d9d9d9);
|
|
|
|
}
|
|
|
|
:host(:active) {
|
|
|
|
box-shadow: inset 1px 2px 1px rgb(0 0 0 / 50%);
|
|
|
|
}
|
2022-01-19 18:30:45 +01:00
|
|
|
div {
|
|
|
|
margin: 2px;
|
2022-01-20 13:13:04 +01:00
|
|
|
height:20px;
|
2022-01-20 17:34:38 +01:00
|
|
|
font-size: 9pt;
|
|
|
|
text-shadow: 0 0;
|
2022-01-19 18:30:45 +01:00
|
|
|
}
|
2022-04-05 00:24:01 +02:00
|
|
|
:not([disabled]) div {
|
|
|
|
color: var(--btn-label-color);
|
|
|
|
}
|
2022-01-18 15:13:48 +01:00
|
|
|
`];
|