Skip to content

coderiver/headsandtails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gulp Boilerplate for generic CSS/HTML/JS development

riverco.de gulp boilerplate.

Structure

/src - thats where you write code.

/site - compiled code.

We have two options for building html /src/index.html and /src/partials/ - will be parsed with gulp-rigger.

Optinally one can use jade (it's commented in gulpfile.js). Basic templated is in /src/jade/

What is happening

Sass is compiled and postprocessed with wonderfull Autoprefixer.

src/img/icons are joined into sprite, which could be used in Sass like this

.icon
    +s(icon_name)

src/img/svg are joined into font, and can be used like this

<i class="icon-svgname"></i>

Naming blocks

I use BEM naming, meaning .block for independent block. .block__element for elements inside that block. And .block_modification for modification of the block.

layouts.sass consists of all the columns-header-footer stuff, all with .l-* prefixes. So you know it's layout.

States of the blocks use prefix .is-*. For example .is-running, .is-hidden, .is-open.

Hooks for js should use prefix .js-*.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published