Delete duplicate js and css
Close the form in search in orbit bar
This commit is contained in:
		
							parent
							
								
									d632439f80
								
							
						
					
					
						commit
						0f3a8414be
					
				|  | @ -1,511 +0,0 @@ | |||
| //Global Variables
 | ||||
| $sidebarState = window.localStorage.getItem('sidebarState'); | ||||
| $ua = navigator.userAgent; | ||||
| $.extend($.support, { | ||||
|     touch: "ontouchend" in document | ||||
| }); | ||||
| if($.support.touch) { | ||||
|     mouseenterEvent = clickEvent = "touchstart"; | ||||
| } else { | ||||
|     clickEvent = "click"; | ||||
|     mouseenterEvent = "mouseenter"; | ||||
| }; | ||||
| 
 | ||||
| 
 | ||||
| !function ($) { | ||||
|     // Focus first element
 | ||||
|     $.fn.focusFirstField = function(){ | ||||
|         $this = this; | ||||
|         $this.find(":text:visible:enabled").filter(function(){ | ||||
|             return $(this).parents(":hidden").size() == 0; | ||||
|         }).slice(0,1).focus(); | ||||
|         return this; | ||||
|     } | ||||
| 
 | ||||
| 
 | ||||
|     //Checked Toggle
 | ||||
|     $.fn.togglebox = function () { | ||||
|         var $checked = this; | ||||
|         $checked.each(function() { | ||||
|             if(!$(this).closest('div').hasClass('togglebox')) { | ||||
|                 $(this).wrap('<div class="togglebox" />'); | ||||
|                 $('<label><b></b></label>').insertAfter($(this)); | ||||
|             } | ||||
|         }) | ||||
|         $checked.each(function(i) { | ||||
|             if($(this).attr('type') == "checkbox") { | ||||
|                 if($(this).prop('checked')) { | ||||
|                     $(this).parent('.togglebox').addClass('disabled').closest('li').addClass('disabled'); | ||||
|                 }; | ||||
|                 $(this).on({ | ||||
|                     change: function() { | ||||
|                         $(this).parent('.togglebox').toggleClass('disabled'); | ||||
|                         $(this).closest('tr').toggleClass('disable'); | ||||
|                     } | ||||
|                 }); | ||||
|             }; | ||||
|             if($(this).attr('type') == "radio") { | ||||
|                 if(!$(this).prop('checked')) { | ||||
|                     $(this).parent('.togglebox').addClass('disabled').closest('li').addClass('disabled'); | ||||
|                     $(this).closest('tr').addClass('disable'); | ||||
|                 }; | ||||
|                 $(this).on({ | ||||
|                     change: function() { | ||||
|                         $checked.each(function(i) { | ||||
|                             if(!$(this).parent('.togglebox').hasClass('disabled')) { | ||||
|                                 $(this).parent('.togglebox').toggleClass('disabled'); | ||||
|                                 $(this).closest('tr').toggleClass('disable'); | ||||
|                             }; | ||||
|                         }); | ||||
|                         $(this).parent('.togglebox').toggleClass('disabled') | ||||
|                         $(this).closest('tr').toggleClass('disable'); | ||||
|                     } | ||||
|                 }); | ||||
|             }; | ||||
|             if($('#sitemap').length) { | ||||
|                 $(this).on({ | ||||
|                     change: function() { | ||||
|                         $(this).closest('li').toggleClass('disabled'); | ||||
|                         if($(this).prop('checked')) { | ||||
|                             $(this).attr('checked', 'checked'); | ||||
|                             $(this).parents('h6') | ||||
|                                    .siblings('ul') | ||||
|                                    .find('li') | ||||
|                                    .addClass('disabled') | ||||
|                                    .find('h6 .togglebox') | ||||
|                                    .addClass('disabled') | ||||
|                                    .find('input[type="checkbox"]') | ||||
|                                    .prop('checked', true) | ||||
|                                    .attr('checked', 'checked'); | ||||
|                         } else { | ||||
|                             $(this).removeAttr('checked'); | ||||
|                             $(this).parents('h6') | ||||
|                                    .siblings('ul') | ||||
|                                    .find('li') | ||||
|                                    .removeClass('disabled') | ||||
|                                    .find('h6 .togglebox') | ||||
|                                    .removeClass('disabled') | ||||
|                                    .find('input[type="checkbox"]') | ||||
|                                    .prop('checked', false) | ||||
|                                    .removeAttr('checked'); | ||||
|                         }; | ||||
|                         $('.toggle-check').each(function(i) { | ||||
|                             var len = $(this).closest('ul').children('li').length, | ||||
|                                 checLen = $(this).closest('ul').children('li').find('input[checked]').length, | ||||
|                                 checLen = checLen - $(this).closest('ul').children('li').find('ul').find('input[checked]').length; | ||||
|                             if(len == checLen) { | ||||
|                                 $(this).closest('ul') | ||||
|                                        .parent('li') | ||||
|                                        .addClass('disabled') | ||||
|                                        .children('h6') | ||||
|                                        .find('.togglebox') | ||||
|                                        .addClass('disabled') | ||||
|                                        .find('input[type="checkbox"]') | ||||
|                                        .prop('checked', true) | ||||
|                                        .attr('checked', 'checked'); | ||||
|                             } else { | ||||
|                                 $(this).closest('ul') | ||||
|                                        .parent('li') | ||||
|                                        .removeClass('disabled') | ||||
|                                        .children('h6') | ||||
|                                        .find('.togglebox') | ||||
|                                        .removeClass('disabled') | ||||
|                                        .find('input[type="checkbox"]') | ||||
|                                        .prop('checked', false) | ||||
|                                        .removeAttr('checked'); | ||||
|                             }; | ||||
|                         }); | ||||
|                     }, | ||||
|                 }); | ||||
|             }; | ||||
|         }); | ||||
|     }; | ||||
| 
 | ||||
| 
 | ||||
|     // Search Clear
 | ||||
|     $.fn.searchClear = function (param){ | ||||
|         _defaultSettings = { | ||||
|             inputName: ':input', | ||||
|             inputIcon: 'inputIcon', | ||||
|             clearBtnIcon: 'clearBtnIcon', | ||||
|             liveFilter: false, | ||||
|         }; | ||||
|         _set = $.extend(_defaultSettings, param); | ||||
|         $this = this; | ||||
|         $input = this.find(_set.inputName); | ||||
|         $tmp = '<i class="'+_set.inputIcon+'"></i><i class="'+_set.clearBtnIcon+' search-clear"></i>'; | ||||
|         $input.wrap('<div class="sc-field" />'); | ||||
|         $this.find('.sc-field').prepend($tmp); | ||||
|         $searchClear = $this.find(".search-clear"); | ||||
|         function run(e) { | ||||
|             $searchClear.hide(); | ||||
|             $($input).each(function() { | ||||
|                 if($(this).val().length > 0) { | ||||
|                     $(this).prev($searchClear).show(); | ||||
|                 }else { | ||||
|                     $(this).prev($searchClear).hide(); | ||||
|                 } | ||||
|                 $(this).on("blur keyup", function(){ | ||||
|                     if($(this).val().length > 0) { | ||||
|                         $(this).prev($searchClear).show(); | ||||
|                     }else { | ||||
|                         $(this).prev($searchClear).hide(); | ||||
|                     } | ||||
|                 }); | ||||
|                 if(_set.liveFilter) { | ||||
|                     $(this).prevAll($searchClear).on({ | ||||
|                         click: function(){ | ||||
|                             $(this).hide(); | ||||
|                             $(this).next($input).val(""); | ||||
|                             $('.checkbox-card .mark').removeClass('mark') | ||||
|                         }, | ||||
|                     }); | ||||
|                 } else { | ||||
|                     $(this).prevAll($searchClear).on({ | ||||
|                         click: function(){ | ||||
|                             $(this).hide(); | ||||
|                             $(this).next($input).val(""); | ||||
|                         }, | ||||
|                     }); | ||||
|                 } | ||||
|             }); | ||||
|         } | ||||
|          | ||||
|         // Checking IE10
 | ||||
|         // if Windows 8 and IE is ture. remove search clear buttom and fix text input padding-right
 | ||||
|         if(/Windows NT 6.2/g.test(navigator.userAgent)){ | ||||
|             if(/MSIE/g.test(navigator.userAgent)){ | ||||
|                 $searchClear.remove(); | ||||
|                 $input.css({ | ||||
|                     'padding-right': '5px', | ||||
|                 }); | ||||
|             }else{run()} | ||||
|         }else{run()} | ||||
|     } | ||||
| 
 | ||||
| 
 | ||||
|     // Fixed Nav
 | ||||
|     fixedNav = function () { | ||||
|         if($('.fixed-nav').length){ | ||||
|             var $fixedNav = $('.fixed-nav'); | ||||
|             if($sidebarState){ | ||||
|                 $fixedNav.addClass('open'); | ||||
|             } | ||||
|             $fixedNav.on(clickEvent, function() { | ||||
|                 if($sidebarState) { | ||||
|                     window.localStorage.removeItem('sidebarState'); | ||||
|                     $fixedNav.removeClass('open'); | ||||
|                 }else{ | ||||
|                     window.localStorage.setItem('sidebarState', 1); | ||||
|                     $fixedNav.addClass('open'); | ||||
|                 } | ||||
|                 $sidebarState = window.localStorage.getItem('sidebarState') | ||||
|             }); | ||||
|         } | ||||
|     }; | ||||
| 
 | ||||
| 
 | ||||
|     // Sidebar
 | ||||
|     sidebarNav = function () { | ||||
|         var $sidebar = $('#sidebar'), | ||||
|             $sidebarMenu = $('#sidebar-menu'), | ||||
|             $scroller = $('.scroller'), | ||||
|             $sidebarNav = $('.sidebar-nav'), | ||||
|             $el = $('.sidebar-nav').children('li'), | ||||
|             $elIndex = null, | ||||
|             $blockList = $('.sub-nav-block-list'), | ||||
|             $block = $('.sub-nav-block'), | ||||
|             $blockIndex = 0, | ||||
|             $arrow = $('.sub-nav-arrow'), | ||||
|             $wrap = $('#main-wrap'), | ||||
|             $wrapLeft = $wrap.css('margin-left'), | ||||
|             $position = 0, | ||||
|             $arrowHeightFormat = $('.position').height()-8; | ||||
|         if($('#sidebar').length>0) { | ||||
|             $wrap.css({'margin-left': 61}); | ||||
|             $wrapLeft = 61; | ||||
|         } | ||||
|         if($el.hasClass('active')) { | ||||
|             // Menu defaults active
 | ||||
|             $elIndex = $el.filter('.active').index(); | ||||
|             if($sidebarState && !$sidebarNav.hasClass('no-sub-nav')) { | ||||
|                 $block.eq($elIndex).addClass('show'); | ||||
|                 $blockList.css({'width': 180}); | ||||
|                 $wrap.css({ | ||||
|                     'margin-left': 241, | ||||
|                 }); | ||||
|             } | ||||
| 
 | ||||
|             // Arrow defaults position
 | ||||
|             $position = $el.eq($elIndex).offset().top-$el.eq($elIndex).height()/2+$arrowHeightFormat-$(document).scrollTop(); | ||||
|             $arrow.css({ | ||||
|                 'top': $position, | ||||
|             }); | ||||
|         } | ||||
|         if($.support.touch && !$sidebarNav.hasClass('no-sub-nav')) { | ||||
|             $el.find('a').removeAttr('href'); | ||||
|         }; | ||||
|         $el.on(mouseenterEvent, function(e) { | ||||
|             $block.siblings().removeClass('show').eq($(this).index()).addClass('show'); | ||||
|             $arrow.stop(true, false).animate({ | ||||
|                 top: ($(this).offset().top-$(this).height()/2)+$arrowHeightFormat-$(document).scrollTop(), | ||||
|             },{ | ||||
|                 duration: 500, | ||||
|                 easing: 'easeInOutBack', | ||||
|             }); | ||||
|             if(!$sidebarState || !$el.hasClass('active')) { | ||||
|                 $blockList.css({'width': 180}); | ||||
|                 if($('#pageslide').length) { | ||||
|                     if($('#pageslide').is(":hidden")) { | ||||
|                         $wrap.css({ | ||||
|                             'margin-left': $blockList.width()+$sidebarNav.width(), | ||||
|                         }); | ||||
|                     } | ||||
|                 }else{ | ||||
|                     $wrap.css({ | ||||
|                         'margin-left': $blockList.width()+$sidebarNav.width(), | ||||
|                     }); | ||||
|                 } | ||||
|                 // if($('.topnav').length) {
 | ||||
|                 //     $('.topnav').css({
 | ||||
|                 //         'left': $blockList.width()+$sidebarNav.width()+20,
 | ||||
|                 //     });
 | ||||
|                 // }
 | ||||
|                 if($('.bottomnav').length) { | ||||
|                     $('.bottomnav').css({ | ||||
|                         'left': $blockList.width()+$sidebarNav.width()+20, | ||||
|                     }); | ||||
|                 } | ||||
|                 $sidebar.css({ | ||||
|                     'width': $blockList.width()+$sidebarNav.width(), | ||||
|                 }); | ||||
|             } | ||||
|         }); | ||||
|         if ($sidebarNav.hasClass('no-sub-nav')) { | ||||
|             $sidebar.on('mouseleave', function() { | ||||
|                 $arrow.stop(true, false).animate({ | ||||
|                     'top': $position, | ||||
|                 },{ | ||||
|                     duration: 500, | ||||
|                     easing: 'easeInOutBack', | ||||
|                 }); | ||||
|             }) | ||||
|         }; | ||||
|         // $el.on('mouseleave', function() {
 | ||||
|         //     $el.hasClass('active') ? $position = $el.eq($elIndex).offset().top-$el.eq($elIndex).height()/2+$arrowHeightFormat-$(document).scrollTop() : 0;
 | ||||
|         //     $(this).hasClass('active') ? '':$(this).children('span').removeClass('hover');
 | ||||
|         // });
 | ||||
|         $block.on({ | ||||
|             mouseenter: function() { | ||||
|                 $blockIndex = $block.filter('.sub-nav-block show').index(); | ||||
|                 $el.eq($blockIndex).hasClass('active') ? '':$el.eq($blockIndex).children('span').addClass('hover'); | ||||
|             }, | ||||
|             mouseleave: function() { | ||||
|                 $block.removeClass('show'); | ||||
|                 if(!$sidebarState || !$el.hasClass('active')) { | ||||
|                     $blockList.css({'width': 0}); | ||||
|                     if($('#pageslide').length) { | ||||
|                         if($('#pageslide').is(":hidden")) { | ||||
|                             $wrap.css({ | ||||
|                                 'margin-left': $wrapLeft, | ||||
|                             }); | ||||
|                             // if($('.topnav').length) {
 | ||||
|                             //     if($sidebarState) {
 | ||||
|                             //         $('.topnav').css({
 | ||||
|                             //             'left': 261,
 | ||||
|                             //         });
 | ||||
|                             //     }
 | ||||
|                             // }
 | ||||
|                         } | ||||
|                     } else { | ||||
|                         $wrap.css({ | ||||
|                             'margin-left': $blockList.width()+$sidebarNav.width(), | ||||
|                         }); | ||||
|                     } | ||||
|                     // if($('.topnav').length) {
 | ||||
|                     //     $('.topnav').css({
 | ||||
|                     //         'left': $blockList.width()+$sidebarNav.width()+20,
 | ||||
|                     //     });
 | ||||
|                     // }
 | ||||
|                     if($('.bottomnav').length) { | ||||
|                         $('.bottomnav').css({ | ||||
|                             'left': $blockList.width()+$sidebarNav.width()+20, | ||||
|                         }); | ||||
|                     } | ||||
|                     $sidebar.css({'width': 61}); | ||||
|                 }else{ | ||||
|                     $block.eq($elIndex).addClass('show'); | ||||
|                 }; | ||||
| 
 | ||||
| 
 | ||||
|                 if($elIndex === null) { | ||||
|                     $position = 0; | ||||
|                 } else { | ||||
|                     $position = $el.eq($elIndex).offset().top-$el.eq($elIndex).height()/2+$arrowHeightFormat-$(document).scrollTop(); | ||||
|                 } | ||||
|                 $arrow.stop(true, false).animate({ | ||||
|                     top: $position, | ||||
|                 },{ | ||||
|                     duration: 500, | ||||
|                     easing: 'easeInOutBack', | ||||
|                 }); | ||||
|             } | ||||
|         }); | ||||
|         // Touch Start
 | ||||
|         $wrap.on({ | ||||
|             touchstart: function() { | ||||
|                 if(!$sidebarState || !$el.hasClass('active')) { | ||||
|                     if($block.hasClass('show')) { | ||||
|                         $blockIndex = $block.filter('.sub-nav-block show').index(); | ||||
|                         $block.removeClass('show'); | ||||
|                         $blockList.css({'width': 0}); | ||||
|                         $wrap.css({ | ||||
|                             'margin-left': $wrapLeft, | ||||
|                         }); | ||||
|                         $sidebar.css({'width': 61}); | ||||
|                         $arrow.stop().animate({ | ||||
|                             top: $position, | ||||
|                         },{ | ||||
|                             duration: 500, | ||||
|                             easing: 'easeInOutBack', | ||||
|                         }); | ||||
|                         $el.eq($blockIndex).hasClass('active') ? '':$el.eq($blockIndex).children('span').removeClass('hover'); | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|         }); | ||||
|         // Sidebar Nav Drag
 | ||||
|         if(/MSIE 8.0/g.test($ua)){ | ||||
|             $sidebarMenu.addClass('nano') | ||||
|                         .css({'position': 'relative', 'top': '0px'}) | ||||
|                         .children('.scroller') | ||||
|                         .addClass('content') | ||||
|                         .removeClass('scroller'); | ||||
|             $sidebarMenu.nanoScroller({ scrollTop: 0 }); | ||||
|         } else { | ||||
|             if($('#sidebar').length) { | ||||
|                 var sidebarMenu = new iScroll('sidebar-menu', { | ||||
|                     vScrollbar: true, | ||||
|                     scrollbarClass: 'myScrollbar', | ||||
|                     onBeforeScrollStart: function (e) { | ||||
|                         var target = e.target; | ||||
|                         clearTimeout(this.hoverTimeout); | ||||
|                         while (target.nodeName != "SPAN") target = target.parentNode; | ||||
|                         $target = $(target.parentNode).index(); | ||||
|                     }, | ||||
|                     touch: function () { | ||||
|                         if (this.hoverTarget) { | ||||
|                             clearTimeout(this.hoverTimeout); | ||||
|                             $('.sub-nav-block').removeClass('show') | ||||
|                             $('.sub-nav-block').eq($target).addClass('show') | ||||
|                         } | ||||
|                     }, | ||||
|                 }); | ||||
|             } | ||||
|         }; | ||||
|     }; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|     // Initial State
 | ||||
|     initialState = function () { | ||||
|         if($('.bottomnav').length) { | ||||
|             var $bottomnavHeight = $('.bottomnav').outerHeight(); | ||||
|             $('.wrap-inner').css({ | ||||
|                 'padding-bottom': $bottomnavHeight, | ||||
|             }) | ||||
|             if($sidebarState) { | ||||
|                 if(!$('.sidebar-nav').hasClass('no-sub-nav')) { | ||||
|                     $('.bottomnav').css({ | ||||
|                         'left': 261, | ||||
|                     }); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         // if($('.topnav').length) {
 | ||||
|         //     if($sidebarState) {
 | ||||
|         //         $('.topnav').css({
 | ||||
|         //             'left': 261,
 | ||||
|         //         });
 | ||||
|         //     }
 | ||||
|         // }
 | ||||
|     }; | ||||
| }(window.jQuery); | ||||
| 
 | ||||
| 
 | ||||
| // Open Slide
 | ||||
| function openSlide() { | ||||
|     var $openSlide = $('.open-slide'), | ||||
|         $pageslideW; | ||||
| 
 | ||||
|     $(window).width() > 1440 ? $pageslideW = 1024 : $pageslideW = 954; | ||||
|     $(window).resize(function() { | ||||
|         $(this).width() > 1440 ? $pageslideW = 1024 : $pageslideW = 954; | ||||
|     }) | ||||
|     $openSlide.each(function() { | ||||
|         if($(this).hasClass('view-page')) { | ||||
|             $(this).pageslide({ W: $pageslideW, iframe: true}); | ||||
|         } else if($('.item-groups').length) { | ||||
|             $(this).pageslide({ W: 324}); | ||||
|         } else { | ||||
|              $(this).pageslide(); | ||||
|         }; | ||||
|     }); | ||||
|     $('.bottomnav .open-slide').on('click', function() { | ||||
|         $('.table tr').removeClass('active'); | ||||
|         $('.filter-item').removeClass('active') | ||||
|     }); | ||||
| } | ||||
| 
 | ||||
| function formTip() { | ||||
|     if($('.main-forms').length && $('.add-on').length) { | ||||
|         $('.main-forms .add-on').tooltip(); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| // Document Ready
 | ||||
| $(function() { | ||||
|     initialState(); | ||||
|     $('#login').on('shown', function () { | ||||
|         $(document.body).addClass('modalBlur'); | ||||
|         $('#login').focusFirstField(); | ||||
|     }).on("hide", function() { | ||||
|         $(document.body).removeClass('modalBlur'); | ||||
|     }); | ||||
|     $('#orbit-bar .searchClear').searchClear({ | ||||
|         inputName: '.search-query', | ||||
|         inputIcon: 'icon-search', | ||||
|         clearBtnIcon: 'icons-cross-3', | ||||
| 
 | ||||
|     }); | ||||
|     $('#filter .searchClear').searchClear({ | ||||
|         inputName: '.search-query', | ||||
|         inputIcon: 'icon-search', | ||||
|         clearBtnIcon: 'icons-cross-3', | ||||
|         liveFilter: true, | ||||
|     }); | ||||
|     $('#member-filter').on('shown', function() { | ||||
|         $(this).find('.nano').nanoScroller({ scrollTop: 0, iOSNativeScrolling: true }); | ||||
|     }); | ||||
|     if($('#sidebar').length) { | ||||
|         if(!/MSIE 8.0/g.test(navigator.userAgent)){ | ||||
|             document.getElementById('sidebar').addEventListener('touchmove', function (e) { e.preventDefault(); }, false); | ||||
|         } | ||||
|         demo_fu1(); | ||||
|     } | ||||
|     if($('#pageslide').length) { | ||||
|         openSlide(); | ||||
|     } | ||||
|     if($('.tags').length) { | ||||
|         $('#filter-input').fastLiveFilter('#tags-list', '.filter-item', '.tag'); | ||||
|     } | ||||
|     if($('#card-list').length) { | ||||
|         $('#filter-input').fastLiveFilter('#card-list', '.filter-item', '.user-name'); | ||||
|     } | ||||
|     if($('.toggle-check').length) { | ||||
|         $('.toggle-check').togglebox(); | ||||
|     } | ||||
|     formTip() | ||||
|     sidebarNav(); | ||||
| }); | ||||
|  | @ -1,493 +0,0 @@ | |||
| a:focus { | ||||
|     outline: thin dotted; | ||||
| } | ||||
| a:active, | ||||
| a:hover { | ||||
|     outline: 0; | ||||
| } | ||||
| /**:link, | ||||
| *:visited, | ||||
| *:hover, | ||||
| *:active, | ||||
| *:focus, | ||||
| .transition { | ||||
|   -webkit-transition: all .2s linear; | ||||
|      -moz-transition: all .2s linear; | ||||
|        -o-transition: all .2s linear; | ||||
|           transition: all .2s linear; | ||||
| } | ||||
| .dont-move, #sidebar, #main-wrap, #sidebar-menu .scroller, .sub-nav-block-list { | ||||
|   -webkit-transition: none; | ||||
|      -moz-transition: none; | ||||
|        -o-transition: none; | ||||
|           transition: none; | ||||
| }*/ | ||||
| ::selection { | ||||
|   color: white; | ||||
|   background: black; | ||||
|   text-shadow: none !important; | ||||
| } | ||||
| /*::-webkit-scrollbar { | ||||
|     width: 10px; | ||||
| } | ||||
| ::-webkit-scrollbar-track { | ||||
|     background: #FFF; | ||||
|     -webkit-box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1); | ||||
| } | ||||
| ::-webkit-scrollbar-thumb { | ||||
|     background: #CCC; | ||||
|     -webkit-box-shadow: inset 1px 1px 2px rgba(0,0,0,0.2); | ||||
| } | ||||
| ::-webkit-scrollbar-thumb:hover { | ||||
|     background: #AAA; | ||||
| } | ||||
| ::-webkit-scrollbar-thumb:active { | ||||
|     background: #888; | ||||
|     -webkit-box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3); | ||||
| }*/ | ||||
| input:focus::-webkit-input-placeholder { | ||||
|     color: transparent; | ||||
| } | ||||
| body { | ||||
|   background-color: #F3F3F3; | ||||
|   font-family: 'Chivo'; | ||||
| } | ||||
| body.modalBlur > nav, | ||||
| body.modalBlur > section { | ||||
|   -webkit-filter: blur(5px); | ||||
| } | ||||
| .label { | ||||
|   font-family: 'Open Sans'; | ||||
| } | ||||
| .btn { | ||||
|   font-family: 'Varela Round'; | ||||
|   letter-spacing: -.4px; | ||||
| } | ||||
| h1, | ||||
| h2, | ||||
| h3, | ||||
| h4, | ||||
| h5, | ||||
| h6, | ||||
| label, | ||||
| legend { | ||||
|   font-family: 'Raleway'; | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| /* Sidebar */ | ||||
| #sidebar { | ||||
|   top: 0; | ||||
|   left: 0; | ||||
|   bottom: 0; | ||||
|   min-width: 61px; | ||||
|   z-index: 1030; | ||||
|   position: fixed; | ||||
|   background-color: #171717; | ||||
|   -webkit-box-shadow: inset -1px 0px 10px #000000; | ||||
|      -moz-box-shadow: inset -1px 0px 10px #000000; | ||||
|        -o-box-shadow: inset -1px 0px 10px #000000; | ||||
|           box-shadow: inset -1px 0px 10px #000000; | ||||
| } | ||||
| #sidebar #sidebar-menu { | ||||
|   position: absolute; | ||||
|   top: 88px; | ||||
|   bottom: 0; | ||||
|   z-index: 1; | ||||
|   display: block; | ||||
|   width: 61px; | ||||
|   /*overflow: auto;*/ | ||||
| } | ||||
| #sidebar .scroller { | ||||
|   position: absolute; | ||||
|   z-index:1; | ||||
|   /*-webkit-touch-callout:none;*/ | ||||
|   -webkit-tap-highlight-color:rgba(0,0,0,0); | ||||
|   width:100%; | ||||
|   padding:0; | ||||
| } | ||||
| #sidebar-menu .content, | ||||
| #sidebar-menu .pane { | ||||
|   margin-top: 88px; | ||||
| } | ||||
| #sidebar .sidebar-nav { | ||||
|   margin: 0; | ||||
|   padding: 0; | ||||
|   height: 100%; | ||||
|   font-size: 1em; | ||||
|   width: 61px; | ||||
|   text-align: center; | ||||
|   list-style: none; | ||||
| } | ||||
| #sidebar > h2.position { | ||||
|   top: 40px; | ||||
|   margin: 0; | ||||
|   width: 61px; | ||||
|   color: #FFFFFF; | ||||
|   font-weight: normal; | ||||
|   font-size: 2.4em; | ||||
|   line-height: 47px; | ||||
|   line-height: 46px\9; | ||||
|   text-align: center; | ||||
|   position: absolute; | ||||
|   background-color: #08c; | ||||
|   background-image: -moz-linear-gradient(top, #08c, #006091); | ||||
|   background-image: -ms-linear-gradient(top, #08c, #006091); | ||||
|   background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#08c), to(#006091)); | ||||
|   background-image: -webkit-linear-gradient(top, #08c, #006091); | ||||
|   background-image: -o-linear-gradient(top, #08c, #006091); | ||||
|   background-image: linear-gradient(top, #08c, #006091); | ||||
|   -webkit-box-shadow: 0px 1px 0px #333333; | ||||
|      -moz-box-shadow: 0px 1px 0px #333333; | ||||
|        -o-box-shadow: 0px 1px 0px #333333; | ||||
|           box-shadow: 0px 1px 0px #333333; | ||||
| } | ||||
| #sidebar > h2.position:after { | ||||
|   left: 50%; | ||||
|   bottom: 0; | ||||
|   width: 0px; | ||||
|   height: 0px; | ||||
|   content: " "; | ||||
|   display: block; | ||||
|   margin-left: -6px; | ||||
|   position: absolute; | ||||
|   margin-bottom: -1px; | ||||
|   border-style: solid; | ||||
|   border-width: 0 6px 6px 6px; | ||||
|   border-color: transparent transparent #171717 transparent; | ||||
| } | ||||
| #sidebar > h2.position a { | ||||
|   color: #FFFFFF; | ||||
|   padding: 6px 6px 5px; | ||||
|   text-decoration: none; | ||||
|   -webkit-text-shadow: 0px -1px 0px #333333; | ||||
|      -moz-text-shadow: 0px -1px 0px #333333; | ||||
|        -o-text-shadow: 0px -1px 0px #333333; | ||||
|           text-shadow: 0px -1px 0px #333333; | ||||
| } | ||||
| #sidebar .sidebar-nav > li { | ||||
|   min-width: 61px; | ||||
|   height: 45px; | ||||
| } | ||||
| #sidebar .sidebar-nav > li.active { | ||||
|   font-size: 1.2em; | ||||
| } | ||||
| #sidebar .sidebar-nav > li.active .sub-nav-block { | ||||
|   display: block; | ||||
| } | ||||
| #sidebar .sidebar-nav > li.active > a > span { | ||||
|   color: #FFFFFF; | ||||
|   cursor: pointer; | ||||
|   -webkit-text-shadow: 0px -1px 0px #636363; | ||||
|      -moz-text-shadow: 0px -1px 0px #636363; | ||||
|        -o-text-shadow: 0px -1px 0px #636363; | ||||
|           text-shadow: 0px -1px 0px #636363; | ||||
| } | ||||
| #sidebar .sidebar-nav > li > a > span { | ||||
|   padding: 10px; | ||||
|   color: #B0B0B0; | ||||
|   display: block; | ||||
|   -webkit-text-shadow: 0px 1px 0px #000000; | ||||
|      -moz-text-shadow: 0px 1px 0px #000000; | ||||
|        -o-text-shadow: 0px 1px 0px #000000; | ||||
|           text-shadow: 0px 1px 0px #000000; | ||||
| } | ||||
| #sidebar .sidebar-nav > li > a > span > i { | ||||
|   font-size: 1.7em; | ||||
| } | ||||
| #sidebar .sub-nav-block-list { | ||||
|   top: 40px; | ||||
|   bottom: 0; | ||||
|   left: 61px; | ||||
|   position: fixed; | ||||
|   text-align: left; | ||||
|   /*overflow: hidden;*/ | ||||
|   -webkit-box-shadow: -1px 0px 10px rgba(33, 33, 33, .8); | ||||
|      -moz-box-shadow: -1px 0px 10px rgba(33, 33, 33, .8); | ||||
|        -o-box-shadow: -1px 0px 10px rgba(33, 33, 33, .8); | ||||
|           box-shadow: -1px 0px 10px rgba(33, 33, 33, .8); | ||||
| } | ||||
| #sidebar .sub-nav-block-list .sub-nav-block { | ||||
|   top: 0; | ||||
|   left: 0; | ||||
|   right: 0; | ||||
|   bottom: 0; | ||||
|   display: none; | ||||
|   position: absolute; | ||||
|   background-color: #0088CC; | ||||
| } | ||||
| #sidebar .sub-nav-block-list .sub-nav-block.show { | ||||
|   display: block; | ||||
|   overflow: hidden; | ||||
| } | ||||
| #sidebar .sub-nav-block-list .sub-nav-block:before { | ||||
|   bottom: 0px; | ||||
|   right: -20px; | ||||
|   opacity: .1; | ||||
|   color: #FFFFFF; | ||||
|   font-size: 14em; | ||||
|   line-height: 150px; | ||||
|   position: absolute; | ||||
|   display: none\9; /* 用IE的去死 */ | ||||
| } | ||||
| #sidebar .sub-nav-block-list .sub-nav-block h4 { | ||||
|   color: #FFFFFF; | ||||
|   margin-top: 15px; | ||||
|   font-weight: normal; | ||||
|   padding: 0 15px 10px; | ||||
|   border-bottom: 1px solid #1C9BCC; | ||||
| } | ||||
| #sidebar .sub-nav-block-list .sub-nav-block > ul { | ||||
|   position: relative; | ||||
|   z-index: 2; | ||||
| } | ||||
| #sidebar .sub-nav-block-list .sub-nav-block a { | ||||
|   line-height: 25px; | ||||
|   color: #90D0FA; | ||||
|   -webkit-text-shadow: none; | ||||
|      -moz-text-shadow: none; | ||||
|        -o-text-shadow: none; | ||||
|           text-shadow: none; | ||||
| } | ||||
| #sidebar .sub-nav-block-list .sub-nav-block li.active a { | ||||
|   background-color: #EEEEEE; | ||||
|   color: #0081c2; | ||||
|   position: relative; | ||||
| } | ||||
| #sidebar .sub-nav-block-list .sub-nav-block li.active a:after { | ||||
|   top: 50%; | ||||
|   right: 10px; | ||||
|   width: auto; | ||||
|   height: auto; | ||||
|   display: inline; | ||||
|   content: "\e0d4"; | ||||
|   font-size: 1.3em; | ||||
|   position: absolute; | ||||
|   font-style: normal; | ||||
|   font-weight: normal; | ||||
|   margin-top: -0.75em; | ||||
|   font-family: 'entypo'; | ||||
|   text-decoration: inherit; | ||||
| } | ||||
| #sidebar .sub-nav-block-list .sub-nav-block a:hover { | ||||
|   color: #0081c2; | ||||
| } | ||||
| #sidebar .sub-nav-arrow { | ||||
|   left: 53px; | ||||
|   top: -10px; | ||||
|   width: 0px; | ||||
|   height: 0px; | ||||
|   z-index: -1; | ||||
|   position: absolute; | ||||
|   border-style: solid; | ||||
|   border-width: 8px 8px 8px 0; | ||||
|   border-color: transparent #0088CC transparent transparent; | ||||
|   display: none\9; /* 用IE的去死 */ | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| /* Vertical Scrollbar */ | ||||
| #sidebar .myScrollbarV { | ||||
|   position: absolute; | ||||
|   z-index: 100; | ||||
|   width: 2px; | ||||
|   bottom: 2px; | ||||
|   top: 2px; | ||||
|   left: 1px | ||||
| } | ||||
| 
 | ||||
