Sha256: b3c6eea999feeb7abfecc7d444caea45958cbbf1efc4c92f55fac46dc4a012ef

Contents?: true

Size: 1.6 KB

Versions: 4

Compression:

Stored size: 1.6 KB

Contents

/**
 * @copyright   2010-2013, The Titon Project
 * @license     http://opensource.org/licenses/bsd-license.php
 * @link        http://titon.io
 */

@import "../common";

.table {
    width: 100%;
    background: $gray;
    border-collapse: collapse;

    th, td {
        padding: $padding;
        line-height: 110%;
        vertical-align: top;
        border: 1px solid $gray-dark;
    }

    // Move headings to bottom
    thead th {
        vertical-align: bottom;
        text-align: left;
    }

    // Allow for multiple tbody's
    tbody + tbody { border-top-width: 2px; }

    // Row colors
    thead tr,
    tfoot tr {
        background: $gray-dark;

        th { border-color: shade($gray-dark, 10%); }
    }

    // Zebra striping
    tbody tr {
        background: $gray;

        &:nth-child(odd) { background: $gray-light; }
        &.divider { background: shade($gray, 2%); }
    }
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

//-------------------- Modifiers --------------------//

.table.table--hover {
    tbody tr:not(.divider):hover { background: #fff; }
}

.table.table--sortable {
    thead th {
        padding: 0;

        a, span {
            padding: $padding;
            display: block;
        }

        a {
            background: $gray-dark;
            color: #000;

            &:hover { background: shade($gray-dark, 5%); }
        }
    }
}

.table.table--compact {
    thead th,
    tbody td { padding: $small-padding; }

    &.table--sortable {
        thead th {
            padding: 0;

            a, span { padding: $small-padding; }
        }
    }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
titon-toolkit-1.0.0.rc.2 scss/toolkit/components/table.scss
titon-toolkit-1.0.0.rc1 scss/toolkit/components/table.scss
titon-toolkit-0.14.0 scss/toolkit/layout/table.scss
titon-toolkit-0.13.2 scss/toolkit/layout/table.scss