Sha256: c341726fd23f4b441f30749beec5e119ce9f66aa0c6dfa283ddd506e1b419b25

Contents?: true

Size: 1.95 KB

Versions: 33

Compression:

Stored size: 1.95 KB

Contents

@import "global";

//
// @name _tables.scss
// @dependencies _global.scss
//

//
// @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: rem-calc(14) !default;
$table-head-font-color: #222 !default;
$table-head-font-weight: bold !default;
$table-head-padding: rem-calc(8 10 10) !default;

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

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


//
// @mixins
//

@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; }
}


@include exports("table") {
  @if $include-html-table-classes {
    table {
      @include table;
    }
  }
}

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
publish_my_data-1.3.25 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.24 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.23 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.22 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.21 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.20 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.19 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.18 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.17 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.16 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.15 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.14 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.13 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.12 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.11 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.10 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.9 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.8 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.7 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss
publish_my_data-1.3.6 app/assets/stylesheets/vendor/zurb/foundation/components/_tables.scss