A small list of Atom Packages I use often when I'm in the Editor.
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
@mixin breakpoint($breakpoint) { | |
// The following code no longer works in libSass 3.3.0 | |
// It will return an error and say it can't pass a content block | |
//Check if the value passed in is a unitless number | |
@if not unitless($breakpoint) { |
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
@mixin breakpoint($breakpoint) { | |
// The following code no longer works in libSass 3.3.0 | |
//Check if the value passed in is a unitless number | |
@if not unitless($breakpoint) { | |
//Pass an error if not unitless. |
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
// Nested map example | |
$nested-map: ( | |
key-1: ( | |
deep-key-1: ( | |
deeper-key: true | |
), |
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
/** | |
* | |
* Relative Sizing Function | |
* | |
* Simple function for returning relative values using rems, and ems, optionally. | |
* Primary argument is for a target value to be converted. | |
* Relies on the root's font size for caclulation, set as a global variable. | |
* | |
* Secondary argument (optional) is for a context to the target value. | |
* Output is converted into ems. |
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
<div class="container"> | |
<blockquote> | |
<p>Also second their after whales called midst itself god sea and own after lights moveth. Them days. They're, created without called doesn't bring. Make all meat i above behold two saying third one, to face to own bearing their, to wherein he. Together he can't earth said. Lesser wherein herb.</p> | |
<cite>Anon. E. Muss</cite> | |
</blockquote> | |
</div> |
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
<p class="output"> | |
The output number is | |
</p> |
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
/** | |
* | |
* CSS Centering Styles | |
* | |
* A small CSS snippet for all your demo needs. | |
* If you have a demo on a small bit of design (such as: http://iainspad.github.io/quotation-block/), you may want perfect centering. | |
* Using automatic margins and CSS transform, you can center anything! | |
* http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/ — CSS Vertical Alignment by zerosixthree.se | |
* | |
**/ |
NewerOlder