Permalink
Browse files

fix box widths in small modals

  • Loading branch information...
1 parent c1187f4 commit 6ee05ec0645f9ece41603033aadbe6fd31e8c098 @contra committed May 3, 2012
View
@@ -1,4 +1,4 @@
.DS_Store
*.log
node_modules
-*.node
+*.node
View
@@ -1,4 +1,4 @@
.DS_Store
*.log
node_modules
-*.node
+*.node
View
@@ -0,0 +1,4 @@
+#!/usr/bin/env node
+
+require('coffee-script');
+require('../start.coffee');
View
@@ -11,6 +11,9 @@ code {
.small-modal {
width: 330px;
}
+.small-modal-box {
+ width: 280px;
+}
.big-modal {
width: 900px;
height: 700px;
@@ -3,9 +3,9 @@
h3 Connect
.modal-body
- input#host.span3(type="text", placeholder="Host")
- input#port.span3(type="text", placeholder="Port")
- input#database.span3(type="text", placeholder="Database")
+ input#host.small-modal-box(type="text", placeholder="Host")
+ input#port.small-modal-box(type="text", placeholder="Port")
+ input#database.small-modal-box(type="text", placeholder="Database")
.modal-footer
a#connect-button.btn.btn-primary Connect
@@ -3,7 +3,7 @@
h3 Create
.modal-body
- input#name.span3(type="text", placeholder="Name")
+ input#name.small-modal-box(type="text", placeholder="Name")
.modal-footer
a#new-button.btn.btn-primary Create
@@ -3,7 +3,7 @@
h3 Rename
.modal-body
- input#newname.span3(type="text", placeholder="New name")
+ input#newname.small-modal-box(type="text", placeholder="New name")
.modal-footer
a#rename-button.btn.btn-primary Rename
View
@@ -4,13 +4,13 @@ async = require 'async'
{join, basename, extname} = require 'path'
module.exports =
- initialize: (server, base, servicesDir, cb) ->
+ initialize: (server, servicesDir, cb) ->
vein = new Vein server
- readdir join(base, servicesDir), (err, files) ->
+ readdir servicesDir, (err, files) ->
return cb err if err?
loadService = (file, cb) ->
serviceName = basename file, extname file
- service = require join base, servicesDir, file
+ service = require join servicesDir, file
vein.add serviceName, service
cb()
async.forEach files, loadService, cb
View
@@ -5,6 +5,9 @@
"homepage":"http://github.com/wearefractal/smog",
"repository":"git://github.com/wearefractal/smog.git",
"author":"Fractal <contact@wearefractal.com> (http://wearefractal.com/)",
+ "bin":{
+ "smog":"./bin/smog"
+ },
"dependencies":{
"coffee-script":"*",
View
@@ -11,6 +11,9 @@ code {
.small-modal {
width: 330px;
}
+.small-modal-box {
+ width: 280px;
+}
.big-modal {
width: 900px;
height: 700px;

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,13 +1,14 @@
connect = require "connect"
router = require "./lib/router"
+{join} = require "path"
# Web server
app = connect()
app.use connect.staticCache()
-app.use connect.static './public/'
+app.use connect.static join __dirname, './public/'
server = app.listen 8080
# Vein
-router.initialize server, __dirname, './lib/services/', (err) ->
+router.initialize server, join(__dirname, './lib/services/'), (err) ->
return console.log err if err?
console.log "Server started on 8080"

0 comments on commit 6ee05ec

Please sign in to comment.