Skip to content

Instantly share code, notes, and snippets.

View jensgro's full-sized avatar

Jens Grochtdreis jensgro

View GitHub Profile
@jensgro
jensgro / layout.sass
Created March 2, 2012 20:02 — forked from jcroft/layout.sass
How easy responsive design can be with Sass
#content-wrapper
+container
#about
// Default (smallest screens)
+column(100%)
background-color: #ccc
// Respond to other screen widths
@jensgro
jensgro / dabblet.css
Created March 6, 2012 16:09
mitscrollender Seitenrahmen
/* mitscrollender Seitenrahmen */
body {padding: 0; margin: 0; position: relative; background: #efefef; font-family: Verdana, sans-serif;}
#wrap {width: 920px; padding: 20px; background: #cecece;box-shadow: 1px 1px 5px rgba(0,0,0,0.5); margin: 100px auto;}
html {border-left: 10px solid #cecece; border-right: 10px solid #cecece;}
body {border-top: 10px solid #cecece; border-bottom: 10px solid #cecece;}
@jensgro
jensgro / rgba.css
Created March 29, 2012 06:44
rgba() for all browsers
/* all modern browsers, including IE9 */
.box {
background-color: rgba(0,0,0,0.5);
}
/* for oldIE ( ≤ IE 8 ) - should be in a special CSS-file */
.box {
filter:progid:DXImageTransform.Microsoft.gradient(startColorStr=#7f000000,endColorStr=#7f000000);
/* if you want to, add this especially for IE8 */
-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorStr=#7f000000,endColorStr=#7f000000)";
@jensgro
jensgro / dabblet.css
Last active October 3, 2015 07:48
Untitled
padding: 5px;body {
font-family: sans-serif;
}
ul {
list-style: none
}
li {
background: slategrey;
@jensgro
jensgro / dabblet.css
Created April 20, 2012 17:06 — forked from LeaVerou/dabblet.css
Vertical centering with Flexbox + margin fallback
/**
* Vertical centering with Flexbox + margin fallback
* Lea Verou & David Storey
*/
html, body { height: 100%; }
body {
width: 100%; /* needed for FF */
margin: 0;
@jensgro
jensgro / dabblet.css
Created April 20, 2012 17:54
Paginierung - Pagination
/* Paginierung - Pagination */
/* Die Navigation horizontal machen */
.pagination, .pagination li { list-style-type: none; margin: 0; padding: 0; float: left;}
.pagination {padding: 20px; background:#f2f2f2; }
/* Grundformatierungen für Links und aktive */
.pagination a, .pagination .active { display:inline-block; padding:0px 9px; margin-right:4px;}
.pagination a { border-radius:3px; border:solid 1px #c0c0c0; text-decoration:none; color:#717171; box-shadow:inset 0px 1px 0px rgba(255,255,255, .8), 0px 1px 3px rgba(0,0,0, .1);}
.pagination a:hover, .pagination a:focus {
@jensgro
jensgro / dabblet.css
Created April 20, 2012 18:36 — forked from JoelBesada/dabblet.css
CSS States
/* CSS States */
body {
background: url(http://dabblet.com/img/noise.png);
background-color: #F5F2F0;
font-family: Georgia, serif;
font-size: 18px;
line-height: 1.6em;
text-shadow: 0 2px 0 white;
color: #222;
}
@jensgro
jensgro / Outliner.js
Created April 23, 2012 12:57 — forked from arieh/Outliner.js
Cross-Lib accessible outline removal
/*!
Copyright (c) <2012> <Arieh Glazer>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
@jensgro
jensgro / dabblet.css
Created May 8, 2012 07:16 — forked from jackie/dabblet.css
FizzBuzz with CSS
/**
* FizzBuzz with CSS
*/
body {
counter-reset: fizzbuzz;
}
div {
<?php # -*- coding: utf-8 -*-
/**
* Plugin Name: T5 Parent Terms in body_class
* Description: Adds all parent terms of a term archive to <code>body_class()</code>.
* Version: 2012.0.14
* Author: Thomas Scholz <info@toscho.de>
* Author URI: http://toscho.de
* License: MIT
* License URI: http://www.opensource.org/licenses/mit-license.php
*/