diff --git a/assets/images/banner-deco.svg b/assets/images/banner-deco.svg deleted file mode 100644 index f60c8d3..0000000 --- a/assets/images/banner-deco.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/assets/images/banner-deco2.svg b/assets/images/banner-deco2.svg deleted file mode 100644 index b855232..0000000 --- a/assets/images/banner-deco2.svg +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 97f3bc8..3c2112a 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -3910,4 +3910,32 @@ $(function() { fixBannerA11yByLang(); }); +//檔名無障礙 +$(function() { + function fixAnncFileTitleExt() { + setTimeout(function() { + $('.s-annc__flie-title').each(function() { + var $a = $(this); + var href = $a.attr('href') || ''; + var linkText = $a.text().trim(); + + // ✅ 從 href 取得副檔名 + var extMatch = href.match(/\.(pdf|doc|docx|xls|xlsx|ppt|pptx|odt|ods|odp|zip|rar|jpg|png|csv)(\?|$)/i); + if (!extMatch) return; + + var ext = '.' + extMatch[1].toLowerCase(); + + // ✅ 連結文字已有副檔名則跳過 + if (linkText.toLowerCase().endsWith(ext)) return; + + // ✅ 只補連結文字的副檔名,title 不動 + $a.text(linkText + ext); + }); + + }, 1000); // ✅ 比 fixAccessibilityAll 的 800ms 晚,確保 title 由 fixAccessibilityAll 統一處理 + } + + fixAnncFileTitleExt(); +}); + }(jQuery, window)); diff --git a/assets/stylesheets/template/base/_unity.scss b/assets/stylesheets/template/base/_unity.scss index c8c4b5e..eeb65f3 100644 --- a/assets/stylesheets/template/base/_unity.scss +++ b/assets/stylesheets/template/base/_unity.scss @@ -43,6 +43,10 @@ } } } +.w-annc__widget-title span.no-before::before { + display: none !important; + content: none !important; +} // Title .unity-title { clear: both; diff --git a/assets/stylesheets/template/layout/footer.scss b/assets/stylesheets/template/layout/footer.scss index 809ea04..8ced3e9 100644 --- a/assets/stylesheets/template/layout/footer.scss +++ b/assets/stylesheets/template/layout/footer.scss @@ -86,8 +86,8 @@ transform: translateX(-50%); width: 100px; height: 50px; - background:#1a1b20; - top: -59px; + background:$theme-color-second; + top: -49px; border-radius: 100px 100px 0 0; margin: auto; text-align: center; diff --git a/assets/stylesheets/template/modules/ad_banner.scss b/assets/stylesheets/template/modules/ad_banner.scss index 3e2e0d0..fe1a949 100644 --- a/assets/stylesheets/template/modules/ad_banner.scss +++ b/assets/stylesheets/template/modules/ad_banner.scss @@ -265,6 +265,7 @@ ul.button-mid{ visibility: visible !important; @media(max-width:768px){ left: 1em; + bottom: 4em; } } .controlplay{ diff --git a/assets/stylesheets/template/modules/announcement.scss b/assets/stylesheets/template/modules/announcement.scss index 10fd4c7..3a9123f 100644 --- a/assets/stylesheets/template/modules/announcement.scss +++ b/assets/stylesheets/template/modules/announcement.scss @@ -48,7 +48,7 @@ line-height: 1 !important; } .w-annc__status-wrap{ - display: flex; + // display: flex; } .i-annc__status-wrap{ float: left; @@ -65,7 +65,7 @@ .w-annc__item{ padding-bottom: 1em; } -.w-annc .w-annc__subtitle{ +.w-annc .w-annc__subtitle,.w-annc p{ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; @@ -702,6 +702,7 @@ } .w-annc__content-wrap{ padding: 1.5em; + color: #fff; div{ display: -webkit-box; overflow: hidden; @@ -1464,7 +1465,7 @@ width: 100%; display: flex; flex-direction: column; - padding: 0; + padding: 1em; } .w-annc__status-wrap{ @media(max-width:1900px){ @@ -1477,7 +1478,7 @@ flex-wrap: wrap; align-items: center; justify-content: space-between; - padding: 0.75rem 1rem 0.4rem; + padding: 0; .fa, .fa-classic, .fa-regular, .fa-solid, .far, .fas { display: none; @@ -1509,7 +1510,7 @@ } h4, .w-annc__entry-title { - padding: 0 1rem; + padding: 0; margin: 0.2rem 0 0.6rem; } @@ -2071,7 +2072,6 @@ font-size: 0.75rem; } } -// Widget-18 .widget-announcement-18 { .w-annc__title { font-family: $main-font; @@ -2082,9 +2082,9 @@ text-overflow: ellipsis; white-space: normal; } - .w-annc__entry-title { - height: 2em; - } + // .w-annc__entry-title { + // height: 2em; + // } .w-annc__img-wrap { aspect-ratio: 16 / 9; margin:0; @@ -2192,7 +2192,7 @@ .w-annc__item{ vertical-align: top; .w-annc__content-wrap{ - padding: 30px 40px!important; + padding:1em; margin-bottom: 1em; margin-top: 1em; border-radius: 30px!important; diff --git a/modules/ad_banner/_ad_banner_widget2.html.erb b/modules/ad_banner/_ad_banner_widget2.html.erb index e72e764..ce2059c 100644 --- a/modules/ad_banner/_ad_banner_widget2.html.erb +++ b/modules/ad_banner/_ad_banner_widget2.html.erb @@ -29,9 +29,7 @@ - +