diff options
author | Asaad Mahmood <asaad@spinpunch.com> | 2016-03-16 20:31:21 +0500 |
---|---|---|
committer | Asaad Mahmood <asaad@spinpunch.com> | 2016-03-17 05:42:38 +0500 |
commit | f600b1dc2b39ff7b2b3d8450cba43ebb643adddd (patch) | |
tree | f42f5ec434f7517c828ae618fc51e2cc99f0aa5f /webapp/sass/utils/_mixins.scss | |
parent | 809779a87f4380b6802314271b06540a31b83f53 (diff) | |
download | chat-f600b1dc2b39ff7b2b3d8450cba43ebb643adddd.tar.gz chat-f600b1dc2b39ff7b2b3d8450cba43ebb643adddd.tar.bz2 chat-f600b1dc2b39ff7b2b3d8450cba43ebb643adddd.zip |
Updating asss lint stuff with other scss improvements
Diffstat (limited to 'webapp/sass/utils/_mixins.scss')
-rw-r--r-- | webapp/sass/utils/_mixins.scss | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/webapp/sass/utils/_mixins.scss b/webapp/sass/utils/_mixins.scss index 28723e1a5..6e4488fca 100644 --- a/webapp/sass/utils/_mixins.scss +++ b/webapp/sass/utils/_mixins.scss @@ -1,8 +1,29 @@ @charset 'UTF-8'; @mixin file-icon($path) { - background: #fff url($path); + @include background-size(60px auto); + background-color: $white; + background-image: url($path); background-position: center; background-repeat: no-repeat; - @include background-size(60px auto); } + +@mixin alpha-property($property, $color, $opacity) { + #{$property}: rgba($color, $opacity); +} + +@mixin font-smoothing($value: antialiased) { + @if $value == antialiased { + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + } + @else { + -webkit-font-smoothing: subpixel-antialiased; + -moz-osx-font-smoothing: auto; + } +} + +@mixin cursor($value) { + cursor: -webkit-$value; + cursor: zoom-$value; +}
\ No newline at end of file |