- 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.
67 lines
1.1 KiB
CSS
67 lines
1.1 KiB
CSS
.container {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.input {
|
|
flex: 1;
|
|
padding: 10px 14px;
|
|
border: 1px solid #dadce0;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
background: #ffffff;
|
|
color: #202124;
|
|
font-family: inherit;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.input:focus {
|
|
outline: none;
|
|
border-color: #1a73e8;
|
|
box-shadow: 0 0 0 1px #1a73e8;
|
|
}
|
|
|
|
.button {
|
|
padding: 10px 24px;
|
|
background: #1a73e8;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s, box-shadow 0.2s;
|
|
white-space: nowrap;
|
|
min-width: 100px;
|
|
}
|
|
|
|
.button:hover {
|
|
background: #1765cc;
|
|
box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
|
|
}
|
|
|
|
.button:active {
|
|
background: #1557b0;
|
|
}
|
|
|
|
/* Dark mode */
|
|
[data-theme="dark"] .input {
|
|
background: #2d2e30;
|
|
border-color: #5f6368;
|
|
color: #e8eaed;
|
|
}
|
|
|
|
[data-theme="dark"] .input:focus {
|
|
border-color: #8ab4f8;
|
|
box-shadow: 0 0 0 1px #8ab4f8;
|
|
}
|
|
|
|
[data-theme="dark"] .button {
|
|
background: #1a73e8;
|
|
}
|
|
|
|
[data-theme="dark"] .button:hover {
|
|
background: #2b7de9;
|
|
}
|