xavib / fast-scsstart

A base set of SCSS stylesheets to start.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What

A base set of SCSS stylesheets to start projects. No frameworks or learning curve, just a set of empty files to be customised as you need and a couple of handy mixins and functions.

We work with plain HMTL, Ruby on Rails and PHP projects at season, so we've been working on a (really) simple structure for all scenarios.

Why

We keep this stuff isolated so we can integrate it in any project. By doing it this way, we can easily fit this with middleman for static sites and easily integrate it with Grunt, Glup or whatever.

This is not a framework, but just a structure to start hacking styles with no dependencies at all.

Feel free to add any automation layer over this.

This thing at a glance

Directory Purpose
core Core styles. Functions, mixins, font imports, variables...
base Holding the collection of high-level elements
layout Definition of the relationship between components
component Low-level elements
elements Low-level elements
vendor Vendor files, if not managed with automation tools

Some basic rules we trend to follow:

Add media queries the closest to their component.

As an example, take a related news block. 4 columns and tag list in large viewports, 1 column without tag list in small viewports.

You would add the media query to show/hide the tag list in a file called component/_news--item.scss

You would add the media query to fit the number of columns in a layout/_news--related.scss file.

Credits

This codebase has been baked by @xavi_b and is inspired by a bunch of lectures and conversations about structures.

About

A base set of SCSS stylesheets to start.


Languages

Language:CSS 100.0%