##SassConf 2014 Resource Round-Up
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
<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 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
// 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 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
@function set-notification-text-color($color) { | |
@if (lightness( $color ) > 50) { | |
@return #000; // lighter color, return black | |
} | |
@else { | |
@return #fff; // darker color, return white | |
} | |
} | |
$confirm: hsla(101, 72%, 37%, 1); // green |
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
.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.
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
* { | |
box-sizing: border-box; | |
} | |
body { | |
margin: 0; | |
padding-top: 250px; | |
} | |
header { | |
padding-top: 50px; | |
height: 300px; |
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
html, | |
body { | |
height: 100%; | |
line-height: 1.5; | |
} | |
.wrap { | |
display: box; | |
display: flex; | |
height: 100vh; | |
} |
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
.modal { | |
padding: 1rem 2rem; | |
max-width: 50%; | |
border-radius: 5px; | |
background-color: rgba(255, 255, 255, 0.95); | |
color: #333; | |
font-family: sans-serif; | |
line-height: 1.5; | |
} | |
.modal a { color: #bf0222; } |