]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Use absolute-center() mixin on progress meter element
authorGeoff Kimball <geoff@zurb.com>
Tue, 19 Jan 2016 21:18:00 +0000 (13:18 -0800)
committerGeoff Kimball <geoff@zurb.com>
Tue, 19 Jan 2016 21:18:00 +0000 (13:18 -0800)
scss/components/_progress-bar.scss

index e9c036cf7f014c8f9d45a93f285db5a48d5fef8a..4154a3aee6c88b866df200bb381b871d1adde956 100644 (file)
@@ -49,10 +49,8 @@ $progress-radius: $global-radius !default;
 
 /// Adds styles for text in the progress meter.
 @mixin progress-meter-text {
+  @include absolute-center;
   position: absolute;
-  top: 50%;
-  #{$global-left}: 50%;
-  transform: translate(-50%, -50%);
   margin: 0;
   font-size: 0.75rem;
   font-weight: bold;