Sha256: 4ebe002166a4dfb514a357bd2a7ed8960450a80f0b4348ca26f5c08f45bc8ca1
Contents?: true
Size: 1.09 KB
Versions: 4
Compression:
Stored size: 1.09 KB
Contents
@mixin dropdown-menu($padding: false) { padding: 0; > li { @include inline-block-list-item($padding); position: relative; &:hover{ ul { display: block; } } } ul { display: none; position: absolute; top: 100%; left: 0; margin-top: 0; padding-left: 0; padding-right: 0; li { display: block; @if $padding != false { padding-left: $padding; padding-right: $padding; } } } } @mixin pretty-dropdown-menu( $padding: false, $background: false, $background-drop: false, $hover-color: false ) { @include dropdown-menu($padding); @if $background != false { background: $background; } > li { &:hover { @if $background-drop != false { background: $background-drop; } } } ul { @if $background-drop != false { background: $background-drop; } @else { @if $background != false { background: $background; } } li:hover { @if $hover-color != false { background: $hover-color; } } } }
Version data entries
4 entries across 4 versions & 1 rubygems