forked from unbalancedparentheses/spawnedshelter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '0c9dd6f9b3a23437ae29a7c5a99c97f8f3417e7f' as '_nib'
- Loading branch information
Showing
81 changed files
with
4,264 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*.css | ||
!test/cases/*.css | ||
.DS_Store | ||
node_modules | ||
*.swp |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
language: node_js | ||
node_js: | ||
- 0.8 | ||
- 0.10 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014 TJ Holowaychuk <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
[](https://travis-ci.org/visionmedia/nib) | ||
|
||
# Nib | ||
|
||
Stylus mixins, utilities, components, and gradient image generation. Don't forget to check out the [documentation](http://visionmedia.github.com/nib/). | ||
|
||
## Installation | ||
|
||
```bash | ||
$ npm install nib | ||
``` | ||
|
||
If the image generation features of Nib are desired, such as generating the linear gradient images, install [node-canvas](http://github.com/learnboost/node-canvas): | ||
|
||
```bash | ||
$ npm install canvas | ||
``` | ||
|
||
## JavaScript API | ||
|
||
Below is an example of how to utilize nib and stylus with the connect framework (or express). | ||
|
||
```javascript | ||
var connect = require('connect') | ||
, stylus = require('stylus') | ||
, nib = require('nib'); | ||
|
||
var server = connect(); | ||
|
||
function compile(str, path) { | ||
return stylus(str) | ||
.set('filename', path) | ||
.set('compress', true) | ||
.use(nib()); | ||
} | ||
|
||
server.use(stylus.middleware({ | ||
src: __dirname | ||
, compile: compile | ||
})); | ||
``` | ||
|
||
## Stylus API | ||
|
||
To gain access to everything nib has to offer, simply add: | ||
|
||
```css | ||
@import 'nib' | ||
``` | ||
|
||
Or you may also pick and choose based on the directory structure in `./lib`, for example: | ||
|
||
```css | ||
@import 'nib/gradients' | ||
@import 'nib/overflow' | ||
``` | ||
|
||
to be continued.... | ||
|
||
## More Information | ||
|
||
- Introduction [screencast](http://www.screenr.com/M6a) | ||
|
||
## Testing | ||
|
||
You will first need to install the dependencies: | ||
|
||
```bash | ||
$ npm install -d | ||
``` | ||
|
||
Run the automated test cases: | ||
|
||
```bash | ||
$ npm test | ||
``` | ||
|
||
For visual testing run the test server: | ||
|
||
```bash | ||
$ npm run-script test-server | ||
``` | ||
|
||
Then visit `localhost:3000` in your browser. | ||
|
||
## Contributors | ||
|
||
I would love more contributors. And if you have helped out, you are awesome! I want to give a huge thanks to these people: | ||
|
||
- [TJ Holowaychuk](https://github.com/visionmedia) (Original Creator) | ||
- [Sean Lang](https://github.com/slang800) (Current Maintainer) | ||
- [Isaac Johnston](https://github.com/superstructor) | ||
- [Everyone Else](https://github.com/visionmedia/nib/contributors) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<html> | ||
<head> | ||
<link rel="stylesheet" href="iconic.css" type="text/css" media="screen" title="no title" charset="utf-8"> | ||
|
||
<style> | ||
body { | ||
font-size:21px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<ul> | ||
<li><a name='home' class='iconic home'></a> Home</li> | ||
<li><a name='at' class='iconic at'></a> At Symbol</li> | ||
<li><a name='quote' class='iconic quote'></a> Quote</li> | ||
<li><a name='quote-alt' class='iconic quote-alt'></a> Quote (alternate)</li> | ||
<li><a name='arrow-up' class='iconic arrow-up'></a> Arrow Up</li> | ||
<li><a name='arrow-right' class='iconic arrow-right'></a> Arrow Right</li> | ||
<li><a name='arrow-bottom' class='iconic arrow-bottom'></a> Arrow Bottom</li> | ||
<li><a name='arrow-left' class='iconic arrow-left'></a> Arrow Left</li> | ||
<li><a name='arrow-up-alt' class='iconic arrow-up-alt'></a> Arrow Up (alternate)</li> | ||
<li><a name='arrow-right-alt' class='iconic arrow-right-alt'></a> Arrow Right (alternate)</li> | ||
<li><a name='arrow-bottom-alt' class='iconic arrow-bottom-alt'></a> Arrow Bottom (alternate)</li> | ||
<li><a name='arrow-left-alt' class='iconic arrow-left-alt'></a> Arrow Left (alternate)</li> | ||
<li><a name='move' class='iconic move'></a> Move</li> | ||
<li><a name='move-vertical' class='iconic move-vertical'></a> Move Vertical</li> | ||
<li><a name='move-horizontal' class='iconic move-horizontal'></a> Move Horizontal</li> | ||
<li><a name='move-alt' class='iconic move-alt'></a> Move (alternate)</li> | ||
<li><a name='move-vertical-alt' class='iconic move-vertical-alt'></a> Move Vertical (alternate)</li> | ||
<li><a name='move-horizontal-alt' class='iconic move-horizontal-alt'></a> Move Horizontal (alternate)</li> | ||
<li><a name='cursor' class='iconic cursor'></a> Cursor</li> | ||
<li><a name='plus' class='iconic plus'></a> Plus</li> | ||
<li><a name='plus-alt' class='iconic plus-alt'></a> Plus (alternate)</li> | ||
<li><a name='minus' class='iconic minus'></a> Minus</li> | ||
<li><a name='minus-alt' class='iconic minus-alt'></a> Minus (alternate)</li> | ||
<li><a name='new-window' class='iconic new-window'></a> New Window</li> | ||
<li><a name='dial' class='iconic dial'></a> Dial</li> | ||
<li><a name='lightbulb' class='iconic lightbulb'></a> Lightbulb</li> | ||
<li><a name='link' class='iconic link'></a> Link</li> | ||
<li><a name='image' class='iconic image'></a> Image</li> | ||
<li><a name='article' class='iconic article'></a> Article</li> | ||
<li><a name='read-more' class='iconic read-more'></a> Read More</li> | ||
<li><a name='headphones' class='iconic headphones'></a> Headphones</li> | ||
<li><a name='equalizer' class='iconic equalizer'></a> Equalizer</li> | ||
<li><a name='fullscreen' class='iconic fullscreen'></a> Fullscreen</li> | ||
<li><a name='exit-fullscreen' class='iconic exit-fullscreen'></a> Exit Fullscreen</li> | ||
<li><a name='spin' class='iconic spin'></a> Spin</li> | ||
<li><a name='spin-alt' class='iconic spin-alt'></a> Spin (alternate)</li> | ||
<li><a name='moon' class='iconic moon'></a> Moon</li> | ||
<li><a name='sun' class='iconic sun'></a> Sun</li> | ||
<li><a name='map-pin' class='iconic map-pin'></a> Map Pin</li> | ||
<li><a name='pin' class='iconic pin'></a> Pin</li> | ||
<li><a name='eyedropper' class='iconic eyedropper'></a> Eyedropper</li> | ||
<li><a name='denied' class='iconic denied'></a> Denied</li> | ||
<li><a name='calendar' class='iconic calendar'></a> Calendar</li> | ||
<li><a name='calendar-alt' class='iconic calendar-alt'></a> Calendar (alternate)</li> | ||
<li><a name='bolt' class='iconic bolt'></a> Bolt</li> | ||
<li><a name='clock' class='iconic clock'></a> Clock</li> | ||
<li><a name='document' class='iconic document'></a> Document</li> | ||
<li><a name='book' class='iconic book'></a> Book</li> | ||
<li><a name='book-alt' class='iconic book-alt'></a> Book (alternate)</li> | ||
<li><a name='magnifying-glass' class='iconic magnifying-glass'></a> Magnifying Glass</li> | ||
<li><a name='tag' class='iconic tag'></a> Tag</li> | ||
<li><a name='heart' class='iconic heart'></a> Heart</li> | ||
<li><a name='info' class='iconic info'></a> Info</li> | ||
<li><a name='chat' class='iconic chat'></a> Chat</li> | ||
<li><a name='chat-alt' class='iconic chat-alt'></a> Chat (alternate)</li> | ||
<li><a name='key' class='iconic key'></a> Key</li> | ||
<li><a name='unlocked' class='iconic unlocked'></a> Unlocked</li> | ||
<li><a name='locked' class='iconic locked'></a> Locked</li> | ||
<li><a name='mail' class='iconic mail'></a> Mail</li> | ||
<li><a name='mail' class='iconic mail-alt'></a> Mail (alternate)</li> | ||
<li><a name='phone' class='iconic phone'></a> Phone</li> | ||
<li><a name='box' class='iconic box'></a> Box</li> | ||
<li><a name='pencil' class='iconic pencil'></a> Pencil</li> | ||
<li><a name='pencil-alt' class='iconic pencil-alt'></a> Pencil (alternate)</li> | ||
<li><a name='comment' class='iconic comment'></a> Comment</li> | ||
<li><a name='comment' class='iconic comment-alt'></a> Comment (alternate)</li> | ||
<li><a name='rss' class='iconic rss'></a> RSS</li> | ||
<li><a name='star' class='iconic star'></a> Star</li> | ||
<li><a name='trash' class='iconic trash'></a> Trash</li> | ||
<li><a name='user' class='iconic user'></a> User</li> | ||
<li><a name='volume' class='iconic volume'></a> Volume</li> | ||
<li><a name='mute' class='iconic mute'></a> Mute</li> | ||
<li><a name='cog' class='iconic cog'></a> Cog</li> | ||
<li><a name='cog-alt' class='iconic cog-alt'></a> Cog (alternate)</li> | ||
<li><a name='x' class='iconic x'></a> X</li> | ||
<li><a name='x' class='iconic x-alt'></a> X (alternate)</li> | ||
<li><a name='check' class='iconic check'></a> Check</li> | ||
<li><a name='check-alt' class='iconic check-alt'></a> Check (alternate)</li> | ||
<li><a name='beaker' class='iconic beaker'></a> Beaker</li> | ||
<li><a name='beaker-alt' class='iconic beaker-alt'></a> Beaker (alternate)</li> | ||
</ul> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
@font-face { | ||
font-family: 'IconicStroke'; | ||
src: url("iconic_stroke.eot"); | ||
src: local('IconicStroke'), | ||
url("iconic_stroke.svg#iconic") format('svg'), | ||
url("iconic_stroke.otf") format('opentype'); | ||
} | ||
|
||
.iconic { | ||
color:inherit; | ||
font-family: "IconicStroke"; | ||
} | ||
|
||
a.iconic:hover { | ||
color:inherit; | ||
} | ||
|
||
.iconic.home:before { content: '!'; } | ||
.iconic.at:before { content: "@"; } | ||
.iconic.quote:before { content: '"'; } | ||
.iconic.quote-alt:before { content: "'"; } | ||
.iconic.arrow-up:before { content: "3"; } | ||
.iconic.arrow-right:before { content: "4"; } | ||
.iconic.arrow-bottom:before { content: "5"; } | ||
.iconic.arrow-left:before { content: "6"; } | ||
.iconic.arrow-up-alt:before { content: "#"; } | ||
.iconic.arrow-right-alt:before { content: "$"; } | ||
.iconic.arrow-bottom-alt:before { content: "%"; } | ||
.iconic.arrow-left-alt:before { content: "^"; } | ||
.iconic.move:before { content: "9"; } | ||
.iconic.move-vertical:before { content: "8"; } | ||
.iconic.move-horizontal:before { content: "7"; } | ||
.iconic.move-alt:before { content: "("; } | ||
.iconic.move-vertical-alt:before { content: "*"; } | ||
.iconic.move-horizontal-alt:before { content: "&"; } | ||
.iconic.cursor:before { content: ")"; } | ||
.iconic.plus:before { content: "+"; } | ||
.iconic.plus-alt:before { content: "="; } | ||
.iconic.minus:before { content: "-"; } | ||
.iconic.minus-alt:before { content: "_"; } | ||
.iconic.new-window:before { content: "1"; } | ||
.iconic.dial:before { content: "2"; } | ||
.iconic.lightbulb:before { content: "0"; } | ||
.iconic.link:before { content: "/"; } | ||
.iconic.image:before { content: "?"; } | ||
.iconic.article:before { content: ">"; } | ||
.iconic.read-more:before { content: "."; } | ||
.iconic.headphones:before { content: ","; } | ||
.iconic.equalizer:before { content: "<"; } | ||
.iconic.fullscreen:before { content: ":"; } | ||
.iconic.exit-fullscreen:before { content: ";"; } | ||
.iconic.spin:before { content: "["; } | ||
.iconic.spin-alt:before { content: "{"; } | ||
.iconic.moon:before { content: "]"; } | ||
.iconic.sun:before { content: "}"; } | ||
.iconic.map-pin:before { content: "\\"; } | ||
.iconic.pin:before { content: "|"; } | ||
.iconic.eyedropper:before { content: "~"; } | ||
.iconic.denied:before { content: "`"; } | ||
.iconic.calendar:before { content: "a"; } | ||
.iconic.calendar-alt:before { content: "A"; } | ||
.iconic.bolt:before { content: "b"; } | ||
.iconic.clock:before { content: "c"; } | ||
.iconic.document:before { content: "d"; } | ||
.iconic.book:before { content: "e"; } | ||
.iconic.book-alt:before { content: "E"; } | ||
.iconic.magnifying-glass:before { content: "f"; } | ||
.iconic.tag:before { content: "g"; } | ||
.iconic.heart:before { content: "h"; } | ||
.iconic.info:before { content: "i"; } | ||
.iconic.chat:before { content: "j"; } | ||
.iconic.chat-alt:before { content: "J"; } | ||
.iconic.key:before { content: "k"; } | ||
.iconic.unlocked:before { content: "l"; } | ||
.iconic.locked:before { content: "L"; } | ||
.iconic.mail:before { content: "m"; } | ||
.iconic.mail-alt:before { content: "M"; } | ||
.iconic.phone:before { content: "n"; } | ||
.iconic.box:before { content: "o"; } | ||
.iconic.pencil:before { content: "p"; } | ||
.iconic.pencil-alt:before { content: "P"; } | ||
.iconic.comment:before { content: "q"; } | ||
.iconic.comment-alt:before { content: "Q"; } | ||
.iconic.rss:before { content: "r"; } | ||
.iconic.star:before { content: "s"; } | ||
.iconic.trash:before { content: "t"; } | ||
.iconic.user:before { content: "u"; } | ||
.iconic.volume:before { content: "v"; } | ||
.iconic.mute:before { content: "V"; } | ||
.iconic.cog:before { content: "w"; } | ||
.iconic.cog-alt:before { content: "W"; } | ||
.iconic.x:before { content: "x"; } | ||
.iconic.x-alt:before { content: "X"; } | ||
.iconic.check:before { content: "y"; } | ||
.iconic.check-alt:before { content: "Y"; } | ||
.iconic.beaker:before { content: "z"; } | ||
.iconic.beaker-alt:before { content: "Z"; } |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.