//
// Component: Table
//
// ========================================================================


// Variables
// ========================================================================

@table-cell-padding-vertical:                   4px;
@table-cell-padding-horizontal:                 8px;

@table-header-cell-font-size:                   @global-small-font-size;

@table-cell-font-size:                          @global-small-font-size;

@table-row-active-background:                   #eeeeee;

@table-striped-row-background:                  @global-muted-background;

@table-small-cell-padding-vertical:             2px;
@table-small-cell-padding-horizontal:           8px;

@table-cell-border-width:                       @global-border-width;
@table-cell-border:                             lighten(@global-border, 2%);


// Component
// ========================================================================

.hook-table-header-cell() {
    border-bottom: @table-cell-border-width solid @table-cell-border;
    padding: (@table-cell-padding-vertical + 2) @table-cell-padding-horizontal;
}

.hook-table-cell() {
    font-size: @table-cell-font-size;
}

.hook-table-footer() { border-top: @table-cell-border-width solid @table-cell-border; }

.hook-table-caption() {}

.hook-table-row-active() {}


// Style modifiers
// ========================================================================

.hook-table-striped() {}

.hook-table-hover() {}


// Size modifier
// ========================================================================

.hook-table-small() {}


// Miscellaneous
// ========================================================================

.hook-table-misc() {

    .uk-table-small th {
        padding: @table-cell-padding-vertical @table-cell-padding-horizontal;
    }

    .uk-table :not(:last-child) > td { border-bottom: @table-cell-border-width solid @table-cell-border; }

    .uk-table tbody tr {
        -webkit-transition: background-color 0.1s linear;
        transition: background-color 0.1s linear;
    }

}
