// mobile nav WIP
This commit is contained in:
1 parent
402221ad0f
commit
9c4ee27f20
6 files changed
+202
-83
No files matched your search
@@ -6,7 +6,7 @@
|
|||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Designed and built with all the love in the world by @mdo and @fat.
|
* Designed and built with all the love in the world by @mdo and @fat.
|
||||||
*//*! normalize.css v2.1.3 | MIT License | git.io/normalize */article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden],template{display:none}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}a{background:transparent}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:0.67em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-family:monospace, serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}@media print{*{text-shadow:none !important;color:#000 !important;background:transparent !important;box-shadow:none !important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:2cm .5cm}p,h2,h3,#content .panel-heading,#content #header_notifs_icon_wrapper .notifs_panel .notifs_panel_header,#header_notifs_icon_wrapper .notifs_panel #content .notifs_panel_header{orphans:3;widows:3}h2,h3,#content .panel-heading,#content #header_notifs_icon_wrapper .notifs_panel .notifs_panel_header,#header_notifs_icon_wrapper .notifs_panel #content .notifs_panel_header{page-break-after:avoid}select{background:#fff !important}.navbar,#header_infos{display:none}.table td,.table th{background-color:#fff !important}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000 !important}.label{border:1px solid #000}.table{border-collapse:collapse !important}.table-bordered th,.table-bordered td{border:1px solid #ddd !important}}*,*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Open Sans",Helvetica,Arial,sans-serif;font-size:12px;line-height:1.42857;color:#555;background-color:#515561}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#1ba6e5;text-decoration:none}a:hover,a:focus{color:#1275a1;text-decoration:underline}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}img{vertical-align:middle}.img-responsive{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail,.thumbnail{padding:4px;line-height:1.42857;background-color:#515561;border:1px solid #ddd;border-radius:3px;-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;display:inline-block;max-width:100%;height:auto}.img-circle{border-radius:50%}hr{margin-top:17px;margin-bottom:17px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}p{margin:0 0 8.5px}.lead{margin-bottom:17px;font-size:13px;font-weight:200;line-height:1.4}@media (min-width: 768px){.lead{font-size:18px}}small,.small{font-size:85%}cite{font-style:normal}.text-muted,.module_description,.hook_panel_header .hook_description{color:#999}.text-primary{color:#1ba6e5}.text-primary:hover{color:#1585b8}.text-warning{color:#c09853}.text-warning:hover{color:#a47e3c}.text-danger{color:#b94a48}.text-danger:hover{color:#953b39}.text-success{color:#468847}.text-success:hover{color:#356635}.text-info{color:#3a87ad}.text-info:hover{color:#2d6987}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}h1,h2,h3,#content .panel-heading,#content #header_notifs_icon_wrapper .notifs_panel .notifs_panel_headeLine truncated
|
*//*! normalize.css v2.1.3 | MIT License | git.io/normalize */article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden],template{display:none}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}a{background:transparent}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:0.67em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-family:monospace, serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}@media print{*{text-shadow:none !important;color:#000 !important;background:transparent !important;box-shadow:none !important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:2cm .5cm}p,h2,h3,#content .panel-heading,#content #header_notifs_icon_wrapper .notifs_panel .notifs_panel_header,#header_notifs_icon_wrapper .notifs_panel #content .notifs_panel_header{orphans:3;widows:3}h2,h3,#content .panel-heading,#content #header_notifs_icon_wrapper .notifs_panel .notifs_panel_header,#header_notifs_icon_wrapper .notifs_panel #content .notifs_panel_header{page-break-after:avoid}select{background:#fff !important}.navbar,#header_infos{display:none}.table td,.table th{background-color:#fff !important}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000 !important}.label{border:1px solid #000}.table{border-collapse:collapse !important}.table-bordered th,.table-bordered td{border:1px solid #ddd !important}}*,*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Open Sans",Helvetica,Arial,sans-serif;font-size:12px;line-height:1.42857;color:#555;background-color:#515561}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#1ba6e5;text-decoration:none}a:hover,a:focus{color:#1275a1;text-decoration:underline}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}img{vertical-align:middle}.img-responsive{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail,.thumbnail{padding:4px;line-height:1.42857;background-color:#515561;border:1px solid #ddd;border-radius:3px;-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;display:inline-block;max-width:100%;height:auto}.img-circle{border-radius:50%}hr{margin-top:17px;margin-bottom:17px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}p{margin:0 0 8.5px}.lead{margin-bottom:17px;font-size:13px;font-weight:200;line-height:1.4}@media (min-width: 768px){.lead{font-size:18px}}small,.small{font-size:85%}cite{font-style:normal}.text-muted,.module_description,.hook_panel_header .hook_description{color:#999}.text-primary{color:#1ba6e5}.text-primary:hover{color:#1585b8}.text-warning{color:#c09853}.text-warning:hover{color:#a47e3c}.text-danger{color:#b94a48}.text-danger:hover{color:#953b39}.text-success{color:#468847}.text-success:hover{color:#356635}.text-info{color:#3a87ad}.text-info:hover{color:#2d6987}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}h1,h2,h3,#content .panel-heading,#content #header_notifs_icon_wrapper .notifs_panel .notifs_panel_headeLine truncated
|
||||||
* Font Awesome 3.2.1
|
* Font Awesome 3.2.1
|
||||||
* the iconic font designed for Bootstrap
|
* the iconic font designed for Bootstrap
|
||||||
* ------------------------------------------------------------------------------
|
* ------------------------------------------------------------------------------
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
* Email: dave@fontawesome.io
|
* Email: dave@fontawesome.io
|
||||||
* Twitter: http://twitter.com/byscuits
|
* Twitter: http://twitter.com/byscuits
|
||||||
* Work: Lead Product Designer @ Kyruus - http://kyruus.com
|
* Work: Lead Product Designer @ Kyruus - http://kyruus.com
|
||||||
*/@font-face{font-family:'FontAwesome';src:url("../font/fontawesome-webfont.eot?v=3.2.1");src:url("../font/fontawesome-webfont.eot?#iefix&v=3.2.1") format("embedded-opentype"),url("../font/fontawesome-webfont.woff?v=3.2.1") format("woff"),url("../font/fontawesome-webfont.ttf?v=3.2.1") format("truetype"),url("../font/fontawesome-webfont.svg#fontawesomeregular?v=3.2.1") format("svg");font-weight:normal;font-style:normal}[class^="icon-"],[class*=" icon-"]{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em}[class^="icon-"]:before,[class*=" icon-"]:before{text-decoration:inherit;display:inline-block;speak:none}.icon-large:before{vertical-align:-10%;font-size:1.3333333333333333em}a [class^="icon-"],a [class*=" icon-"]{display:inline}[class^="icon-"].icon-fixed-width,[class*=" icon-"].icon-fixed-width{display:inline-block;width:1.1428571428571428em;text-align:right;padding-right:0.2857142857142857em}[class^="icon-"].icon-fixed-width.icon-large,[class*=" icon-"].icon-fixed-width.icon-large{width:1.4285714285714286em}.icons-ul{margin-left:2.142857142857143em;list-style-type:none}.icons-ul>li{position:relative}.icons-ul .icon-li{position:absolute;left:-2.142857142857143em;width:2.142857142857143em;text-align:center;line-height:inherit}[class^="icon-"].hide,[class*=" icon-"].hide{display:none}.icon-muted{color:#eeeeee}.icon-light{color:#ffffff}.icon-dark{color:#333333}.icon-border{border:solid 1px #eeeeee;padding:.2em .25em .15em;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.icon-2x{font-size:2em}.icon-2x.icon-border{border-width:2px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.icon-3x{font-size:3em}.icon-3x.icon-border{border-width:3px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.icon-4x{font-size:4em}.icon-4x.icon-border{border-width:4px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.icon-5x{font-size:5em}.icon-5x.icon-border{border-width:5px;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px}.pull-right,#content h3:not(.modal-title) .panel-heading-action,#content .panel-heading:not(.modal-title) .panel-heading-action,#content .panel-heading .panel-heading-action,#content #header_notifs_icon_wrapper .notifs_panel .notifs_panel_header .panel-heading-action,#header_notifs_icon_wrapper .notifs_panel #content .notifs_panel_header .panel-heading-action{float:right}.pull-left,.page-head h2.page-title{float:left}[class^="icon-"].pull-left,.page-head h2[class^="icon-"].page-title,[class*=" icon-"].pull-left,.page-head h2[class*=" icon-"].page-title{margin-right:.3em}[class^="icon-"].pull-right,#content h3:not(.modal-title) [class^="icon-"].panel-heading-action,#content .panel-heading [class^="icon-"].panel-heading-action,#content #header_notifs_icon_wrapper .notifs_panel .notifs_panel_header [class^="icon-"].panel-heading-action,#header_notifs_icon_wrapper .notifs_panel #content .notifs_panel_header [class^="icon-"].panel-heading-action,[class*=" icon-"].pull-right,#content h3:not(.modal-title) [class*=" icon-"].panel-heading-action,#content .panel-heading [class*=" icon-"].panel-heading-action,#content #header_notifs_icon_wrapper .notifs_panel .notifs_panel_header [class*=" icon-"].panel-heading-action,#header_notifs_icon_wrapper .notifs_panel #content .notifs_panel_header [class*=" icon-"].panel-heading-action{margin-left:.3em}[class^="icon-"],[class*=" icon-"]{display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0% 0%;background-repeat:repeat;margin-top:0}.icon-white,.nav-pills>.active>a>[class^="icon-"],.nav-pills>.active>a>[class*=" icon-"],.nav-list>.active>a>[class^="icon-"],.nav-list>.active>a>[class*=" icon-"],.navbar-inverse .nav>.active>a>[class^="icon-"],#header_infos .nav>.active>a>[class^="icon-"],.navbar-inverse #header_notifs_icon_wrapper>.active>a>[class^="icon-"],#header_infos #header_notifs_icon_wrapper>.active>a>[class^="icon-"],.navbar-inverse #header_employee_box>.active>a>[class^="icon-"],#header_infos #header_employee_box>.active>a>[class^="icon-"],.navbar-inverse #header_quick>.active>a>[class^="icon-"],#header_infos #header_quick>.active>a>[class^="icon-"],.navbar-inverse .nav>.active>a>[class*=" icon-"],#header_infos .nav>.active>a>[class*=" icon-"],.navbar-inverse #header_notifs_icon_wrapper>.active>a>[class*=" icon-"],#header_infos #header_notifs_icon_wrapper>.active>a>[class*=" icon-"],.navbar-inverse #header_employee_box>.active>a>[class*=" icon-"],#header_infos #header_employee_box>.active>a>[class*=" icon-"],.navbar-inverse #header_quick>.active>a>[class*=" icon-"],#header_infos #header_quick>.active>a>[class*=" icon-"],.dropdown-menu>li>a:hover>[class^="icon-"],.dropdown-menu>li>a:hover>[class*=" icon-"],.dropdown-menu>.active>a>[class^="icon-"],.dropdown-menu>.active>a>[class*=" icon-"],.dropdown-submenu:hover>a>[class^="icon-"],Line truncated
|
*/@font-face{font-family:'FontAwesome';src:url("../font/fontawesome-webfont.eot?v=3.2.1");src:url("../font/fontawesome-webfont.eot?#iefix&v=3.2.1") format("embedded-opentype"),url("../font/fontawesome-webfont.woff?v=3.2.1") format("woff"),url("../font/fontawesome-webfont.ttf?v=3.2.1") format("truetype"),url("../font/fontawesome-webfont.svg#fontawesomeregular?v=3.2.1") format("svg");font-weight:normal;font-style:normal}[class^="icon-"],[class*=" icon-"]{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em}[class^="icon-"]:before,[class*=" icon-"]:before{text-decoration:inherit;display:inline-block;speak:none}.icon-large:before{vertical-align:-10%;font-size:1.3333333333333333em}a [class^="icon-"],a [class*=" icon-"]{display:inline}[class^="icon-"].icon-fixed-width,[class*=" icon-"].icon-fixed-width{display:inline-block;width:1.1428571428571428em;text-align:right;padding-right:0.2857142857142857em}[class^="icon-"].icon-fixed-width.icon-large,[class*=" icon-"].icon-fixed-width.icon-large{width:1.4285714285714286em}.icons-ul{margin-left:2.142857142857143em;list-style-type:none}.icons-ul>li{position:relative}.icons-ul .icon-li{position:absolute;left:-2.142857142857143em;width:2.142857142857143em;text-align:center;line-height:inherit}[class^="icon-"].hide,[class*=" icon-"].hide{display:none}.icon-muted{color:#eeeeee}.icon-light{color:#ffffff}.icon-dark{color:#333333}.icon-border{border:solid 1px #eeeeee;padding:.2em .25em .15em;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.icon-2x{font-size:2em}.icon-2x.icon-border{border-width:2px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.icon-3x{font-size:3em}.icon-3x.icon-border{border-width:3px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.icon-4x{font-size:4em}.icon-4x.icon-border{border-width:4px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.icon-5x{font-size:5em}.icon-5x.icon-border{border-width:5px;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px}.pull-right,#content h3:not(.modal-title) .panel-heading-action,#content .panel-heading:not(.modal-title) .panel-heading-action,#content .panel-heading .panel-heading-action,#content #header_notifs_icon_wrapper .notifs_panel .notifs_panel_header .panel-heading-action,#header_notifs_icon_wrapper .notifs_panel #content .notifs_panel_header .panel-heading-action{float:right}.pull-left,.page-head h2.page-title{float:left}[class^="icon-"].pull-left,.page-head h2[class^="icon-"].page-title,[class*=" icon-"].pull-left,.page-head h2[class*=" icon-"].page-title{margin-right:.3em}[class^="icon-"].pull-right,#content h3:not(.modal-title) [class^="icon-"].panel-heading-action,#content .panel-heading [class^="icon-"].panel-heading-action,#content #header_notifs_icon_wrapper .notifs_panel .notifs_panel_header [class^="icon-"].panel-heading-action,#header_notifs_icon_wrapper .notifs_panel #content .notifs_panel_header [class^="icon-"].panel-heading-action,[class*=" icon-"].pull-right,#content h3:not(.modal-title) [class*=" icon-"].panel-heading-action,#content .panel-heading [class*=" icon-"].panel-heading-action,#content #header_notifs_icon_wrapper .notifs_panel .notifs_panel_header [class*=" icon-"].panel-heading-action,#header_notifs_icon_wrapper .notifs_panel #content .notifs_panel_header [class*=" icon-"].panel-heading-action{margin-left:.3em}[class^="icon-"],[class*=" icon-"]{display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0% 0%;background-repeat:repeat;margin-top:0}.icon-white,.nav-pills>.active>a>[class^="icon-"],.nav-pills>.active>a>[class*=" icon-"],.nav-list>.active>a>[class^="icon-"],.nav-list>.active>a>[class*=" icon-"],.navbar-inverse .nav>.active>a>[class^="icon-"],#header_infos .nav>.active>a>[class^="icon-"],.navbar-inverse #header_notifs_icon_wrapper>.active>a>[class^="icon-"],#header_infos #header_notifs_icon_wrapper>.active>a>[class^="icon-"],.navbar-inverse #header_employee_box>.active>a>[class^="icon-"],#header_infos #header_employee_box>.active>a>[class^="icon-"],.navbar-inverse #header_quick>.active>a>[class^="icon-"],#header_infos #header_quick>.active>a>[class^="icon-"],.navbar-inverse .nav>.active>a>[class*=" icon-"],#header_infos .nav>.active>a>[class*=" icon-"],.navbar-inverse #header_notifs_icon_wrapper>.active>a>[class*=" icon-"],#header_infos #header_notifs_icon_wrapper>.active>a>[class*=" icon-"],.navbar-inverse #header_employee_box>.active>a>[class*=" icon-"],#header_infos #header_employee_box>.active>a>[class*=" icon-"],.navbar-inverse #header_quick>.active>a>[class*=" icon-"],#header_infos #header_quick>.active>a>[class*=" icon-"],.dropdown-menu>li>a:hover>[class^="icon-"],.dropdown-menu>li>a:hover>[class*=" icon-"],.dropdown-menu>.active>a>[class^="icon-"],.dropdown-menu>.active>a>[class*=" icon-"],.dropdown-submenu:hover>a>[class^="icon-"],Line truncated
|
||||||
* Ladda
|
* Ladda
|
||||||
* http://lab.hakim.se/ladda
|
* http://lab.hakim.se/ladda
|
||||||
* MIT licensed
|
* MIT licensed
|
||||||
|
|||||||
@@ -26,55 +26,54 @@ $( document ).ready(function() {
|
|||||||
|
|
||||||
//nav side bar
|
//nav side bar
|
||||||
function navSidebar(){
|
function navSidebar(){
|
||||||
$('body.page-topbar').removeClass('page-topbar').addClass('page-sidebar');
|
//$('body.page-topbar').removeClass('page-topbar').addClass('page-sidebar');
|
||||||
$('#nav-topbar').attr('id','nav-sidebar');
|
//$('#nav-topbar').attr('id','nav-sidebar');
|
||||||
$('#nav-sidebar').off();
|
var sidebar = $('#nav-sidebar');
|
||||||
|
sidebar.off();
|
||||||
$('.expanded').removeClass('expanded');
|
$('.expanded').removeClass('expanded');
|
||||||
$('.maintab').not('.active').closest('.submenu').hide();
|
$('.maintab').not('.active').closest('.submenu').hide();
|
||||||
$('#nav-sidebar li.maintab.has_submenu').append('<span class="submenu_expand"></span>');
|
sidebar.find('li.maintab.has_submenu').append('<span class="submenu_expand"></span>');
|
||||||
$('#nav-sidebar .submenu_expand').on('click',function(){
|
sidebar.on('click','.submenu_expand', function(){
|
||||||
var $navId = $(this).parent();
|
var $navId = $(this).parent();
|
||||||
$('.submenu-collapse').remove();
|
$('.submenu-collapse').remove();
|
||||||
if($('.expanded').length ){
|
if($('.expanded').length ){
|
||||||
$('.expanded > ul').slideUp(
|
$('.expanded > ul').slideUp('fast', function(){
|
||||||
'fast',
|
var $target = $('.expanded');
|
||||||
function(){
|
$target.removeClass('expanded');
|
||||||
var $target = $('.expanded');
|
$($navId).not($target).not('.active').addClass('expanded');
|
||||||
$target.removeClass('expanded');
|
$($navId).not($target).not('.active').children('ul:first').hide().slideDown();
|
||||||
$($navId).not($target).not('.active').addClass('expanded');
|
});
|
||||||
$($navId).not($target).not('.active').children('ul:first').hide().slideDown();
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$($navId).not('.active').addClass('expanded');
|
$($navId).not('.active').addClass('expanded');
|
||||||
$($navId).not('.active').children('ul:first').hide().slideDown();
|
$($navId).not('.active').children('ul:first').hide().slideDown();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
//sidebar menu collapse
|
||||||
|
sidebar.find('.menu-collapse').on('click',function(){
|
||||||
|
$('body').toggleClass('page-sidebar-closed');
|
||||||
|
$('.expanded').removeClass('expanded');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
//nav top bar
|
//nav top bar
|
||||||
function navTopbar(){
|
function navTopbar(){
|
||||||
$('body').removeClass('page-sidebar').removeClass('page-sidebar-closed').addClass('page-topbar');
|
//$('body').removeClass('page-sidebar').addClass('page-topbar').removeClass('page-sidebar-closed');
|
||||||
$('#nav-sidebar').attr('id','nav-topbar');
|
//$('#nav-sidebar').attr('id','nav-topbar');
|
||||||
$('#nav-topbar').off();
|
var topbar = $('#nav-topbar');
|
||||||
|
topbar.off();
|
||||||
$('span.submenu_expand').remove();
|
$('span.submenu_expand').remove();
|
||||||
$('.expanded').removeClass('expanded');
|
$('.expanded').removeClass('expanded');
|
||||||
|
|
||||||
// expand elements with submenu
|
// expand elements with submenu
|
||||||
$('#nav-topbar').on('mouseenter', 'li.has_submenu',
|
topbar.on('mouseenter', 'li.has_submenu', function(){
|
||||||
function(){
|
$(this).addClass('expanded');
|
||||||
$(this).addClass('expanded');
|
|
||||||
});
|
});
|
||||||
$('#nav-topbar').on('mouseleave', 'li.has_submenu',
|
topbar.on('mouseleave', 'li.has_submenu', function(){
|
||||||
function(){
|
$(this).removeClass('expanded');
|
||||||
$(this).removeClass('expanded');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// hide element over menu width on load
|
// hide element over menu width on load
|
||||||
$('#nav-topbar').find('li.maintab').each(function(){
|
topbar.find('li.maintab').each(function(){
|
||||||
navEllipsis();
|
navEllipsis();
|
||||||
});
|
});
|
||||||
|
|
||||||
//hide element over menu width on resize
|
//hide element over menu width on resize
|
||||||
$(window).on('resize', function() {
|
$(window).on('resize', function() {
|
||||||
navEllipsis();
|
navEllipsis();
|
||||||
@@ -96,11 +95,50 @@ $( document ).ready(function() {
|
|||||||
for (var i = 0; i < ellipsed.length; i++) {
|
for (var i = 0; i < ellipsed.length; i++) {
|
||||||
$('#ellipsis_submenu').append('<li class="subtab has_submenu">'+ellipsed[i].html()+'</li>');
|
$('#ellipsis_submenu').append('<li class="subtab has_submenu">'+ellipsed[i].html()+'</li>');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//nav switch
|
function mobileNav() {
|
||||||
|
//clean actual menu type
|
||||||
|
$('body').removeClass('page-sidebar').removeClass('page-topbar').removeClass('page-sidebar-closed');
|
||||||
|
// get it in navigation whatever type it is.
|
||||||
|
var navigation = $('#nav-sidebar,#nav-topbar');
|
||||||
|
var submenu = "";
|
||||||
|
// clean trigger
|
||||||
|
navigation.off().attr('id','nav-mobile');
|
||||||
|
$('span.menu-collapse').off();
|
||||||
|
navigation.on('click','span.menu-collapse',function(){
|
||||||
|
if ($(this).hasClass('expanded')){
|
||||||
|
$(this).html('<i class="icon-align-justify"></i>');
|
||||||
|
navigation.find('ul.menu').hide();
|
||||||
|
$(this).removeClass('expanded');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$(this).html('<i class="icon-remove"></i>');
|
||||||
|
navigation.find('ul.menu').show();
|
||||||
|
$(this).addClass('expanded');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
//get click for item which has submenu
|
||||||
|
navigation.on('click','.maintab.has_submenu a.title', function(e){
|
||||||
|
e.preventDefault();
|
||||||
|
navigation.find('.menu').hide();
|
||||||
|
$('#nav-mobile-submenu').remove();
|
||||||
|
//create submenu
|
||||||
|
submenu = $('<ul id="nav-mobile-submenu" class="menu"><li><a href="#" id="nav-mobile-submenu-back"><i class="icon-arrow-left"></i> Back</a></li></ul>');
|
||||||
|
submenu.append($(this).closest('.maintab').find('.submenu').html());
|
||||||
|
//show submenu
|
||||||
|
navigation.append(submenu);
|
||||||
|
submenu.show();
|
||||||
|
});
|
||||||
|
navigation.on('click','#nav-mobile-submenu-back',function(e){
|
||||||
|
e.preventDefault();
|
||||||
|
submenu.remove();
|
||||||
|
navigation.find('.menu').show();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
//nav switch - not used for now
|
||||||
function navSwitch(){
|
function navSwitch(){
|
||||||
if ($('body').hasClass('page-sidebar')||$('body').hasClass('page-sidebar-closed')){
|
if ($('body').hasClass('page-sidebar')||$('body').hasClass('page-sidebar-closed')){
|
||||||
navTopbar();
|
navTopbar();
|
||||||
@@ -112,19 +150,15 @@ $( document ).ready(function() {
|
|||||||
//init menu
|
//init menu
|
||||||
if ($('body').hasClass('page-sidebar')){
|
if ($('body').hasClass('page-sidebar')){
|
||||||
navSidebar();
|
navSidebar();
|
||||||
} else if ($('body').hasClass('page-topbar')) {
|
}
|
||||||
|
else if ($('body').hasClass('page-topbar')) {
|
||||||
navTopbar();
|
navTopbar();
|
||||||
}
|
}
|
||||||
|
|
||||||
//tooltip
|
//tooltip
|
||||||
$('.label-tooltip').tooltip();
|
$('.label-tooltip').tooltip();
|
||||||
|
|
||||||
//sidebar menu collapse
|
//scroll top
|
||||||
$('.menu-collapse').click(function(){
|
|
||||||
$('body').toggleClass('page-sidebar-closed');
|
|
||||||
$('.expanded').removeClass('expanded');
|
|
||||||
});
|
|
||||||
|
|
||||||
function animateGoTop() {
|
function animateGoTop() {
|
||||||
if ($(window).scrollTop())
|
if ($(window).scrollTop())
|
||||||
{
|
{
|
||||||
@@ -135,41 +169,30 @@ $( document ).ready(function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#go-top").click(function() {
|
$("#go-top").on('click',function() {
|
||||||
$("html, body").animate({ scrollTop: 0 }, "slow");
|
$("html, body").animate({ scrollTop: 0 }, "slow");
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
$(window).scroll(function() {
|
$(window).scroll(function() {
|
||||||
animateGoTop();
|
animateGoTop();
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
function openModulesList() {
|
//media queries - depends of enquire.js
|
||||||
if (!modules_list_loaded)
|
enquire.register("screen and (max-width: 992px)", {
|
||||||
{
|
match : function() {
|
||||||
$.ajax({
|
$('body.page-sidebar').addClass('page-sidebar-closed');
|
||||||
type: "POST",
|
},
|
||||||
url : admin_modules_link,
|
unmatch : function() {
|
||||||
async: true,
|
$('body.page-sidebar').removeClass('page-sidebar-closed');
|
||||||
data : {
|
}
|
||||||
ajax : "1",
|
});
|
||||||
controller : "AdminModules",
|
enquire.register("screen and (max-width: 480px)", {
|
||||||
action : "getTabModulesList",
|
match : function() {
|
||||||
tab_modules_list : tab_modules_list,
|
mobileNav();
|
||||||
back_tab_modules_list : window.location.href
|
},
|
||||||
},
|
unmatch : function() {
|
||||||
success : function(data)
|
|
||||||
{
|
}
|
||||||
$('#modules_list_container_tab').html(data).slideDown();
|
});
|
||||||
$('#modules_list_loader').hide();
|
});
|
||||||
modules_list_loaded = true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$('#modules_list_container_tab').slideDown();
|
|
||||||
$('#modules_list_loader').hide();
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
@@ -18,8 +18,7 @@ html, body
|
|||||||
background-image: url('../img/patterns/bedge_grunge.png') // texture
|
background-image: url('../img/patterns/bedge_grunge.png') // texture
|
||||||
|
|
||||||
#content
|
#content
|
||||||
padding: 80px 20px 0
|
padding: 80px 10px 0
|
||||||
margin-left: 240px
|
|
||||||
@include transition-property(margin)
|
@include transition-property(margin)
|
||||||
@include transition-duration(0.4s)
|
@include transition-duration(0.4s)
|
||||||
@include transition-timing-function(ease-out)
|
@include transition-timing-function(ease-out)
|
||||||
@@ -74,11 +73,10 @@ html, body
|
|||||||
.panel-danger .panel-heading
|
.panel-danger .panel-heading
|
||||||
background-color: $badge-notif-color!important
|
background-color: $badge-notif-color!important
|
||||||
form .alert
|
form .alert
|
||||||
clear: both
|
clear: both
|
||||||
|
@media (max-width: $screen-phone)
|
||||||
@media (max-width: $screen-tablet)
|
margin: 0
|
||||||
margin-left: 0
|
padding: 80px 5px 0
|
||||||
width: 100%
|
|
||||||
|
|
||||||
//backward
|
//backward
|
||||||
#nobootstrap
|
#nobootstrap
|
||||||
|
|||||||
@@ -52,6 +52,7 @@
|
|||||||
background-color: black
|
background-color: black
|
||||||
border: none
|
border: none
|
||||||
color: white
|
color: white
|
||||||
|
display: none
|
||||||
#header_employee_box
|
#header_employee_box
|
||||||
@extend .nav
|
@extend .nav
|
||||||
@extend .navbar-nav
|
@extend .navbar-nav
|
||||||
|
|||||||
@@ -1,3 +1,68 @@
|
|||||||
|
#nav-mobile
|
||||||
|
position: absolute
|
||||||
|
top: 37px
|
||||||
|
left: 0
|
||||||
|
width: 50px
|
||||||
|
height: 50px
|
||||||
|
z-index: 500
|
||||||
|
li > a > i
|
||||||
|
display: inline-block
|
||||||
|
height: 30px
|
||||||
|
width: 30px
|
||||||
|
font-size: 20px
|
||||||
|
line-height: 30px
|
||||||
|
color: white
|
||||||
|
text-align: center
|
||||||
|
background: black
|
||||||
|
@include border-radius(40px)
|
||||||
|
#nav-mobile-submenu
|
||||||
|
z-index: 700
|
||||||
|
ul.menu
|
||||||
|
z-index: 600
|
||||||
|
display: none
|
||||||
|
position: absolute
|
||||||
|
top: 54px
|
||||||
|
background: $main-color
|
||||||
|
width: 480px
|
||||||
|
margin: 0 0 100px 0
|
||||||
|
padding: 0
|
||||||
|
border-top: 1px black solid
|
||||||
|
list-style: none
|
||||||
|
li
|
||||||
|
position: relative
|
||||||
|
a
|
||||||
|
display: block
|
||||||
|
position: relative
|
||||||
|
padding: 2px 0 2px 20px
|
||||||
|
border-bottom: 1px solid darken($main-color,10%)
|
||||||
|
font-size: 12px
|
||||||
|
line-height: 40px
|
||||||
|
height: 40px
|
||||||
|
$color: contrast-color($main-color, white, #333, 10%)
|
||||||
|
color: mix($main-color, $color, 30%)
|
||||||
|
background-color: $main-color
|
||||||
|
text-transform: uppercase
|
||||||
|
text-decoration: none
|
||||||
|
@include transition-property(background-color)
|
||||||
|
@include transition-duration(0.4s)
|
||||||
|
@include transition-timing-function(ease-out)
|
||||||
|
i
|
||||||
|
color: lighten($main-color,25%)
|
||||||
|
background-color: darken($main-color,25%)
|
||||||
|
@include transition-property(color)
|
||||||
|
@include transition-duration(0.4s)
|
||||||
|
@include transition-timing-function(ease-out)
|
||||||
|
&:hover
|
||||||
|
background-color: lighten($main-color,10%)
|
||||||
|
color: white
|
||||||
|
i
|
||||||
|
color: white
|
||||||
|
ul.submenu
|
||||||
|
display: none
|
||||||
|
a#nav-mobile-submenu-back
|
||||||
|
background-color: darken($main-color,5%)
|
||||||
|
|
||||||
|
|
||||||
#nav-sidebar
|
#nav-sidebar
|
||||||
position: fixed
|
position: fixed
|
||||||
width: 240px
|
width: 240px
|
||||||
@@ -120,7 +185,7 @@
|
|||||||
color: contrast-color($brand-primary, white, #333, 10%)
|
color: contrast-color($brand-primary, white, #333, 10%)
|
||||||
background-color: $brand-primary
|
background-color: $brand-primary
|
||||||
border-bottom: solid 1px darken($brand-primary,10%)
|
border-bottom: solid 1px darken($brand-primary,10%)
|
||||||
@media (max-width: $screen-tablet)
|
@media (max-width: $screen-phone)
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
#nav-topbar
|
#nav-topbar
|
||||||
@@ -227,7 +292,7 @@
|
|||||||
line-height: 55px
|
line-height: 55px
|
||||||
display: block
|
display: block
|
||||||
background-color: $main-color
|
background-color: $main-color
|
||||||
border-bottom: 3px solid darken($main-color,10%)
|
border-bottom: 4px solid darken($main-color,10%)
|
||||||
color: darken($main-color,30%)
|
color: darken($main-color,30%)
|
||||||
|
|
||||||
.page-topbar
|
.page-topbar
|
||||||
@@ -243,6 +308,9 @@
|
|||||||
.page-head h2.page-title
|
.page-head h2.page-title
|
||||||
padding: 0 0 0 20px
|
padding: 0 0 0 20px
|
||||||
|
|
||||||
|
.page-sidebar
|
||||||
|
#content
|
||||||
|
margin-left: 240px
|
||||||
.page-sidebar-closed
|
.page-sidebar-closed
|
||||||
#nav-sidebar
|
#nav-sidebar
|
||||||
overflow: visible
|
overflow: visible
|
||||||
@@ -269,14 +337,13 @@
|
|||||||
left: 50px
|
left: 50px
|
||||||
width: 200px!important
|
width: 200px!important
|
||||||
#content
|
#content
|
||||||
margin-left: 50px
|
margin-left: 55px
|
||||||
.page-head h2.page-title
|
.page-head h2.page-title
|
||||||
padding: 0 0 0 70px
|
padding: 0 0 0 70px
|
||||||
@media (max-width: $screen-tablet)
|
@media (max-width: $screen-phone)
|
||||||
padding: 0 0 0 20px
|
padding: 0 0 0 20px
|
||||||
@media (max-width: $screen-tablet)
|
@media (max-width: $screen-phone)
|
||||||
margin-left: 0
|
margin-left: 0
|
||||||
width: 100%
|
|
||||||
.submenu_expand
|
.submenu_expand
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
|
|||||||
+31
-1
@@ -1111,7 +1111,7 @@ function quickSelect(elt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//bootstrap BO New fonctions
|
//New Admin fonctions
|
||||||
|
|
||||||
function hideOtherLanguage(id)
|
function hideOtherLanguage(id)
|
||||||
{
|
{
|
||||||
@@ -1138,3 +1138,33 @@ function sendBulkAction(form, action)
|
|||||||
|
|
||||||
$(form).submit();
|
$(form).submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function openModulesList() {
|
||||||
|
if (!modules_list_loaded)
|
||||||
|
{
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url : admin_modules_link,
|
||||||
|
async: true,
|
||||||
|
data : {
|
||||||
|
ajax : "1",
|
||||||
|
controller : "AdminModules",
|
||||||
|
action : "getTabModulesList",
|
||||||
|
tab_modules_list : tab_modules_list,
|
||||||
|
back_tab_modules_list : window.location.href
|
||||||
|
},
|
||||||
|
success : function(data)
|
||||||
|
{
|
||||||
|
$('#modules_list_container_tab').html(data).slideDown();
|
||||||
|
$('#modules_list_loader').hide();
|
||||||
|
modules_list_loaded = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$('#modules_list_container_tab').slideDown();
|
||||||
|
$('#modules_list_loader').hide();
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user