shoelace/src/styles/component.styles.ts

24 wiersze
507 B
TypeScript
Czysty Zwykły widok Historia

2021-07-10 00:45:44 +00:00
import { css } from 'lit';
import utilityStyles from '~/styles/utility.styles';
2021-07-10 00:45:44 +00:00
export default css`
:host {
box-sizing: border-box;
2021-07-13 11:12:24 +00:00
}
2021-07-10 00:45:44 +00:00
2021-07-13 11:12:24 +00:00
:host *,
:host *::before,
:host *::after {
box-sizing: inherit;
2021-07-10 00:45:44 +00:00
}
[hidden] {
display: none !important;
}
`;
2021-08-03 21:35:13 +00:00
// All components import this file, so it's a good place to ensure utility styles are applied to the light DOM
const style = document.createElement('style');
style.textContent = utilityStyles.toString();
document.head.append(style);