1 | import {
|
2 | component_styles_default
|
3 | } from "./chunk.7IGWJVQF.js";
|
4 | import {
|
5 | r
|
6 | } from "./chunk.WWAD5WF4.js";
|
7 |
|
8 |
|
9 | var icon_button_styles_default = r`
|
10 | ${component_styles_default}
|
11 |
|
12 | :host {
|
13 | display: inline-block;
|
14 | }
|
15 |
|
16 | .icon-button {
|
17 | flex: 0 0 auto;
|
18 | display: flex;
|
19 | align-items: center;
|
20 | background: none;
|
21 | border: none;
|
22 | border-radius: var(--sl-border-radius-medium);
|
23 | font-size: inherit;
|
24 | color: var(--sl-color-neutral-600);
|
25 | padding: var(--sl-spacing-x-small);
|
26 | cursor: pointer;
|
27 | transition: var(--sl-transition-medium) color;
|
28 | -webkit-appearance: none;
|
29 | }
|
30 |
|
31 | .icon-button:hover:not(.icon-button--disabled),
|
32 | .icon-button:focus:not(.icon-button--disabled) {
|
33 | color: var(--sl-color-primary-600);
|
34 | }
|
35 |
|
36 | .icon-button:active:not(.icon-button--disabled) {
|
37 | color: var(--sl-color-primary-700);
|
38 | }
|
39 |
|
40 | .icon-button:focus {
|
41 | outline: none;
|
42 | }
|
43 |
|
44 | .icon-button--disabled {
|
45 | opacity: 0.5;
|
46 | cursor: not-allowed;
|
47 | }
|
48 |
|
49 | .icon-button:focus-visible {
|
50 | outline: var(--sl-focus-ring);
|
51 | outline-offset: var(--sl-focus-ring-offset);
|
52 | }
|
53 |
|
54 | .icon-button__icon {
|
55 | pointer-events: none;
|
56 | }
|
57 | `;
|
58 |
|
59 | export {
|
60 | icon_button_styles_default
|
61 | };
|