Coder Social home page Coder Social logo

inclusion's Introduction

Inclusion. Sass / Scss / Stylus Framework

##Contents

About

Inclusion is lightweight preprocessor single-page framework with next features:

  • Simple and minimalist design
  • Responsive layout
  • Light and dark color schemes
  • Clean typography
  • Ready-to-use common elements
  • DRY output css code

And extra options:

  • Extra positioned elements
  • Grid mixin for custom grids
  • Custom color schemes
  • jQuery lazy image loading and image preview

Mockup demo

How To Start

Want to learn more about Inclusion, see demo or start using it? - Follow this: Demo and Tutorial. For further development you should use grunt and bower, see more details about grunt installation here and about bower here

To compile this project, please run the following:

  • npm install - install grunt packages
  • bower install - install dependencies
    • grunt bower-dev - compile dependencies and remove bower_components folder
  • grunt - default task, compile project files

To create build version, please run build task:

  • grunt build

##Structure This project based on frontend-scaffold:

/dev/ folder - contains source code.

/build/ folder - build version, in our case - demo.

UPDATE: /styles/ folder in /dev/ contain two version of framework - extend and mixin. Also there are Scss and Sass versions.

  • Extend version based on placeholders which make code more dry but if we have a lot of similar elements code will become messy. This version really cool for projects that have custom markup classnames with the same styles.
  • Mixin version based on mixins so compiled code is more pretty and readable but there are duplication of mixin content for each element. In result we have a bigger stylesheet. This version works fine for small projects. Must say, that stylesheet size at all isn't so critical for common project that has built with mixin version.

HTML and CSS naming

For this project I've used BEM naming: .block for independent block. .block__element for elements inside this block. And .block_modifier for modification of this block.

States of the form error messages use prefix .is-*. For example .is-closed - means closed nav or spoiler, .is-opened - open navbar and changed.

Js hooks use prefix .js-*.

###Dependencies Inclusion plugins require jQuery library. So this dependency was included into bower.json for the further development.

Live examples

TODO

  • Shortkeys list for snippets. Make snippet completion or something like that.
  • Stylus version
  • No-preprocessor version

Please note, that custom fonts, like Open Sans and Open Sans Condensed linked to the framework using @import directive. For better performance please use <link> tag in your markup link(href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,300,400,600,700,800|Open+Sans+Condensed:300&subset=latin,cyrillic', rel='stylesheet', type='text/css') or local copies of these fonts

Changelog

  • v2.3 (July 19, 2015)
    • Autoprefixer instead of _elements lib
  • v2.2 (January 06, 2015)
    • Sass version
  • v2.1 (December 22, 2014)
    • Added IE8 support
  • v2.0 (December 18, 2014)
    • Added mixin version of framework
  • v1.5 (December 16, 2014)
    • Added video option for figure element
  • v1.4 (November 24, 2014)
    • Added $color option for sections
  • v1.3 (November 20, 2014)
    • Standalone anchor scrolling script added
  • v1.2 (November 08, 2014)
    • Sublime snippets added, selection mixin added
  • v1.1 (November 04, 2014)
    • Stable version
  • v1.0 (August --, 2014)
    • Initial commit

Credits

License

MIT

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.