UNPKG

aurelia-tabs

Version:

A dependency free tabs component for your Aurelia applications.

95 lines (80 loc) 1.52 kB
/* Tab Bar */ .tabs { border-bottom: 1px solid #DDDDE5; display: block; height: 100%; margin-bottom: 30px; text-align: left; } .tabs--modal { background: #FFF; display: block; height: 50px; } .tabs--white { background: #FFF; } .tabs--modal ul { margin-left: auto; margin-right: auto; max-width: 95em; } .tabs__tab { display: inline-block; height: 100%; padding-bottom: 10px; text-align: center; } .tabs--modal .tabs__tab { margin-right: 50px; padding: 17px 0; } .tabs__tab:hover, .tabs__tab--selected { border-bottom: 4px solid #6184E9; text-decoration: none; } .tabs__tab__inner { color: #000; display: block; font-size: 16px; font-weight: 600; padding: 0 24px; text-decoration: none; text-transform: capitalize; } .tabs--modal .tabs__tab__inner { color: #B2B2B2; font-weight: 400; padding: 0; } /* Tab sections wrapper container */ tab-sections { display: block; } .tab-sections { padding-bottom: 40%; position: relative; } /* Tabbed section (individual wrapped container) */ tab-section { display: block; } .tab-sections__tab-section { height: 100%; opacity: 0; position: absolute; transition: opacity 0.4s ease; width: 100%; z-index: -1; } .tab-sections__tab-section__description { color: #999; font-size: 14px; line-height: 1.2; margin-bottom: 25px; } .tab-sections__tab-section--active { opacity: 1; z-index: 500; }