mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
feat(styles): create global styles entry point and organize global styles feat(styles): implement base HTML element styles and utility classes for flexbox feat(styles): establish layout, position, spacing, and text utility classes feat(styles): introduce mixins for animations, cards, dialogs, flexbox, grid, and responsive design test(quick_guide): add component and metadata validation tests for quick_guide package test(ui_level6): implement metadata validation tests for ui_level6 package
40 lines
733 B
SCSS
40 lines
733 B
SCSS
// Interactive state mixins
|
|
|
|
@mixin hover-lift {
|
|
transition: transform var(--transition-fast), box-shadow var(--transition-fast);
|
|
|
|
&:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
}
|
|
|
|
@mixin clickable {
|
|
cursor: pointer;
|
|
transition: background-color var(--transition-fast);
|
|
|
|
&:hover {
|
|
background-color: var(--color-bg-hover);
|
|
}
|
|
|
|
&:active {
|
|
opacity: 0.8;
|
|
}
|
|
}
|
|
|
|
@mixin focus-ring {
|
|
&:focus {
|
|
outline: none;
|
|
box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-primary);
|
|
}
|
|
|
|
&:focus:not(:focus-visible) {
|
|
box-shadow: none;
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline: none;
|
|
box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-primary);
|
|
}
|
|
}
|