mirror of
https://github.com/raphaelsalaja/userinterface-wiki.git
synced 2026-09-14 20:06:29 +08:00
9d6cfdc7c7
- 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.
47 lines
1.1 KiB
CSS
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);
|
|
}
|
|
}
|