// /** // * Copyright © Magento, Inc. All rights reserved. // * See COPYING.txt for license details. // */ // # Tabs and accordions // // To set up tabs and accordions Magento UI library provides 2 types of mixins: .lib-data-tabs__base() and .lib-data-accordion__base(). These mixins reset markup elements default styles and add minimal required css setup to make these elements work properly. // // # Tabs // // The .lib-data-tabs() mixin is used to setup tabs parameters. // // ```html //
//
// Details //
//
//

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

//
// //
// Tags //
//
//

It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

//
// //
// Reviews //
//
//

It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

//
//
// ``` .example-sections-1 { .lib-data-tabs(); } // # Tabs mixin variables // //
//    
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//    
Mixin variableGlobal variableDefault valueAllowed valuesComment
@_tab-control-font-family@tab-control__font-familyfalse'' | false | valueTabs font family
@_tab-control-font-size@tab-control__font-size@font-size__base'' | false | valueTabs font size
@_tab-control-font-weight@tab-control__font-weight@font-weight__semibold'' | false | valueTabs font weight
@_tab-control-font-style@tab-control__font-stylefalse'' | false | valueTabs font style
@_tab-control-line-height@tab-control__line-height@tab-control__height'' | false | valueTabs line height
Tabs controls settings
@_tab-control-background-color@tab-control__background-color@panel__background-color'' | false | valueCurrent tab background
@_tab-control-color@tab-control__color@link__color'' | false | valueCurrent tab text color
@_tab-control-text-decoration@tab-control__text-decorationnone'' | false | valueCurrent tab text-decoration
@_tab-control-background-color-hover@tab-control__hover__background-colorlighten(@tab-control__background-color, 5%)'' | false | valueHovered tab background
@_tab-control-color-visited@tab-control__color@text__color__muted'' | false | valueVisited tab color
@_tab-control-text-decoration-visited@tab-control__color'' | false | valueVisited tab text-decoration
@_tab-control-color-hover@tab-control__hover__color@tab-control__color'' | false | valueHovered tab text color
@_tab-control-text-decoration-hover@tab-control__text-decoration@tab-control__text-decoration'' | false | valueHovered tab text-decoration
@_tab-control-background-color-active@tab-control__active__background-colorlighten(@tab-control__background-color, 15%)'' | false | valueActive tab background
@_tab-control-color-active@tab-control__active__color@text__color'' | false | valueActive tab text color
@_tab-control-text-decoration-active@tab-control__text-decoration@tab-control__text-decoration'' | false | valueActive tab text-decoration
@_tab-control-height@tab-control__height@indent__l'' | false | valueHeight of tab control
@_tab-control-margin-right@tab-control__margin-right@indent__xs'' | false | valueRight margin of tab title block
@_tab-control-padding-top@tab-control__padding-top@indent__xs'' | false | valueTab control padding top
@_tab-control-padding-right@tab-control__padding-right@indent__base'' | false | valueTab control padding right
@_tab-control-padding-bottom@tab-control__padding-bottom@tab-control__padding-bottom'' | false | valueTab control padding bottom
@_tab-control-padding-left@tab-control__padding-left@tab-control__padding-left'' | false | valueTab control padding left
@_tab-control-border-width@tab-control__border-width@border-width__base'' | false | valueTab control border width
@_tab-control-border-color@tab-control__border-color@border-color__base'' | false | valueTab control border color
Tab content settings
@_tab-content-background-color@tab-content__background-color@tab-control__active__background-color'' | false | valueTab content background
@_tab-content-border-top-status@tab-content__border-top-statusfalsetrue | falseTab content border top status. When set to 'true' the content has only top border. When set to 'false' the content has all 4 borders
@_tab-content-border@tab-content__border@tab-control__border-width solid @tab-control__border-color'' | false | valueTab content border
@_tab-content-margin-top@tab-content__margin-top@tab-control__height + @tab-control__border-width + @tab-control__padding-top + @tab-control__padding-bottom'' | false | valueTab content top margin (it is the sum of tabs height and top border width)
@_tab-content-padding-top@tab-content__padding-top@indent__base'' | false | valueTab content padding
@_tab-content-padding-right@tab-content__padding-right@indent__base'' | false | valueTab content padding
@_tab-content-padding-bottom@tab-content__padding-bottom@tab-content__padding-top'' | false | valueTab content padding
@_tab-content-padding-left@tab-content__padding-left@tab-content__padding-right'' | false | valueTab content padding
//
// // # Tabs with content top border // // To set up tabs with only top content border use variable: // ```css // @_tab-content-border: true // ``` // // ```html //
//
// Details //
//
//

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

//
// //
// Tags //
//
//

It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

//
// //
// Reviews //
//
//

It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

//
//
// ``` .example-sections-2 { .lib-data-tabs( @_tab-content-border-top-status: true ); } // # Accordion // // The .lib-data-accordion() mixin is used to setup accordion parameters. Accordion has the same markup as tabs. // // ```html //
//
// Details //
//
//

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

//
//
// Tags //
//
//

It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

//
// //
// Reviews //
//
//

It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

