]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
This is a native sass function, browser independend. 5941/head
author@doerteDev (Stefan Staudenmeyer) <stefan.staudenmeyer@csiweb.de>
Thu, 16 Oct 2014 10:51:15 +0000 (12:51 +0200)
committer@doerteDev (Stefan Staudenmeyer) <stefan.staudenmeyer@csiweb.de>
Thu, 16 Oct 2014 10:51:15 +0000 (12:51 +0200)
scss/foundation/components/_icon-bar.scss

index a4641c8e8b6b25da992490136a9c51cb44f7b66b..c35dcb2ccdf8cc5697cf3aca9882874e747c86d0 100644 (file)
@@ -230,16 +230,16 @@ $icon-bar-item-padding: 1.25rem !default;
                }
 
                // Counts
-               &.two-up .item          { width: calc(100% / 2); }
-               &.three-up .item        { width: calc(100% / 3); }
-               &.four-up .item         { width: calc(100% / 4); }
-               &.five-up .item         { width: calc(100% / 5); }
-               &.six-up .item          { width: calc(100% / 6); }
-               &.seven-up .item        { width: calc(100% / 7); }
-               &.eight-up .item        { width: calc(100% / 8); }
-               &.nine-up .item         { width: calc(100% / 9); }
-               &.ten-up .item          { width: calc(100% / 10); }
-               &.eleven-up .item { width: calc(100% / 11); }
-               &.twelve-up .item { width: calc(100% / 12); }
+               &.two-up .item          { width: percentage(1 / 2); }
+               &.three-up .item        { width: percentage(1 / 3); }
+               &.four-up .item         { width: percentage(1 / 4); }
+               &.five-up .item         { width: percentage(1 / 5); }
+               &.six-up .item          { width: percentage(1 / 6); }
+               &.seven-up .item        { width: percentage(1 / 7); }
+               &.eight-up .item        { width: percentage(1 / 8); }
+               &.nine-up .item         { width: percentage(1 / 9); }
+               &.ten-up .item          { width: percentage(1 / 10); }
+               &.eleven-up .item { width: percentage(1 / 11); }
+               &.twelve-up .item { width: percentage(1 / 12); }
        }
 }
\ No newline at end of file