Sha256: 7dfcaa4fbb6c125970d8c611c9ea1bd58c25e934e83169820625f89ccd9e66ba

Contents?: true

Size: 1.06 KB

Versions: 8

Compression:

Stored size: 1.06 KB

Contents

//BACKGROUNDS
@each $class in $accent-classes {
	$i: index($accent-classes, $class);
	$color: nth($accent-define, $i);
	.#{$class}-bg{
		background-color: $color;
	}
	@each $value in $opacity-values {
		$j: index($opacity-values, $value);
		$opacity: nth($opacity-define, $j);
		.#{$class}-bg-#{$value}{
			background-color: rgba($color, $opacity);
		}
	}
}
//BORDERS
@each $class in $accent-classes {
	$i: index($accent-classes, $class);
	$color: nth($accent-define, $i);
	.#{$class}-border{
		border: $default-border-size solid $color;
	}
	@each $value in $opacity-values {
		$j: index($opacity-values, $value);
		$opacity: nth($opacity-define, $j);
		.#{$class}-border-#{$value}{
			border: $default-border-size solid rgba($color, $opacity);
		}
	}
}
//TEXT
@each $class in $accent-classes {
	$i: index($accent-classes, $class);
	$color: nth($accent-define, $i);
	.#{$class}-text{
		color: $color;
	}
	@each $value in $opacity-values {
		$j: index($opacity-values, $value);
		$opacity: nth($opacity-define, $j);
		.#{$class}-text-#{$value}{
			color: rgba($color, $opacity);
		}
	}
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
staple-0.4.5 source/styles/staple/builders/build_colors.scss
staple-0.4.4 source/styles/staple/builders/build_colors.scss
staple-0.4.3 source/styles/staple/builders/build_colors.scss
staple-0.4.2 source/styles/staple/builders/build_colors.scss
staple-0.4.1 source/styles/staple/builders/build_colors.scss
staple-0.3.0 source/styles/staple/builders/build_colors.scss
staple-0.2.1 source/styles/staple/builders/build_colors.scss
staple-0.2.0 source/styles/staple/builders/build_colors.scss