Code Monkey home page Code Monkey logo

initialize-css's Introduction

Initialize.css

Initialize.css is a complete and customizable collection of CSS best practices based on Normalize.css and HTML5 Boilerplate. Available in CSS and configurable SASS (SCSS) format.

Install

npm:

npm install initialize-css

bower:

bower install initialize-css

Usage

sass / scss (from node_modules or bower_components):

@import "module_folder_name/initialize-css/dist/initialize";

with browserify:

@import "initialize";

Configure

Overwrite default values for generic typography

$initialize-box-sizing: border-box;
$initialize-font-family: sans-serif;
$initialize-font-size: 1em;
$initialize-line-height: 1.4;

Options

$initialize-print-styles: true;
$initialize-html5-boilerplate-overwrites: true;

Microsoft dropped support for IE8, IE9 & IE10. If you still have to support these old dinosaur browsers, just set dinosaur mode to true. This option is set to false by default.

$initialize-dinosaur-mode: true;

Optional values

$initialize-color: #000;
$initialize-block-margins: 0 0 0.75em;
$initialize-heading-color: #000;
$initialize-heading-font-family: sans-serif;
$initialize-heading-margins: 1em 0 0.75em;

initialize-css's People

Contributors

jeroenoomsnl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

initialize-css's Issues

use of less strings in .optional-prop

The .optional-prop mixin in the less version tests whether a value is a color, number or string. However, those tests do not cover all possible values.

It seems the code expects values like border-box for box-sizing or 1em 0 for margins to be strings, which is not the case: see less documentation.The values will be completely ignored and the option not rendered.

For box-sizing, adding iskeyword can do the trick. Sadly, it does not seem to be possible to use shorthand properties with multiple values (e.g. for margins) as this fails all existing type functions (a single value could be a string or a number).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.