From 2238db8338f0876c8cb5759f52d740d2cf6e1ee3 Mon Sep 17 00:00:00 2001 From: n0kS Phr33d0m Date: Fri, 23 Aug 2013 08:06:47 +0200 Subject: [PATCH] Make the navbar brand a different font to distinguish it from the rest of the navbar links. --- modules/extra/webcpanel/templates/default/header.html | 2 +- modules/extra/webcpanel/templates/default/style.css | 9 ++++++++- modules/extra/webcpanel/webcpanel.cpp | 6 ++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/modules/extra/webcpanel/templates/default/header.html b/modules/extra/webcpanel/templates/default/header.html index 613ed617a..4ccba74ae 100644 --- a/modules/extra/webcpanel/templates/default/header.html +++ b/modules/extra/webcpanel/templates/default/header.html @@ -4,7 +4,7 @@ - + diff --git a/modules/extra/webcpanel/templates/default/style.css b/modules/extra/webcpanel/templates/default/style.css index 7c7ba533a..fa122518a 100644 --- a/modules/extra/webcpanel/templates/default/style.css +++ b/modules/extra/webcpanel/templates/default/style.css @@ -1,4 +1,5 @@ -@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; @@ -136,6 +137,12 @@ h4 { -moz-box-shadow: 0 8px 6px -8px black; box-shadow: 0 8px 6px -8px black; } +.navbar-brand { + font-size: 25px; +} +.navbar-brand, .navbar-brand small { + font-family: 'Port Lligat Slab', serif; +} .navbar-default .nav { margin-bottom: -1px; diff --git a/modules/extra/webcpanel/webcpanel.cpp b/modules/extra/webcpanel/webcpanel.cpp index f92dda579..e69d91db8 100644 --- a/modules/extra/webcpanel/webcpanel.cpp +++ b/modules/extra/webcpanel/webcpanel.cpp @@ -17,7 +17,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; @@ -45,7 +45,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"), @@ -67,6 +67,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); @@ -194,6 +195,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);