ホームページ  >  記事  >  ウェブフロントエンド  >  Reindeer.css – フロントエンド開発者向けの軽量でカスタマイズ可能な CSS フレームワーク_html/css_WEB-ITnose

Reindeer.css – フロントエンド開発者向けの軽量でカスタマイズ可能な CSS フレームワーク_html/css_WEB-ITnose

WBOY
WBOYオリジナル
2016-06-21 08:57:261118ブラウズ

来自: https://estkin.github.io/reindeer.css/

Reindeer.css

前端开发人员的轻量级可定制CSS框架。

# Status

At the time we are working on Reindeer as much as possible, some components are missing, but we will add them very soon!

This documentation is updated for Reindeer's version 0.1.3

# Install Reindeer

Recommended installation is with node package manager

Run this command in terminal:
npm install --save reindeer.css

Or just download master branch from github repository (newest versions/releases are there quicker than on npm; but they could be broken or not production ready)

https://github.com/estkin/reindeer.css/archive/master.zip

# Use Reindeer

If you succesfully get Reindeer, you can now link it with your HTML document

This comes into tag:

# How to customize

Customization is pretty easy, you just need those three things:

  • Gulp installed
  • Reindeer's source code
  • Some text editor (even TextEdit on Mac/Notepad on Windows)
  • If you have all these things, open src/base/_var.css , in this file, you can customize everything what is included. More customization coming soon...

    Example:
    $link-color: #333333; change to $link-color: #d2436d;
    for changing color

    After your customizing open terminal in root directory of Reindeer's source code and run command npm run both , this command will produce compiled + minified file with your custom variables

    # Typography

    Nothing special at the moment

    Heading 1

    Heading 2

    Heading 3

    Heading 4

    Heading 5

    Heading 6

    Paragraph

    # Buttons

    Stylized for use with link and button [not input] (You can use it with div, but it has cursor: pointer on it)

    Example:





    # Boxes

    Same as buttons but for blocking use, like layout things, etc. (No cursor: pointer on it)

    Red box!

    Green box!

    Orange box!

    Violet box!

    Gray box!

    Asphalt box!

    Example:
    Red box!

    Green box!

    Orange box!

    Violet box!

    Gray box!

    Asphalt box!

    # Grid

    トナカイはフレックスボックス マジックに基づいています

    2 つの行タイプがあります:

  • .row - 単なる通常の表示: flex row
  • .row-center - 表示: オブジェクトを中央に配置したフレックス行
  • そして多くの .row-item-* クラス:

  • .row-item
  • .row-item- -(2 から 12 まで)
  • .row-item--half
  • .row-item--third
  • .row-item--quant
  • アイテム 1

    アイテム 5

    アイテム 1

    アイテム 4

    アイテム1

    項目 3

    項目 1

    項目 2

    項目 2

    アイテム 3

    アイテム半分

    アイテム 1

    または、このようなクレイジーなことをしてください (実際にはクレイジーではありませんが、笑)

    アイテム 1

    アイテム 1

    アイテム 1

    アイテム 2

    アイテム 2

    項目 10

    項目 2

    項目 2

    項目 2

    項目 4

    項目 10

    例:

    項目 2

    項目 10

    項目 2