All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.theme.lumo.vaadin-list-box-styles.js Maven / Gradle / Ivy

There is a newer version: 24.5.4
Show newest version
import '@vaadin/vaadin-lumo-styles/color.js';
import '@vaadin/vaadin-lumo-styles/spacing.js';
import '@vaadin/vaadin-lumo-styles/style.js';
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';

const listBox = css`
  :host {
    -webkit-tap-highlight-color: transparent;
    --_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
  }

  /* Dividers */
  [part='items'] ::slotted(hr) {
    height: 1px;
    border: 0;
    padding: 0;
    margin: var(--lumo-space-s) var(--lumo-border-radius-m);
    background-color: var(--lumo-contrast-10pct);
  }
`;

registerStyles('vaadin-list-box', listBox, { moduleId: 'lumo-list-box' });

export { listBox };




© 2015 - 2024 Weber Informatics LLC | Privacy Policy