Sha256: a087ef6eae67314da1dd789d94e34748a1e306c59120c23e2a3993b887baa87d

Contents?: true

Size: 601 Bytes

Versions: 68

Compression:

Stored size: 601 Bytes

Contents

//
// Gray shorthand
//
// @param value (0..255)
// @param transparency (0..1)
//
// example:
// body { color: gray(50); } => rgba(50,50,50, 1)
// body { background-color: gray(150, 0.5); } => rgba(150,150,150, 0.5)
//
@function gray($value, $transparency: 1) {
  @return rgba($value, $value, $value, $transparency);
}


//
// Spiderman is a mixin to position absolute an element in another
// element top to bottom, left to right
//
// @param $offset Offset from the edge
//
@mixin spiderman($offset: 0) {
  bottom: $offset;
  left: $offset;
  position: absolute;
  right: $offset;
  top: $offset;
}

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
lalala-4.0.0.dev.283 lib/generators/lalala/assets/templates/_mixins.css.scss
lalala-4.0.0.dev.279 lib/generators/lalala/assets/templates/_mixins.css.scss
lalala-4.0.0.dev.277 lib/generators/lalala/assets/templates/_mixins.css.scss
lalala-4.0.0.dev.275 lib/generators/lalala/assets/templates/_mixins.css.scss
lalala-4.0.0.dev.269 lib/generators/lalala/assets/templates/_mixins.css.scss
lalala-4.0.0.dev.267 lib/generators/lalala/assets/templates/_mixins.css.scss
lalala-4.0.0.dev.264 lib/generators/lalala/assets/templates/_mixins.css.scss
lalala-4.0.0.dev.260 lib/generators/lalala/assets/templates/_mixins.css.scss