Sha256: b590ba7bcc1d28f9dbe09c4d6eaf02e8f9a2caaaf646abbfa239ae466f3ea792

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

Contents

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

@import "../common";

/**
 * Should be used in conjunction with the JavaScript Titon.Tooltip module.
 *
 *	<ul class="accordion">
 *		<li>
 *			<header class="accordion-head">Title Bar</header>
 *			<section class="accordion-inner">
 *				<div class="accordion-body">Collapsible content</div>
 *			</section>
 *		</li>
 *	</ul>
 */

.accordion,
.accordion li {
	list-style: none;
	text-align: left;
	margin: 0;
	padding: 0;
}

.accordion {
	border: 1px solid $gray-dark;
}

.accordion-head {
	padding: $padding;
	background: $gray;
	border: 1px solid $gray-dark;
	margin: -1px;
	cursor: pointer;

	.is-active & {
		background: $gray-dark;
		border-color: $gray-darkest;
	}
}

// Style this
.accordion-body {
	padding: $padding;

	@include content-spacing;
}

// Inner is used for animations, do not style it!
.accordion-inner {
	overflow: hidden;
	position: relative;
	@include transition(all .3s ease-in-out);

	&.show { height: auto; }
	&.hide { max-height: 0; } // don't include on base styles
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
titon-toolkit-0.9.4 src/scss/toolkit/modules/accordion.scss
titon-toolkit-0.9.3 src/scss/toolkit/modules/accordion.scss
titon-toolkit-0.9.2 src/scss/toolkit/modules/accordion.scss