From 9659b0d5628de03ef0c720bc44e431d57f3c1ca6 Mon Sep 17 00:00:00 2001 From: ken Date: Thu, 24 Sep 2026 16:05:02 +0800 Subject: [PATCH] up --- .../stylesheets/template/base/_accesskey.scss | 2 +- assets/stylesheets/template/base/_global.scss | 6 +- .../stylesheets/template/layout/content.scss | 2 +- .../stylesheets/template/layout/header.scss | 11 ++- .../template/modules/ad_banner.scss | 21 ++-- .../template/modules/announcement.scss | 6 +- assets/stylesheets/template/modules/menu.scss | 31 ++++-- .../template/modules/universal-table.scss | 4 + .../stylesheets/template/modules/video.scss | 8 +- .../template/modules/web_resource.scss | 6 +- home/index.html.erb | 37 ++----- modules/ad_banner/_ad_banner_widget3.html.erb | 99 +++++++++++++++++++ modules/ad_banner/info.json | 8 ++ 13 files changed, 181 insertions(+), 60 deletions(-) create mode 100644 modules/ad_banner/_ad_banner_widget3.html.erb diff --git a/assets/stylesheets/template/base/_accesskey.scss b/assets/stylesheets/template/base/_accesskey.scss index 3523ed3..4037536 100644 --- a/assets/stylesheets/template/base/_accesskey.scss +++ b/assets/stylesheets/template/base/_accesskey.scss @@ -3,7 +3,7 @@ a[accesskey] { position: absolute; margin-left: -0.9375em; - color: transparent; + color: #333; } #orbit-bar a[accesskey] { diff --git a/assets/stylesheets/template/base/_global.scss b/assets/stylesheets/template/base/_global.scss index 6b06486..ec9fb06 100644 --- a/assets/stylesheets/template/base/_global.scss +++ b/assets/stylesheets/template/base/_global.scss @@ -294,9 +294,9 @@ blockquote ol:last-child, blockquote p:last-child, blockquote ul:last-child { } iframe{ @media(max-width:1024px){ - width: 100%!important; - aspect-ratio: 16 / 9; - height: auto !important; + width: 100%; + // aspect-ratio: 16 / 9; + // height: auto !important; } } diff --git a/assets/stylesheets/template/layout/content.scss b/assets/stylesheets/template/layout/content.scss index 84eba20..281de66 100644 --- a/assets/stylesheets/template/layout/content.scss +++ b/assets/stylesheets/template/layout/content.scss @@ -85,7 +85,7 @@ overflow: hidden; position: relative; width: 100%; - padding-bottom: 3em; + padding-bottom: 1em; padding-top: 1em; // p{ // padding-bottom: 1em; diff --git a/assets/stylesheets/template/layout/header.scss b/assets/stylesheets/template/layout/header.scss index 16dbb0f..d081e64 100644 --- a/assets/stylesheets/template/layout/header.scss +++ b/assets/stylesheets/template/layout/header.scss @@ -101,8 +101,12 @@ sup { } } .navbar-header h1.default_site_h1, .navbar-header h2.default_site_h1{ + @media(max-width:768px){ + font-size: 0.8em; + } display: flex; align-items: center; + padding: 0.5em; } .default_site_h1 { display: flex; @@ -139,6 +143,11 @@ sup { .navbar-header { z-index: 10; position: relative; + @media(max-width:768px){ + display: flex; + align-items: center; + justify-content: space-between; + } padding: 0; margin: 0; display: flex; @@ -195,7 +204,7 @@ sup { float: left; height: 50px; padding-right: 0.5em; - width: auto!important; + width: auto; @media(min-width: 1024px){ height: 50px; } diff --git a/assets/stylesheets/template/modules/ad_banner.scss b/assets/stylesheets/template/modules/ad_banner.scss index af3bb4a..5d5cdb5 100644 --- a/assets/stylesheets/template/modules/ad_banner.scss +++ b/assets/stylesheets/template/modules/ad_banner.scss @@ -468,25 +468,22 @@ ul.button-mid{ // Widget 3 .ba-banner-widget-3 { -.banner-pager .active-slide a { - background: $theme-color-second !important; -} - - .w-ba-banner__wrap { + overflow: hidden; + border-radius: 2em; + .w-ba-banner__image { width: 100%; + height: auto; } - .w-ba-banner__slide { + .youtube, .cycle-youtube { width: 100%; - position: relative; + height: 100%; } - .banner-pager { - right: 0; - bottom: 2em; - li { height: unset; width: unset; } + object, embed { + width: 100%; + height: 100%; } - ul.button-mid { display: none; } } //Widget 4 diff --git a/assets/stylesheets/template/modules/announcement.scss b/assets/stylesheets/template/modules/announcement.scss index f914a2f..7c4492d 100644 --- a/assets/stylesheets/template/modules/announcement.scss +++ b/assets/stylesheets/template/modules/announcement.scss @@ -2308,6 +2308,10 @@ img.w-annc__img { } //widget 15 .widget-announcement-15 { + .w-annc__item_inner{ + -webkit-box-shadow: 0 1px 2px 0 #0000002e; + box-shadow: 0 1px 2px 0 #0000002e; + } .cycle-carousel-wrap { align-items: stretch; } @@ -2356,10 +2360,8 @@ img.w-annc__img { // } .w-annc__img-wrap { - margin: 0; overflow: hidden; - border: 2px solid #333; aspect-ratio: 16 / 9; // @media(min-width:480px)and(max-width:820px){ // height: 9.5em; diff --git a/assets/stylesheets/template/modules/menu.scss b/assets/stylesheets/template/modules/menu.scss index 8b49d3a..ddaaa2e 100644 --- a/assets/stylesheets/template/modules/menu.scss +++ b/assets/stylesheets/template/modules/menu.scss @@ -78,18 +78,33 @@ //固定選單 .navFixed { + @media (max-width: 768px) { + .site-logo { + display: block!important; + -webkit-transition: all .3s ease; + -moz-transition: all .3s ease; + -ms-transition: all .3s ease; + -o-transition: all .3s ease; + transition: all .3s ease; + height: 40px !important; + width: auto !important; + } + .default_site_h1{ + padding: 0.5em !important; + } + .navbar-header .default_site_h1>*{ + display: none; + -webkit-transition: all .3s ease; + -moz-transition: all .3s ease; + -ms-transition: all .3s ease; + -o-transition: all .3s ease; + transition: all .3s ease; + } + } @media (max-width: 768px) { .navbar-header{ position: relative; } - .site-logo { - height: 35px !important; - -webkit-transition: all .3s ease; - -moz-transition: all .3s ease; - -ms-transition: all .3s ease; - -o-transition: all .3s ease; - transition: all .3s ease; - } } .header-nav{ display: none!important; diff --git a/assets/stylesheets/template/modules/universal-table.scss b/assets/stylesheets/template/modules/universal-table.scss index 101aa0e..83055ec 100644 --- a/assets/stylesheets/template/modules/universal-table.scss +++ b/assets/stylesheets/template/modules/universal-table.scss @@ -4,6 +4,10 @@ .universal-th-text{ white-space: pre; } +.btn-info { + background-color: #157d9d; + border-color: #157d9d; +} .universal-table-index h3 { padding: 0; } diff --git a/assets/stylesheets/template/modules/video.scss b/assets/stylesheets/template/modules/video.scss index c1ec642..4f98c88 100644 --- a/assets/stylesheets/template/modules/video.scss +++ b/assets/stylesheets/template/modules/video.scss @@ -453,7 +453,7 @@ font-family: "Noto Sans TC", PingFangTC, 微軟正黑體, "Microsoft JhengHei", sans-serif; font-weight: normal; letter-spacing: 0.3px; - color: #8f8f8f; + color: #707070; line-height: 1.6; cursor: pointer; } @@ -707,7 +707,7 @@ .movie_desc{ clear: both; letter-spacing: 0.3px; - color: #8f8f8f; + color: #707070; line-height: 1.8; } .video_title { @@ -727,7 +727,7 @@ clear: both; } .video_group_time{ - color: #8f8f8f!important; + color: #707070!important; } .movietitle{ margin-bottom: 15px; @@ -905,7 +905,7 @@ } .video_desc{ letter-spacing: 0.3px; - color: #8f8f8f; + color: #707070; line-height: 1.6; max-height: 5em; } diff --git a/assets/stylesheets/template/modules/web_resource.scss b/assets/stylesheets/template/modules/web_resource.scss index a92bb01..c6e38da 100644 --- a/assets/stylesheets/template/modules/web_resource.scss +++ b/assets/stylesheets/template/modules/web_resource.scss @@ -72,7 +72,11 @@ vertical-align: top; } .widget-link { - margin-bottom: 1em; + margin-bottom: 1em; + margin-top: 1em; + .widget-link__more{ + display: none; + } } .morebken{ font-size: 1.2em; diff --git a/home/index.html.erb b/home/index.html.erb index ad08855..4ba145a 100644 --- a/home/index.html.erb +++ b/home/index.html.erb @@ -16,11 +16,15 @@
/accesskey" title="Content">::: -
-
+
+
+
+
+
+
@@ -36,13 +40,6 @@
-
-
- -
- -
-
@@ -53,12 +50,9 @@
+
-
-
- -
-
+
@@ -78,15 +72,7 @@
-
-
@@ -103,15 +89,12 @@
-
-
- -
-
+
+
diff --git a/modules/ad_banner/_ad_banner_widget3.html.erb b/modules/ad_banner/_ad_banner_widget3.html.erb new file mode 100644 index 0000000..dc60869 --- /dev/null +++ b/modules/ad_banner/_ad_banner_widget3.html.erb @@ -0,0 +1,99 @@ + + + \ No newline at end of file diff --git a/modules/ad_banner/info.json b/modules/ad_banner/info.json index ff8db23..c95782f 100644 --- a/modules/ad_banner/info.json +++ b/modules/ad_banner/info.json @@ -40,6 +40,14 @@ }, "thumbnail": "ad_banner2_thumb.png" }, + { + "filename": "ad_banner_widget3", + "name": { + "zh_tw": "P1-1. 純圖片導圓角輪播-標準 ( 圖片, 導航圖示 )", + "en": "P1-1. Pure Image Carousel - Rounded - Standard ( image, navigation )" + }, + "thumbnail": "ad_banner2_thumb.png" + }, { "filename": "ad_banner_widget0", "name": {