From fff061f7088245d5a31f4c511e3d12790182e026 Mon Sep 17 00:00:00 2001 From: rulingcom Date: Fri, 21 Jan 2022 05:25:52 +0000 Subject: [PATCH] fix error --- assets/javascripts/app.js | 12 +++++++----- assets/stylesheets/template/template.scss | 13 +++++++++++++ 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 4586f98..1ffdc53 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -528,7 +528,8 @@ if($('*[data-list] tr td a').eq(i).html().trim()=="") $('*[data-list] tr td a').eq(i).parent('td').parent('tr').remove(); // tab按鍵選到menu,會顯示下層的menu(為了符合無障礙) - $('.nav-level-0>li>a').focus(function(e) { + /* + $('.nav-level-0>li>a').focus(function(e) { e.stopPropagation(); $(this).parent().focus(); if ($(this).parent().find('.nav-level-1').hasClass('show')) { @@ -546,6 +547,7 @@ } }); $('show').parent('li').focus(); + */ } forFreeGo(); $(document).on('touchstart','a',function(e){ @@ -864,15 +866,15 @@ function transdate(){ function calc_menu_pos(){ if ($(window).outerWidth() < 769){ calc_menu_flag = false; - $('.modules-menu-level-1').css('right','') - $('.modules-menu-level-1').css('width','') + $('.outdropdowns .modules-menu-level-1').css('right','') + $('.outdropdowns .modules-menu-level-1').css('width','') }else{ var width = $('#main-nav').outerWidth(); var right = $(window).width() - $('#main-nav').offset().left - width; if (width>50){ calc_menu_flag = true; - $('.modules-menu-level-1').css('right',right); - $('.modules-menu-level-1').css('width',width); + $('.outdropdowns .modules-menu-level-1').css('right',right); + $('.outdropdowns .modules-menu-level-1').css('width',width); } } } diff --git a/assets/stylesheets/template/template.scss b/assets/stylesheets/template/template.scss index dd418fa..1dd5a3b 100644 --- a/assets/stylesheets/template/template.scss +++ b/assets/stylesheets/template/template.scss @@ -33,6 +33,19 @@ div.weather_widget1{ padding: 1em 5% 3em; } +.kenmenu{ + .modules-menu-level-0{ + padding-right: 2em; + li{ + position: relative; + &>ul{ + left: 0; + white-space: nowrap; + padding-right: 2em; + } + } + } +} div.extra-box:empty { display: none; }