Skip to content

Instantly share code, notes, and snippets.

View davidhund's full-sized avatar

David Hund davidhund

View GitHub Profile
<data>
<hello>paste your xml here</hello>
</data>
@davidhund
davidhund / dabblet.css
Created September 20, 2012 15:26 — forked from anonymous/dabblet.css
Untitled
body { background:#EEE; min-height: 60em; }
#logo {
XXXborder: 0 solid #FFF;
XXXborder-width: 0 .25em .25em 0;
XXXborder-radius: .125em;
width: 5em;
height: 5em;
background: #000;
@davidhund
davidhund / dabblet.css
Created September 20, 2012 15:26
Untitled
body { background:#EEE; font-family: Georgia, serif; margin: 0; padding: 0; position: relative; }
.wrap {
min-width: 40em;
max-width: 50em;
min-height: 40em;
margin: 1.5em auto 0 10em;
padding: 3em 6em;
XXborder: 1px solid red;
XXXbackground: rgba(255,255,255,0.7);
background: linear-gradient(rgba(255,255,255,0.9) 15%, rgba(255,255,255,0) 50%);
@davidhund
davidhund / dabblet.css
Created September 20, 2012 18:04 — forked from anonymous/dabblet.css
Some fancy experimenting with an animated, transformed, multiple-box-shadowed logo :/
/* Some fancy experimenting with an animated, transformed, multiple-box-shadowed logo :/ */
body { background:#EEE; min-height: 60em; }
#logo {
XXXborder: 0 solid #FFF;
XXXborder-width: 0 .25em .25em 0;
XXXborder-radius: .125em;
width: 5em;
height: 5em;
@davidhund
davidhund / dabblet.css
Created September 20, 2012 18:07
Some fancy experimenting with an animated, transformed, multiple-box-shadowed logo :/
/* Some fancy experimenting with an animated, transformed, multiple-box-shadowed logo :/ */
body { background:#EEE; min-height: 60em; }
#logo {
XXXborder: 0 solid #FFF;
XXXborder-width: 0 .25em .25em 0;
XXXborder-radius: .125em;
width: 5em;
height: 5em;
@davidhund
davidhund / dabblet.css
Created October 5, 2012 09:33
CSS only 'lightbox'
/**
* CSS only 'lightbox'
*/
body {
font: normal 1.5em/1.5 sans-serif;
background: #0cf;
color: #444;
min-height: 100%;
padding: 2em 10em;
@davidhund
davidhund / oocss-state-selectors.md
Created October 8, 2012 12:43
How to write (OO)CSS state selectors?

(OO)CSS State Selectors

'OOCSS' methods such as SMACSS and BEM prescribe naming your selectors as such:

.room {}               /* A base Module (BEM: block) */
    .room__door {}     /* A descendant element of the `.room` Module (BEM: element) */
.room--bedroom {}      /* A different Sub-Module or 'version' of our base Module (BEM: modifier) */
@davidhund
davidhund / wat-is-rwd.md
Created October 11, 2012 09:33
Wat is responsive web design?

Wat is Responsive Web Design?

Je website wordt in toenemende mate bekeken op apparaten anders dan de standaard PC: smartphones, tablets, tv's en game consoles. Deze apparaten verschillen nogal van de standaard computer: ze hebben bijvoorbeeld een kleiner beeldscherm en geen toetsenbord maar een touch-screen.

Het bekijken van websites die niet gebouwd zijn met dit brede spectrum aan apparaten in het achterhoofd is meestal een minder prettige ervaring: de website wordt bijvoorbeeld geschaald (en de tekst onleesbaar) of links en knoppen zijn veel te klein om met je vingers te raken.

Responsive Web Design (RWD) is een manier van het bouwen van websites met als doel een zo optimaal mogelijke beleving op een zo groot mogelijk aantal verschillende apparaten. RWD staat specifiek voor het ontwikkelen van websites met specifieke technieken maar is onderdeel van een filosofie van het bouwen van toekomstvriendelijke websites.

Techniek

@davidhund
davidhund / dabblet.css
Created October 12, 2012 12:56
Slanted nav-menu items
/**
* Slanted nav-menu items
*/
* { font-family: Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
body {
background-color: rgba(0,0,0,0.03);
}
.nav-menu {
background: #eee;
@davidhund
davidhund / base css snippets
Created December 12, 2012 16:29
Base CSS snippets I keep forgetting
/*
Note to self: put this in my base stylesheet :)
- Note: some stuff would already be done by Normalize.css
- Use Normalize.css :)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
* {
/* http://paulirish.com/2012/box-sizing-border-box-ftw/ */
-webkit-box-sizing: border-box;