@synergy-design-system/components
Version:
42 lines (36 loc) • 1.05 kB
CSS
/*
* This file contains utility classes that can't be contained in a component and must be applied to the light DOM. None
* of the rules in this stylesheet should target component tags or HTML tags, and all classes *must* start with ".syn-"
* to reduce the possibility of collisions.
*/
@supports (scrollbar-gutter: stable) {
.syn-scroll-lock {
scrollbar-gutter: var(--syn-scroll-lock-gutter) ;
}
.syn-scroll-lock body {
overflow: hidden ;
}
}
/** This can go away once Safari has scrollbar-gutter support. */
@supports not (scrollbar-gutter: stable) {
.syn-scroll-lock body {
overflow: hidden ;
padding-right: var(--syn-scroll-lock-size) ;
}
}
.syn-toast-stack {
inset-inline-end: 0;
max-height: 100%;
max-width: 100%;
overflow: auto;
position: fixed;
top: 0;
width: 28rem;
z-index: var(--syn-z-index-toast);
}
.syn-toast-stack syn-alert {
margin: var(--syn-spacing-small);
}
.syn-toast-stack syn-alert::part(base) {
box-shadow: var(--syn-shadow-large);
}