@feedinbox/cli
Version:
CLI tool for installing FeedInbox components into your project
193 lines (162 loc) • 3.69 kB
CSS
/* Preferences Widget Styles */
.feedinbox-preferences-button {
background: #8b5cf6;
color: white;
border: none;
padding: 12px 24px;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.feedinbox-preferences-button:hover {
background: #7c3aed;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
.feedinbox-preferences-button:active {
transform: translateY(0);
}
/* Preferences grid */
.feedinbox-preferences-grid {
display: grid;
gap: 16px;
margin: 24px 0;
}
.feedinbox-preference-item {
padding: 16px;
border: 1px solid var(--feedinbox-border-color, #e5e7eb);
border-radius: 8px;
background: var(--feedinbox-card-bg, #ffffff);
transition: all 0.2s ease;
}
.feedinbox-preference-item:hover {
border-color: var(--feedinbox-primary-color, #8b5cf6);
box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}
.feedinbox-preference-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.feedinbox-preference-label {
font-weight: 500;
color: var(--feedinbox-text-color, #374151);
font-size: 14px;
margin: 0;
}
.feedinbox-preference-description {
font-size: 13px;
color: var(--feedinbox-muted-color, #6b7280);
margin: 0;
line-height: 1.4;
}
/* Toggle Switch */
.feedinbox-switch {
position: relative;
display: inline-block;
width: 44px;
height: 24px;
}
.feedinbox-switch-input {
opacity: 0;
width: 0;
height: 0;
}
.feedinbox-switch-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: 0.3s;
border-radius: 24px;
}
.feedinbox-switch-slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background-color: white;
transition: 0.3s;
border-radius: 50%;
}
.feedinbox-switch-input:checked + .feedinbox-switch-slider {
background-color: var(--feedinbox-primary-color, #8b5cf6);
}
.feedinbox-switch-input:checked + .feedinbox-switch-slider:before {
transform: translateX(20px);
}
.feedinbox-switch-slider:hover {
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}
/* User info */
.feedinbox-user-info {
margin: 16px 0;
padding: 12px;
background: var(--feedinbox-info-bg, #f3f4f6);
border-radius: 6px;
text-align: center;
}
.feedinbox-user-info small {
color: var(--feedinbox-muted-color, #6b7280);
font-size: 12px;
}
.feedinbox-user-info strong {
color: var(--feedinbox-text-color, #374151);
}
/* Dark theme */
[data-theme="dark"] .feedinbox-preferences-button {
background: #1f2937;
color: #f3f4f6;
}
[data-theme="dark"] .feedinbox-preferences-button:hover {
background: #374151;
}
[data-theme="dark"] .feedinbox-preference-item {
background: #1f2937;
border-color: #4b5563;
}
[data-theme="dark"] .feedinbox-preference-item:hover {
border-color: #8b5cf6;
}
[data-theme="dark"] .feedinbox-preference-label {
color: #e5e7eb;
}
[data-theme="dark"] .feedinbox-preference-description {
color: #9ca3af;
}
[data-theme="dark"] .feedinbox-user-info {
background: #374151;
}
[data-theme="dark"] .feedinbox-user-info small {
color: #9ca3af;
}
[data-theme="dark"] .feedinbox-user-info strong {
color: #e5e7eb;
}
/* Responsive */
@media (max-width: 640px) {
.feedinbox-preferences-button {
width: 100%;
padding: 14px 20px;
}
.feedinbox-preference-item {
padding: 12px;
}
.feedinbox-preference-header {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.feedinbox-switch {
align-self: flex-end;
}
}