|
|
@ -1,77 +1,50 @@ |
|
|
|
# cripsy-boilerplate |
|
|
|
|
|
|
|
Flat Sass Boilerplate to give you a amount of Basic Settings, Mixins and Functions. |
|
|
|
This Boilerplate uses |
|
|
|
Flat Sass Boilerplate to give you a amount of Basic Settings, Components, Helpers, |
|
|
|
Mixins and Functions. It uses also the following Libraries, |
|
|
|
|
|
|
|
* normalize.css / |
|
|
|
* reflex-grid / |
|
|
|
* normalize.css / (https://necolas.github.io/normalize.css/)[https://necolas.github.io/normalize.css/] |
|
|
|
* reflex-grid / (http://reflexgrid.com/docs/)[http://reflexgrid.com/docs/] |
|
|
|
|
|
|
|
# media queries |
|
|
|
Many Boilerplates and also Frameworks, are trying to hard adding styles that |
|
|
|
are most time will be overwritten to make it work for you. This causes a loss in |
|
|
|
Performance and more Fighting with the Framework and the Documentation. |
|
|
|
|
|
|
|
The queries are only |
|
|
|
## Coding Style |
|
|
|
|
|
|
|
``` |
|
|
|
@include crispy__media-xs() { |
|
|
|
|
|
|
|
} |
|
|
|
``` |
|
|
|
|
|
|
|
``` |
|
|
|
npm install crispy-boilerplate --save |
|
|
|
``` |
|
|
|
|
|
|
|
## Components |
|
|
|
|
|
|
|
There a few Components, some are also provide a Closure to adding additional Styles. |
|
|
|
|
|
|
|
### align |
|
|
|
|
|
|
|
Additional Styles for modificators for align text, floating and centering elements. |
|
|
|
|
|
|
|
### body |
|
|
|
|
|
|
|
Styles for Body, including Format for Fonts and Colors. |
|
|
|
|
|
|
|
### button |
|
|
|
|
|
|
|
Styles for Buttons. |
|
|
|
|
|
|
|
### heading |
|
|
|
The Boilerplate uses as Coding Style (http://getbem.com/)[BEM], but as a more |
|
|
|
simpler idea of it. One of the Benefits of BEM is that you create Components and |
|
|
|
can reuse them. But one the other hand it can be really Strange if you overthinking it. |
|
|
|
|
|
|
|
Styling h1-h6 and create also CSS-Classes with same name. |
|
|
|
## Not Fancy but Small |
|
|
|
|
|
|
|
### icon |
|
|
|
Components are created to give you a Structure and a Basic set of Styles and |
|
|
|
not that they look fancy. The Idea is to extend each Compontent and save up |
|
|
|
a Bunch of CSS Code, and so get more Performance and less Errors. |
|
|
|
Of Course is really Fancy to get more Performance. |
|
|
|
|
|
|
|
Styles to use SVG as Icons. |
|
|
|
## Only Include if you need it |
|
|
|
|
|
|
|
### list |
|
|
|
Components and Helpers are organizes as Mixins, that makes it a little easier to |
|
|
|
add. Also it can be used to create multiples css files for each single site you |
|
|
|
need on a site oder |
|
|
|
|
|
|
|
Additional Styles for Lists and modificators. |
|
|
|
|
|
|
|
### margin |
|
|
|
|
|
|
|
Additional Styles for modificators to margin-top and margin-bottom. |
|
|
|
|
|
|
|
### normalize |
|
|
|
|
|
|
|
Normalizing for a few Elements. |
|
|
|
|
|
|
|
### text-colors |
|
|
|
|
|
|
|
Creates text-colors modificators from a |
|
|
|
|
|
|
|
## Functions |
|
|
|
|
|
|
|
### pxToEm, pxToRem |
|
|
|
## Getting Started |
|
|
|
### Installation |
|
|
|
``` |
|
|
|
npm install crispy-boilerplate |
|
|
|
``` |
|
|
|
|
|
|
|
Function to convert from px to em or rem. |
|
|
|
``` |
|
|
|
@import "crispy"; |
|
|
|
``` |
|
|
|
|
|
|
|
## Mixins |
|
|
|
``` |
|
|
|
|
|
|
|
### clearfix |
|
|
|
``` |
|
|
|
|
|
|
|
Styles for clearfix. |
|
|
|
|
|
|
|
### font-size |
|
|
|
### npm |
|
|
|
### Example |
|
|
|
|
|
|
|
Add font-size with fallback. |
|
|
|
You find a Working Example i |