@logo-elements/logo-elements-styles
Version:
Logo Elements Design System is a design system library for modern web applications which gives your web apps Logo Applications look and feel, used by Logo Elements
84 lines (72 loc) • 2.27 kB
JavaScript
/**
* @license
* Copyright LOGO YAZILIM SANAYİ VE TİCARET A.Ş.
*
* Save to the extent permitted by law, you may not use, copy, modify,
* distribute or create derivative works of this material or any part
* of it without the prior written consent of LOGO YAZILIM SANAYİ VE TİCARET A.Ş. Limited.
* Any reproduction of this material must contain this notice.
*/
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/register-styles.js';
import '../color.js';
import '../spacing.js';
import '../style.js';
import '../typography.js';
const overlay = css`
:host {
top: var(--leds-space-m);
right: var(--leds-space-m);
bottom: var(--leds-space-m);
left: var(--leds-space-m);
/* Workaround for Edge issue (only on Surface), where an overflowing logo-elements-list-box inside logo-elements-select-overlay makes the overlay transparent */
/* stylelint-disable-next-line */
outline: 0px solid transparent;
}
[part='overlay'] {
background-color: var(--leds-base-color);
background-image: linear-gradient(var(--leds-tint-5pct), var(--leds-tint-5pct));
border-radius: var(--leds-border-radius-m);
box-shadow: 0 0 0 1px var(--leds-shade-5pct), var(--leds-box-shadow-m);
color: var(--leds-body-text-color);
font-family: var(--leds-font-family);
font-size: var(--leds-font-size-m);
font-weight: 400;
line-height: var(--leds-line-height-m);
letter-spacing: 0;
text-transform: none;
-webkit-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
[part='content'] {
padding: var(--leds-space-xs);
}
[part='backdrop'] {
background-color: var(--leds-shade-20pct-rgb);
animation: 0.2s leds-overlay-backdrop-enter both;
will-change: opacity;
}
@keyframes leds-overlay-backdrop-enter {
0% {
opacity: 0;
}
}
:host([closing]) [part='backdrop'] {
animation: 0.2s leds-overlay-backdrop-exit both;
}
@keyframes leds-overlay-backdrop-exit {
100% {
opacity: 0;
}
}
@keyframes leds-overlay-dummy-animation {
0% {
opacity: 1;
}
100% {
opacity: 1;
}
}
`;
registerStyles('', overlay, { moduleId: 'leds-overlay' });
export { overlay };