Skip to content

Instantly share code, notes, and snippets.

View drublic's full-sized avatar
🌐
Remote by default

Hans Christian Reinl drublic

🌐
Remote by default
View GitHub Profile
@drublic
drublic / dabblet.css
Created March 12, 2013 17:58
Test for text-alignment in input[type="number"]
/**
* Test for text-alignment in input[type="number"]
*/
input {
}
// Some configuration
var config = {
moduleName: {
moduleContextSelector: '.select-an-awesome > .module',
moduleTitle: 'Some Arbitrary Title',
moduleTimeoutSpeed: 3000
}
};
@drublic
drublic / dabblet.css
Created February 9, 2013 11:54
Example for floats
/**
* Example for floats
*/
.parent {
width: 400px;
overflow: hidden;
}
.floated {
float: left;
@drublic
drublic / dabblet.css
Created February 9, 2013 11:54
Example for floats
/**
* Example for floats
*/
.parent {
width: 400px
}
.floated {
float: left;
width: 150px;
@drublic
drublic / dabblet.css
Created February 9, 2013 10:20
Example for floats
/**
* Example for floats
*/
.parent {
width: 400px
}
.floated {
float: left;
width: 150px;
@drublic
drublic / dabblet.css
Created February 9, 2013 10:17
Vertical centering
/**
* Vertical centering
*/
html,
body,
.a {
height: 200px;
}
@drublic
drublic / dabblet.css
Created February 6, 2013 16:40
Sticking problems
/**
* Sticking problems
*/
.fixed {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 40; /* Needed because of other content */
@drublic
drublic / dabblet.css
Created February 2, 2013 12:25
Vertical centering
/**
* Vertical centering
*/
html,
body,
.a {
height: 100%;
}
@drublic
drublic / rem.scss
Created January 29, 2013 18:27
An advanced rem fallback in Sass
$main-font-size: 16px;
@mixin x-rem($property, $values) {
// Empty list for all values in px
$px-values: ();
$rem-values: ();
// Iterate over entries
@each $value in $values {
@drublic
drublic / dabblet.css
Created January 20, 2013 09:47
hr's box-model behavior
/**
* hr's box-model behavior
*/
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
margin: 1em 0;