Skip to content

Instantly share code, notes, and snippets.

View yatil's full-sized avatar
💭
Workin’

Eric Eggert yatil

💭
Workin’
View GitHub Profile
@yatil
yatil / dabblet.css
Created February 20, 2012 13:59
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
@yatil
yatil / dabblet.css
Created February 21, 2012 09:31
Von links die Kuh ins Bild
body {font-size:30px; font-family: "Comic Sans MS", Arial, "Helvetica Neue", sans-serif; }
@keyframes wobble {
0% {
left: 0;
}
25% {
left: -20%;
}
50% {
@yatil
yatil / dabblet.css
Created March 1, 2012 10:09
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
div {
background: linear-gradient(#f3f3f3, #eee);
width: 250px;
height: 250px;
color: #999;
font-family: 'Helvetica Neue', Arial, sans-serif;
@yatil
yatil / filtersyntax.scss
Created March 12, 2012 19:42
Webkit nightly have support, others don’t.
@mixin filter($function) {
-webkit-filter: $function;
-moz-filter: $function;
-ms-filter: $function;
-o-filter: $function;
filter: $function;
}
@yatil
yatil / dabblet.css
Created April 24, 2012 12:05
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@yatil
yatil / _mqhelper.scss
Created May 12, 2012 14:06
Forcing the desktop layout to IE<9
@mixin respond-to($media) {
@if $media == small {
@media only screen and (max-width: 599px) { @content; }
}
@else if $media == medium {
@media only screen and (min-width: 600px) { @content; }
.oldie & { @content; }
}
@else if $media == large {
@media only screen and (min-width: 800px) { @content; }
@yatil
yatil / config.rb
Created July 2, 2012 11:45
Stock COMPASS config file
# Require any additional compass plugins here.
# IMPORTANT
#
# THIS config.rb uses the following versions of SASS/COMPASS
#
# Sass 3.2.0.alpha.35 (Bleeding Edge)
# Compass 0.12.0 (Alnilam)

There are no CSS3 filters. CSS Filters are a proprietary extension to CSS by Webkit browsers, it isn’t supported anywhere and is not in any CSS specification, neither in Level 3 nor in Level 4.

There is a separate Editor’s Draft called “Filter Effects 1.0” here: https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html but that means nothing. Implementation as well as syntax may – and probably will – change, so using -moz- -o- and -ms- prefixes will likely do harm instead of being future proof.

I’d rather wait until there are at least two implementations of that stuff in browsers

@yatil
yatil / _helper.scss
Created November 1, 2012 09:39
IE Mediaqueries
@mixin respond-to($media) {
@if $media == small {
@media only screen and (max-width: 699px) { @content; }
}
@else if $media == medium {
@if $oldIE {
@content;
} @else {
@media only screen and (min-width: 600px) { @content; }
}
<div class="container list-item story stretched" xid="list-item-9" id="element-337" style="-webkit-transform: translate3d(0px, 4500px, 0px) scaleX(1) scaleY(1) scaleZ(1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skewX(0deg) skewY(0deg); min-height: 110px; width: 1280px;">
<div class="inner container-inner list-item-inner" id="element-338">
<div class="container unsized frame list-item-item" xid="container-11" id="element-339">
<div class="inner container-inner" id="element-340">
<div class="image buffered-image story-profile-picture sized" xid="buffered-image-13" id="element-341" style="width: 35px; height: 35px; background-image: url(https://fbcdn-profile-a.akamaihd.net/hprofile-ak-snc6/261057_631604675_297058556_q.jpg);"></div>
<div class="container inlines unsized story-title" xid="inlines-4" id="element-342">
<div class="inner container-inner inlines-inner" id="element-343">
<div class="text unsized story-t