Files
raphaelsalaja__userinterfac…/components/popover/styles.module.css
Raphael S. 9d6cfdc7c7 feat(styles): add foundational CSS styles and typography
- Introduced multiple CSS files for styles, including reset, typography, shadows, and Radix color imports.
- Established CSS variables for spacing, typography, and shadows to ensure consistency across the application.
- Implemented styles for various HTML elements to enhance the overall design and readability.

This update lays the groundwork for a cohesive design system.
2025-12-29 20:09:25 +00:00

47 lines
1.1 KiB
CSS

.popup {
--popup-min-width: auto;
--popup-max-width: 320px;
--popup-padding-vertical: 6px;
--popup-padding-horizontal: 10px;
box-sizing: border-box;
display: inline-flex;
gap: 6px;
align-items: center;
justify-content: center;
width: var(--popup-width, auto);
min-width: var(--popup-min-width);
max-width: var(--popup-max-width);
padding: var(--popup-padding-vertical) var(--popup-padding-horizontal);
font-size: 12px;
font-weight: var(--font-weight-medium);
color: var(--gray-12);
letter-spacing: 0.01em;
background: var(--gray-1);
border: 1px solid var(--gray-a3);
border-radius: 10px;
transform-origin: var(--transform-origin);
transition:
transform 120ms ease-out,
opacity 120ms ease-out;
@media (prefers-color-scheme: light) {
box-shadow:
0 12px 30px rgba(0, 0, 0, 0.08),
0 2px 8px rgba(0, 0, 0, 0.06);
}
@media (prefers-color-scheme: dark) {
background: var(--gray-2);
box-shadow:
0 12px 30px rgba(0, 0, 0, 0.5),
0 2px 8px rgba(0, 0, 0, 0.4);
}
&[data-starting-style],
&[data-ending-style] {
opacity: 0;
transform: translateY(2px) scale(0.98);
}
}