A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$ if your browser aliases it:
~ 108 byte version
| /** | |
| * Horizontal Type Line Behind Text | |
| * Inspired by this discussion @ CSS-Tricks: http://css-tricks.com/forums/discussion/comment/51357#Comment_51357 | |
| * Available on jsFiddle: http://jsfiddle.net/ericrasch/jAXXA/ | |
| * Available on Dabblet: http://dabblet.com/gist/2045198 | |
| * Available on GitHub Gist: https://gist.github.com/2045198 | |
| */ | |
| h2 { | |
| font: 33px sans-serif; | 
| // Allow mixins that share common properties in a single css rule | |
| // store autogenerated selectors that map | |
| $Placeholder-Selectors: (); | |
| @mixin button($color, $extend: true) { | |
| @include button-static($extend); | |
| background-color: $color; | |
| border-color: mix(black, $color, 25%); | 
| /** | |
| * Sticky footer with fixed height | |
| */ | |
| main { | |
| min-height: calc(100vh - 5em - 7em); | |
| } | |
| /* Toggle checkbox to alternate between short/long content */ | |
| #contents:checked ~ p { display: none } | 
| /** | |
| * Animation along a circular path - Solution 1 | |
| */ | |
| @keyframes spin { | |
| to { transform: rotate(1turn); } | |
| } | |
| .avatar { | |
| animation: spin 3s infinite linear; | 
| Here is a list of scopes to use in Sublime Text 2 snippets - | |
| ActionScript: source.actionscript.2 | |
| AppleScript: source.applescript | |
| ASP: source.asp | |
| Batch FIle: source.dosbatch | |
| C#: source.cs | |
| C++: source.c++ | |
| Clojure: source.clojure | |
| CoffeeScript: source.coffee | 
| public class AnimatedActivity extends Activity | |
| { | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) | |
| { | |
| super.onCreate(savedInstanceState); | |
| //opening transition animations | |
| overridePendingTransition(R.anim.activity_open_translate,R.anim.activity_close_scale); | |
| } |