This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Box-model: content-box vs. border-box | |
*/ | |
div { | |
width: 300px; | |
border: 1px solid black; | |
} | |
span { | |
display: inline-block; | |
float: left; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Box-model: simple example | |
*/ | |
div { | |
float: left; | |
padding: 30px; | |
border: 1px solid green; | |
margin: 10px; | |
font-size: 100px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@desktopColumnWidth: 60px; | |
@tabletColumnWidth: 95px; | |
@gutter: 10px; | |
.desktop-column (@theColumn: 1) { | |
width: (@desktopColumnWidth * @theColumn) + (@gutter * (@theColumn - 1) * 2); | |
} | |
.tablet-column (@theColumn: 1) { | |
width: (@tabletColumnWidth * @theColumn) + (@gutter * (@theColumn - 1) * 2); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Border on rounded corners | |
*/ | |
img { | |
box-shadow: 0 0 0 2px green; | |
border-radius: 20px | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Border on rounded corners | |
*/ | |
img { | |
box-shadow: 0 0 0 2px green; | |
border-radius: 20px | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Responsive content ordering with images */ | |
@media screen and (min-width: 600px) { | |
.desktop-left { float: left; width: 60%; } | |
.desktop-right { float: right; width: 30%; } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Date picker | |
*/ | |
form { width: 250px; padding: 10px; padding-top: 125px; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Centered website | |
*/ | |
.container { width: 960px; margin: 0 auto; border: 1px solid red; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Pukkelpop 2012 - countdown | |
*/ | |
body { padding-top: 10px; font-family: Arial; } | |
span { | |
dipslay: block; | |
float: left; | |
padding-top: 30px; | |
text-align: center; | |
background-color: #ffe7c4; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Avoid duplicate commands in the history | |
export HISTCONTROL=ignoredups; | |
# Make it less case sensitive | |
shopt -s nocaseglob | |
# Make the PS1 better | |
source ~/.git-completion.sh | |
PS1='\e[0;34m\][\t] \e[0;32m\]\w`__git_ps1`:\e[0m\] ' |
NewerOlder