Archived
Template
1
Fork 0
This repository has been archived on 2024-09-04. You can view files and clone it, but cannot push or open issues or pull requests.
Contour/public/@shoelace-style/shoelace/cdn/chunks/chunk.AXIXVKWW.js
2024-01-30 10:59:28 -05:00

83 lines
1.7 KiB
JavaScript

import {
component_styles_default
} from "./chunk.K23QWHWK.js";
import {
i
} from "./chunk.CXZZ2LVK.js";
// src/components/tab/tab.styles.ts
var tab_styles_default = i`
${component_styles_default}
:host {
display: inline-block;
}
.tab {
display: inline-flex;
align-items: center;
font-family: var(--sl-font-sans);
font-size: var(--sl-font-size-small);
font-weight: var(--sl-font-weight-semibold);
border-radius: var(--sl-border-radius-medium);
color: var(--sl-color-neutral-600);
padding: var(--sl-spacing-medium) var(--sl-spacing-large);
white-space: nowrap;
user-select: none;
-webkit-user-select: none;
cursor: pointer;
transition:
var(--transition-speed) box-shadow,
var(--transition-speed) color;
}
.tab:hover:not(.tab--disabled) {
color: var(--sl-color-primary-600);
}
.tab:focus {
outline: none;
}
.tab:focus-visible:not(.tab--disabled) {
color: var(--sl-color-primary-600);
}
.tab:focus-visible {
outline: var(--sl-focus-ring);
outline-offset: calc(-1 * var(--sl-focus-ring-width) - var(--sl-focus-ring-offset));
}
.tab.tab--active:not(.tab--disabled) {
color: var(--sl-color-primary-600);
}
.tab.tab--closable {
padding-inline-end: var(--sl-spacing-small);
}
.tab.tab--disabled {
opacity: 0.5;
cursor: not-allowed;
}
.tab__close-button {
font-size: var(--sl-font-size-small);
margin-inline-start: var(--sl-spacing-small);
}
.tab__close-button::part(base) {
padding: var(--sl-spacing-3x-small);
}
@media (forced-colors: active) {
.tab.tab--active:not(.tab--disabled) {
outline: solid 1px transparent;
outline-offset: -3px;
}
}
`;
export {
tab_styles_default
};