diff --git a/irc.js b/irc.js index 2d2d4c3..031edcb 100644 --- a/irc.js +++ b/irc.js @@ -7,6 +7,7 @@ var ircjs = require('irc-js'); var app = express.createServer(); app.configure(function(){ + app.use(express.compiler({ src: __dirname + '/public', enable: ['stylus'] })); app.use(express.staticProvider(__dirname + '/public')); }); diff --git a/public/css/irc.css b/public/css/irc.css new file mode 100644 index 0000000..b8551cf --- /dev/null +++ b/public/css/irc.css @@ -0,0 +1,71 @@ +* { + margin: 0; +} +body { + background: #fff; + color: #222; + font: 12px Helvetica, Arial, sans-serif; + padding: 0 0 30px; +} +#nick_list { + display: none; + float: right; + width: 150px; +} +#chat_body { + padding: 10px; + width: 100%; +} +#chat_body, +#chat_body th, +#chat_body td { + vertical-align: top; +} +#chat_body .author { + font-weight: bold; + padding: 2px 4px 2px 10px; + text-align: right; + width: 100px; +} +#chat_body .msg { + background: #f6f6f6; + padding: 2px 6px; +} +#chat_body .me .author { + font-style: italic; +} +#chat_body tr:nth-child(2n) .msg { + background: #efefef; +} +#chat_bar { + background: #fff; + bottom: 0; + left: 0; + padding: 5px; + position: fixed; + right: 0; + z-index: 1000; +} +#chat_bar, +#chat_bar button { + height: 25px; + line-height: 25px; +} +#chat_bar input { + height: 23px; + left: 5px; + margin: 0; + padding: 0 5px; + position: absolute; + right: 85px; +} +#chat_bar button { + padding: 0; + position: absolute; + right: 5px; + width: 75px; +} +#chat_bar .push { + clear: both; + height: 2em; +} diff --git a/public/css/irc.styl b/public/css/irc.styl new file mode 100755 index 0000000..2350211 --- /dev/null +++ b/public/css/irc.styl @@ -0,0 +1,74 @@ +* + margin 0 + +body + background #fff + color #222 + font 12px Helvetica, Arial, sans-serif + padding 0 0 30px + +#top_section + //border 1px solid red + +#nick_list + display none + float right + width 150px + +#chat_body + padding 10px + width 100% + + &, th, td + vertical-align top + + .author + font-weight bold + padding 2px 4px 2px 10px + text-align right + width 100px + + .msg + background #f6f6f6 + padding 2px 6px + + .me + .author + font-style italic + +@css { + #chat_body tr:nth-child(2n) .msg { + background: #efefef; + } +} + +#chat_bar + background #fff + bottom 0 + left 0 + padding 5px + position fixed + right 0 + z-index 1000 + + &, button + height 25px + line-height 25px + + input + height 23px + left 5px + margin 0 + padding 0 5px + position absolute + right 85px + + button + padding 0 + position absolute + right 5px + width 75px + + .push + clear both + height 2em \ No newline at end of file diff --git a/public/index.html b/public/index.html index 69d9880..fca305e 100644 --- a/public/index.html +++ b/public/index.html @@ -1,36 +1,27 @@ + + Bejesus IRC Channel - - - + - - -
-
-
    -
-
-
-
-
-
- -
+ \ No newline at end of file