This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==== The `drag-handle` control that's visible without keyboard interaction ==== */ | |
LI.drag-handle { | |
cursor: ns-resize; | |
position: relative; | |
// Controls for keyboard navigation | |
// by default this gets hidden for everything except screen readers | |
DIV.keyboard-navigation { | |
position:absolute; | |
left:-10000px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Move the element either up or down in the list | |
// this piggybacks on Sortablejs's `sort` function | |
// This code needs to have access to the Sortablejs object that controls the list. | |
// A couple of things you'll need to customize | |
// LIST_CONTAINER is the DOM element that shoud contain the list | |
// LIST_ITEM_SELECTOR is the | |
// (e.g. The UL where the LI elements should be sortable) | |
// You will probably want to customize these, or use a different way to select your list and list items |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* VARIABLES */ | |
/* SASS VARIABLES - WILL BE PREPROCESSED */ | |
$mobile-breakpoint: 768px; | |
/* CSS VARIABLES - WILL BE RENDERED IN BROWSER */ | |
:root { | |
/* COLORS */ | |
/* --example-color: #000000; */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"CSS Initializeer": { | |
"prefix": "initialize", | |
"body": [ | |
"/* VARIABLES */", | |
"/* SASS VARIABLES - WILL BE PREPROCESSED */", | |
"", | |
"\\$mobile-breakpoint: 768px;", | |
"", | |
"/* CSS VARIABLES - WILL BE RENDERED IN BROWSER */ ", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Hover / Focus": { | |
"prefix": ":hover", | |
"body": [ | |
":hover,", | |
"${TM_CURRENT_LINE/:ho?v?e?r?/:focus/} {", | |
" $1", | |
"}" | |
], | |
"description": "Hover / Focus" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Accessible Image Method": { | |
"prefix": "image_*", | |
"body": [ | |
"image_tag('$1', alt: '$2'$3) " | |
], | |
"description": "Accessible Image" | |
}, | |
"Accessible Image Tag": { | |
"prefix": "<img", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get the "DEAL WITH ME" label, or create it if it doesn't exist | |
* This is called by the other two functions, you shouldn't need to call it directly | |
*/ | |
function _getNaggingLabel() { | |
/** | |
* If you'd like your label to say something different, modify it here | |
*/ | |
var nagging_label_text = "DEAL WITH ME"; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Testing Pie Chart</title> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.1.3"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> |