@aidenlx/player
Version:
Headless web components that make integrating media on the a web a breeze.
33 lines (28 loc) • 597 B
text/typescript
import { css } from 'lit';
export const sliderElementStyles = css`
* {
box-sizing: border-box;
touch-action: none;
}
:host {
display: block;
contain: layout;
user-select: none;
-webkit-user-select: none;
-webkit-tap-highlight-color: transparent;
}
:host([hidden]) {
display: none;
}
:host(:focus) {
outline: none;
}
:host(:focus-visible) {
outline: 1px auto Highlight;
outline: 1px auto -webkit-focus-ring-color;
}
:host(.focus-visible) {
outline: 1px auto Highlight;
outline: 1px auto -webkit-focus-ring-color;
}
`;