项目作者: FabricElements

项目描述 :
Extend paper-styles with useful styles
高级语言: JavaScript
项目地址: git://github.com/FabricElements/skin-styles.git
创建时间: 2016-12-10T22:22:10Z
项目社区:https://github.com/FabricElements/skin-styles

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Build Status
Published on webcomponents.org

skin-styles

skin-styles is a Polymer 2 element that extends paper-styles with useful styles.

Installation

Install skin-styles with Bower

  1. $ bower install --save FabricElements/skin-styles

Usage

Import it into the <head> of your page

  1. <link rel="import" href="bower_components/skin-styles/skin-styles.html">

The <skin-styles> component provides simple ways to use Material Design CSS styles in your application. The following imports are also available:

  • buttons.html: A complete set of custom buttons.
  • grid.html: A grid layout using Bootstrap.
  • typography.html: A Set of default styles for typography extending the paper default styles.

We recommend importing each of these individual files, and using the style mixins
available in each ones, rather than the aggregated skin-styles.html as a whole.

Examples: basic usage

  • skin-buttons

    • btn-rounded
    1. <paper-button class="btn-fill--dark-accent-color btn-rounded">
    2. hello
    3. </paper-button>
    1. <paper-button raised class="btn-rounded">
    2. hello
    3. </paper-button>

    Use paper-button attributes like “raised” to continue manipulating the styles.

    To see more custom buttons styles, please check the demo file.

  • skin-styles-grid

    • Three equal columns.
    1. <div class="row">
    2. <div class="col-md-4">.col-md-4</div>
    3. <div class="col-md-4">.col-md-4</div>
    4. <div class="col-md-4">.col-md-4</div>
    5. </div>

    To see more basic grid layouts, please check the demo file.

  • skin-typography

    • typography-light
    1. <article class="redlines paragraph">
    2. <div class="paper-font-display4 light">Text</div>
    3. </article>
    • typography-dark
    1. <article class="redlines paragraph bg-dark">
    2. <div class="paper-font-display4 dark">Text</div>
    3. </article>

    To see more typography default styles, please check the demo file.

Contributing

Please check CONTRIBUTING.

License

Released under the BSD 3-Clause License.