From cc2c46c583451fef05a262cd63d023399ed3cbb7 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Wed, 6 Apr 2016 10:18:21 +0800 Subject: update buttons, forms, labels, tables, tooltips and example docs --- demo/index.html | 60 +++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 39 insertions(+), 21 deletions(-) (limited to 'demo') diff --git a/demo/index.html b/demo/index.html index 426e943..54801fe 100644 --- a/demo/index.html +++ b/demo/index.html @@ -7,13 +7,18 @@ @@ -21,7 +26,7 @@

Project Spectre

introduction

-
+

Project Spectre is a lightweight and clean CSS framework for faster and extendable development.

  • lightweight and clean starting point for your project
  • @@ -33,7 +38,7 @@

    typography

    -
    +

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

    @@ -89,8 +94,9 @@

    flexbox layout

    -
    +

    layout.less includes flexbox based grid system with 12 columns.

    +

    Add the class columns to a container. Add any element you want with class column inside the container. These columns will take up the space equally. You can specific the width of each column by adding class col-[1-12].

    @@ -144,7 +150,11 @@

    tables

    - +
    +

    tables.less sets default styles for tables and data sets.

    +

    Add the class <table> to any table element. The class will add padding, border and emphasized table header. Adding the class selected to a <tr> element will highlight the whole table row.

    +
    +
    @@ -184,8 +194,9 @@

    buttons

    -
    -

    buttons.less includes simple button style for actions in different types and sizes. Buttons can show loading indicators.

    +
    +

    buttons.less includes simple button style for actions in different types and sizes.

    +

    Add the class btn to <a>, <input> or <button> elements for a default button. There are classes btn-primary and btn-link for predefined primary and link buttons. A button with the class loading can show loading indicator.

    @@ -197,16 +208,19 @@
    +
    button sizes
    +
    +

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

    +
    - - - - + + + +
    -
    @@ -217,6 +231,9 @@

    button groups

    +
    +

    If you want to use buttons as a group, add the class btn-group to the container.

    +
    @@ -479,7 +496,7 @@

    file icons

    -
    +

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

    @@ -498,8 +515,9 @@

    tooltips

    -
    -

    tooltips.less is built entirely in CSS. Add the attribute data-tooltip and class tooltip to non self closing elements. And add the class name tooltip-right, tooltip-bottom or tooltip-left to define the position of a tooltip. By default, the tooltip appears above the element.

    +
    +

    tooltips.less is a label-like component that appears on hover and focus.

    +

    Add the class tooltip and the attribute data-tooltip, which contains the tooltip content, to non self closing elements. And add the class name tooltip-right, tooltip-bottom or tooltip-left to define the position of a tooltip. By default, the tooltip appears above the element.

    <button class="btn btn-primary tooltip tooltip-right" data-tooltip="Lorem ipsum dolor sit amet">right tooltip</button>
    @@ -553,13 +571,13 @@
    - + Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    - + Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    @@ -567,25 +585,25 @@
    - + Efficiently unleash cross-media information without cross-media value.
    - + Efficiently unleash cross-media information without cross-media value.
    - + Efficiently unleash cross-media information without cross-media value.
    - + Efficiently unleash cross-media information without cross-media value.
    -- cgit v1.3.1-26-gb76a
    name