UNPKG

now-design-atoms

Version:

Atomic UI components for now-design.

76 lines (69 loc) 1.7 kB
/* SelectableListItem Atom Styles - Based on Figma Design */ .selectable-list-item { display: flex; align-items: center; justify-content: flex-start; width: fit-content; min-width: auto; padding: 0; margin: 0; background: transparent; border: none; border-radius: 0; cursor: pointer; outline: none; gap: 8px; line-height: 1; left: calc(var(--gapSpacing-600) * 1px) !important; /* height: 30px; */ /* min-height: 20px; */ /* max-height: 20px; */ /* box-sizing: border-box; */ } .selectable-list-item-icon-container { display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; margin: 0; /* height: 20px; */ } .selectable-list-item-label { flex: 0 1 auto; text-align: left; transition: color 0.2s ease; display: flex; align-items: center; padding: 0; margin: 0; line-height: 1; /* height: 20px; */ } /* Ensure smooth transitions for all color changes */ .selectable-list-item * { transition: color 0.2s ease; } /* Disabled state */ .selectable-list-item.disabled { cursor: not-allowed; opacity: 0.6; } /* Selected state - no background change, just color changes */ .selectable-list-item.selected { background: transparent; } /* Override typography classes to prevent unnecessary spacing */ .selectable-list-item .regular-bodyLarge, .selectable-list-item .bold-bodyLarge { line-height: 1 !important; } /* Override responsive typography to prevent text disappearing */ @media (max-width: 900px) { .selectable-list-item .regular-bodyLarge, .selectable-list-item .bold-bodyLarge { font-size: 12px !important; line-height: 1 !important; letter-spacing: 0px !important; } }