package.theme.lumo.vaadin-details-styles.js Maven / Gradle / Ivy
import '@vaadin/vaadin-lumo-styles/color.js';
import '@vaadin/vaadin-lumo-styles/spacing.js';
import '@vaadin/vaadin-lumo-styles/style.js';
import '@vaadin/vaadin-lumo-styles/typography.js';
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
const details = css`
:host {
margin: var(--lumo-space-xs) 0;
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]) ::slotted([slot='summary']) {
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
}
[part='content'] {
padding: var(--lumo-space-xs) 0 var(--lumo-space-s);
font-size: var(--lumo-font-size-m);
line-height: var(--lumo-line-height-m);
}
:host([theme~='filled']) {
background-color: var(--lumo-contrast-5pct);
border-radius: var(--lumo-border-radius-m);
}
:host([theme~='filled']) [part='content'] {
padding-left: var(--lumo-space-m);
padding-right: var(--lumo-space-m);
}
:host([theme~='small']) [part$='content'] {
font-size: var(--lumo-font-size-s);
}
`;
registerStyles('vaadin-details', details, { moduleId: 'lumo-details' });
export { details };