Sha256: 052e4ef0ce66587337782c4620a1027fea3399a1a40b7c7083541a8a3c931b8c

Contents?: true

Size: 1.4 KB

Versions: 89

Compression:

Stored size: 1.4 KB

Contents

//
// GRAY SHORTHAND (function)
// ----------------------------
//
// @param value (0..255)
// @param transparency (0..1)
//
// # examples:
// 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);
}


//
// USER SELECT (mixin)
// ----------------------
//
// none
//     The text of the element and sub-elements will appear as if they cannot be
//     selected. Any use of Selection however will contain these elements.
//
// text
//     The text can be selected by the user.
//
// -moz-none
//     The text of the element and sub-elements cannot be selected, but selection
//     can be enabled on sub-elements using -moz-user-select:text.
//
// all
//     In HTML editor, if double-click or context-click occurred in sub-elements,
//     the highest ancestor with this value will be selected.
//
@mixin user-select($value: text) {
  -webkit-user-select: $value;
  -khtml-user-select: $value;
  -moz-user-select: $value;
  -o-user-select: $value;
  user-select: $value;
}


//
// Spiderman is a mixin to absolute position an element
// in his first relative parent, 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

89 entries across 89 versions & 1 rubygems

Version Path
lalala-4.0.0.dev.152 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.149 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.146 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.144 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.141 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.136 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.135 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.134 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.133 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.132 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.131 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.129 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.128 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.126 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.125 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.124 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.123 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.118 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.116 app/assets/stylesheets/lalala/base/_mixins.css.scss
lalala-4.0.0.dev.114 app/assets/stylesheets/lalala/base/_mixins.css.scss