diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index e5f8f3b..a43c8e9 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -766,20 +766,20 @@ $(this).attr("style", newStyle); } }); - //表格scope - $("table").each(function() { - $(this).find("tr").each(function(rowIndex) { - $(this).find("th").each(function(colIndex) { - if (rowIndex === 0) { - // 第一列的 th,適用於該欄 - $(this).attr("scope", "col"); - } else if (colIndex === 0) { - // 其他列的第一個 th,適用於該行 - $(this).attr("scope", "row"); - } - }); - }); - }); + // //表格scope + // $("table").each(function() { + // $(this).find("tr").each(function(rowIndex) { + // $(this).find("th").each(function(colIndex) { + // if (rowIndex === 0) { + // // 第一列的 th,適用於該欄 + // $(this).attr("scope", "col"); + // } else if (colIndex === 0) { + // // 其他列的第一個 th,適用於該行 + // $(this).attr("scope", "row"); + // } + // }); + // }); + // }); $(".banner-pager button").addClass('banner-pagerbtn'); $(".banner-pager button").attr("type","button"); $(".banner-pager button").append(''); @@ -3271,6 +3271,36 @@ $(document).ready(function () { fixSortLinkA11y(); fixSearchInputA11y(); }, 500); +}); +//a無障礙空連結 +function removeHiddenContentLinks() { + // 若網址含有 editmode=on 則不執行 + if (window.location.href.indexOf('editmode=on') !== -1) return; + + $('a').each(function () { + var $link = $(this); + + // 若連結本身是 display:none,直接移除 + if ($link.css('display') === 'none') { + $link.remove(); + return; + } + + // 若連結內有子元素,且全部都是 display:none + var $children = $link.children(); + if ($children.length > 0) { + var allHidden = $children.toArray().every(function (child) { + return $(child).css('display') === 'none'; + }); + if (allHidden) { + $link.remove(); + } + } + }); +} + +$(document).ready(function () { + setTimeout(removeHiddenContentLinks, 500); }); // 執行 member等高計算,目前改用flexbox故mark掉 by ika 20160105 // $(window).load(function() { diff --git a/assets/stylesheets/template/base/_global.scss b/assets/stylesheets/template/base/_global.scss index a64aba2..ca67b8d 100644 --- a/assets/stylesheets/template/base/_global.scss +++ b/assets/stylesheets/template/base/_global.scss @@ -11,6 +11,9 @@ display: block } } +#orbit-bar .orbit-bar-menu .orbit-bar-logo{ + cursor: unset!important; +} .login-btn:focus { outline: 0.3125em auto -webkit-focus-ring-color !important; diff --git a/assets/stylesheets/template/layout/content.scss b/assets/stylesheets/template/layout/content.scss index 7e715fd..52f4771 100644 --- a/assets/stylesheets/template/layout/content.scss +++ b/assets/stylesheets/template/layout/content.scss @@ -333,7 +333,7 @@ caption{ } .is-style-vk-check-square-mark{ a{ - color: #337ab7; + color: #1766ab; } li{ position: relative; @@ -360,7 +360,7 @@ caption{ content: "\f078"; /* 展開時 */ } a { - color: #337ab7; + color: #1766ab; } .wp-block-file:not(.wp-element-button) { font-size: .8em; @@ -374,7 +374,7 @@ caption{ padding: .5em 1em; } .wp-block-file--media-cb2bf541-196a-44e5-9f58-96da0b486982{ - color: #337ab7; + color: #1766ab; } .wp-block-file *+.wp-block-file__button { margin-left: .75em; @@ -462,7 +462,7 @@ caption{ } } .has-luminous-vivid-orange-color { - color: #ff6900 !important; + color:#b55008 !important; } .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background-color: #f0f0f0; @@ -547,11 +547,11 @@ caption{ position: absolute; bottom: -1px; width: 30%; - border-bottom: 1px solid #337ab7; + border-bottom: 1px solid #1766ab; } .mainSection-title, h2 { padding: .8em 0 .7em; - border-top: 2px solid #337ab7; + border-top: 2px solid #1766ab; border-bottom: 1px solid #e9e9e9; } } @@ -561,7 +561,7 @@ caption{ font-size: 1em!important; } a{ - color: #337ab7; + color: #1766ab; &:hover{ color: #0056b3; text-decoration: underline; diff --git a/assets/stylesheets/template/modules/menu.scss b/assets/stylesheets/template/modules/menu.scss index c6603e8..a99b25a 100644 --- a/assets/stylesheets/template/modules/menu.scss +++ b/assets/stylesheets/template/modules/menu.scss @@ -493,9 +493,11 @@ & > a { display: block; font-family: $main-font; - color:#fff; font-weight: 500; font-weight: bold; + @media(min-width:769px){ + color:#fff; + } } &:hover { background-color:$theme-color-hover ; diff --git a/modules/custom_gallery/custom_gallery_index1.html.erb b/modules/custom_gallery/custom_gallery_index1.html.erb index 4531ca1..36a731f 100644 --- a/modules/custom_gallery/custom_gallery_index1.html.erb +++ b/modules/custom_gallery/custom_gallery_index1.html.erb @@ -6,7 +6,7 @@
| {{title}} | +{{title}} | {{value}} |
|---|