Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/boot/component.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"component/keyname": "*"
},
"scripts": ["index.coffee"],
"styles": ["style.css"],
"styles": ["style.styl"],
"locals": [
"item",
"item-presenter"
Expand Down
37 changes: 37 additions & 0 deletions client/boot/style.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
*
box-sizing border-box

body
padding 50px
font 14px Helvetica

input[type=text]
padding 10px
width 400px
border-radius 3px
border 1px solid #eee
border-top-color #ddd

ul
margin 0
padding 0
width 400px

#content
width 400px
position relative

#links
position absolute
top 5px
right 0
font-size 12px
a
display inline-block
text-decoration none
margin 0 3px
color #0dbdff
&:hover
color #29cbff
border-bottom 1px solid #ddd

2 changes: 1 addition & 1 deletion client/item-presenter/component.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"index.coffee"
],
"styles": [
"style.css"
"style.styl"
],
"templates": [
"template.html"
Expand Down
22 changes: 22 additions & 0 deletions client/item-presenter/style.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.item
margin 0
padding 5px 0
list-style none
border-bottom 1px dotted #eee
&:hover
background #fbfbfb
.x
color #acacac
font-size 10px
text-decoration none
float right
border-radius 3px
margin-right 2px
padding 3px 5px
&:hover
background #eee
&.complete
label
text-decoration line-through
color #acacac

3 changes: 2 additions & 1 deletion component-builder.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ fs = require('fs')
resolve = require('component-resolver')
build = require('component-builder')
coffee = require('builder-coffee-script')
stylus = require('builder-stylus')
mkdirp = require('mkdirp')

OUTPUT = 'build'
Expand All @@ -25,7 +26,7 @@ resolve process.cwd(), { install: true, out: REMOTES}, (err, tree) ->

# only include `.css` files from components' `.styles` field
build.styles(tree)
.use('styles', build.plugins.css())
.use('styles', build.plugins.css(), stylus())
.end (err, string) ->
if err
throw err
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
"builder-coffee-script": "^0.2.0",
"coffee-script": "^1.9.1",
"component-builder": "^1.2.1",
"component-resolver": "*",
"express": "^4.10.1",
"mkdirp": "^0.5.0",
"morgan": "^1.4.1"
"morgan": "^1.4.1",
"builder-stylus": "git+https://github.com/andirotter/builder-stylus.git"
},
"scripts": {
"server": "coffee server/index.coffee"
Expand Down