Sha256: ae0a300e76ee6b980cecdfe2234fb2f3e4b2fad8b3631af094decbbd48d0e27c

Contents?: true

Size: 1.05 KB

Versions: 3

Compression:

Stored size: 1.05 KB

Contents

// *************************************
//
//   Helpers
//
// *************************************

@import "bootstrap/mixins";

// ----- Foreground Color ----- //

@function foreground-color($color) {
	@return contrast-color($color, $base-dark-color, $base-light-color, 60%);
}

// ----- z-index of ----- //

@mixin z-index-of($element, $elements: $z-index-elements, $base: 10) {
	$index: index($elements, $element);
	$base-index: index($elements, base);
	@if $base-index == false { $base-index: 0; }
	@if $index == false {
		@warn "Can't find item "#{$element}" in $z-index-elements, please choose one of: #{$elements}.";
	} @else {
		z-index: index($elements, $element) + $base - $base-index;
	}
}

// ----- user-select: none; ----- //

@mixin not-selectable() {
	-webkit-user-select: none;
	   -moz-user-select: none;
	    -ms-user-select: none;
	     -o-user-select: none;
	        user-select: none;
}

@mixin selectable() {
	-webkit-user-select: auto;
	   -moz-user-select: auto;
	    -ms-user-select: auto;
	     -o-user-select: auto;
	        user-select: auto;
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
colorgy_style-0.0.0.4 assets/stylesheets/colorgy/core/_helpers.scss
colorgy_style-0.0.0.2 assets/stylesheets/colorgy/core/_helpers.scss
colorgy_style-0.0.0.1 assets/stylesheets/colorgy/core/_helpers.scss