UNPKG

@vaadin/vaadin-lumo-styles

Version:

Lumo is a design system foundation for modern web applications, used by Vaadin components

101 lines (85 loc) 1.64 kB
/** * @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_mixins_resizable-overlay { [part='overlay'] { position: relative; overflow: visible; max-height: 100%; display: flex; } [part='content'] { box-sizing: border-box; height: 100%; } .resizer-container { display: flex; flex-direction: column; flex-grow: 1; border-radius: inherit; /* prevent child elements being drawn outside part=overlay */ } [part='overlay'][style] .resizer-container { min-height: 100%; width: 100%; } :host(:not([resizable])) .resizer { display: none; } :host([resizable]) [part='title'] { cursor: move; -webkit-user-select: none; user-select: none; } .resizer { position: absolute; height: 16px; width: 16px; } .resizer.edge { height: 8px; width: 8px; inset: -4px; } .resizer.edge.n { width: auto; bottom: auto; cursor: ns-resize; } .resizer.ne { top: -4px; right: -4px; cursor: nesw-resize; } .resizer.edge.e { height: auto; left: auto; cursor: ew-resize; } .resizer.se { bottom: -4px; right: -4px; cursor: nwse-resize; } .resizer.edge.s { width: auto; top: auto; cursor: ns-resize; } .resizer.sw { bottom: -4px; left: -4px; cursor: nesw-resize; } .resizer.edge.w { height: auto; right: auto; cursor: ew-resize; } .resizer.nw { top: -4px; left: -4px; cursor: nwse-resize; } }