From: Charles Connell Date: Tue, 1 Apr 2014 21:10:31 +0000 (-0400) Subject: Change header library X-Git-Tag: release-20150131~144^2~21 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=55dae2c4796010531e06977c6d98f89e1866b9cc;p=oweals%2Fkarmaworld.git Change header library --- diff --git a/karmaworld/assets/css/global.css b/karmaworld/assets/css/global.css index 1e25aa6..8f13de2 100644 --- a/karmaworld/assets/css/global.css +++ b/karmaworld/assets/css/global.css @@ -24,36 +24,14 @@ p { font-weight: inherit; } -.nav-list ul { - list-style-type: none; - margin: 0; -} - -.nav-list li { - display: inline; - padding: 0 5px 0 5px; -} - -.mobile-nav-list ul { - list-style-type: none; - margin: 0; -} - -.mobile-nav-list li { - font-size: 1.5em; - padding: 0 20px 0 10px; -} - -.mobile-nav-item { - padding: 5px 0px 5px 0px; - border-bottom: 1px solid black; - width: 100%; - color: #999999; +.top-bar-section ul li > a { + font-family: inherit; + font-size: 1em; } -#header-nav { - text-align: right; - font-size: 1.3em; +#main-header { + background: #333333; + color: #d4d4d4; } #header-login-nav { @@ -65,16 +43,13 @@ p { #header-login-nav ul { color: #d4d4d4; font: 0.8em 'adelle-sans'; + list-style-type: none; + margin: 0; } -#logo-container { - padding: 5px 5px 5px 5px; -} - -#main-header { - background: #333333; - color: #d4d4d4; - padding: 1em 0 0.4em 0; +#header-login-nav li { + display: inline; + padding: 0 5px 0 5px; } .gradient-bar diff --git a/karmaworld/assets/js/foundation.offcanvas.js b/karmaworld/assets/js/foundation.offcanvas.js deleted file mode 100644 index c35e1ec..0000000 --- a/karmaworld/assets/js/foundation.offcanvas.js +++ /dev/null @@ -1,57 +0,0 @@ -;(function ($, window, document, undefined) { - 'use strict'; - - Foundation.libs.offcanvas = { - name : 'offcanvas', - - version : '5.2.1', - - settings : {}, - - init : function (scope, method, options) { - this.events(); - }, - - events : function () { - var S = this.S; - - S(this.scope).off('.offcanvas') - .on('click.fndtn.offcanvas', '.left-off-canvas-toggle', function (e) { - e.preventDefault(); - S(this).closest('.off-canvas-wrap').toggleClass('move-right'); - }) - .on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) { - e.preventDefault(); - S(".off-canvas-wrap").removeClass("move-right"); - }) - .on('click.fndtn.offcanvas', '.left-off-canvas-menu a', function (e) { - e.preventDefault(); - var href = $(this).attr('href'); - S('.off-canvas-wrap').on('transitionend webkitTransitionEnd oTransitionEnd', function(e) { - window.location = href - S('.off-canvas-wrap').off('transitionend webkitTransitionEnd oTransitionEnd'); - }); - S(".off-canvas-wrap").removeClass("move-right"); - }) - .on('click.fndtn.offcanvas', '.right-off-canvas-toggle', function (e) { - e.preventDefault(); - S(this).closest(".off-canvas-wrap").toggleClass("move-left"); - }) - .on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) { - e.preventDefault(); - S(".off-canvas-wrap").removeClass("move-left"); - }) - .on('click.fndtn.offcanvas', '.right-off-canvas-menu a', function (e) { - e.preventDefault(); - var href = $(this).attr('href'); - S('.off-canvas-wrap').on('transitionend webkitTransitionEnd oTransitionEnd', function(e) { - window.location = href - S('.off-canvas-wrap').off('transitionend webkitTransitionEnd oTransitionEnd'); - }); - S(".off-canvas-wrap").removeClass("move-left"); - }); - }, - - reflow : function () {} - }; -}(jQuery, this, this.document)); diff --git a/karmaworld/templates/base.html b/karmaworld/templates/base.html index 7a2e817..fada1a7 100644 --- a/karmaworld/templates/base.html +++ b/karmaworld/templates/base.html @@ -34,35 +34,30 @@ - -
+ - - {% include 'header.html' %} - + + {% include 'header.html' %} + - - {% block raw_content %} - {% endblock %} - - - - {% include 'footer.html' %} - + + {% block raw_content %} + {% endblock %} + - + + {% include 'footer.html' %} + - - {% block bodyscripts %} - {% endblock %} - - - - - -
+ + {% block bodyscripts %} + {% endblock %} + + + + diff --git a/karmaworld/templates/header.html b/karmaworld/templates/header.html index ba4333e..7631739 100644 --- a/karmaworld/templates/header.html +++ b/karmaworld/templates/header.html @@ -17,48 +17,31 @@ -
-
-
-
-   - - global_header_logo - -
-
- - + {% endif %} + + +
-