Skip to content

Instantly share code, notes, and snippets.

View zapatoche's full-sized avatar

Yannick Schall zapatoche

  • Bish Bash Bosh it
  • London, UK
View GitHub Profile
@zapatoche
zapatoche / output.css
Created July 9, 2012 16:38 — forked from aquelito/output.css
SCSS Compass Font Size - Vertical Rhythm
html {
font: 100%/1.5em "Helvetica Neue", Helvetica, Arial, sans-serif; }
h1, .h1 {
font-size: 4em;
line-height: 1.5em;
margin: 0.5em 0; }
h2, .h2 {
font-size: 3em;
@zapatoche
zapatoche / 0_silent_selector_grid.scss
Created July 16, 2012 12:44 — forked from chriseppstein/0_silent_selector_grid.scss
This gist describes a new feature we're experimenting with for Sass 3.2: placeholder selectors. They do not get generated into your output, but they can be used like a class and extended like one.
$gutter: 10px;
$grid-unit: 60px;
%clearfix {
*zoom: 1;
&:after {
content: "\0020";
display: block;
height: 0;
clear: both;
# ==============================================================================
# REQUIRED 3RD PARTY COMPASS EXTENSIONS
# ==============================================================================
require 'susy'
# ==============================================================================
# COMPASS PROJECT CONFIGURATION
# ==============================================================================
# Can be `:stand_alone` or `:rails`. Defaults to `:stand_alone`.
@zapatoche
zapatoche / Readme.md
Created October 25, 2012 18:50 — forked from krisbulman/Readme.md
A Sass mixin for block lists.
@include handhelds {
table.responsive {
width: 100%;
thead {
display: none;
}
tr {
display: block;
}
td, th {
require "jammit"
module Jekyll
class JammitGenerator < Generator
safe true
def generate(site)
jammit_config = site.config["jammit_config"] || "_assets.yml"
jammit_base_dir = site.config["jammit_base_dir"] || File.join(".", site.config["source"])
jammit_output_dir = site.config["jammit_output_dir"] || "assets"
@import compass
$icons: sprite-map("icons/*.png")
$icons-hd: sprite-map("icons-hd/*.png")
i
background: $icons
display: inline-block
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi)
+background-size(image-width(sprite-path($icons)) auto)
@zapatoche
zapatoche / dabblet.css
Created January 15, 2013 14:33 — forked from lensco/dabblet.css
box-shadow vs filter: drop-shadow 2
/**
* box-shadow vs filter: drop-shadow 2
*/
body {
background: #ddd;
font: 16px/1 sans-serif;
margin: 50px;
}
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function() {
var input = $(this);
@zapatoche
zapatoche / dabblet.css
Created May 30, 2013 17:02 — forked from LeaVerou/dabblet.css
Vertically centered text with SVG
/* Vertically centered text with SVG */
div {
width: 300px;
height: 150px;
background: #f06;
font: bold 150% sans-serif;
text-shadow: 0 1px 2px rgba(0,0,0,.5);
overflow: hidden; resize: both; /* just for this demo */
color: white;