| #sidebar .myScrollbarV > div { | ||||
|   position: absolute; | ||||
|   z-index: 100; | ||||
|   width: 100%; | ||||
|   border-radius: 1px; | ||||
|   background-color: rgba(0, 136, 204, .3); | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| /* Main Wrap */ | ||||
| #main-wrap { | ||||
|   padding-top: 40px; | ||||
| } | ||||
| #main-wrap .wrap-inner { | ||||
|   padding: 60px 20px 20px; | ||||
| } | ||||
| #main-wrap .wrap-inner.initial { | ||||
|   padding: 20px 20px 20px; | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| /* Member Filter */ | ||||
| #member-filter.modal { | ||||
|   width: 80%; | ||||
|   margin-left: -40%; | ||||
| } | ||||
| #member-filter.modal.fade.in { | ||||
|   top: 50px; | ||||
| } | ||||
| #member-filter .modal-body { | ||||
|   max-height: 425px; | ||||
| } | ||||
| #member-filter .modal-body form { | ||||
|   margin-bottom: 0px; | ||||
| } | ||||
| #member-filter .modal-body form fieldset { | ||||
|   min-height: 360px; | ||||
| } | ||||
| #member-filter .modal-body .radio.inline, | ||||
| #member-filter .modal-body .checkbox.inline { | ||||
|   display: inline-block; | ||||
|   padding-top: 5px; | ||||
|   margin-bottom: 0; | ||||
|   vertical-align: middle; | ||||
|   min-width: 100px; | ||||
|   margin-left: 0; | ||||
| } | ||||
| #member-filter .modal-body .form-actions { | ||||
|   margin: 20px 0 0; | ||||
|   padding: 10px 0 0; | ||||
|   background-color: transparent; | ||||
|   text-align: right; | ||||
| } | ||||
| #member-filter .modal-body .form-actions.condition { | ||||
|   margin: 10px 0 0 195px; | ||||
| } | ||||
| #member-filter .modal-body .tabs-left > .nano { | ||||
|   width: 160px; | ||||
|   min-height: 425px; | ||||
|   float: left; | ||||
|   margin-right: 10px; | ||||
|   padding-right: 20px; | ||||
| } | ||||
| #member-filter .modal-body .tabs-left > .nano .content { | ||||
|   right: 20px; | ||||
|   outline: none; | ||||
| } | ||||
| #member-filter .modal-body .tabs-left > .nano .pane { | ||||
|   right: 0px; | ||||
| } | ||||
| #member-filter .modal-body .tabs-left > .nano > .content > .nav-tabs { | ||||
|   width: 140px; | ||||
|   float: left; | ||||
|   margin-bottom: 0; | ||||
|   margin-right: 0; | ||||
|   border-right: 1px solid #ddd; | ||||
|   border-bottom: none; | ||||
| } | ||||
| #member-filter .modal-body .tabs-left > .nano > .content > .nav-tabs > li { | ||||
|   float: none; | ||||
| } | ||||
| #member-filter .modal-body .tabs-left > .nano > .content > .nav-tabs > li > a { | ||||
|   min-width: 74px; | ||||
|   margin-right: 0; | ||||
|   margin-bottom: 3px; | ||||
| } | ||||
| #member-filter .modal-body .tabs-left > .nano > .content > .nav-tabs > li > a { | ||||
|   margin-right: -1px; | ||||
|   -webkit-border-radius: 4px 0 0 4px; | ||||
|      -moz-border-radius: 4px 0 0 4px; | ||||
|           border-radius: 4px 0 0 4px; | ||||
| } | ||||
| #member-filter .modal-body .tabs-left > .nano > .content > .nav-tabs > li > a:hover { | ||||
|   border-color: #eeeeee #dddddd #eeeeee #eeeeee; | ||||
| } | ||||
| #member-filter .modal-body .tabs-left > .nano > .content > .nav-tabs .active > a, | ||||
| #member-filter .modal-body .tabs-left > .nano > .content > .nav-tabs .active > a:hover { | ||||
|   border-color: #ddd transparent #ddd #ddd; | ||||
|   *border-right-color: #ffffff; | ||||
| } | ||||
| #member-filter .member-filter-options { | ||||
|   float: left; | ||||
|   display: inline-block; | ||||
|   width: 175px; | ||||
|   min-height: 425px; | ||||
|   margin-right: 10px; | ||||
|   padding: 0 10px 0 0; | ||||
| } | ||||
| #member-filter .member-filter-options select { | ||||
|   width: 165px;  | ||||
| } | ||||
| #member-filter .member-filter-options .btn { | ||||
|   display: block; | ||||
| } | ||||
| #member-filter .member-filter-result { | ||||
|   padding-left: 15px; | ||||
|   min-height: 370px; | ||||
|   width: auto; | ||||
| } | ||||
| 
 | ||||
