// /** // * Copyright © Magento, Inc. All rights reserved. // * See COPYING.txt for license details. // */ // # Tables // // Table cells padding, width and bottom margin customization options. // // ```html // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
Table caption
NameUsernamePhoneSiteAgeJobStatus
NameUsernamePhoneSiteAgeJobStatus
Mark@mdo+1 123 456 432www.google.com23qaoffline
Alex@alex+1 333 222 111magento.com32manageronline
Daniel@danik+1 334 328 975www.yahoo.com18developeroffline
Kate@kateUA+1 888 777 888www.twitter.com18developerHR
// ``` .example-table-1 { .lib-table(); } // # Table mixin variables // //
//    
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//    
Mixin variableGlobal variableDefault valueAllowed valuesComment
@_table-width@table__width100%'' | false | valueTable width
@_cell-padding-horizontal@table-cell__padding-horizontal@indent__s'' | false | valueTable cell horizontal padding
@_cell-padding-vertical@table-cell__padding-vertical8px'' | false | valueTable cell vertical padding
@_table-margin-bottom@table__margin-bottomfalse'' | false | valueTable margin bottom
//
// # Table typography // // The .lib-table-typography() mixin provides table typography customization options. // // ```html // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
Table caption
NameUsernamePhoneSiteAgeJobStatus
NameUsernamePhoneSiteAgeJobStatus
Mark@mdo+1 123 456 432www.google.com23qaoffline
Alex@alex+1 333 222 111magento.com32manageronline
Daniel@danik+1 334 328 975www.yahoo.com18developeroffline
Kate@kateUA+1 888 777 888www.twitter.com18developerHR
// ``` .example-table-2 { .lib-table-typography(); } // # Table typography mixin variables // //
//    
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//    
Mixin variableGlobal variableDefault valueAllowed valuesComment
@_table-td-font-size@table-td__font-sizefalse'' | false | valueTable cell font size
@_table-td-color@table-td__colorfalse'' | false | valueTable cell font color
@_table-td-font-family@table-td__font-familyfalse'' | false | valueTable cell font family
@_table-td-font-weight@table-td__font-weightfalse'' | false | valueTable cell font weight
@_table-td-line-height@table-td__line-heightfalse'' | false | valueTable cell line height
@_table-td-font-style@table-td__font-stylefalse'' | false | valueTable cell font style
@_table-th-font-size@table-th__font-sizefalse'' | false | valueTable header cell font size
@_table-th-color@table-th__color@text__color__intense'' | false | valueTable header cell font color
@_table-th-font-family@table-th__font-familyfalse'' | false | valueTable header cell font family
@_table-th-font-weight@table-th__font-weight@font-weight__bold'' | false | valueTable header cell font weight
@_table-th-line-height@table-th__line-heightfalse'' | false | valueTable header cell line height
@_table-th-font-style@table-th__font-stylefalse'' | false | valueTable header cell font style
//
// # Table caption // // The .lib-table-caption() mixin is used to customize table caption. // // ```html // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
Table caption
NameUsernamePhoneSiteAgeJobStatus
NameUsernamePhoneSiteAgeJobStatus
Mark@mdo+1 123 456 432www.google.com23qaoffline
Alex@alex+1 333 222 111magento.com32manageronline
Daniel@danik+1 334 328 975www.yahoo.com18developeroffline
Kate@kateUA+1 888 777 888www.twitter.com18developerHR
// ``` .example-table-3 { .lib-table(); .lib-table-caption(@_table-caption-color: #f00); } // # Table caption mixin variables // //
//    
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//    
Mixin variableGlobal variableDefault valueAllowed valuesComment
@_table-caption-hide@table-caption__hidetrue'' | false | valueTable caption is visible
@_table-caption-font-size@table-caption__font-sizefalse'' | false | valueTable caption font size
@_table-caption-color@table-caption__colorfalse'' | false | valueTable caption text color
@_table-caption-font-family@table-caption__font-familyfalse'' | false | valueTable caption font family
@_table-caption-font-weight@table-caption__font-weightfalse'' | false | valueTable caption font weight
@_table-caption-font-style@table-caption__font-stylefalse'' | false | valueTable caption font style
@_table-caption-line-height@table-caption__line-heightfalse'' | false | valueTable caption line height
@_table-caption-alignment@table-caption__alignmentfalse'' | false | valueTable caption alignment
@_table-caption-margin-top@table-caption__margin-topfalse'' | false | valueTable caption top margin
@_table-caption-margin-bottom@table-caption__margin-bottomfalse'' | false | valueTable caption bottom margin
//
// # Table cells resize // // The .lib-table-resize() mixin provides table header cells and table cells paddings reset. // // ```html // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
Table caption
NameUsernamePhoneSiteAgeJobStatus
NameUsernamePhoneSiteAgeJobStatus
Mark@mdo+1 123 456 432www.google.com23qaoffline
Alex@alex+1 333 222 111magento.com32manageronline
Daniel@danik+1 334 328 975www.yahoo.com18developeroffline
Kate@kateUA+1 888 777 888www.twitter.com18developerHR
// ``` .example-table-4 { .lib-table(); .lib-table-resize( @_td-padding-top: 15px, @_td-padding-right: 25px, @_td-padding-bottom: 5px, @_td-padding-left: 0, @_th-padding-top: 15px, @_th-padding-right: 25px, @_th-padding-bottom: 10px, @_th-padding-left: 0 ); } // # Table cells resize variables // //
//    
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//    
Mixin variableGlobal variableDefault valueAllowed valuesComment
@_th-padding-top@table-cell__padding-vertical / 2@_td-padding-top'' | false | valueTable header cell top padding
@_th-padding-right@table-cell__padding-horizontal / 2@_td-padding-right'' | false | valueTable header cell right padding
@_th-padding-bottom@table-cell__padding-vertical / 2@_td-padding-top'' | false | valueTable header cell bottom padding
@_th-padding-left@table-cell__padding-horizontal / 2@_td-padding-right'' | false | valueTable header cell left padding
@_td-padding-top@table-cell__padding-vertical / 2@table-cell__padding-vertical / 2'' | false | valueTable cell top padding
@_td-padding-right@table-cell__padding-horizontal / 2@table-cell__padding-horizontal / 2'' | false | valueTable cell right padding
@_td-padding-bottom@table-cell__padding-vertical / 2@_td-padding-top'' | false | valueTable cell bottom padding
@_td-padding-left@table-cell__padding-horizontal / 2@_td-padding-right'' | false | valueTable cell left padding
//
// # Table background customization // // The .lib-table-background-color() mixin provides table cells background customization options. // // ```html // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
Table caption
NameUsernamePhoneSiteAgeJobStatus
NameUsernamePhoneSiteAgeJobStatus
Mark@mdo+1 123 456 432www.google.com23qaoffline
Alex@alex+1 333 222 111magento.com32manageronline
Daniel@danik+1 334 328 975www.yahoo.com18developeroffline
Kate@kateUA+1 888 777 888www.twitter.com18developerHR
// ``` .example-table-5 { .lib-table(); .lib-table-background-color( @_table-background-color: @color-white, @_table-head-background-color: #ccf, @_table-foot-background-color: #cff, @_table-td-background-color: #fcc, @_table-body-th-background-color: #ffc ); } // # Table background mixin variables // //
//    
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//    
Mixin variableGlobal variableDefault valueAllowed valuesComment
@_table-background-color@table__background-colorfalse'' | false | valueTable background
@_table-head-background-color@table-head__background-color@table__background-color'' | false | valueTable thead background
@_table-foot-background-color@table-foot__background-color@table__background-color'' | false | valueTable tfoot background
@_table-body-th-background-color@table-body-th__background-color@table__background-color'' | false | valueTable header cells background
@_table-td-background-color@table-td__background-color@table__background-color'' | false | valueTable cells background
//
// # Table borders customization // // The .lib-table-bordered() mixin provides table borders customization options. To setup table borders use the following allowed values for the @_type variable: // // ```css // normal - all borders are set up // horizontal - table head and table cells have only horizontal borders // vertical - table head and table cells have only vertical borders // light - only table head cells have bottom border // clear - table does not have borders // ``` // // ```html // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
Table caption
NameUsernamePhoneSiteAgeJobStatus
NameUsernamePhoneSiteAgeJobStatus
Mark@mdo+1 123 456 432www.google.com23qaoffline
Alex@alex+1 333 222 111magento.com32manageronline
Daniel@danik+1 334 328 975www.yahoo.com18developeroffline
Kate@kateUA+1 888 777 888www.twitter.com18developerHR
// ``` .example-table-6 { .lib-table(); .lib-table-bordered(); } // # Table borders mixin variables // //
//    
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//    
Mixin variableGlobal variableDefault valueAllowed valuesComment
@_table_type-normalnormal | horizontal | vertical | light | clear | horizontal_bodyTable border settings. When is set to "horizontal_body", the table border settings are applied only for tbody
@_table_border-width@table__border-width@border-width__base'' | false | valueTable border width
@_table_border-style@table__border-stylesolid'' | false | valueTable border style
@_table_border-color@table__border-color@border-color__base'' | false | valueTable border color
//
// # Table with horizontal borders // // To set only horizontal borders for a table use: // ```css // .lib-table-bordered(@_table_type: horizontal) // ``` // // ```html // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
Table caption
NameUsernamePhoneSiteAgeJobStatus
NameUsernamePhoneSiteAgeJobStatus
Mark@mdo+1 123 456 432www.google.com23qaoffline
Alex@alex+1 333 222 111magento.com32manageronline
Daniel@danik+1 334 328 975www.yahoo.com18developeroffline
Kate@kateUA+1 888 777 888www.twitter.com18developerHR
// ``` .example-table-7 { .lib-table(); .lib-table-bordered( @_table_type: horizontal ); } // # Table with vertical borders // // To set only horizontal borders for a table use: // ```css // .lib-table-bordered(@_table_type: vertical) // ``` // // ```html // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
Table caption
NameUsernamePhoneSiteAgeJobStatus
NameUsernamePhoneSiteAgeJobStatus
Mark@mdo+1 123 456 432www.google.com23qaoffline
Alex@alex+1 333 222 111magento.com32manageronline
Daniel@danik+1 334 328 975www.yahoo.com18developeroffline
Kate@kateUA+1 888 777 888www.twitter.com18developerHR
// ``` .example-table-8 { .lib-table(); .lib-table-bordered( @_table_type: vertical ); } // # Table with light borders // // To set bottom borders only for a table caption use: // ```css // .lib-table-bordered(@_table_type: light) // ``` // // ```html // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
Table caption
NameUsernamePhoneSiteAgeJobStatus
NameUsernamePhoneSiteAgeJobStatus
Mark@mdo+1 123 456 432www.google.com23qaoffline
Alex@alex+1 333 222 111magento.com32manageronline
Daniel@danik+1 334 328 975www.yahoo.com18developeroffline
Kate@kateUA+1 888 777 888www.twitter.com18developerHR
// ``` .example-table-9 { .lib-table(); .lib-table-bordered( @_table_type: light ); } // # Table without borders // // To clear all table borders use: // ```css // .lib-table-bordered(@_table_type: clear) // ``` // // ```html // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
Table caption
NameUsernamePhoneSiteAgeJobStatus
NameUsernamePhoneSiteAgeJobStatus
Mark@mdo+1 123 456 432www.google.com23qaoffline
Alex@alex+1 333 222 111magento.com32manageronline
Daniel@danik+1 334 328 975www.yahoo.com18developeroffline
Kate@kateUA+1 888 777 888www.twitter.com18developerHR
// ``` .example-table-10 { .lib-table(); .lib-table-bordered( @_table_type: clear ); } // # Striped table // // The .lib-table-striped() mixin sets color backgrounds to table rows. // // ```html // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
Table caption
NameUsernamePhoneSiteAgeJobStatus
NameUsernamePhoneSiteAgeJobStatus
Mark@mdo+1 123 456 432www.google.com23qaoffline
Alex@alex+1 333 222 111magento.com32manageronline
Daniel@danik+1 334 328 975www.yahoo.com18developeroffline
Kate@kateUA+1 888 777 888www.twitter.com18developerHR
// ``` .example-table-11 { .lib-table(); .lib-table-striped( @_stripped-background-color: #ffc, @_stripped-color: @color-black, @_stripped-direction: horizontal, @_stripped-highlight: even ); } // # Striped table mixin variables // //
//    
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//    
Mixin variableGlobal variableDefault valueAllowed valuesComment
@_stripped-background-color@table-cell-stripped__background-colorlighten(@table-cell__hover__background-color, 15%)'' | false | valueStriped cells background color
@_stripped-color@table-cell-stripped__color@text__color'' | false | valueStriped cells text color
@_stripped-direction-horizontalhorizontal | verticalStripes direction
@_stripped-highlight-oddodd | evenRows stripes are applied to
//
// # Table with rows hover // // The .lib-table-hover() mixin sets color backgrounds to hovered table rows. // // ```html // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
Table caption
NameUsernamePhoneSiteAgeJobStatus
NameUsernamePhoneSiteAgeJobStatus
Mark@mdo+1 123 456 432www.google.com23qaoffline
Alex@alex+1 333 222 111magento.com32manageronline
Daniel@danik+1 334 328 975www.yahoo.com18developeroffline
Kate@kateUA+1 888 777 888www.twitter.com18developerHR
// ``` .example-table-12 { .lib-table(); .lib-table-hover(); } // # Table with rows hover mixin variables // //
//    
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//    
Mixin variableGlobal variableDefault valueAllowed valuesComment
@_table_cell-background-color-hover@table-cell__hover__background-color@panel__background-color'' | false | valueHovered table row background
@_table_cell-odd-background-color-hover@table-cell__hover__background-color@_table_cell-background-color-hover'' | false | valueHovered table odd row background
//
// # Responsive table technics #1 // // Magento UI library employs two responsive tables technics which are applied by calling an appropriate mixin. // // The .lib-table-overflow() mixin adds a horizontal scrollbar for a table. This mixin accepts no variables. // // ```html //
// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
Table caption
NameUsernamePhoneSiteAgeJobStatus
NameUsernamePhoneSiteAgeJobStatus
Mark@mdo+1 123 456 432www.google.com23qaoffline
Alex@alex+1 333 222 111magento.com32manageronline
Daniel@danik+1 334 328 975www.yahoo.com18developeroffline
Kate@kateUA+1 888 777 888www.twitter.com18developeroffline
//
// ``` .example-table-13 { .lib-table(); .lib-table-bordered(); .lib-table-striped(); .lib-table-hover(); } @media only screen and (max-width: @screen__m) { .example-table-14 { .lib-table-overflow(); } } // # Responsive table technics #2 // // The .lib-table-responsive() mixin rearranges table cells for mobile version. // // ```html // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
Table caption
NameUsernamePhoneSiteAgeJobStatus
Table summaryTable footer text
Mark@mdo+1 123 456 432www.google.com23qaoffline
Alex@alex+1 333 222 111magento.com32manageronline
Daniel@danik+1 334 328 975www.yahoo.com18developeroffline
Kate@kateUA+1 888 777 888www.twitter.com18HRonline
// ``` .example-table-15 { .lib-table(); .lib-table-bordered(); .lib-table-striped(); .lib-table-hover(); } @media only screen and (max-width: @screen__m) { .example-table-15 { .lib-table-responsive( @_table-background-color-responsive: #cff, @_table-th-background-color-responsive: #ffc, @_reset-table-striped: true, @_reset-table-hover: true ); } } // # Responsive table technics #2 mixin variables // //
//    
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//        
//            
//            
//            
//            
//            
//        
//    
Mixin variableGlobal variableDefault valueAllowed valuesComment
@_table-background-color-responsive@table-responsive__background-color@table__background-color'' | false | valueResponsive table background
@_table-th-background-color-responsive@table-responsive-th__background-colorfalse'' | false | valueResponsive table header cells background
@_reset-table-stripedfalse-true | falseResponsive table striped cells
@_reset-table-hoverfalse-true | falseResponsive table hovered table row background
@_table-responsive-cell-padding@table-responsive-cell__padding@indent__xs 0true | falseResponsive table cells padding
//