Sha256: 3edd7c45a19147db65c409939035bac9ec2a3d5c0159ff1ca8895e7573c3294d

Contents?: true

Size: 1.52 KB

Versions: 2

Compression:

Stored size: 1.52 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%); }
    }
}

//-------------------- 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

2 entries across 2 versions & 1 rubygems

Version Path
titon-toolkit-0.11.1 scss/toolkit/layout/table.scss
titon-toolkit-0.11.0 scss/toolkit/layout/table.scss