Sha256: f69a7ee2fbff349bdba2d5a365dc2fad39f68e3dc1915eff96fdc808bd1c09ba

Contents?: true

Size: 1.46 KB

Versions: 2

Compression:

Stored size: 1.46 KB

Contents

// /**
//  * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
//  * Licensed under MIT; see LICENSE.txt
//  */
#{$table-base-class} {
	@if($table-width) {
		width: 100%;
	}
	@if($table-border) {
		border: $table-border;
		@if($table-border-radius) {
			border-collapse: separate;
			@include border-radius($table-border-radius);
		}
	}

	@if($table-cell-padding) {
		th,
		td {
			padding: $table-cell-padding;
		}
	}
	.colgroup {
		@if($table-colgroup-border) {
			border: $table-colgroup-border;
		}
		@if($table-colgroup-background) {
			background: $table-colgroup-background;
		}
	}
	.col {
		@if($table-col-border) {
			border-collapse: collapse;
			border: $table-col-border;
		}
		@if($table-col-background) {
			background: $table-col-background;
		}
	}
}

#{$table-base-class}-zebra {
	@if($table-row-odd-background) {
		tr:nth-of-type(odd) {
			@extend .row-odd;
		}
	}
	@if($table-row-even-background) {
		tr:nth-of-type(even) {
			@extend .row-even;
		}
	}
	@if($table-row-state-hover-background) {
		tr:hover {
			@extend .is-row-hover;
		}
	}
}

.table-column-header,
.table-row-header,
th {
	@include module-font($table-th-type, $table-th-type-size);
}
@if($table-row-odd-background) {
	.row-odd {
		background: $table-row-odd-background;
	}
}
@if($table-row-even-background) {
	.row-even {
		background: $table-row-even-background;
	}
}
@if($table-row-state-hover-background) {
	.is-row-hover {
		background: $table-row-state-hover-background !important;
	}
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
persistentgrid-0.0.1.beta.12 scss/persistentgrid/modules/tables/_behavior.scss
persistentgrid-0.0.1.beta.11 scss/persistentgrid/modules/tables/_behavior.scss