Skip to content

Instantly share code, notes, and snippets.

View gisu's full-sized avatar

sascha fuchs gisu

View GitHub Profile
@gisu
gisu / grid.scss
Created December 6, 2011 15:08
SASS Universal GRID System. Multifunctional, suitable for responsive Layouts
// Mixing for Compass - GRID
// Autor : Sascha Fuchs
// Date : 06.12.2011
// Version : 1
// Email : info@jiff-design.de
// URL : jiffdesign.de
// @include grid($framesize, $colums,$gutterwidth, $prefix, $design, $layout, $border, $padding,$offset,$onecolpad,$test)
// // Framesize for the Grid in PX
// $framesize : 1000,
// // Number of Colums
@gisu
gisu / posititioning.sass
Created August 11, 2013 08:43
A simple mixin for positioning elements.
// ============================================================
// Positioning Mixins
// ------------------------------------------------------------
//**
// Private Mixin: _set-position
// Set the Position for the Position Mixins
//
// @mixin _set-position
// @param $position {list} One Value = top, Two Value = top left, Four Values = top right bottom left (t = zero position) can be in px or %
@gisu
gisu / _size.sass
Created August 11, 2013 09:19
Shorthand Mixin to include the Size (width and/or height)
//**
// Mixin: size
// Shorthand for insert Dimensions. Default in PX, opt in Percent
// Entering only one Value the Dimension Squared, with two Values
// the width and height are written.
//
// @mixin size
// @param $size {number} Width and or Height
// @usage +size($size, $value)
// @eg +size(200 100)
.box {
height: 200px;
width: 300px;
background: blue;
padding: 10px;
margin: 0 0 10px 0;
color: white;
position: relative;
}
.box-small {
height: 200px;
width: 300px;
background: #f7f7f7;
padding: 10px;
margin: 0 0 10px 0;
color: black;
position: relative;
}
.box {
background: #f7f7f7;
padding: 10px;
margin: 0 0 10px 0;
color: black;
position: relative;
}
.box_small {
height: 200px;
<div class="box box_small">…</div>

<div class="box box_wide">…</div>
.relative {
position: relative;
}
.padding--10 {
padding: 10px;
}
.margin-bottom--10 {
margin-bottom: 10px;
}
.box {
<div class="box box_small padding--10">…</div>
<div class="box box_wide padding--10 margin-bottom--10">
<h2 class="box--heading padding--10">Headline</h2>
</div>
%relative
postion: relative
%padding--10
padding: 10px
%margin-bottom--10
margin-bottom: 10px
%box