##SassConf 2014 Resource Round-Up
This file contains 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
// When we give an element some 'attention' | |
@mixin attention() { | |
&:hover, | |
&:active, | |
&:focus { | |
@content; | |
} | |
} |
This file contains 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
@import url(http://fonts.googleapis.com/css?family=Gentium+Basic:400italic); | |
body { | |
font: 20px/20px 'Gentium Basic', Tahoma, Verdana, sans-serif; | |
box-sizing: border-box; | |
width: 100%; | |
height: 100%; | |
padding: 2em; | |
color: #eee; | |
background: #c1c2c3 | |
} |
This file contains 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
<main> | |
<div class="device"> | |
<header></header> | |
<section> | |
<div class="weather time-morning active"> | |
<div class="icon"> | |
<i class="sun"></i> | |
</div> | |
<div class="content"> | |
<h3>Morning</h3> |
This file contains 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
// based on titlecapitalization.com | |
!function () { | |
function e(e) { | |
return e; | |
} | |
function t(e) { | |
var t = 0; | |
if (document.selection) { | |
e.focus(); |
This file contains 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
setInterval(function () { | |
'use strict'; | |
var d = new Date(), | |
h = d.getHours(), | |
m = d.getMinutes(), | |
s = d.getSeconds(); | |
document.body.textContent = [h, m, s].map(function (a) { return a < 10 ? '0' + a : a}).join(':'); | |
document.body.style.background = 'hsl(' + ~~(s * 6) + ', ' + ~~(m * 10/6) + '%, ' + ~~(h * 25/6) + '%)'; |
This file contains 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
<main> | |
<div class="device"> | |
<header> | |
<h1><strong>CSS</strong>Presso</h1> | |
</header> | |
<section> | |
<form> | |
<input type="radio" name="coffeeType" id="espresso"> | |
<input type="radio" name="coffeeType" id="doppio"> | |
<input type="radio" name="coffeeType" id="macchiatto"> |
This file contains 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
// Example sequence: 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610... | |
// Get Fibonacci sequence with a loop | |
var looping = function (n) { | |
'use strict'; | |
var a = 0, b = 1, f = 1; | |
for (var i = 2; i <= n; i++) { | |
f = a + b; | |
a = b; | |
b = f; |
This file contains 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
.fave { | |
width: 70px; | |
height: 50px; | |
background: url(http://cssanimation.rocks/assets/images/posts/steps/twitter_fave.png) no-repeat; | |
background-position: 0 0; | |
} | |
.fave:hover { | |
background-position: -3519px 0; | |
transition: background 2s steps(55); | |
} |
Brackets has a terrific built-in extension manager for super-easy add-ins. There's no setup work required, no Package Manager to install like in Sublime Text. Simply download and install Brackets and you're ready to go.
- Install Atom Dark Theme. I like Atom's default theme.
- Monokai Dark Soda is pretty lovely, too.
- I prefer to increase the theme font size to 13px:
View
→Themes...
→Theme Settings
. Go with what feels best.