]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
Hollow Buttons
authorJoe Workman <joe@workmanmail.com>
Tue, 11 Apr 2017 23:59:57 +0000 (16:59 -0700)
committerJoe Workman <joe@workmanmail.com>
Wed, 12 Apr 2017 03:41:04 +0000 (20:41 -0700)
scss/components/_button.scss

index 810051845b821dcf5828e3327311cb975c178590..9677e2ff3e3517eddde8843939654d0adc8bb234 100755 (executable)
@@ -310,3 +310,47 @@ table.button.warning:hover {
     }
   }
 }
+
+// Hollow Buttons
+@mixin hollowButton($color,$class:false) {
+    // If this mixin is called with a class, then a class will be added
+    // Then the mixin calls itself with just the color to obtain the color styles
+    @if $class {
+        &.#{$class} {
+            @include ghostButton($color);
+        }
+    }
+    @else {
+        table a {
+            border:1px solid $color;
+            color: $color;
+        }
+        &:hover {
+            table a {
+              border-color:1px solid darken($color, 10%);
+              color: darken($color, 10%);
+            }
+        }
+    }
+}
+table.button.hollow {
+    table td,
+    &:hover table td {
+        border:none!important;
+        border-radius:0px;
+        background: transparent!important;
+    }
+    table a {border-radius:0px;}
+    &.radius {
+      table a {border-radius:$global-radius;}
+    }
+    &.rounded {
+      table a {border-radius:$global-rounded;}
+    }
+
+    @include hollowButton($primary-color);
+    @include hollowButton($secondary-color,'secondary');
+    @include hollowButton($alert-color,'alert');
+    @include hollowButton($warning-color,'warning');
+    @include hollowButton($success-color,'success');
+}
\ No newline at end of file