浏览代码

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;
 }
 
+@mixin svg-icon ($size: 1.5em) {
+    width: $size;
+    height: $size;
+    vertical-align: text-top;
+}
 
 // Applies given rules on hover, except for touch screens.
 // Relies on feature detection to add a no-touch class on the html element.