改 shadowsocks 的配色

This commit is contained in:
jysperm
2014-08-24 21:11:51 +08:00
parent a6c6d627fe
commit d34e5b6054
4 changed files with 26 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ app.plugins = {}
app.view_hook =
menu_bar: []
app.view_style = []
exports.get = (name) ->
return require path.join(__dirname, "../plugin/#{name}")
@@ -25,6 +27,9 @@ exports.loadPlugin = (name) ->
if fs.existsSync path.join(plugin_path, 'static')
app.use harp.mount('/plugin/' + name, path.join(plugin_path, 'static'))
if plugin.layout?.style
app.view_style.push "/plugin/#{name}#{plugin.layout.style}"
if plugin.action
app.use ('/plugin/' + name), plugin.action

View File

@@ -5,6 +5,9 @@ html
block head
link(rel='stylesheet', href='http://cdn.staticfile.org/twitter-bootstrap/3.2.0/css/bootstrap.min.css')
link(rel='stylesheet', href='/style/layout.css')
for path in app.view_style
link(rel='stylesheet', href=path)
body
header.navbar-fixed-top
.container

View File

@@ -8,6 +8,9 @@ module.exports =
action: action
service: service
layout:
style: '/style/layout.css'
panel:
widget: service.widget
script: '/script/panel.js'

View File

@@ -0,0 +1,15 @@
body {
> header {
background: #1c9b47;
nav.navbar-inverse {
background: #1c9b47;
}
.navbar-inverse {
.navbar-nav > .active > a, .navbar-nav > .active > a:hover, .navbar-nav > .active > a:focus {
background: #18813f;
}
}
}
}