Files
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

90 lines
1.4 KiB
CSS

.wrapper {
position: relative;
}
.toolbar {
position: absolute;
top: 12px;
right: 12px;
z-index: 1;
display: flex;
gap: 8px;
padding: 6px 8px;
pointer-events: none;
background: var(--gray-1);
border: 1px solid var(--gray-a4);
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
opacity: 0;
transition: all 200ms ease-out;
}
.wrapper:hover .toolbar,
.wrapper:focus-within .toolbar {
pointer-events: auto;
opacity: 1;
transform: translateY(0);
}
.button {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 6px;
font-size: 12px;
color: var(--gray-10);
transition: all 200ms ease;
}
.button::before {
position: absolute;
top: 0;
left: 0;
z-index: -1;
width: 100%;
height: 100%;
content: "";
background: var(--gray-3);
border-radius: 6px;
opacity: 0;
transform: scale(0.95);
transition: all 0.2s ease;
}
.button:hover {
color: var(--gray-12);
}
.button:hover:before {
opacity: 1;
transform: scale(1);
}
.button:active {
transform: scale(0.95);
}
.button:focus-visible {
outline: 2px solid var(--gray-10);
outline-offset: 2px;
}
.button:disabled {
opacity: 0.55;
}
.caption {
margin-top: 8px;
font-size: 14px;
color: var(--gray-10);
text-align: center;
letter-spacing: var(--font-letter-spacing-14px);
}
@media (hover: none) and (pointer: coarse) {
.toolbar {
display: none;
}
}