diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..63f7e31 Binary files /dev/null and b/.DS_Store differ diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/assets/.DS_Store b/assets/.DS_Store new file mode 100644 index 0000000..f042f8b Binary files /dev/null and b/assets/.DS_Store differ diff --git a/assets/images/design_thumb.png b/assets/images/design_thumb.png new file mode 100644 index 0000000..1dd9a0c Binary files /dev/null and b/assets/images/design_thumb.png differ diff --git a/assets/images/headerbanner.jpg b/assets/images/headerbanner.jpg new file mode 100644 index 0000000..459a014 Binary files /dev/null and b/assets/images/headerbanner.jpg differ diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 89dd882..39f187a 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -1,5 +1,5 @@ ;(function($, win, undefined) { - // ECMAScript 5 嚴格模式 + // ECMAScript 5 嚴格模式 'use strict'; // 初始函數: 把所有的程式碼都包在init裡面,方便在之後的jQuery ready 函數裡一次呼叫 @@ -85,7 +85,7 @@ // .removeClass(iconUp) // .addClass(iconDown); - + // // 換掉目前選項的icon // $li // .find('> i') @@ -201,15 +201,15 @@ } }); }, - + }, - + // 移除行動版下拉選單 removeDropdown: function() { var $nav = $('#main-nav'); - + $nav .find('.menu-drop') .remove(); @@ -263,7 +263,7 @@ }); }, - // Multi-column layout, passing ID or class string as parameters and a + // Multi-column layout, passing ID or class string as parameters and a // Bootstrap col class for full width, eg: col-md-12 setColumn: function(leftCol, rightCol, columnCls) { var $leftCol = $(leftCol); @@ -290,7 +290,7 @@ $menu.find('ul[data-menu-level="1"]').parent().addClass('mobile-menu1'); $menu.find('ul[data-menu-level="2"]').parent().addClass('mobile-menu2'); - + var $caret1 = $(''); var $caret2 = $(''); @@ -302,7 +302,7 @@ // 檢查是否已經有dropdown-toggle-icon這個元素,才不會在resize事件中重覆新增 if ($('.has-dropdown.level-1 .menu-drop').length < 1) { $('.mobile-menu1').append($caret1); - + // 如果有第三層選單,新增對應的類別到parent元素上 $('.nav-level-2') @@ -317,7 +317,7 @@ e.preventDefault(); $('.mobile-menu').toggleClass('active'); $('body').toggleClass('noscroll'); - + $('.mobile-menu .navbar-toggle').removeClass('collapsed'); // $menu.slideToggle(); $('.mobile-menu1 > ul').slideUp(500); @@ -336,13 +336,13 @@ $('.mobile-menu2 > .menu-drop').removeClass('opened'); $that.siblings('ul').slideDown(500); $that.addClass('opened'); - + } else if (opencheck1 == 1) { $that.siblings('ul').slideUp(500); $('.mobile-menu2 > ul').slideUp(500); $('.mobile-menu2 > .menu-drop').removeClass('opened'); $that.removeClass('opened'); - + } }) @@ -361,7 +361,7 @@ }) } }; - + // 把orbit物件加到window物件裡面並改名為ORBITFRONT來減少名稱衝突的機會 win.ORBITFRONT = orbit; @@ -449,14 +449,14 @@ $('a').eq(i).attr('title',titlestr); }; }; - // 刪除banner-slide的空連結和空連結目標 + // 刪除banner-slide的空連結和空連結目標 for(var i=0;i<$('.w-ba-banner__slide a').length;i++){ if($('.w-ba-banner__slide a').eq(i).attr('href')=="") $('.w-ba-banner__slide a').eq(i).removeAttr('href'); if($('.w-ba-banner__slide a').eq(i).attr('target') == "") $('.w-ba-banner__slide a').eq(i).removeAttr('target'); }; - // 幫無標題之iframe加上title + // 幫無標題之iframe加上title for(var i=0;i<$('iframe').length;i++) if($('iframe').eq(i).attr('title')=="" || $('iframe').eq(i).attr('title')== undefined ){ if($('iframe').eq(i).attr('src').search('facebook') != -1 ) @@ -470,16 +470,16 @@ else $('iframe').eq(i).attr('title','unknown'); }; - // 刪除空的檔案室 + // 刪除空的檔案室 var archievelen = $('dd a.i-archive-files-item').length; for(i=archievelen-1;i>=0;i--) if($('dd a.i-archive-files-item').eq(i).html().trim()=="") $('dd a.i-archive-files-item').eq(i).parent('dd').remove(); - // 刪除具有空連結欄位的橫列 + // 刪除具有空連結欄位的橫列 for(var i = 0;i < $('*[data-list] tr td a').length ; i++) 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(為了符合無障礙) + // tab按鍵選到menu,會顯示下層的menu(為了符合無障礙) $('.nav-level-0>li>a').focus(function(e) { e.stopPropagation(); $(this).parent().focus(); @@ -510,10 +510,10 @@ //header banner setting if ( location.href.search('editmode=on') != -1 ) { - $('.header-banner').css('z-index','2'); + $('.header-banner').css('z-index','0'); + $('.header-banner').css('position','absolute'); } else { $('.header-banner').css({ - 'position': 'absolute', 'top': '0', 'z-index': '-2', }); @@ -524,7 +524,7 @@ $('.tab_nav').nextAll().addClass('tab_content'); $('.tab_content').css("display","none"); $('.tab_content').eq(0).css('display', 'block'); - + var num = $('.tab_nav li').length; $('.tab_content').eq(num).css('display', 'block'); $('.tab_content').eq(num).nextAll().css('display', 'block'); @@ -592,16 +592,27 @@ extendPanelWidget(); } - - + + // 當文件物件模型(DOM)載入後,執行init函數 $(document).ready(function() { + $(window).scroll(function() { + var windowBottom = $(window).scrollTop() + $(window).innerHeight(); + $('.onepart .introtext').each(function() { + var mid = $(this).offset().top + $(this).height()/2; + if( mid < windowBottom && mid > $(window).scrollTop()){ + $(this).addClass('animationtext') + } else { + $(this).removeClass('animationtext') + } + }) + + }) //RWD 自動縮放headerbannner function headerH() { if ($(window).width() < 768) { const navH = $('.layout-header .navbar-header').outerHeight(); - $('.header-banner').css('height', navH ); } } headerH(); @@ -610,8 +621,19 @@ extendPanelWidget(); }) init(); + if ($(window).width() < 768) { + $('.introtext').after($('.introimage')); + } else { + $('.introtext').before($('.introimage')); + } }); - + $(window).resize(function() { + if ($(window).width() < 768) { + $('.introtext').after($('.introimage')); + } else { + $('.introtext').before($('.introimage')); + } + }); $(window).load(function(){ $("iframe[src*='google']").attr('title','googleOauth'); }); @@ -624,4 +646,3 @@ extendPanelWidget(); // }); }(jQuery, window)); - diff --git a/assets/stylesheets/.DS_Store b/assets/stylesheets/.DS_Store new file mode 100644 index 0000000..0c78ffd Binary files /dev/null and b/assets/stylesheets/.DS_Store differ diff --git a/assets/stylesheets/template/RWD.scss b/assets/stylesheets/template/RWD.scss index 3f39bb9..2c700a7 100644 --- a/assets/stylesheets/template/RWD.scss +++ b/assets/stylesheets/template/RWD.scss @@ -1,7 +1,112 @@ -@charset "utf-8"; -@import "initial"; - -@media(max-width: 767px) { - .modules-menu .modules-menu-level-0>li { margin: 0; } - .modules-menu .modules-menu-level-0>li:hover { background: transparent; } -} \ No newline at end of file +@charset "utf-8"; +@import "initial"; +@media(max-width:1024px){ + #main-nav{ + width: 100%; + } + .layout-header{ + height: 640px; + } +} +@media(min-width:1024px){ + .introtext{ + margin-top: 12em; + } +} +@media only screen and (min-width: 767px) and (max-width: 1024px){ + .layout-header .header-nav{ + position: absolute; + right: 0; + padding: 2em; + } + .layout-header .navbar-header{ + padding: 0 2em; + } +} +@media only screen and (min-width: 767px) and (max-width: 769px){ + .introtext{ + margin-top:3em; + } +} +@media(max-width: 767px) { + .modules-menu .modules-menu-level-0>li { margin: 0; } + .modules-menu .modules-menu-level-0>li:hover { background: transparent; } + .introtext{ + padding-bottom: 6em; + padding-top: 6em; + } +} +@media(max-width: 768px) { + .layout-header{ + height: 480px; + } + .down{ + .ad-overlay{ + padding-bottom: 2em!important; + } + } +} +@media(min-width: 769px) { + .introtext{ + margin-top: 6em; + } +} +@media(max-width: $screen-xs) { + .container > .navbar-header { + margin: 0; + } + .header-contain{ + background-color:#ffffffb8; + padding-bottom: 1em; + } + .layout-header{ + height: 440px; + } + .header-banner{ + img{ + max-width: none; + height: 480px; + } + } + .modules-menu .modules-menu-level-1{ + background-color: #459967; + } + .right{ + padding: 0; + } + .left{ + padding: 0; + } + .introimage{ + padding: 0; + } + .layout-content-inner { + padding: 0!important; + } + .layout-content-box2{ + padding-top: 3em; + } +} +@media(min-width:767px){ + .header-contain{ + z-index: 1; + } + .introimage{ + padding-left: 8em; + } + .left{ + padding-right: 0.25rem; + } + .right{ + padding-left: 0.25rem; + } + .header-banner { + img{ + width:100%; + } + } + .onepart{ + padding-bottom: 6em; + padding-top: 6em; + } +} diff --git a/assets/stylesheets/template/base/_autobackup.bak b/assets/stylesheets/template/base/_autobackup.bak new file mode 100644 index 0000000..b02d3fb --- /dev/null +++ b/assets/stylesheets/template/base/_autobackup.bak @@ -0,0 +1,59 @@ + +.response-content { + justify-self: auto; +} +.response-content { + justify-self: auto; +} + +.response-content { + justify-self: auto; +} +.response-content { + justify-self: auto; +} +.response-content { + justify-self: auto; +} +.response-content { + justify-self: auto; +} +.response-content { + justify-self: auto; +} + +.response-content { + justify-self: auto; +} + + +.response-content { + justify-self: auto; +} +.response-content { + justify-self: auto; +} +.response-content { + justify-self: auto; +} +.response-content { + justify-self: auto; +} +.response-content { + justify-self: auto; +} +.response-content { + justify-self: auto; +} +.response-content { + justify-self: auto; +} +.response-content { + justify-self: auto; +} +.response-content { + justify-self: auto; +} +.response-content { + justify-self: auto; +} diff --git a/assets/stylesheets/template/base/_global.scss b/assets/stylesheets/template/base/_global.scss index 1c030cd..60f7ae3 100644 --- a/assets/stylesheets/template/base/_global.scss +++ b/assets/stylesheets/template/base/_global.scss @@ -55,8 +55,8 @@ a.btn-primary { font-size: 0.8125rem; &:hover { - background-color: darken($theme-color-main, 10%); - border-color: darken($theme-color-main, 10%); + background-color: darken($theme-color-second, 10%); + border-color: darken($theme-color-second, 10%); } } @@ -87,4 +87,4 @@ body[data-module="announcement"] { .layout-content { overflow-x: auto; } -} \ No newline at end of file +} diff --git a/assets/stylesheets/template/base/_go_back_top.scss b/assets/stylesheets/template/base/_go_back_top.scss index 5cdb56c..c355b62 100644 --- a/assets/stylesheets/template/base/_go_back_top.scss +++ b/assets/stylesheets/template/base/_go_back_top.scss @@ -15,8 +15,18 @@ font-size: 0.750em; border-radius: 0.125em; z-index: 1050; + animation:animateTop 0.5s linear infinite alternate; +-webkit-animation:animateTop 0.5s linear infinite alternate; &:hover { - background: rgba($theme-color-main, 1); + background: $theme-color-second; } -} \ No newline at end of file +} +@-webkit-keyframes animateTop{ + from{bottom:1em;} + to{bottom:1.2em;} +} +@keyframes animateTop{ + from{bottom:1em;} + to{bottom:1.2em;} +} diff --git a/assets/stylesheets/template/base/_variables.scss b/assets/stylesheets/template/base/_variables.scss index 3bd740b..9b2764f 100644 --- a/assets/stylesheets/template/base/_variables.scss +++ b/assets/stylesheets/template/base/_variables.scss @@ -13,7 +13,7 @@ $theme-red: #d20001; $theme-blue: #003d7e; $theme-color-main: #333333; -$theme-color-second: #91BFEA; +$theme-color-second: #4dac74; $theme-color-third: #ed4c43; $theme-color-green: #32D9C3; @@ -84,3 +84,16 @@ $w-item-heading-font-size: 0.85rem; // -------------------------------------------------- $border-width: 0.25em; + + + + + + + + + + +.response-content { + justify-self: auto; +} diff --git a/assets/stylesheets/template/layout/content.scss b/assets/stylesheets/template/layout/content.scss index 0de593b..7e6d611 100644 --- a/assets/stylesheets/template/layout/content.scss +++ b/assets/stylesheets/template/layout/content.scss @@ -4,9 +4,131 @@ .layout-content { min-height: 37.5em; - background: $theme-green-light; - + padding-bottom: 6em; + background-color: #fff; + background-image: linear-gradient(180deg, transparent 0, rgba(191,139,61,0.1) 100%); .container { @extend .response-container; } -} \ No newline at end of file +} + +.down{ + display: flex; + width: 100%; + .columnbox{ + width: 50%; + } + .leftbox{ + padding-right: 0.25rem; + } + .rightbox{ + padding-left: 0.25rem; + } + .ad-overlay{ + padding-bottom: 3em!important; + } +} +.big{ + padding: 0!important; +} + +.onepart{ + .w-ba-banner{ + &:hover{ + img{ + + } + } + } +} +.layout-content-box2{ + .w-ba-banner{ + &:hover{ + -webkit-transition: all .3s ease; + -moz-transition: all .3s ease; + -ms-transition: all .3s ease; + -o-transition: all .3s ease; + transition: all .3s ease; + img{ + transform: scale(1.1); + } + .transitionfade{ + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + background-color: rgba(0,0,0,.4); + -webkit-transition: .3s ease-out; + -moz-transition: .3s ease-out; + -ms-transition: .3s ease-out; + -o-transition: .3s ease-out; + transition: .3s ease-out; + } + } + } +} +.left{ + .controlplay{ + display: none; + } + ul.button-mid .prev-button{ + display: none; + } + ul.button-mid .next-button{ + display: none; + } + .ad-overlay h3{ + text-align: center; + } + .ad-overlay{ + padding-bottom: 5em; + } + .banner-pager{ + display: none; + } +} +.right{ + .controlplay{ + display: none; + } + ul.button-mid .prev-button{ + display: none; + } + ul.button-mid .next-button{ + display: none; + } + .ad-overlay h3{ + text-align: center; + } + .ad-overlay{ + padding-bottom: 5em; + } + .banner-pager{ + display: none; + } +} +.introtext{ + opacity: 0; + -webkit-transform: translateY(15%) translateZ(0); + -moz-transform: translateY(15%) translateZ(0); + -o-transform: translateY(15%) translateZ(0); + -ms-transform: translateY(15%) translateZ(0); + transform: translateY(15%) translateZ(0); + -webkit-transition: transform 0.8s ease-out, opacity 0.4s ease; + -moz-transition: transform 0.8s ease-out, opacity 0.4s ease; + -o-transition: transform 0.8s ease-out, opacity 0.4s ease; + -ms-transition: transform 0.8s ease-out, opacity 0.4s ease; + transition: transform 0.8s ease-out, opacity 0.4s cubic-bezier(0.63, 0.01, 0, 1.02); + &:hover{ + transform: scale(1.1); + } +} +.animationtext{ + opacity: 1; + -webkit-transform: translateY(0) translateZ(0); + -moz-transform: translateY(0) translateZ(0); + -o-transform: translateY(0) translateZ(0); + -ms-transform: translateY(0) translateZ(0); + transform: translateY(0) translateZ(0); +} diff --git a/assets/stylesheets/template/layout/footer.scss b/assets/stylesheets/template/layout/footer.scss index 63d37e7..98940d1 100644 --- a/assets/stylesheets/template/layout/footer.scss +++ b/assets/stylesheets/template/layout/footer.scss @@ -6,7 +6,7 @@ padding: 2em 0; color: $theme-color-main; font-size: 0.8125em; - background-color: $theme-color-second; + background-color: #decdb7; .container { @extend .response-container; @@ -20,4 +20,4 @@ color: lighten($theme-color-main, 10%); } } -} \ No newline at end of file +} diff --git a/assets/stylesheets/template/layout/header.scss b/assets/stylesheets/template/layout/header.scss index 035bb47..c58f28c 100644 --- a/assets/stylesheets/template/layout/header.scss +++ b/assets/stylesheets/template/layout/header.scss @@ -7,15 +7,17 @@ margin-bottom: 0; border: none; border-radius: 0; - background-color: $theme-green-light; - z-index: 1; - + height: 680px; .container { @extend .response-container; } - .header-banner { overflow: hidden; } + .header-banner { + overflow: hidden; + width:100%; + position: fixed; + } .header-nav { - padding: 1em 0; + padding: 1em; color: $theme-color-main; font-family: $main-font; @@ -38,10 +40,9 @@ } .navbar-header { - padding: 0 0 1.25em; + padding: 0 ; .navbar-brand { - height: unset; margin: 0.5em 0; padding-top: 0; padding-bottom: 0; @@ -51,7 +52,6 @@ font-family: $main-font; @media (min-width: $screen-sm) { - height: unset; margin: 0.5rem 0 0; padding-left: 0; line-height: 3.75em; @@ -62,8 +62,8 @@ } @media (max-width: 480px) { - height: 3.5em; - padding: 0 0.5rem; + height: 2.5em; + padding: 0; margin: 0; } @@ -126,4 +126,9 @@ -webkit-transform: rotate(-45deg); transform: rotate(-45deg); } -} \ No newline at end of file +} + +.headertext{ + padding-top: 10em; + position: absolute; +} diff --git a/assets/stylesheets/template/layout/slide.scss b/assets/stylesheets/template/layout/slide.scss index 08de021..fbafbbe 100644 --- a/assets/stylesheets/template/layout/slide.scss +++ b/assets/stylesheets/template/layout/slide.scss @@ -5,7 +5,6 @@ .layout-slide { position: relative; z-index: 0; - background: $theme-green-light; .w-ad-banner { max-width: 75em; diff --git a/assets/stylesheets/template/modules/ad_banner.scss b/assets/stylesheets/template/modules/ad_banner.scss index 9ee385e..0a0fbbd 100644 --- a/assets/stylesheets/template/modules/ad_banner.scss +++ b/assets/stylesheets/template/modules/ad_banner.scss @@ -2,11 +2,11 @@ @import "../initial"; -// +// // Widget // -// Widget +// Widget // ## gerenral styles .w-ba-banner { @@ -36,18 +36,17 @@ position: absolute; width: 100%; bottom: 0; - background-image: linear-gradient(180deg,transparent 0,rgba(0,0,0,.7) 40%,#000); + background-image:linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.5) 20%, #000000a3); padding: 1.5em 1em; - h3 { - margin: 0; + h3 { + margin: 0; padding: 0 0.5rem; color: $theme-white; } p { margin: 0; padding: 0.5rem; color: $theme-white; } @media(max-width: $screen-sm) { - padding: 0.5em 1em; - position: relative; - background: #333333; + padding: 0.5em 1em; + position: absolute; h3 { font-size: 1em; } p { font-size: 0.75em; padding: 0.3rem 0.5rem 0.8rem 0.5rem; } } @@ -106,7 +105,7 @@ padding: 5px 10px; border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(0, 0, 0, 0.2); - + i { font-family: FontAwesome; position: relative; @@ -124,35 +123,30 @@ content:"\f04c" } @media(max-width: $screen-sm) { - right: 0; + right: 0; a { padding: 0 5px;} a i { font-size: 0.75em; } } } ul.button-mid{ - width: 100%; - top: 50%; - position: absolute; - padding: 0; - margin-top: 0; - margin: 0; - transform: translateY(-50%); - z-index: 999; - .prev-button{ transition: 0.4s; position: relative; float:left; left: 0.5rem; width: 2.5rem; - /* background: url(/assets/next.png) no-repeat center; */ height: 2.5rem; font-size: 2.2rem; color: #ffffff; background: rgba(0,0,0,0.2); text-align: center; line-height: 2.5rem; + top: 50%; + position: absolute; + transform: translateY(-50%); + z-index: 999; + &:hover { background: rgba(0,0,0,0.1); } @@ -169,13 +163,17 @@ ul.button-mid{ position: relative; right: 0.5rem; width: 2.5rem; - /* background: url(/assets/next.png) no-repeat center; */ height: 2.5rem; font-size: 2.2rem; color: $theme-white; background: rgba(0,0,0,0.2); text-align: center; line-height: 2.5rem; + top: 50%; + position: absolute; + transform: translateY(-50%); + z-index: 999; + &:hover { background: rgba(0,0,0,0.1); } @@ -210,15 +208,14 @@ ul.button-mid{ } } @media(max-width: $screen-sm) { - .ad-overlay { - padding: 0.5em 1em; - position: relative; - background: #333333; + .ad-overlay { + padding: 3em 1em; + position: absolute; h3 { font-size: 1em; } p { font-size: 0.75em; } } - .controlplay { - right: 0; + .controlplay { + right: 0; a { padding: 0 5px;} a i { font-size: 0.75em; } } @@ -242,7 +239,7 @@ ul.button-mid{ height: 100%; } - + .banner-pager { right: 1em; top: -2em; @@ -269,7 +266,7 @@ ul.button-mid{ ul.button-mid { display: none; } } -//Widget 4 +//Widget 4 .ba-banner-widget-4 { .w-ba-banner__wrap { text-align: center; @@ -282,4 +279,61 @@ ul.button-mid{ .cycle-slide-active { z-index: 101 !important; } -} \ No newline at end of file +} + +//Widget 5 +.ba-banner-widget-5 { + background: url(/assets/BANNER-BG-01.jpg) 0 0 no-repeat; + .slide-img { padding: 1rem 1.5rem; } + .slide-content { + z-index: 200; + font-family: $main-font; + padding-top: 0.5rem; + padding-left: 0; + + h3 { + font-size: 1rem; + margin: 0.5em 0; + color: #12517a; + } + + div { + white-space: normal; + word-break: break-all; + font-size: 1rem; + color: #373634; + padding: 0 2em 0.5em 0; + } + } + .controlplay { display: none; } + .banner-pager { + right: 1rem; + top: 0; + width: unset; + li { height: unset; width: unset; } + a { background: #a0d2f3;} + } + + @media(max-width: $screen-sm) { + .slide-content { + padding: 0.5em 1em; + position: relative; + background: #a0d2f3; + h3 { font-size: 1em; } + div { font-size: 0.75em; } + } + .controlplay { + right: 0; + a { padding: 0 5px;} + a i { font-size: 0.75em; } + } + } + @media(max-width: $screen-sm -1) { + ul.button-mid.next-button, ul.button-mid.prev-button{ + top: 35%; + transform: translateY(-35%); + } + .slide-content h3, .slide-content div { color: $theme-white; } + .w-ba-banner__wrap { overflow: visible;} + } +} diff --git a/assets/stylesheets/template/modules/epaper.scss b/assets/stylesheets/template/modules/epaper.scss index d903467..b416e5c 100644 --- a/assets/stylesheets/template/modules/epaper.scss +++ b/assets/stylesheets/template/modules/epaper.scss @@ -1,240 +1,240 @@ -@charset "utf-8"; - -@import "../initial"; - -.header-banner img[src*='epaper'] { - position: absolute; - top: 0; - transform: translateX(50%); - right: 50%; - top: 3em; -} -.row.epaper-container { - display: flex; - flex-wrap: wrap; - position: relative; -} -.criteria_list { - thead { - border-left: 6px solid rgb(105, 150, 171); - background: rgb(74, 42, 36); - color: rgb(255, 255, 255); - font-size: 14px; - font-family: 微軟正黑體; - } - tbody { - background-color: transparent; - tr { - border-bottom: 1px dotted #4a2a24; - padding: 5px 0; - } - td { - border-top: transparent; - } - } -} - - -// slider-fullscreen -.latest-fullslider { - margin-bottom: 2em; - .right-fullslider { - white-space: normal; - padding: 0 2em 2em; - h3 { - font-size: 2em; - text-align: center; - font-weight: 600; - } - } - .left-fullslider { padding-right: 0; text-align: center;} - .epaper-description { white-space: normal; } - .epaper-container { - min-height: 400px; - } - .banner-Container { background: #fff;} -} - -@media(max-width: 768px){ - .latest-fullslider{ - .epaper-container{ - background: #fff; - } - .right-fullslider{ - position: absolute; - bottom: 0; - right: 0; - background-color: rgba(0, 0, 0, 0.5); - a { color: $theme-white; } - } - .left-fullslider{ - img{ - width: 100%; - max-height: 417px; - overflow: hidden; - } - - } - } -} - -//slider -.latest_slider { - display: flex; - flex-direction: column; - h3 { margin-bottom: 0; } - .banner-Container { background: #fff; min-height: 300px; padding: 0 1rem 2rem; } - .epaper-container { - white-space: normal; - flex-direction: column; - h4 { white-space: normal; } - img { width: 20em; } - .epaper-description { white-space: normal; padding-top: 1em;} - } - .e-paper.btn { font-size: 0.65rem; } -} - -// epaper-show page - -.epaper-show{ - @media(min-width: 768px){ - h3{ - font-size: 2.5rem; - text-align: center; - margin-bottom: 25px; - } - span{ - line-height: 27px; - } - } - - @media(max-width: 768px){ - .epaper-content{ - padding: 15px; - } - span{ - line-height: 20px; - } - } - img{ - display: block; - margin-left: auto; - margin-right: auto; - margin-bottom: 15px; - } - - -} - -// epaper-index1 - -.epaper-index1-container{ - margin-top: 15px; - -.epaper-leftimg,.epaper-rightContent{ - display: inline-block; - text-align: center; -} -.epaper-leftimg{ - img{ - width: 100%; - //max-height: 225px; - - } -} -.epaper-rightContent{ - width: 50%; -} - -@media(min-width: 768px){ - position: relative; - text-overflow: ellipsis; - background:#fff; - .epaper-rightContent{ - position: relative;//absolute; - top: 10px; - padding-bottom: 10px; - .epaper-description{ - text-overflow: ellipsis; - } - - } -} -} -// epaper-index2 - -.epaper-index2-container{ - border-style: solid; - border-color: #ccc; - border-width: 0 1px 1px; - h1,h2,h3,h4{ - border-bottom: 1px solid #ccc;//#e1e1e1; - margin: 0; - padding: 10px 0 10px 10px; - span{ - float:right; - margin-right:10px; - color: #0e5c92; - border: 1px solid #d1d1d1; - background: #f0f0f0; - padding: 4px 6px; - font-size: 14px; - margin-top:-3px; - } - } - margin-top: 15px; - -.epaper-leftimg,.epaper-rightContent{ - display: inline-block; - text-align: left; -} -@media(min-width: 768px){ - .epaper-leftimg{ - width: 30%; - padding: 10px 0 10px 10px; - img{ - width:100%; - //max-height: 225px; - } - } - .epaper-rightContent{ - padding: 10px 0 10px 10px; - width: 70%; - } -} -@media(max-width: 767px){ - .epaper-leftimg{ - width: 100%; - padding: 10px; - img{ - width:100%; - //max-height: 225px; - } - } - .epaper-rightContent{ - padding: 10px; - } -} -background:#fff; -@media(min-width: 768px){ - position: relative; - text-overflow: ellipsis; - .epaper-rightContent{ - position: relative;//absolute; - top: 10px; - padding-bottom: 20px; - padding-right: 10px; - .epaper-description{ - text-overflow: ellipsis; - } - - } -} -.epaper-description a:visited{ - color: #777575; -} -.epaper-description a:hover{ - text-decoration-color: #333; - text-decoration-line: underline; -} -} +@charset "utf-8"; + +@import "../initial"; + +.header-banner img[src*='epaper'] { + position: absolute; + top: 0; + transform: translateX(50%); + right: 50%; + top: 3em; +} +.row.epaper-container { + display: flex; + flex-wrap: wrap; + position: relative; +} +.criteria_list { + thead { + border-left: 6px solid rgb(105, 150, 171); + background: rgb(74, 42, 36); + color: rgb(255, 255, 255); + font-size: 14px; + font-family: 微軟正黑體; + } + tbody { + background-color: transparent; + tr { + border-bottom: 1px dotted #4a2a24; + padding: 5px 0; + } + td { + border-top: transparent; + } + } +} + + +// slider-fullscreen +.latest-fullslider { + margin-bottom: 2em; + .right-fullslider { + white-space: normal; + padding: 0 2em 2em; + h3 { + font-size: 2em; + text-align: center; + font-weight: 600; + } + } + .left-fullslider { padding-right: 0; text-align: center;} + .epaper-description { white-space: normal; } + .epaper-container { + min-height: 400px; + } + .banner-Container { background: #fff;} +} + +@media(max-width: 768px){ + .latest-fullslider{ + .epaper-container{ + background: #fff; + } + .right-fullslider{ + position: absolute; + bottom: 0; + right: 0; + background-color: rgba(0, 0, 0, 0.5); + a { color: $theme-white; } + } + .left-fullslider{ + img{ + width: 100%; + max-height: 417px; + overflow: hidden; + } + + } + } +} + +//slider +.latest_slider { + display: flex; + flex-direction: column; + h3 { margin-bottom: 0; } + .banner-Container { background: #fff; min-height: 300px; padding: 0 1rem 2rem; } + .epaper-container { + white-space: normal; + flex-direction: column; + h4 { white-space: normal; } + img { width: 20em; } + .epaper-description { white-space: normal; padding-top: 1em;} + } + .e-paper.btn { font-size: 0.65rem; } +} + +// epaper-show page + +.epaper-show{ + @media(min-width: 768px){ + h3{ + font-size: 2.5rem; + text-align: center; + margin-bottom: 25px; + } + span{ + line-height: 27px; + } + } + + @media(max-width: 768px){ + .epaper-content{ + padding: 15px; + } + span{ + line-height: 20px; + } + } + img{ + display: block; + margin-left: auto; + margin-right: auto; + margin-bottom: 15px; + } + + +} + +// epaper-index1 + +.epaper-index1-container{ + margin-top: 15px; + +.epaper-leftimg,.epaper-rightContent{ + display: inline-block; + text-align: center; +} +.epaper-leftimg{ + img{ + width: 100%; + //max-height: 225px; + + } +} +.epaper-rightContent{ + width: 50%; +} + +@media(min-width: 768px){ + position: relative; + text-overflow: ellipsis; + background:#fff; + .epaper-rightContent{ + position: relative;//absolute; + top: 10px; + padding-bottom: 10px; + .epaper-description{ + text-overflow: ellipsis; + } + + } +} +} +// epaper-index2 + +.epaper-index2-container{ + border-style: solid; + border-color: #ccc; + border-width: 0 1px 1px; + h1,h2,h3,h4{ + border-bottom: 1px solid #ccc;//#e1e1e1; + margin: 0; + padding: 10px 0 10px 10px; + span{ + float:right; + margin-right:10px; + color: #0e5c92; + border: 1px solid #d1d1d1; + background: #f0f0f0; + padding: 4px 6px; + font-size: 14px; + margin-top:-3px; + } + } + margin-top: 15px; + +.epaper-leftimg,.epaper-rightContent{ + display: inline-block; + text-align: left; +} +@media(min-width: 768px){ + .epaper-leftimg{ + width: 30%; + padding: 10px 0 10px 10px; + img{ + width:100%; + //max-height: 225px; + } + } + .epaper-rightContent{ + padding: 10px 0 10px 10px; + width: 70%; + } +} +@media(max-width: 767px){ + .epaper-leftimg{ + width: 100%; + padding: 10px; + img{ + width:100%; + //max-height: 225px; + } + } + .epaper-rightContent{ + padding: 10px; + } +} +background:#fff; +@media(min-width: 768px){ + position: relative; + text-overflow: ellipsis; + .epaper-rightContent{ + position: relative;//absolute; + top: 10px; + padding-bottom: 20px; + padding-right: 10px; + .epaper-description{ + text-overflow: ellipsis; + } + + } +} +.epaper-description a:visited{ + color: #777575; +} +.epaper-description a:hover{ + text-decoration-color: #333; + text-decoration-line: underline; +} +} diff --git a/assets/stylesheets/template/modules/menu.scss b/assets/stylesheets/template/modules/menu.scss index ce9c593..5fd4309 100644 --- a/assets/stylesheets/template/modules/menu.scss +++ b/assets/stylesheets/template/modules/menu.scss @@ -17,18 +17,17 @@ .menu-drop.opened { transform: rotateX(180deg); } - + .modules-menu-level-0 { - margin: 0 0 0.5em 0; + margin:2em 0 0.5em 0; padding: 0; list-style: none; - width: 100%; display: flex; justify-content: space-around; .has-dropdown.level-1.active { .modules-menu-level-1 { - display: block; + display: block; } } @@ -50,7 +49,7 @@ // text-align: center; // border-radius: 0.13em; // } - + .menu-drop { position: absolute; top: 0.5em; @@ -61,7 +60,7 @@ line-height: 2.5em; font-size: 1em; text-align: center; - border-radius: 0.13em; + border-radius: 0.13em; } // .dropdown-toggle-icon.level-1 { @@ -74,9 +73,15 @@ & > li { position: relative; - margin: 0; + margin: 0 ; padding: 0 1em; + border-radius: 0.5em; border-bottom: 0.0625em solid lighten($theme-gray, 5%); + -webkit-transition: background 0.3s linear 0s, color 0.3s linear 0s; + -moz-transition: background 0.3s linear 0s, color 0.3s linear 0s; + -ms-transition: background 0.3s linear 0s, color 0.3s linear 0s; + -o-transition: background 0.3s linear 0s, color 0.3s linear 0s; + transition: background 0.3s linear 0s, color 0.3s linear 0s; & > a { display: block; @@ -100,7 +105,8 @@ @media (min-width: $screen-sm) { position: relative; - margin: 0; + background-color: #ffffff7d; + margin: 0 0.3rem; padding: 0; border-bottom: none; @@ -137,6 +143,7 @@ & > a { padding: 0.5rem; + font-weight: bold; color: $theme-color-main; } @@ -154,7 +161,7 @@ min-width: 100%; margin: 0; padding: 0; - background-color: $theme-gray; + background-color: #f1901bc9; list-style: none; z-index: 1; @@ -175,7 +182,7 @@ &:hover { background-color: $theme-color-second; & > a { - color: $theme-color-main; + color: #fff; } } } @@ -249,7 +256,7 @@ } } -//mobile +//mobile .mobile-menu { z-index: 1051; width: 100vw; @@ -263,11 +270,11 @@ display: block; } - .modules-menu { + .modules-menu { width: 80%; position: absolute; right: 0; - background: #a51832; + background:$theme-color-second; height: 100%; top: 0; padding-top: 40px; @@ -298,7 +305,7 @@ //覆蓋bootstrap nav設定 -.mobile-menu .modules-menu.collapsing { +.mobile-menu .modules-menu.collapsing { overflow:unset !important; transform: translateX(100%); -webkit-transition-timing-function:ease; @@ -324,7 +331,7 @@ transition-property:transform; } -.mobile-menu .collapse.navbar-collapse.modules-menu { +.mobile-menu .collapse.navbar-collapse.modules-menu { overflow-y: scroll; transform: translateX(0%); } diff --git a/assets/stylesheets/template/modules/universal-table.scss b/assets/stylesheets/template/modules/universal-table.scss index 74476ed..72e9a4a 100644 --- a/assets/stylesheets/template/modules/universal-table.scss +++ b/assets/stylesheets/template/modules/universal-table.scss @@ -1,9 +1,9 @@ -@charset "utf-8"; - -@import "../initial"; - -.universal-table-index h3 { - @extend .unity-title; - float: left; - margin: 0; +@charset "utf-8"; + +@import "../initial"; + +.universal-table-index h3 { + @extend .unity-title; + float: left; + margin: 0; } \ No newline at end of file diff --git a/assets/stylesheets/template/template.scss b/assets/stylesheets/template/template.scss index 18418ff..4b901f0 100644 --- a/assets/stylesheets/template/template.scss +++ b/assets/stylesheets/template/template.scss @@ -33,6 +33,11 @@ .response-container { position: relative; + @media (min-width: $screen-xs) { + width: 100%; + padding: 0; + } + @media (min-width: $screen-sm) { width: 100%; } diff --git a/home/header.html.erb b/home/header.html.erb index e9eff8c..280bec6 100644 --- a/home/header.html.erb +++ b/home/header.html.erb @@ -18,7 +18,7 @@
\ No newline at end of file +
+ diff --git a/home/index.html.erb b/home/index.html.erb index 984c6c7..30d7e19 100644 --- a/home/index.html.erb +++ b/home/index.html.erb @@ -20,16 +20,13 @@
-
-
-
-
-
-
+
+
+
- +
@@ -41,15 +38,24 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<%= render_footer %> - \ No newline at end of file + diff --git a/modules/ad_banner/_ad_banner_widget1.html.erb b/modules/ad_banner/_ad_banner_widget1.html.erb index dfd56e9..4aa4bc5 100644 --- a/modules/ad_banner/_ad_banner_widget1.html.erb +++ b/modules/ad_banner/_ad_banner_widget1.html.erb @@ -24,11 +24,12 @@ > +
+
-