- 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.
81 lines
1.3 KiB
CSS
81 lines
1.3 KiB
CSS
/* ModalTextarea - StreamYard style textarea */
|
|
|
|
.container {
|
|
width: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.label {
|
|
display: block;
|
|
color: #5f6368;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.textarea {
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
border: 1px solid #dadce0;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
color: #202124;
|
|
background-color: #ffffff;
|
|
font-family: inherit;
|
|
resize: vertical;
|
|
min-height: 60px;
|
|
transition: border-color 0.15s, box-shadow 0.15s;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.textarea:hover {
|
|
border-color: #bdc1c6;
|
|
}
|
|
|
|
.textarea:focus {
|
|
outline: none;
|
|
border-color: #1a73e8;
|
|
box-shadow: 0 0 0 1px #1a73e8;
|
|
}
|
|
|
|
.textarea::placeholder {
|
|
color: #80868b;
|
|
}
|
|
|
|
.counter {
|
|
position: absolute;
|
|
right: 12px;
|
|
bottom: 8px;
|
|
color: #5f6368;
|
|
font-size: 12px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Dark mode */
|
|
[data-theme="dark"] .label {
|
|
color: #9aa0a6;
|
|
}
|
|
|
|
[data-theme="dark"] .textarea {
|
|
background-color: #3c4043;
|
|
border-color: #5f6368;
|
|
color: #e8eaed;
|
|
}
|
|
|
|
[data-theme="dark"] .textarea:hover {
|
|
border-color: #80868b;
|
|
}
|
|
|
|
[data-theme="dark"] .textarea:focus {
|
|
border-color: #8ab4f8;
|
|
box-shadow: 0 0 0 1px #8ab4f8;
|
|
}
|
|
|
|
[data-theme="dark"] .textarea::placeholder {
|
|
color: #9aa0a6;
|
|
}
|
|
|
|
[data-theme="dark"] .counter {
|
|
color: #9aa0a6;
|
|
}
|