Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doubleu23/scss.boilerplate
SCSS boilerplate setup for responsive layouts
https://github.com/doubleu23/scss.boilerplate
Last synced: 29 days ago
JSON representation
SCSS boilerplate setup for responsive layouts
- Host: GitHub
- URL: https://github.com/doubleu23/scss.boilerplate
- Owner: DoubleU23
- Created: 2015-09-01T15:57:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T02:14:43.000Z (almost 2 years ago)
- Last Synced: 2024-10-05T14:44:20.386Z (about 1 month ago)
- Language: JavaScript
- Size: 694 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SCSS Boilerplate
[![Build Status](https://travis-ci.com/DoubleU23/scss.boilerplate.svg?branch=master)](https://travis-ci.com/DoubleU23/scss.boilerplate) [![Build status](https://ci.appveyor.com/api/projects/status/ocspiop97dlpccem/branch/master?svg=true)](https://ci.appveyor.com/project/DoubleU23/scss-boilerplate/branch/master)
[![Greenkeeper badge](https://badges.greenkeeper.io/DoubleU23/scss.boilerplate.svg)](https://greenkeeper.io/)> **modular styling skeleton and compiling setup with gulp**
#### Table of Contents:
- [MediaQueries](#mediaqueries)
- [Small \(=All\)](#small-all)
- [Medium](#medium)
- [Large](#large)
- [The MQ mixin](#the-mq-mixin)
- [FILES](#files)
- [/inc](#inc)
- [/mq](#mq)
- [TODOS:](#todos)## MediaQueries
### Small (=All)
> no MQ to use**progressive enhancement** - load this for all clients
### Medium
> sreen and (min-width: 640px)for all **tablet** devices
### Large
> screen and (min-width: 1024px)for the **desktop** view
## The MQ mixin
```
@mixin mq($name) {
@if( $mq == $name ) {
@content;
}
}
```
__usage:__
```
body {
@include mq('desktop') { color: red; }
@include mq('mobile') { color: red; }
}
```
__OR__
```
@include mq('desktop') {
body {
color: red;
}
}```
## FILES
### /inc
This is the order in wich they will be included into the _main.scss__/inc/_reset.scss__
html5 doctor css reset -
[http://html5doctor.com/html-5-reset-stylesheet](http://html5doctor.com)__/inc/_variables.scss__
Yes... This is the File were we put all variables
We could also put it in /_main.scss but i think configuration should be seperated from the code__/inc/_mixins.scss__
Here are the functional definitions of the mixins and the functions__/inc/_helpers.scss__
helpers like clearfix, border box model, and margin auto ...
These classes can be uses either as normal CSS-class or as an @extend argugment### /mq
__/mq/_mobile.scss__, __/mq/_tablet.scss__, __/mq/_dektop.scss__
> The mobile file could also be named "all.scss" because it is loaded for every device
=> [__mobile first__](http://lmgtfy.com?q=mobile+first)These are the MQ-specific files. Each MQ in it's own file because of two reasons:
* We need to set the context per `$mq` variable
This variable is recognized by the `mq()` mixin used in _main.scss and /modules/*.scss
See [MQ-mixin](#mq_mixin)
* Because we have the MQ's in seperate files
we can __set the media queries directly in the ``-Tag__ in our HTML header.
This __prevents that mobile devices have to load the full CSS__ code for all MQ
( WOW! very fast! such performance! )
```
```
## TODOS:
* try to use node-sass-chokidar with gulp-sass
* Clean Documentation
* split open and closed versions
* extend the mixins
* test/improve the ability for Backbone/Foundation Boilerplate implementation
* update the doc (mq's changed ... import flow improved)
* find solution for importflow (reset, shame, ...) maybe put it in all/mobile MQ
* seperated files VS. full.scss