From 7e0ccc6afb26f23c05c707040e3569c106a17beb Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Sat, 9 Apr 2016 10:31:38 +0800 Subject: update docs --- index.html | 210 ++++++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 180 insertions(+), 30 deletions(-) (limited to 'index.html') diff --git a/index.html b/index.html index fd77dbe..95f0787 100644 --- a/index.html +++ b/index.html @@ -26,6 +26,9 @@ .grid-hero h3 { margin-bottom: 5rem; } + .grid-hero .notes { + margin: 4rem 0; + } .notes { margin: 2rem 0; color: #666; @@ -61,14 +64,38 @@
-
-
+
+
+ +
+

getting started

There are 3 ways to get started with Spectre CSS framework in your projects. You can either manually install or use NPM and Bower.

@@ -95,9 +122,32 @@
-
+
+
+ +
-

core elements

typography layout @@ -109,7 +159,7 @@
-
+

typography

Typography sets default styles for headings, paragraphs, blockquote, lists elements and some text related utilities.

@@ -165,7 +215,7 @@
-
+

flexbox layout

Layout includes flexbox based responsive grid system with 12 columns.

@@ -252,7 +302,7 @@
-
+

tables

Tables include default styles for tables and data sets.

@@ -322,7 +372,7 @@
-
+

buttons

Buttons include simple button styles for actions in different types and sizes.

@@ -430,7 +480,7 @@
-
+

forms

Forms provide the most common control styles used in forms, including label, input, textarea, select, checkbox, radio and switch.

@@ -608,6 +658,12 @@ +
+
+ + @slack.com +
+
slack.com/ @@ -616,9 +672,17 @@
+
+

If you want to attach text and button along with an input, add the class input-group to the input container. And add the class input-group-addon to the text element and input-group-btn to the button element.

+
+<div class="input-group">
+    <span class="input-group-addon">slack.com/</span>
+    <input type="text" class="form-input" placeholder="site name" />
+</div>
+
 <div class="input-group">
     <span class="input-group-addon">slack.com/</span>
     <input type="text" class="form-input" placeholder="site name" />
@@ -628,7 +692,7 @@
 
         
-
+

images

Images include responsive image class.

@@ -652,9 +716,32 @@
-
+
+
+ +
-

components

avatars chips @@ -670,7 +757,7 @@
-
+

avatars

Avatars are user profile pictures.

@@ -734,8 +821,11 @@
-
+

chips

+
+

Chips are complex entities in small blocks.

+
@@ -774,12 +864,15 @@
+
+

Add a container element with the class chip. And add child text elements with chip-name or icons with icon.

+
-
+

file icons

-

fileicons.less includes a set of file icons. This part is written entirely in CSS as well.

+

File icons are written entirely in CSS. More detail is coming soon.

@@ -792,7 +885,7 @@
-
+

tooltips

Tooltips provide context information labels that appear on hover and focus.

@@ -823,7 +916,7 @@
-
+

labels

Labels are formatted text tags for highlighted, informative information.

@@ -855,7 +948,7 @@
-
+

badges

Badges are often used as unread number indicators.

@@ -895,7 +988,7 @@
-
+

toasts

Toasts are used to show alert or information to users.

@@ -963,7 +1056,7 @@
-