2021-07-10 00:45:44 +00:00
|
|
|
import { css } from 'lit';
|
|
|
|
import componentStyles from '../../styles/component.styles';
|
|
|
|
|
|
|
|
export default css`
|
|
|
|
${componentStyles}
|
|
|
|
|
|
|
|
:host {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-button {
|
|
|
|
flex: 0 0 auto;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
border-radius: var(--sl-border-radius-medium);
|
|
|
|
font-size: inherit;
|
2021-08-18 21:54:35 +00:00
|
|
|
color: rgb(var(--sl-color-neutral-600));
|
2021-07-10 00:45:44 +00:00
|
|
|
padding: var(--sl-spacing-x-small);
|
|
|
|
cursor: pointer;
|
|
|
|
transition: var(--sl-transition-medium) color;
|
|
|
|
-webkit-appearance: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-button:hover:not(.icon-button--disabled),
|
|
|
|
.icon-button:focus:not(.icon-button--disabled) {
|
2021-08-18 21:54:35 +00:00
|
|
|
color: rgb(var(--sl-color-primary-600));
|
2021-07-10 00:45:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.icon-button:active:not(.icon-button--disabled) {
|
2021-08-18 21:54:35 +00:00
|
|
|
color: rgb(var(--sl-color-primary-700));
|
2021-07-10 00:45:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.icon-button:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-button--disabled {
|
|
|
|
opacity: 0.5;
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
|
|
|
|
.focus-visible.icon-button:focus {
|
2021-08-10 21:53:15 +00:00
|
|
|
box-shadow: 0 0 0 var(--sl-focus-ring-width) rgb(var(--sl-color-primary-500) / var(--sl-focus-ring-alpha));
|
2021-07-10 00:45:44 +00:00
|
|
|
}
|
|
|
|
`;
|