Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @mixin css3-prefix($property, $value) {
- -webkit-#{$property}: #{$value};
- -khtml-#{$property}: #{$value};
- -moz-#{$property}: #{$value};
- -ms-#{$property}: #{$value};
- -o-#{$property}: #{$value};
- #{$property}: #{$value};
- }
- /// Box
- /// @param {*} $orient [horizontal] - Orientation
- /// @param {*} $pack [center] - Pack
- /// @param {*} $align [center] - Align
- /// @require {mixin} css3-prefix
- @mixin box($orient: horizontal, $pack: center, $align: center) {
- display: -webkit-box;
- display: -moz-box;
- display: box;
- @include css3-prefix('box-orient', $orient);
- @include css3-prefix('box-pack', $pack);
- @include css3-prefix('box-align', $align);
- }
- /// Box RGBA
- /// @param {Integer} $r [60] - Red
- /// @param {Integer} $g [3] - Green
- /// @param {Integer} $b [12] - Blue
- /// @param {Double} $opacity [0.23] - Opacity
- /// @param {Color} $color [#3C3C3C] - Color
- @mixin box-rgba($r: 60, $g: 3, $b: 12, $opacity: 0.23, $color: #3C3C3C) {
- background-color: transparent;
- background-color: rgba($r, $g, $b, $opacity);
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$color}',endColorstr='#{$color}');
- zoom: 1;
- }
- /// Box Shadow
- /// @param {Size} $x [2px] - X
- /// @param {Size} $y [2px] - Y
- /// @param {Size} $blur [5px] - Blur
- /// @param {Color} $color [rgba(0,0,0,.4)] - Color
- /// @param {Boolean} $inset - Inset
- @mixin box-shadow($x: 2px, $y: 2px, $blur: 5px, $color: rgba(0,0,0,.4), $inset: "") {
- @if ($inset != "") {
- @include css3-prefix('box-shadow', $inset $x $y $blur $color);
- } @else {
- @include css3-prefix('box-shadow', $x $y $blur $color);
- }
- }
- /// Box Sizing
- /// @param {*} $type [border-box] - Type
- /// @require {mixin} css3-prefix
- @mixin box-sizing($type: border-box) {
- @include css3-prefix('box-sizing', $type);
- }
Add Comment
Please, Sign In to add comment