summaryrefslogtreecommitdiffstats
path: root/webapp/sass/utils/_mixins.scss
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/sass/utils/_mixins.scss')
-rw-r--r--webapp/sass/utils/_mixins.scss25
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