| /* Search Clear */ | ||||
| .searchClear { | ||||
|   position: relative; | ||||
| } | ||||
| .searchClear .icon-search { | ||||
|   position: absolute; | ||||
|   color: #A3A3A3; | ||||
|   top: 10px; | ||||
|   left: 18px; | ||||
|   font-size: 1.2em; | ||||
| } | ||||
| .searchClear #filter-input { | ||||
|   padding-left: 25px; | ||||
|   padding-right: 25px; | ||||
| } | ||||
| .searchClear .search-clear { | ||||
|   position: absolute; | ||||
|   color: #A3A3A3; | ||||
|   right: 8px; | ||||
|   top: 10px; | ||||
|   font-size: 1.2em; | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| /* Edit link in structure */ | ||||
| .editable { | ||||
|   position: relative; | ||||
|   padding: 0px; | ||||
|   margin: 0px; | ||||
|   min-height: 50px; | ||||
| } | ||||
| .edit_link { | ||||
|   display: none; | ||||
| } | ||||
| .edit_link a { | ||||
|   position: absolute; | ||||
|   z-index: 10; | ||||
|   width: 100%; | ||||
|   height: 100%; | ||||
|   top: 0; | ||||
|   left: 0; | ||||
|   text-indent: -9999px; | ||||
|   background: url(<%= asset_path 'editicon.png' %>) no-repeat center center rgba(255,255,255,.8); | ||||
|   -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 1); | ||||
|   -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 1); | ||||
|   box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 1); | ||||
| } | ||||
| .editable:hover .edit_link { | ||||
|   display: block; | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| /* IE go die */ | ||||
| :root #sidebar .sub-nav-block:before { | ||||
|   display: block\9; | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| /* Responsive */ | ||||
| @media (max-width: 767px) { | ||||
|   body { | ||||
|     padding: 0; | ||||
|   } | ||||
|   #member-filter.modal { | ||||
|     width: auto; | ||||
|     margin-left: auto; | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| @media (max-width: 480px) { | ||||
|   /* Main Wrap */ | ||||
|   #main-wrap .wrap-inner { | ||||
|     padding: 20px 0; | ||||
|   } | ||||
| } | ||||
|  | @ -10,6 +10,7 @@ | |||
|         <input type='hidden' name='domains' value='<%= @site.search["domains"]  rescue ''%>'> | ||||
|         <input type='hidden' name='sitesearch' value='<%= @site.search["sitesearch"] rescue '' %>'> | ||||
|         <%= text_field_tag 'q','', {:class => "search-query input-medium", :placeholder => t(:search_google), 'x-webkit-speech' => ''} %> | ||||
|       </form> | ||||
|     </li> | ||||
| 
 | ||||
|     <!-- Language --> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue