scrollerpackage.theme.lumo.vaadin-scroller-styles.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-webcomponents Show documentation
Show all versions of vaadin-webcomponents Show documentation
Mvnpm composite: Vaadin webcomponents
The newest version!
import '@vaadin/vaadin-lumo-styles/color.js';
import '@vaadin/vaadin-lumo-styles/style.js';
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
const scroller = css`
:host {
outline: none;
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
}
:host([focus-ring]) {
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
}
/* Show dividers when content overflows */
:host([theme~='overflow-indicators'])::before,
:host([theme~='overflow-indicators'])::after {
content: '';
display: none;
position: sticky;
inset: 0;
z-index: 9999;
height: 1px;
margin-bottom: -1px;
background: var(--lumo-contrast-10pct);
}
:host([theme~='overflow-indicators'])::after {
margin-bottom: 0;
margin-top: -1px;
}
:host([theme~='overflow-indicators'][overflow~='top'])::before,
:host([theme~='overflow-indicators'][overflow~='bottom'])::after {
display: block;
}
`;
registerStyles('vaadin-scroller', scroller, { moduleId: 'lumo-scroller' });
export { scroller };