Skip to content

Instantly share code, notes, and snippets.

View SirPepe's full-sized avatar

Peter Kröner SirPepe

View GitHub Profile
@SirPepe
SirPepe / dabblet.css
Created March 15, 2012 00:00
Übung Adaptives Layout
/**
* Übung Adaptives Layout
*/
body { padding: 2.5%; }
div { margin: 0 2.5% 2.5%; height: 80px; border-radius: 8px; }
/* An's Werk! */
@SirPepe
SirPepe / dabblet.css
Created March 15, 2012 00:01
Übung Adaptives Layout
/**
* Übung Adaptives Layout
*/
body { padding: 2.5%; }
div { margin: 0 2.5% 2.5%; height: 80px; border-radius: 8px; }
/* Mittleres Layout */
@media screen and (min-width: 500px){
@SirPepe
SirPepe / dabblet.css
Created April 6, 2012 10:24
Tab-Navigation mit CSS3-Selektoren
/**
* Tab-Navigation mit CSS3-Selektoren
*/
body {
padding: 2em 0;
}
/* Platzierung der Tab-Navigation */
@SirPepe
SirPepe / dabblet.css
Created May 2, 2012 12:31
Übung CSS3-Pseudoklassen
/**
* Übung CSS3-Pseudoklassen
*/
html, body {
background: #FFF;
}
ul {
font-size: 18px;
@SirPepe
SirPepe / dabblet.css
Created May 2, 2012 12:41
Übung CSS Tab-Navigation
/**
* Übung CSS Tab-Navigation
*/
/* Platzierung der Tab-Navigation */
#tab-box {
border: 2px solid #000;
width: 50%;
margin: 0 auto;
@SirPepe
SirPepe / dabblet.css
Created May 4, 2012 08:34
Selektives Markieren externer Links
/**
* Selektives Markieren externer Links
*/
/* Externe Links markieren... */
#test1 a[target="_blank"] {
background: yellow;
}
/* ... und die Markierung wieder zurücksetzen */
@SirPepe
SirPepe / gist:2644038
Created May 9, 2012 12:07
requestAnimationFrame
/* requestAnimationFrame für alle */
var reqAniFra = (function(){
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
function(callback){
setTimeout(callback, 1000 / 60);
}
@SirPepe
SirPepe / dabblet.css
Created May 25, 2012 13:21
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#foo {
}
@SirPepe
SirPepe / dabblet.css
Created September 1, 2012 10:13
Übung Adaptives Layout
/**
* Übung Adaptives Layout
*/
* { box-sizing: border-box; }
body { padding: 0 1%; font-family: Arial, sans-serif; line-height: 1.6; }
nav ul { list-style: none; margin: 0; padding: 0; }
nav ul a { display: block; float: left; width:12.5%; font-weight: bold; }
#main, footer { clear: both; padding: 1em 0; }
footer { border-top: 1px solid #999; }
#main > section { float: left; width: 65%; }
@SirPepe
SirPepe / dabblet.css
Last active October 9, 2015 20:08
Lösung Adaptives Layout
/**
* Lösung Adaptives Layout
*/
* { box-sizing: border-box; }
body { padding: 0 1%; font-family: Arial, sans-serif; line-height: 1.6; }
nav ul { list-style: none; margin: 0; padding: 0; }
nav ul a { display: block; float: left; width:12.5%; font-weight: bold; }
#main, footer { clear: both; padding: 1em 0; }
footer { border-top: 1px solid #999; }
#main > section { float: left; width: 65%; }