Skip to content

Instantly share code, notes, and snippets.

@RodneyWeis
RodneyWeis / gist:baadccf67d8dc74ca41e
Created January 7, 2016 18:20 — forked from Eric-Guo/gist:2011069
Sublime Text 2 - Useful Shortcuts (Windows 7 CHS)

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands used most towards the top. Sublime also offer full documentation.

Editing

Ctrl+⇧+K delete line
Ctrl+↩ insert line after
Ctrl+⇧+↩ insert line before
Ctrl+⇧+↑ move line (or selection) up
@RodneyWeis
RodneyWeis / dabblet.css
Created March 4, 2013 06:19 — forked from LeaVerou/dabblet.css
Failed attempt at gracefully degrading switch-style checkboxes
/**
* Failed attempt at gracefully degrading switch-style checkboxes
* without pseudoelements (which shouldn’t exist on replaced elements) and extra elements.
* Inspired by Espresso’s “Tools” switch
* DO NOT USE. Currently only works properly in WebKit :(
*/
input[type="checkbox"]:not(:checked),
input[type="checkbox"]:checked { /* :checked here acting as a filter for older browsers */
appearance: none;
@RodneyWeis
RodneyWeis / index.html
Created December 15, 2012 01:07
A CodePen by Rodney Weis. Sliding Logo - A logo class is applied to two spans, then animated from the left edge of the page to their final positions. Opacity and position are animated using CSS @Keyframes. No JavaScript required.
<span class="logo firstName">Sliding</span>
<span class="logo lastName">Logo</span>
@RodneyWeis
RodneyWeis / dabblet.css
Created November 25, 2012 19:58
tetrahedron gallery (tested in Chrome)
/**
* tetrahedron gallery (tested in Chrome)
*/
* { margin: 0; padding: 0; }
.gallery {
position: absolute;
top: 50%; left: 50%;
margin: -10em;
width: 20em; height: 20em;
transform-style: preserve-3d;
/**
* Original: http://dabblet.com/gist/3932798
* tag list using gradients and transitions on pseudo-elements
* idea for transitions on pseudo-elements explained here:
* http://vimeo.com/51897358
* Tested in Chrome, Firefox, Opera, Safari
* (on Windows 7)
*/
* { margin: 0; }
html { font: 100%/1.5 'Century Gothic', sans-serif; }
@RodneyWeis
RodneyWeis / dabblet.css
Created October 30, 2012 19:03
Circular Tooltip (SO)
/**
* Circular Tooltip (SO)
* http://dabblet.com/gist/3979221/cb69c5e8ccf0745fff2c94b47b27b108931f1a15 Original by Ana Tudor
* http://stackoverflow.com/q/13132864/1397351
*/
* { margin: 0; padding: 0; }
body {
overflow: hidden;
background: url(http://theearlcarlson.com/experiments/amTooltip/img/bg.jpg);
}
@RodneyWeis
RodneyWeis / dabblet.css
Created May 9, 2012 01:13 — forked from LeaVerou/dabblet.css
Weird behavior when combining opacity & z-index: -1
/**
* Weird behavior when combining opacity & z-index: -1
*/
div {
position: relative;
width: 200px; height: 200px;
background: yellowgreen;
/* Try commenting this or setting it to 1: */
@RodneyWeis
RodneyWeis / dabblet.css
Created May 9, 2012 00:07 — forked from LeaVerou/dabblet.css
box-shadow: 10px 10px 10px -5px gray; applied in stages
/**
* box-shadow: 10px 10px 10px -5px gray; applied in stages
*/
@keyframes box-shadow {
from { box-shadow: 0 0 orange }
10% { box-shadow: 10px 0 orange } /* x offset */
20% { box-shadow: 10px 15px orange } /* y offset */
30% { box-shadow: 10px 15px 0 -5px orange } /* spread */
40% { box-shadow: 10px 15px 0 -5px gray } /* color */
@RodneyWeis
RodneyWeis / dabblet.css
Created May 8, 2012 23:58 — forked from chriscoyier/dabblet.css
Fake animated pseudo
/**
* Fake animated pseudo
*/
div {
width: 200px;
padding: 10px;
position: relative;
background: red;
background-clip: content-box;
animation: bounce infinite alternate 0.5s;
@RodneyWeis
RodneyWeis / dabblet.css
Created April 27, 2012 20:37 — forked from LeaVerou/dabblet.css
Scrolling shadows by @kizmarh and @LeaVerou
/**
* Scrolling shadows by @kizmarh and @leaverou
* Only works in browsers supporting background-attachment: local; & CSS gradients
* Degrades gracefully
*/
html {
background: white;
font: 120% sans-serif;
}