Sha256: 5dab63a23c319210083ed1d9401638ae07edb2c5fb0a34f73d3949a5d8cc2c7c

Contents?: true

Size: 1.9 KB

Versions: 4

Compression:

Stored size: 1.9 KB

Contents

// Generic dropdown styles
// -----------------------

.has-dropdown {
	position: relative; // for positioning of dropdown
	
	> a {
		position: relative; // for positioning of caret
	}
	
	&.open > a {
		background: $dropdown-background !important;
		color: $base-font-color !important;
		
		&:after {
			@include pseudo();
			width: 100%;
			height: 6px;
			background: $dropdown-background;
			bottom: -4px;
			left: 0px;
			z-index: 2;
		}
	}
	
	.dropdown {  // dropdown menu styles
		
		@include border-radius(0 0 $small-border-radius $small-border-radius);
		
		@if $button-theme == "glossy" {
			@include box-shadow($dropdown-box-shadow);
		}
		
		visibility: hidden;
		position: absolute;
		left: -1px;
		top: 100%;
		min-width: 160px;
		margin: 0;
		padding: $base-font-size - (($dropdown-link-height - $dropdown-link-font-size) / 2) 0;
		background: $dropdown-background;
		background-clip: border-box;
		border: $button-border-width solid $button-border-color;
		line-height: 1;
		z-index: 1;

		&.right { // Align dropdown with right edge of parent item
			float: none;
			left: auto;
			right: -1px;
		}
		
		> li {
			display: block;
			margin: 0;
			padding: 0;
			
			> a {
				position: relative;		
				display: block;
				padding: ($dropdown-link-height - $dropdown-link-font-size) / 2 $base-font-size;
				font-size: $dropdown-link-font-size;
				text-decoration: none;
				white-space: nowrap;
				
				&:hover {
					background-color: $link-color;
					color: #fff;
				}
			}
		}
		
		.divider {
			border-top: 1px solid $border-color;
			margin: $base-font-size - (($dropdown-link-height - $dropdown-link-font-size) / 2) 0;
		}
		
		.section-title {
			padding: ($dropdown-link-height - $dropdown-link-font-size) / 2 $base-font-size;
			color: $muted-font-color;
			font-size: 11px;
			font-weight: bold;
			text-transform: uppercase;
			cursor: default;
		}

	}
	
	&.open {		
		.dropdown {
			visibility: visible;
		}
	}
}

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
helium-rails-0.0.3 vendor/assets/stylesheets/helium/dropdowns.scss
helium-rails-0.0.2 vendor/assets/stylesheets/helium/dropdowns.scss
helium-rails-0.0.1 vendor/assets/stylesheets/helium/dropdowns.scss
compass-helium-0.0.1 stylesheets/compass-helium/dropdowns.scss