Skip to content

Instantly share code, notes, and snippets.

View SBoudrias's full-sized avatar

Simon Boudrias SBoudrias

View GitHub Profile
.bloc {
padding: 30px;
border: 1px solid #ccc;
vertical-align: midle;
}
.button {
vertical-align: middle;
display: inline-block;
background-color: #ed2345;
.bloc {
padding: 25px;
border: 1px solid #ccc;
vertical-align: middle;
}
.button {
display: inline-block;
background-color: #ed2345;
border: none;
@SBoudrias
SBoudrias / JsHint settings
Created June 4, 2012 14:41
my basic settings for jshint for komodo edit
bitwise=true boss=true browser=true debug=true eqeqeq=true eqnull=true es5=true esnext=true expr=true immed=true iterator=true lastsemic=true laxbreak=true laxcomma=true loopfunc=true maxlen=120 multistr=true newcap=true noarg=true onecase=true onevar=true plusplus=true proto=true regexdash=true regexp=true scripturl=true shadow=true smarttabs=true strict=true sub=true supernew=true undef=true validthis=true withstmt=true predef=["window","document"]
.monbloc {
overflow-y: scroll;
height: 300px;
width: 300px;
border: 1px solid #000;
padding: 5px;
}
p:first-child {
margin-top: 0;
}
@SBoudrias
SBoudrias / snippet.php
Created June 27, 2012 20:30
MODx snippet to load template with file system
<?php
# Snippet to include template files from file system
# USAGE: [[includeTemplate? &tpl=`mytemplate/template.html`]]
if ( !isset($tpl) || $tpl == "") return "Missing Template file!";
$tpl = $base_path . "assets/templates/" . $tpl;
ob_start();
include($tpl);
return ob_get_clean();
@SBoudrias
SBoudrias / dabblet.css
Created September 19, 2012 19:23
Untitled
.container {
width: 50%;
position: relative;
padding-bottom: 50%;
}
.triangle {
display: block;
position: absolute;
left: 0;
@SBoudrias
SBoudrias / dabblet.css
Created September 23, 2012 03:14
Untitled
.monbloc {
overflow-y: scroll;
height: 300px;
width: 300px;
border: 1px solid #000;
padding: 5px;
}
p:first-child {
margin-top: 0;
}
@SBoudrias
SBoudrias / dabblet.css
Created September 23, 2012 03:16
Keeping element ratio
/**
* Keeping element ratio
*/
.container {
background: red;
width: 100%;
padding-bottom: 60%;
position: relative;
}
@SBoudrias
SBoudrias / dabblet.css
Created October 3, 2012 17:39
Untitled
.domino_page_bouton,
.domino_page_bouton:visited {
display: inline-block;
color: #fff;
text-decoration: none;
text-align: center;
font-size: 18px;
line-height: 20px;
/* Add and remove font-family to see the bug. This happen only in Google Chrome */
@SBoudrias
SBoudrias / dabblet.css
Created October 3, 2012 17:47
Border-radius rendering
/**
* Border-radius rendering
*/
body {
background-color: #0051a2;
}
.outer {
width: 80%;
margin: 40px auto;
background: rgba(255,255,255,0.9);