//
//
// ``` .example-sections-3 { .lib-data-accordion(); } // # Accordion mixin variables // //
//    
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//    
Mixin variableGlobal variableDefault valueAllowed valuesComment
@_accordion-control-font-family@accordion-control__font-family@tab-control__font-family'' | false | valueAccordion font family
@_accordion-control-font-size@accordion-control__font-size@font-size__l'' | false | valueAccordion font size
@_accordion-control-font-style@accordion-control__font-style@tab-control__font-style'' | false | valueAccordion font style
@_accordion-control-font-weight@accordion-control__font-weight@tab-control__font-weight'' | false | valueAccordion font weight
@_accordion-control-line-height@accordion-control__line-height@accordion-control__height'' | false | valueAccordion line height
Accordion tabs controls settings
@_accordion-control-border-top@accordion-control__border-top@tab-control__border-width solid @tab-control__border-color'' | false | valueAccordion control border
@_accordion-control-border-right@accordion-control__border-right@tab-control__border-width solid @tab-control__border-color'' | false | valueAccordion control border
@_accordion-control-border-bottom@accordion-control__border-bottom@tab-control__border-width solid @tab-control__border-color'' | false | valueAccordion control border
@_accordion-control-border-left@accordion-control__border-left@tab-control__border-width solid @tab-control__border-color'' | false | valueAccordion control border
@_accordion-control-background-color@accordion-control__background-color@tab-control__background-color'' | false | valueAccordion control background
@_accordion-control-color@accordion-control__color@tab-control__color'' | false | valueAccordion control color
@_accordion-control-text-decoration@accordion-control__text-decoration@tab-control__text-decoration'' | false | valueAccordion control text decoration
@_accordion-control-color-visited@accordion-control__color@accordion-control__color'' | false | valueAccordion control visited link color
@_accordion-control-text-decoration-visited@accordion-control__text-decoration@accordion-control__text-decoration'' | false | valueAccordion control visited link text-decoration
@_accordion-control-background-color-hover@accordion-control__hover__background-color@tab-control__hover__background-color'' | false | valueHovered accordion control background
@_accordion-control-color-hover@accordion-control__hover__color@tab-control__hover__color'' | false | valueHovered accordion control text color
@_accordion-control-text-decoration-hover@accordion-control__hover__text-decoration@tab-control__hover__text-decoration'' | false | valueHovered accordion control text-decoration
@_accordion-control-background-color-active@accordion-control__active__background-color@tab-control__active__background-color'' | false | valueActive accordion control background
@_accordion-control-color-active@accordion-control__active__color@tab-control__active__color'' | false | valueActive accordion control text color
@_accordion-control-text-decoration-active@accordion-control__active__text-decoration@tab-control__active__text-decoration'' | false | valueActive accordion control text-decoration
@_accordion-control-height@accordion-control__height@indent__xl'' | false | valueHeight of accordion control
@_accordion-control-margin-bottom@accordion-control__margin-bottom@indent__xs'' | false | valueBottom margin of the accordion control
@_accordion-control-padding-top@accordion-control__padding-top@tab-control__padding-top'' | false | valueAccordion tab control padding top
@_accordion-control-padding-right@accordion-control__padding-right@indent__base'' | false | valueAccordion tab control padding right
@_accordion-control-padding-bottom@accordion-control__padding-bottom@tab-control__padding-bottom'' | false | valueAccordion tab control padding bottom
@_accordion-control-padding-left@accordion-control__padding-left@accordion-control__padding-right'' | false | valueAccordion tab control padding left
Accordion content settings
@_accordion-content-background-color@accordion-content__background-color@tab-control__active__background-color'' | false | valueAccordion tab content background
@_accordion-content-border@accordion-content__border@tab-content__border'' | false | valueAccordion tab content border
@_accordion-content-margin@accordion-content__margin0 0 @indent__xs'' | false | valueAccordion tab content margin
@_accordion-content-padding@accordion-content__padding@tab-content__padding-top @tab-content__padding-right @tab-content__padding-bottom @tab-content__padding-left'' | false | valueAccordion tab content padding
//
// # Responsive tabs // // Since tabs and accordion have same markup, they can transform one into other by means of CSS and JavaScript. This can be used for responsive web design. For instance, for mobile version there is an accordion, for desktop version it is transformed to tabs. To implement this approach, use the .lib-data-accordion() mixin for mobile version, and the .lib-data-tabs() mixin for desktop version. // // ```html //
//
// Details //
//
//

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

//
//
// Tags //
//
//

It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

//
// //
// Reviews //
//
//

It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

//
//
// ``` @media only screen and (max-width: 99999px) { .example-sections-4 { .lib-data-tabs(); } } @media only screen and (max-width: @screen__m) { .example-sections-4 { .lib-data-accordion(); } } // # Tabs Base // // The .lib-data-tabs__base() mixin sets basic tabs styles. // // ```html //
//
// Details //
//
//

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

//
// //
// Tags //
//
//

It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

//
// //
// Reviews //
//
//

It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

//
//
// ``` .example-sections-5 { .lib-data-tabs__base(); } // # Accordion Base // // The .lib-data-accordion__base() mixin sets basic accordion styles. // Data accordion uses the same markup as data tabs. // // ```html //
//
// Details //
//
//

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

//
//
// Tags //
//
//

It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

//
// //
// Reviews //
//
//

It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

//
//
// ``` .example-sections-6 { .lib-data-accordion__base(); }