-

+
+
+
Back Home
diff --git a/modules/extra/webcpanel/templates/default/style.css b/modules/extra/webcpanel/templates/default/style.css
index 117cc1ecc..e425c3d8c 100644
--- a/modules/extra/webcpanel/templates/default/style.css
+++ b/modules/extra/webcpanel/templates/default/style.css
@@ -1,11 +1,12 @@
-@import url(http://fonts.googleapis.com/css?family=Open+Sans:300,400);
+@import url(//fonts.googleapis.com/css?family=Open+Sans:300,400);
+@import url(//fonts.googleapis.com/css?family=Port+Lligat+Slab);
*, html, body, h1, h2, h3, h4, div, p, span, a, button {
font-family: 'Open Sans', sans-serif;
}
body {
background-color: #eee;
- background-image: url('http://politeia.in/assets/img/bg/cubes.png');
+ background-image: url('/static/cubes.png');
}
/* RANDOM STUFF */
@@ -25,6 +26,19 @@ h4 {
box-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}
+.label {
+ font-size: 13px;
+ font-weight: normal;
+}
+
+.label-info {
+ background-color: #4EA4EE;
+}
+
+.label-info[href]:hover, .label-info[href]:focus {
+ background-color: #428BCA;
+}
+
/* LOGIN FORM */
.form-signin .form-signin-heading, .form-signin .checkbox {
margin-bottom: 10px;
@@ -50,6 +64,9 @@ h4 {
}
/* Control Panel */
+.panel-default .panel-heading {
+ font-size: 24px;
+}
#loggedIn {
margin: 15px 15px 0 0;
}
@@ -69,6 +86,7 @@ h4 {
font-weight: bold;
padding-right: 10px;
text-align: right;
+ width: 25%;
}
#tableInfoNorm td {
@@ -105,6 +123,10 @@ h4 {
font-weight: normal;
}
+#channelList li {
+ margin-top: 10px;
+}
+
/* NAVBAR */
.navbar, .well {
background-color: white;
@@ -115,13 +137,30 @@ h4 {
-moz-box-shadow: 0 8px 6px -8px black;
box-shadow: 0 8px 6px -8px black;
}
-
-.navbar-default .navbar-nav > li > a {
- color: #777777;
+.navbar-brand {
+ font-size: 25px;
+}
+.navbar-brand, .navbar-brand small {
+ font-family: 'Port Lligat Slab', serif;
}
-.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
- color: #333333;
- border-bottom: 3px solid #0082D9;
- margin-bottom: -3px;
+.navbar-default .nav {
+ margin-bottom: -1px;
+}
+
+.navbar-default .nav > li > a {
+ color: #428BCA;
+}
+
+.navbar-default .nav > li > a:hover, .navbar-default .nav > li > a:focus {
+ color: #428BCA;
+ border-top: 3px solid #0082D9;
+ margin-top: -3px;
+}
+
+.navbar-default .nav > li.active > a, .navbar-default .nav > li.active > a:hover, .navbar-default .nav > li.active > a:focus {
+ color: #428BCA;
+ background-color: transparent;
+ background-color: rgba(66, 139, 202, 0.1);
+ border-bottom-color: transparent;
}
diff --git a/modules/extra/webcpanel/webcpanel.cpp b/modules/extra/webcpanel/webcpanel.cpp
index e91152f5d..c0bd841a0 100644
--- a/modules/extra/webcpanel/webcpanel.cpp
+++ b/modules/extra/webcpanel/webcpanel.cpp
@@ -16,7 +16,7 @@ class ModuleWebCPanel : public Module
Panel panel;
PrimitiveExtensibleItem
id, ip;
- StaticFileServer style_css, logo_png, favicon_ico;
+ StaticFileServer style_css, logo_png, cubes_png, favicon_ico;
WebCPanel::Index index;
WebCPanel::Logout logout;
@@ -44,7 +44,7 @@ class ModuleWebCPanel : public Module
public:
ModuleWebCPanel(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, EXTRA | VENDOR),
panel(this, "webcpanel"), id(this, "webcpanel_id"), ip(this, "webcpanel_ip"),
- style_css("style.css", "/static/style.css", "text/css"), logo_png("logo.png", "/static/logo.png", "image/png"), favicon_ico("favicon.ico", "/favicon.ico", "image/x-icon"),
+ style_css("style.css", "/static/style.css", "text/css"), logo_png("logo.png", "/static/logo.png", "image/png"), cubes_png("cubes.png", "/static/cubes.png", "image/png"), favicon_ico("favicon.ico", "/favicon.ico", "image/x-icon"),
index("/"), logout("/logout"), _register("/register"), confirm("/confirm"),
nickserv_info("NickServ", "/nickserv/info"), nickserv_cert("NickServ", "/nickserv/cert"), nickserv_access("NickServ", "/nickserv/access"), nickserv_alist("NickServ", "/nickserv/alist"),
chanserv_info("ChanServ", "/chanserv/info"), chanserv_set("ChanServ", "/chanserv/set"), chanserv_access("ChanServ", "/chanserv/access"), chanserv_akick("ChanServ", "/chanserv/akick"),
@@ -65,6 +65,7 @@ class ModuleWebCPanel : public Module
provider->RegisterPage(&this->style_css);
provider->RegisterPage(&this->logo_png);
+ provider->RegisterPage(&this->cubes_png);
provider->RegisterPage(&this->favicon_ico);
provider->RegisterPage(&this->index);
@@ -192,6 +193,7 @@ class ModuleWebCPanel : public Module
{
provider->UnregisterPage(&this->style_css);
provider->UnregisterPage(&this->logo_png);
+ provider->UnregisterPage(&this->cubes_png);
provider->UnregisterPage(&this->favicon_ico);
provider->UnregisterPage(&this->index);
diff --git a/modules/extra/webcpanel/webcpanel.h b/modules/extra/webcpanel/webcpanel.h
index 5ff971ca3..ebce325d2 100644
--- a/modules/extra/webcpanel/webcpanel.h
+++ b/modules/extra/webcpanel/webcpanel.h
@@ -96,6 +96,8 @@ class WebPanelProtectedPage : public WebPanelPage
replacements["TITLE"] = page_title;
replacements["ACCOUNT"] = na->nc->display;
+ replacements["PAGE_NAME"] = page_name;
+ replacements["CATEGORY"] = category;
Anope::string sections, get;