Skip to content

Instantly share code, notes, and snippets.

View jensgro's full-sized avatar

Jens Grochtdreis jensgro

View GitHub Profile
@jensgro
jensgro / dabblet.css
Last active December 16, 2015 23:19 — forked from SirPepe/dabblet.css
Lösung Adaptives Layout
/**
* Lösung Adaptives Layout
*/
* { box-sizing: border-box; }
body { padding: 0 1%; font-family: Arial, sans-serif; line-height: 1.6; }
nav ul { list-style: none; margin: 0; padding: 0; }
nav ul a { display: block; float: left; width:12.5%; font-weight: bold; }
#main, footer { clear: both; padding: 1em 0; }
footer { border-top: 1px solid #999; }
@jensgro
jensgro / SassMeister-input.scss
Created June 5, 2013 07:51
Generated by SassMeister.com, the Sass playground.
// ---
// Sass (v3.2.9)
// ---
// Farben
$black: #000;
$lightgrey1: #656565;
$lightgrey2: #5f5f5f;
$lightgrey3: #f6f6f6;
// ----
// Sass (v3.2.14)
// Compass (v0.12.2)
// ----
$break-small: 320px;
$break-large: 1024px;
@mixin respond-to($media) {
@if $media == handhelds {
@jensgro
jensgro / SassMeister-input.scss
Last active December 18, 2015 09:59
Build lists with Sass-placeholders
// ---
// Sass (v3.2.9)
// ---
// ------- Links -----------------------------
%a-tdn-tdu{
text-decoration: none;
&:hover, &:focus {text-decoration: underline;}
}
@jensgro
jensgro / SassMeister-input.scss
Created June 12, 2013 13:11
Very complex Sass-mixin for creating trinagles with CSS. The IE7-solution requires special span.before or span.after, preferred tob be injected via JavaScript.
// ---
// Sass (v3.2.9)
// ---
// switches between IE7-compatible-code and modern code
$isoldIE: false;
//$isoldIE: true;
@mixin b-a-complex($ba: before, $border-width: 10px, $padding: $border-width * 1.5, $border-side: left, $top-position: 0, $position-side: $border-side, $position-side-distance: 0, $border-color: #000) {
@jensgro
jensgro / SassMeister-input.scss
Created June 12, 2013 13:18
Sass-mixin to provide rgba for modern browsers and with a fallback for oldIE
// ---
// Sass (v3.2.9)
// ---
// Converts a solid color with an alpha-channel-value into rgba
// and an IE-filter as fallback for oldIE (IE up to version 8)
@mixin all-rgba($color, $alpha) {
$rgba: rgba($color, $alpha);
$ie-color: ie-hex-str($rgba);
@jensgro
jensgro / structure.html
Created June 12, 2013 14:13 — forked from anonymous/structure.html
Fancy-Buttons Testseite
<button class="test">Super toller Button</button>
@jensgro
jensgro / SassMeister-input.scss
Created June 12, 2013 14:41
Sass-mixin for box-shadow with optional inset and oldIE-output for outset version
// ----
// Sass (v3.2.14)
// Compass (v0.12.2)
// ----
@mixin box-s($x, $y, $offset, $color, $inset: false) {
$ie-color: ie-hex-str($color);
@if $inset {
-webkit-box-shadow: inset $x $y $offset $color;
// ---
// Sass (v3.2.9)
// ---
// Linear Gradient with two colors for modern browsers without the corresponding IE-filter
// $direction ==> written in the standard-way: to bottom, to left ...
// $solid-color ==> replacement color for the one device that cannot show gradients or IE-filters
// $start-color ==> which color to start with
@jensgro
jensgro / SassMeister-input.scss
Created June 17, 2013 20:05
Einfacher Grid-Generator mit Sass
// ---
// Sass (v3.2.9)
// ---
$seitenbreite: 960px;
$anzahl-grids: 6;
$horizontaler-abstand: 10px;
$eine-spalte: $seitenbreite / $anzahl-grids;