Skip to content

Instantly share code, notes, and snippets.

View jensgro's full-sized avatar

Jens Grochtdreis jensgro

View GitHub Profile
@jensgro
jensgro / mediaqueries.css
Created November 13, 2011 15:13
Hardboiled CSS3 Media Queries von Andy Clarke
/*
Hardboiled CSS3 Media Queries by Andy Clarke:
http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/
Author: Andy Clarke
Web site: http://stuffandnonsense.co.uk
Twitter: http://twitter.com/malarkey
Hardboiled Web Design
@jensgro
jensgro / extern-link.css
Created December 6, 2011 11:03
css attribute selectors
@jensgro
jensgro / HTML language
Created December 13, 2011 08:43 — forked from kornelski/HTML language
TextMate HTML language tweaked to support unqoted attributes
{ scopeName = 'text.html.basic';
firstLineMatch = '<!DOCTYPE|<(?i:html)|<\?(?i:php)';
fileTypes = ( 'html', 'htm', 'shtml', 'xhtml', 'phtml', 'php', 'inc', 'tmpl', 'tpl', 'ctp' );
foldingStartMarker = '(?x)
(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|li|form|dl)\b.*?>
|<!--(?!.*--\s*>)
|^<!--\ \#tminclude\ (?>.*?-->)$
|<\?(?:php)?.*\b(if|for(each)?|while)\b.+:
|\{\{?(if|foreach|capture|literal|foreach|php|section|strip)
|\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))
@jensgro
jensgro / info.txt
Created December 16, 2011 18:06
Make jQuery work within HTML-documents in Textmate
Inside the HTML- and the HTML5-bundle you should look for the "HTML" or "HTML5"-button and find inside the script the "pattern"-section. Paste the following code right in the beginning of this section.
Source for that trick: http://imulus.com/blog/bruce/javascript/how-to-set-up-a-sexy-jquery-textmate-bundle/
// --------------------- the code that should be copied
{ name = 'source.js.jquery.embedded.html';
begin = '(?:^\s+)?(<)((?i:script))\b(?![^>]*/>)';
end = '(?<=</(script|SCRIPT))(>)(?:\s*\n)?';
beginCaptures = {
@jensgro
jensgro / dabblet.css
Created January 20, 2012 13:26
Marker mit 3D-Touch an Contentbox
/**
* Marker mit 3D-Touch an Contentbox
*/
.box {
position: relative;
border: 1px solid #333;
padding: 2.25em 0.75em 0.75em 0.75em;
}
p {
margin: 0;
@jensgro
jensgro / dabblet.css
Created January 20, 2012 13:40 — forked from LeaVerou/dabblet.css
The -Webkit-scrollbar challenge
/**
* The -Webkit-scrollbar challenge
* * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Make the first div’s scrollbar like the second’s
* without changing the styling of the div (i.e. you
* can only change the ::-webkit-scrollbar-* rules
* * * * * * * * * * * * * * * * * * * * * * * * * * * *
* It doesn't matter if the second div doesn't look the same
* after your changes, it's only there to show you how the
* end result should look.
@jensgro
jensgro / dabblet.css
Created January 25, 2012 16:06 — forked from LeaVerou/dabblet.css
Angled Navigation?
/**
* Angled Navigation?
* to help @Chrisedmo
*/
nav li {
list-style: none;
float: left;
}
@jensgro
jensgro / dabblet.css
Created January 30, 2012 11:50
Beautiful Skiplinks with CSS3 Transitions
/**
* Beautiful Skiplinks with CSS3 Transitions
* Original: http://jsfiddle.net/MoritzGiessmann/DFrVC/
*/
a {
display:block;
width:200px;
height:50px;
border-radius:0 0 5px 5px;
@jensgro
jensgro / dabblet.css
Created February 2, 2012 08:17 — forked from chriscoyier/dabblet.css
Ratings Stars
/*
Ratings Stars
(with as little code as possible)
*/
.rating {
unicode-bidi: bidi-override;
direction: rtl;
text-align: center;
}
.rating > span {
@jensgro
jensgro / dabblet.css
Created February 2, 2012 17:22
hint-text with a generated arrow
/**
* hint-text with a generated arrow
*/
body {background: #fff; padding: 20px;}
.current {position: relative; padding: 20px; background: #a20000; color: #fff; text-decoration: none; font-size: 22px; font-family: Verdana, sans-serif;}
.current:before{
content: ""; display: block; width: 0; height: 0;