Sha256: 68f60fdc6fa50fb85c28c0eb2251435390652bf5be2357ee01ce6feef09954c1

Contents?: true

Size: 1.85 KB

Versions: 20

Compression:

Stored size: 1.85 KB

Contents

//
// Table Variables
//
$include-html-table-classes: $include-html-classes !default;

// These control the background color for the table and even rows
$table-bg: #fff !default;
$table-even-row-bg: #f9f9f9 !default;

// These control the table cell border style
$table-border-style: solid !default;
$table-border-size: 1px !default;
$table-border-color: #ddd !default;

// These control the table head styles
$table-head-bg: #f5f5f5 !default;
$table-head-font-size: em-calc(14) !default;
$table-head-font-color: #222 !default;
$table-head-font-weight: bold !default;
$table-head-padding: em-calc(8 10 10) !default;

// These control the row padding and font styles
$table-row-padding: em-calc(9 10) !default;
$table-row-font-size: em-calc(14) !default;
$table-row-font-color: #222 !default;
$table-line-height: em-calc(18) !default;

// These are for controlling the display and margin of tables
$table-display: table-cell !default;
$table-margin-bottom: em-calc(20) !default;


//
// Table Mixin
//
@mixin table {
  background: $table-bg;
  margin-bottom: $table-margin-bottom;
  border: $table-border-style $table-border-size $table-border-color;

  thead,
  tfoot {
    background: $table-head-bg;
    font-weight: $table-head-font-weight;

    tr {
      th,
      td {
        padding: $table-head-padding;
        font-size: $table-head-font-size;
        color: $table-head-font-color;
        text-align: $default-float;
      }
    }
  }

  tr {
    th,
    td {
      padding: $table-row-padding;
      font-size: $table-row-font-size;
      color: $table-row-font-color;
    }

    &.even,
    &.alt,
    &:nth-of-type(even) { background: $table-even-row-bg; }
  }

  thead tr th,
  tfoot tr th,
  tbody tr td,
  tr td,
  tfoot tr td { display: $table-display; line-height: $table-line-height; }
}

@if $include-html-table-classes {

  /* Tables */
  table {
    @include table;
  }

}

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
locomotivecms_wagon-2.0.0.rc3 generators/line_case/public/stylesheets/foundation/components/_tables.scss
locomotivecms_wagon-2.0.0.rc2 generators/line_case/public/stylesheets/foundation/components/_tables.scss
locomotivecms_wagon-2.0.0.rc1 generators/line_case/public/stylesheets/foundation/components/_tables.scss
locomotivecms_wagon-2.0.0.pre.beta.2 generators/line_case/public/stylesheets/foundation/components/_tables.scss
locomotivecms_wagon-1.5.8 generators/line_case/public/stylesheets/foundation/components/_tables.scss
locomotivecms_wagon-2.0.0.pre.beta.1 generators/line_case/public/stylesheets/foundation/components/_tables.scss
locomotivecms_wagon-1.5.7 generators/line_case/public/stylesheets/foundation/components/_tables.scss
locomotivecms_wagon-1.5.6 generators/line_case/public/stylesheets/foundation/components/_tables.scss
locomotivecms_wagon-2.0.0.pre.alpha.3 generators/line_case/public/stylesheets/foundation/components/_tables.scss
locomotivecms_wagon-2.0.0.pre.alpha.2 generators/line_case/public/stylesheets/foundation/components/_tables.scss
locomotivecms_wagon-2.0.0.pre.alpha.1 generators/line_case/public/stylesheets/foundation/components/_tables.scss
locomotivecms_wagon-2.0.0.pre.alpha generators/line_case/public/stylesheets/foundation/components/_tables.scss
locomotivecms_wagon-1.5.5 generators/line_case/public/stylesheets/foundation/components/_tables.scss
locomotivecms_wagon-1.5.4 generators/line_case/public/stylesheets/foundation/components/_tables.scss
locomotivecms_wagon-1.5.3 generators/line_case/public/stylesheets/foundation/components/_tables.scss
locomotivecms_wagon-1.5.2 generators/line_case/public/stylesheets/foundation/components/_tables.scss
locomotivecms_wagon-1.5.1 generators/line_case/public/stylesheets/foundation/components/_tables.scss
locomotivecms_wagon-1.5.0 generators/line_case/public/stylesheets/foundation/components/_tables.scss
locomotivecms_wagon-1.5.0.rc1 generators/line_case/public/stylesheets/foundation/components/_tables.scss
zurb-foundation-4.3.2 scss/foundation/components/_tables.scss