@casoon/dragonfly
Version:
Modular, lightweight CSS framework and design system for modern web projects. Optimized for Astro JS, LightningCSS and Container Queries with @layer-based architecture and comprehensive accessibility.
104 lines (85 loc) • 1.88 kB
CSS
/**
* Blend-Effekte
*
* Diese Datei enthält verschiedene Blend-Effekte für moderne UIs.
* Die Effekte sind performant optimiert und berücksichtigen reduzierte Bewegung.
*/
@layer utilities {
.blend-multiply {
mix-blend-mode: multiply;
}
.blend-screen {
mix-blend-mode: screen;
}
.blend-overlay {
mix-blend-mode: overlay;
}
.blend-darken {
mix-blend-mode: darken;
}
.blend-lighten {
mix-blend-mode: lighten;
}
.blend-color-dodge {
mix-blend-mode: color-dodge;
}
.blend-color-burn {
mix-blend-mode: color-burn;
}
.blend-hard-light {
mix-blend-mode: hard-light;
}
.blend-soft-light {
mix-blend-mode: soft-light;
}
.blend-difference {
mix-blend-mode: difference;
}
.blend-exclusion {
mix-blend-mode: exclusion;
}
.blend-hue {
mix-blend-mode: hue;
}
.blend-saturation {
mix-blend-mode: saturation;
}
.blend-color {
mix-blend-mode: color;
}
.blend-luminosity {
mix-blend-mode: luminosity;
}
.blend-normal {
mix-blend-mode: normal;
}
.blend-isolate {
isolation: isolate;
}
.blend-auto {
isolation: auto;
}
}
/* Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
@layer utilities {
.blend-multiply,
.blend-screen,
.blend-overlay,
.blend-darken,
.blend-lighten,
.blend-color-dodge,
.blend-color-burn,
.blend-hard-light,
.blend-soft-light,
.blend-difference,
.blend-exclusion,
.blend-hue,
.blend-saturation,
.blend-color,
.blend-luminosity,
.blend-normal {
transition: var(--transition-none);
}
}
}