@vaadin/vaadin-lumo-styles
Version:
Lumo is a design system foundation for modern web applications, used by Vaadin components
132 lines (111 loc) • 3.1 kB
CSS
/**
* @license
* Copyright (c) 2017 - 2026 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
@media lumo_components_details-summary {
:host {
white-space: nowrap;
-webkit-user-select: none;
user-select: none;
display: flex;
align-items: center;
width: 100%;
outline: none;
padding: var(--lumo-space-s) 0;
box-sizing: border-box;
font-family: var(--lumo-font-family);
font-size: var(--lumo-font-size-m);
font-weight: 500;
line-height: var(--lumo-line-height-xs);
color: var(--lumo-secondary-text-color);
background-color: inherit;
border-radius: var(--lumo-border-radius-m);
cursor: var(--lumo-clickable-cursor);
-webkit-tap-highlight-color: transparent;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
:host([hidden]) {
display: none ;
}
:host([disabled]) {
pointer-events: none;
}
:host([disabled]),
:host([disabled]) [part='toggle'] {
color: var(--lumo-disabled-text-color);
cursor: default;
}
@media (hover: hover) {
:host(:hover:not([disabled])),
:host(:hover:not([disabled])) [part='toggle'] {
color: var(--lumo-contrast-80pct);
}
}
[part='toggle'] {
display: block;
width: 1em;
height: 1em;
margin-left: calc(var(--lumo-space-xs) * -1);
margin-right: var(--lumo-space-xs);
font-size: var(--lumo-icon-size-s);
line-height: 1;
color: var(--lumo-contrast-60pct);
font-family: 'lumo-icons';
cursor: var(--lumo-clickable-cursor);
}
[part='toggle']::before {
content: var(--lumo-icons-angle-right);
}
:host([opened]) [part='toggle'] {
transform: rotate(90deg);
}
[part='content'] {
flex-grow: 1;
}
/* RTL styles */
:host([dir='rtl']) [part='toggle'] {
margin-left: var(--lumo-space-xs);
margin-right: calc(var(--lumo-space-xs) * -1);
}
:host([dir='rtl']) [part='toggle']::before {
content: var(--lumo-icons-angle-left);
}
:host([opened][dir='rtl']) [part='toggle'] {
transform: rotate(-90deg);
}
/* Small */
:host([theme~='small']) {
padding-top: var(--lumo-space-xs);
padding-bottom: var(--lumo-space-xs);
}
:host([theme~='small']) [part='toggle'] {
margin-right: calc(var(--lumo-space-xs) / 2);
}
:host([theme~='small'][dir='rtl']) [part='toggle'] {
margin-left: calc(var(--lumo-space-xs) / 2);
}
/* Filled */
:host([theme~='filled']) {
padding: var(--lumo-space-s) calc(var(--lumo-space-s) + var(--lumo-space-xs) / 2);
}
/* Reverse */
:host([theme~='reverse']) {
justify-content: space-between;
}
:host([theme~='reverse']) [part='toggle'] {
order: 1;
margin-right: 0;
}
:host([theme~='reverse'][dir='rtl']) [part='toggle'] {
margin-left: 0;
}
/* Filled reverse */
:host([theme~='reverse'][theme~='filled']) {
padding-left: var(--lumo-space-m);
}
:host([theme~='reverse'][theme~='filled'][dir='rtl']) {
padding-right: var(--lumo-space-m);
}
}