项目作者: gavrilyuc

项目描述 :
Bootstrap Class Mixer
高级语言:
项目地址: git://github.com/gavrilyuc/bootstrap-mixer.git
创建时间: 2017-08-30T16:43:36Z
项目社区:https://github.com/gavrilyuc/bootstrap-mixer

开源协议:GNU General Public License v3.0

下载


Bootstrap Mixer

This is addition to bootstrap, includes mixing classes and easy way to style blocks.

It helps to improve using repetitive styles.

Instalation

npm install bootstrap-classmixer
or
bower install bootstrap-classmixer

Compiling sources

Installing Koala (github project), or
Download sass compiler:

  • Windows
    Before you start using Sass you will need to install Ruby. The fastest way to get Ruby on your Windows computer is to use Ruby Installer. It’s a single-click installer that will get everything set up for you super fast.
    The installer will also install a Ruby command line powershell application that will let you use the Ruby libraries.

    Then open prompt console(Win+R > cmd.exe) and install ssas.

    gem install sass

  • Linux
    If you’re using a distribution of Linux, you’ll need to install Ruby first. You can install Ruby through the apt package manager, rbenv, or rvm.
    Then

    sudo gem install sass

After that compile sources: see sass documentation

sass —watch bootstrap-classmixer.scss:bootstrap-classmixer.css —style compressed

Using and information

padding-left-50 -> added padding-left 50 pixels;

padding-left-50pr -> added padding-left 50 procent;

padding-left-50vw -> added padding-left 50 vw;

  1. <div class="padding-top-50 background-color-black">
  2. Example text
  3. </div>

You may use multi screens classes: lg-*, md-*, sm-*, xs-*

  1. <div class="lg-padding-top-150 md-padding-top-100 sm-padding-top-50 xs-padding-top-0">
  2. Example text
  3. </div>

Using default web colors:

  1. <div class="lg-color-red md-color-silver sm-color-pink xs-color-black">
  2. Example text
  3. </div>

Using font size:

  1. <div class="lg-font-26pt md-font-23pt sm-font-18 xs-font-16">
  2. Example text
  3. </div>

Full example

  1. <div class="row">
  2. <div class="col-xs-12">
  3. <div class="lg-padding-top-30 lg-padding-bottom-30 xs-padding-0">
  4. Example Padding top (large window: top/bottom 30px, other 0px)
  5. </div>
  6. </div>
  7. <div class="col-xs-12">
  8. <div class="lg-color-black md-color-gay sm-color-silver xs-color-white sm-backgroun-white xs-background-black">
  9. Example color styling
  10. </div>
  11. </div>
  12. <div class="lg-font-28pt md-font-26pt sm-font-22pt xs-font-18pt">
  13. Font size styling
  14. </div>
  15. </div>
  16. `