// Name: Accordion // Description: Defines styles for the accordion // // Component: `uk-accordion` // // Sub-objects: `uk-accordion-title` // `uk-accordion-content` // // Markup: // // //
//

//
//

//
//
// // ======================================================================== // Variables // ======================================================================== $accordion-title-margin-bottom: 15px !default; $accordion-title-padding-vertical: 5px !default; $accordion-title-padding-horizontal: 15px !default; $accordion-title-font-size: 18px !default; $accordion-title-line-height: 24px !default; $accordion-title-background: #eee !default; $accordion-content-padding-horizontal: $accordion-title-padding-horizontal !default; $accordion-content-padding-bottom: $accordion-title-padding-horizontal !default; /* ======================================================================== Component: Accordion ========================================================================== */ .uk-accordion { @include hook-accordion(); } /* Sub-object: `uk-accordion-title` ========================================================================== */ .uk-accordion-title { margin-top: 0; margin-bottom: $accordion-title-margin-bottom; padding: $accordion-title-padding-vertical $accordion-title-padding-horizontal; background: $accordion-title-background; font-size: $accordion-title-font-size; line-height: $accordion-title-line-height; cursor: pointer; @include hook-accordion-title(); } /* Sub-object: `uk-accordion-content` ========================================================================== */ .uk-accordion-content { padding: 0 $accordion-content-padding-horizontal $accordion-content-padding-bottom $accordion-content-padding-horizontal; @include hook-accordion-content(); } /* * Micro clearfix to make panels more robust */ .uk-accordion-content:before, .uk-accordion-content:after { content: ""; display: table; } .uk-accordion-content:after { clear: both; } /* * Remove margin from the last-child */ .uk-accordion-content > :last-child { margin-bottom: 0; } // Hooks // ======================================================================== @include hook-accordion-misc(); // @mixin hook-accordion(){} // @mixin hook-accordion-title(){} // @mixin hook-accordion-content(){} // @mixin hook-accordion-misc(){}