From: Ant Zucaro Date: Sun, 24 Mar 2013 13:43:28 +0000 (-0400) Subject: Incorporate bootstrap, fix nav and search. X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=deace91303cdeaa9c8a23f3b3d7864e1781c4385;p=xonotic%2Fxonstat.git Incorporate bootstrap, fix nav and search. This rigs up the bootstrap files into the templates. The style definitions have to change to fit the new setup. --- diff --git a/xonstat/static/css/app.css b/xonstat/static/css/app.css new file mode 100644 index 0000000..7356638 --- /dev/null +++ b/xonstat/static/css/app.css @@ -0,0 +1,23 @@ +/* Primary elements */ +body { + background: url("img/web_background_4.jpg") no-repeat fixed center center / cover black; + color: #D0D0D0; +} + +/* Navigation bar */ +.navbar-brand { + padding-bottom: 0px; + padding-top: 10px; +} +.navbar-inverse { + background: none repeat scroll 0 0 rgba(0, 0, 0, 0.6); +} +.navbar-inverse .nav>.active>a, .navbar-inverse .nav>.active>a:hover, .navbar-inverse .nav>.active>a:focus { + background: none repeat scroll 0 0 rgba(49, 49, 49, 0.6); +} +.search, input[type="search"] { + background-color: #606060; + border: 1px solid #202020; + color: #AAAAAA; + width: 100px; +} diff --git a/xonstat/templates/base.mako b/xonstat/templates/base.mako index c935dc6..5a48696 100644 --- a/xonstat/templates/base.mako +++ b/xonstat/templates/base.mako @@ -12,11 +12,12 @@ <%block name="css"> - - - + + + + - + diff --git a/xonstat/templates/nav.mako b/xonstat/templates/nav.mako index 568ddae..81823e1 100644 --- a/xonstat/templates/nav.mako +++ b/xonstat/templates/nav.mako @@ -1,19 +1,16 @@ <%def name="nav(active)"> -