From e6fb30506f6228cbe609f284357538d76e46c989 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Thu, 23 Feb 2017 13:59:32 +0800 Subject: ADD: Action button style --- docs/components.html | 4 ++-- docs/elements.html | 25 ++++++++++++++++++++----- 2 files changed, 22 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/components.html b/docs/components.html index a4f52e9..8accdec 100644 --- a/docs/components.html +++ b/docs/components.html @@ -169,7 +169,7 @@
-

Add a container element with the class form-autocomplete. There are 2 parts of it, one is form-autocomplete-input, another is menu component. You may add the class is-focus to form-autocomplete-input to make it appear as focus state.

+

Add a container element with the class form-autocomplete. There are 2 parts of it, one is form-autocomplete-input, another is menu component. You may add the class is-focused to form-autocomplete-input to make it appear as focus state.

Spectre.css does NOT include JavaScript code, you will need to implement your JS to interact with the autocomplete. The autocomplete HTML structure is exampled below.

@@ -1366,7 +1366,7 @@
14MB · Public · 1 Jan, 2017
- +
diff --git a/docs/elements.html b/docs/elements.html index 47cb266..9b3de15 100644 --- a/docs/elements.html +++ b/docs/elements.html @@ -408,14 +408,25 @@

Button sizes

-
- - - +
+ + + +
+
+ + + +
+
+ + +

Add the class btn-sm or btn-lg for small or large button size. Also, you can add the class btn-block for a full-width button.

+

Please note that you could use the class btn-action for a square button, or add another class circle for a round button, which is often used as a Float Action Button (FAB).

@@ -423,7 +434,10 @@ <button class="btn btn-lg">large button</button> <button class="btn btn-sm">small button</button> -<button class="btn btn-block">block button</button> +<button class="btn btn-block">block button</button> + +<button class="btn btn-action"><i class="icon icon-markunread"></i></button> +<button class="btn btn-action circle"><i class="icon icon-markunread"></i></button>
@@ -432,6 +446,7 @@
+

Icons with the class icon can be correctly rendered in each button size.

-- cgit v1.3.1-23-gd82d