From 00f87b240e52065f6a07641999315aafb89be781 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Mon, 28 Aug 2017 13:29:09 +0800 Subject: Add Button variant mixins --- docs/getting-started.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'docs/getting-started.html') diff --git a/docs/getting-started.html b/docs/getting-started.html index 982080e..e57c652 100644 --- a/docs/getting-started.html +++ b/docs/getting-started.html @@ -337,6 +337,7 @@

Folder Structure

+
spectre/
 ├── dist/                               // Build folder (Git ignored)
@@ -456,6 +457,27 @@
               
             
           
+
+          
Buttons
+
+

There are 2 button variant mixins in mixins.less to generate different color variants.

+
    +
  • .button-variant(@color: @primary-color);
  • +
  • .button-outline-variant(@color: @primary-color);
  • +
+ + +
<!-- filled button with the success color -->
+.btn-success {
+  .button-variant(@success-color);
+}
+
+<!-- outlined button with the success color -->
+.btn-outline-success {
+  .button-outline-variant(@success-color);
+}
+
+
Sizes
-- cgit v1.3.1-23-gd82d