فهرست منبع

Add svg icon mixin

Coen van der Kamp 4 سال پیش
والد
کامیت
8052c93795
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      client/scss/tools/_mixins.general.scss

+ 5 - 0
client/scss/tools/_mixins.general.scss

@@ -106,6 +106,11 @@
     margin-right: 0.2em;
     margin-right: 0.2em;
 }
 }
 
 
+@mixin svg-icon ($size: 1.5em) {
+    width: $size;
+    height: $size;
+    vertical-align: text-top;
+}
 
 
 // Applies given rules on hover, except for touch screens.
 // Applies given rules on hover, except for touch screens.
 // Relies on feature detection to add a no-touch class on the html element.
 // Relies on feature detection to add a no-touch class on the html element.