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 July 30, 2014 12:36
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
div {
border-radius: 50%;
height: 200px;
background: #ddd;
width: 200px;
}
@drublic
drublic / dabblet.css
Created July 30, 2014 12:33
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@drublic
drublic / dabblet.css
Created April 21, 2014 15:55
Untitled
.triangle {
position: relative;
border-bottom: 1px solid #aaa;
}
.triangle:before,
.triangle:after {
content: "";
position: absolute;
bottom: -15px; /* value = - border-top-width - border-bottom-width */
left: 30px;
@drublic
drublic / dabblet.css
Created April 21, 2014 15:54
Untitled
.triangle:before,
.triangle:after {
content: "";
position: absolute;
bottom: -15px; /* value = - border-top-width - border-bottom-width */
left: 30px;
border-width: 15px 15px 0; /* vary these values to change the angle of the vertex */
border-style: solid;
border-color: #aaa transparent;
}
@drublic
drublic / dabblet.css
Created April 21, 2014 15:53
Untitled
.triangle:before,
.triangle:after {
content: "";
position: absolute;
bottom: -15px; /* value = - border-top-width - border-bottom-width */
left: 30px;
border-width: 15px 15px 0; /* vary these values to change the angle of the vertex */
border-style: solid;
border-color: #aaa transparent;
}
@drublic
drublic / sublime-plugins.md
Last active October 4, 2022 02:24
My Sublime Plugins

Sublime Text Plugins

  • All Autocomplete
  • Bower
  • Editor Config
  • Emmet
  • Grunt
  • Image2Base64
  • LESS
@drublic
drublic / keep-focus.js
Last active March 29, 2017 15:20
A function that lets you circularly tab through a part of a page.
var tabbableElements = 'a[href], area[href], input:not([disabled]),' +
'select:not([disabled]), textarea:not([disabled]),' +
'button:not([disabled]), iframe, object, embed, *[tabindex],' +
'*[contenteditable]';
var keepFocus = function (context) {
var allTabbableElements = context.querySelectorAll(tabbableElements);
var firstTabbableElement = allTabbableElements[0];
var lastTabbableElement = allTabbableElements[allTabbableElements.length - 1];
@drublic
drublic / dabblet.css
Created June 21, 2013 20:41
Testing Shy
/**
* Testing Shy
*/
.test-toonarrow {
width: 3.5rem;
}
.test-fitting {
width: 4rem;
}
@drublic
drublic / dabblet.css
Created March 24, 2013 13:44
Named Pages - Print style sheets
/**
* Named Pages - Print style sheets
*/
@page narrow {
size: 9cm 18cm;
}
@page rotated {
size: landscape;
}
@drublic
drublic / dabblet.css
Created March 12, 2013 20:35
Fixed content and YouToube iframe in WebKit
/**
* Fixed content and YouToube iframe in WebKit
*/
.fixed {
position: fixed;
top: 0;
left: 0;
right: 0;
background: #ddd;