UNPKG

geeks-ui-framework

Version:

A modern, lightweight CSS framework with 15+ components for developers. Build beautiful interfaces with minimal effort.

138 lines (115 loc) 2.56 kB
/* Tabs Component */ .tabs { margin: 1rem 0; } .tab-list { display: flex; list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--light-color, #e9ecef); background: transparent; } .tab-item { margin: 0; } .tab-link { display: block; padding: 0.75rem 1.5rem; text-decoration: none; color: var(--muted-color, #6c757d); border: none; background: transparent; cursor: pointer; transition: all 0.3s ease; border-bottom: 3px solid transparent; font-weight: 500; position: relative; overflow: hidden; } .tab-link:hover { color: var(--primary-color, #667eea); background: rgba(102, 126, 234, 0.05); } .tab-link.active { color: var(--primary-color, #667eea); border-bottom-color: var(--primary-color, #667eea); background: rgba(102, 126, 234, 0.1); } .tab-content { padding: 1.5rem 0; } .tab-pane { display: none; animation: fadeIn 0.3s ease; } .tab-pane.active { display: block; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } /* Tab Variants */ .tabs-pills .tab-list { border-bottom: none; gap: 0.5rem; } .tabs-pills .tab-link { border-radius: 2rem; border-bottom: none; } .tabs-pills .tab-link.active { background: var(--primary-color, #667eea); color: white; } .tabs-vertical { display: flex; gap: 2rem; } .tabs-vertical .tab-list { flex-direction: column; border-bottom: none; border-right: 2px solid var(--light-color, #e9ecef); min-width: 200px; } .tabs-vertical .tab-link { text-align: left; border-bottom: none; border-right: 3px solid transparent; } .tabs-vertical .tab-link.active { border-right-color: var(--primary-color, #667eea); border-bottom: none; } /* Tab Icons */ .tab-link i { margin-right: 0.5rem; } /* Responsive Tabs */ @media (max-width: 768px) { .tab-list { flex-wrap: wrap; } .tab-link { flex: 1; text-align: center; padding: 0.5rem 1rem; font-size: 0.875rem; } .tabs-vertical { flex-direction: column; } .tabs-vertical .tab-list { flex-direction: row; border-right: none; border-bottom: 2px solid var(--light-color, #e9ecef); min-width: auto; } }