AvanzaCast/shared/components/modal-parts/ModalPlatformCard.module.css
Cesar Mendivil e43686e36d feat(modal-parts): add modular components for modal UI
- Introduced ModalDestinationButton for destination selection with customizable icons and labels.
- Added ModalInput for text input with optional character counter.
- Implemented ModalLink for reusable links styled as underlined text.
- Created ModalPlatformCard for platform selection with badges.
- Developed ModalRadioGroup for radio button groups with custom styling.
- Added ModalSection for grouping modal content with optional labels.
- Implemented ModalSelect for dropdown selections with custom styling.
- Created ModalShareButtons for sharing options via Gmail, Email, and Messenger.
- Developed ModalTextarea for multi-line text input with character counter.
- Introduced ModalToggle for toggle switches with optional help text and links.
- Updated README.md with component descriptions, usage examples, and design guidelines.
- Added index.ts for centralized exports of modal components.
2025-11-06 00:32:08 -07:00

87 lines
1.3 KiB
CSS

/* ModalPlatformCard - StreamYard style platform selector card */
.card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
padding: 24px 16px;
background-color: #ffffff;
border: 1px solid #dadce0;
border-radius: 8px;
cursor: pointer;
transition: all 0.15s;
position: relative;
min-width: 160px;
}
.card:hover {
border-color: #1a73e8;
background-color: #f8f9fa;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.badge {
position: absolute;
top: 8px;
right: 8px;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
font-size: 14px;
}
.badge.pro {
background-color: #fef7e0;
}
.badge.new {
background-color: #e8f0fe;
}
.icon {
display: flex;
align-items: center;
justify-content: center;
font-size: 32px;
}
.icon svg {
width: 32px;
height: 32px;
}
.label {
color: #202124;
font-size: 14px;
font-weight: 400;
text-align: center;
}
/* Dark mode */
[data-theme="dark"] .card {
background-color: #3c4043;
border-color: #5f6368;
}
[data-theme="dark"] .card:hover {
border-color: #8ab4f8;
background-color: #5f6368;
}
[data-theme="dark"] .badge.pro {
background-color: #5f4b08;
}
[data-theme="dark"] .badge.new {
background-color: #1a3a52;
}
[data-theme="dark"] .label {
color: #e8eaed;
}