diff --git a/assets/images/youtube.png b/assets/images/youtube.png
new file mode 100644
index 0000000..d6012b0
Binary files /dev/null and b/assets/images/youtube.png differ
diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js
index 52c8713..3f1cceb 100644
--- a/assets/javascripts/app.js
+++ b/assets/javascripts/app.js
@@ -1,27 +1,35 @@
;(function($, win, undefined) {
// ECMAScript 5 嚴格模式
'use strict';
-
- //header fixed在上方
- function initdata1() {
- if ( $('.homebanner').length != 0) {
- $('.layout-header').css('height', '');
- var scrollTop = $(window).scrollTop();
- var scrollBottom = $('html').height() - $(window).height() - $('.layout-header').height();
- if (scrollTop>5 && scrollBottom>0) { /* 要滑動到選單的距離 */
- if (parseInt($('.index-layout-content').css('margin-top'))==0){
- }
- $('.outdropdowns').addClass('navFixed'); /* 幫選單加上固定效果 */
- } else {
- if ($('.homebanner').html().trim() == "") {
- $('.outdropdowns').removeClass('navFixed');
- }else{
- $('.outdropdowns').removeClass('navFixed'); /* 移除選單固定效果 */
- }
-
- }
- }
+$(document).ready(function() {
+ // 確保兩個元素都存在
+ if ($('.header-nav blockquote').length && $('.orbit-bar-menu').length) {
+ $('.header-nav blockquote').appendTo('.orbit-bar-menu');
}
+});
+ //header fixed在上方
+$(function(){
+ function initdata1(){
+
+ if (!$('.homebanner').length) return;
+
+ // 取得 65.5em 對應的 px
+ var em = parseFloat($('body').css('font-size'));
+ var minHeight = 65.5 * em;
+
+ // 判斷 .layout-content 高度
+ if ($('.layout-content').height() < minHeight) return;
+
+ var scrollTop = $(window).scrollTop();
+ $('.outdropdowns').toggleClass('navFixed', scrollTop > 5);
+ }
+
+ initdata1();
+
+ $(window).on('scroll', function(){
+ requestAnimationFrame(initdata1);
+ });
+});
// 初始函數: 把所有的程式碼都包在init裡面,方便在之後的jQuery ready 函數裡一次呼叫
function init() {
// 快取一些常用的變數
@@ -351,7 +359,6 @@
}
// 在所有的頁面(包含首頁)執行下面這幾個函數
- initdata1();
orbit.sitemenuDropdown();
orbit.goBackTop('top', 800);
// orbit.plugins.bullEye();
@@ -399,6 +406,89 @@
// $('.header-buttom').appendTo($('.dropdowns'));
// }
function forFreeGo() {
+ setTimeout(function() {
+ $('h1, h2, h3, h4, h5, h6').each(function() {
+ var $heading = $(this);
+
+ // 檢查是否為空 (去除空白後)
+ if ($.trim($heading.text()) === '' && $heading.children().length === 0) {
+ $heading.remove();
+ }
+ });
+ }, 500);
+ //zoom
+ $(function () {
+ $('.fnav a').each(function () {
+ const $a = $(this);
+
+ // 若已經有可見文字(非 icon),直接通過
+ const visibleText = $a.clone()
+ .children('.icon, i, svg, .caret')
+ .remove()
+ .end()
+ .text()
+ .trim();
+
+ if (visibleText.length > 0) return;
+
+ // 取得可用標籤文字(優先順序)
+ let label =
+ $a.attr('aria-label') ||
+ $a.attr('title') ||
+ $a.find('i[title]').attr('title') ||
+ '';
+
+ label = $.trim(label);
+
+ // 若真的完全沒有,就給一個保底(避免空字串違規)
+ if (!label) {
+ label = '功能按鈕';
+ }
+
+ // aria-label 一定要有
+ $a.attr('aria-label', label);
+
+ // icon 對螢幕閱讀器隱藏
+ $a.find('i, svg').attr('aria-hidden', 'true');
+
+ // 若沒有隱藏文字才補
+ if ($a.find('.sr-only, .visually-hidden').length === 0) {
+ $a.append(`${label}`);
+ }
+ });
+ });
+ //播放驗證碼語音
+ $(function () {
+ $('.ask-question')
+ .find('.controls button.fas.fa-volume-up')
+ .each(function () {
+ const $btn = $(this);
+
+ // 已經補過就不重複處理
+ if ($btn.attr('aria-label')) return;
+
+ $btn.attr({
+ 'aria-label': '播放驗證碼語音',
+ 'aria-controls': 'captcha_audio',
+ 'role': 'button'
+ });
+ });
+ });
+
+ //刪除td的id
+ $('td[id]').removeAttr('id');
+
+ //刪除空的title
+ $('[class*="title"]').each(function () {
+ const $el = $(this);
+
+ // 取純文字(忽略 HTML tag、空白、換行)
+ const text = $.trim($el.text());
+
+ if (text === '') {
+ $el.remove();
+ }
+ });
//表單legend
$("fieldset").each(function () {
const $fieldset = $(this);
@@ -571,6 +661,16 @@
}
});
//無障礙單位轉換
+ $(function() {
+ $('style:contains("font-size")').each(function() {
+ let css = $(this).html();
+ css = css.replace(/font-size\s*:\s*([\d.]+)px\s*;?/gi, (_, px) =>
+ `font-size: ${(parseFloat(px) / 16).toFixed(3)}em;`
+ );
+ $(this).html(css);
+ });
+ });
+
$("[style*='font-size']").each(function() {
var fontSize = $(this).css("font-size");
if (fontSize.includes("px")) {
@@ -623,6 +723,29 @@
if (!$this.attr('title') || $this.attr('title').trim() === '') {
$this.attr('title', '按鈕');
}
+ });
+ $('img').each(function () {
+ const $img = $(this);
+
+ // 如果沒有 alt 或 alt 是空字串
+ if (!$img.attr('alt') || $img.attr('alt').trim() === '') {
+ let altText = '';
+
+ // 先抓 img 的 title
+ if ($img.attr('title')) {
+ altText = $img.attr('title');
+ }
+ // 再抓外層 a 的 title
+ else if ($img.closest('a').attr('title')) {
+ altText = $img.closest('a').attr('title');
+ }
+ // 如果都沒有,給預設文字
+ else {
+ altText = '圖片';
+ }
+
+ $img.attr('alt', altText);
+ }
});
$('img').each(function() {
var $this = $(this);
@@ -777,24 +900,40 @@
}
}
});
- $('a').each(function () {
- const $link = $(this);
- const linkText = $link.text().trim();
+ if (location.href.search('editmode=on') === -1){
+ $('a').each(function () {
+ const $link = $(this);
+ const linkText = $link.text().trim();
- $link.find('img').each(function () {
- const $img = $(this);
- const altText = $img.attr('alt')?.trim();
+ $link.find('img').each(function () {
+ const $img = $(this);
+ const altText = $img.attr('alt')?.trim();
- // 如果圖片 alt 是空的,就略過(已符合)
- if (altText === '') return;
+ // 如果圖片 alt 是空的,就略過(已符合)
+ if (altText === '') return;
- // 如果圖片 alt 等於文字內容,就將 alt 清空,避免重複
- if (altText === linkText) {
- $img.attr('alt', '');
- }
- });
+ // 如果圖片 alt 等於文字內容,就將 alt 清空,避免重複
+ if (altText === linkText) {
+ $img.attr('alt', '');
+ }
});
+ });
+ $('a').each(function () {
+ const $a = $(this);
+ // 取得可見文字(去掉空白)
+ const text = $a.text().replace(/\u00a0/g, '').trim();
+
+ // 是否有圖片
+ const hasImg = $a.find('img').length > 0;
+
+ // 若沒有文字、也沒有圖片 → 移除
+ if (text === '' && !hasImg) {
+ $a.remove();
+ }
+ });
+ }
+
// 刪除banner-slide的空連結和空連結目標
for(var i=0;i<$('.w-ba-banner__slide a').length;i++){
if($('.w-ba-banner__slide a').eq(i).attr('href')=="")
@@ -1203,7 +1342,18 @@
// if($('.show-announcement').hasClass('show-announcement')) {
// $('.').css('', '');
// }
+ $('.i-publication__table').each(function () {
+ const $table = $(this);
+ const $tbody = $table.find('tbody');
+ if ($tbody.find('tr').length === 0) {
+ $table.hide();
+ }
+ });
+
+ if ($('.fatfooter').length === 0) {
+ $('.btn-fatfooter').hide();
+ };
if($('.s-annc').length){
$(".carousel_images h4").remove();
$('.carousel_images').addClass('carousel_images2');
@@ -1217,27 +1367,27 @@
// });
}
$('.s-annc__tag-wrap ').after($('.s-annc__post-orbithashtags'));
- $('a').each(function () {
- const $a = $(this);
+ $('a').each(function () {
+ const $a = $(this);
- // 有圖示或圖片就不刪
- if ($a.find('i, img').length > 0) return;
+ // 有圖示或圖片就不刪
+ if ($a.find('i, img').length > 0) return;
- // 沒有任何實際文字內容(去除空白)
- const hasVisibleText = $a.text().trim().length > 0;
+ // 沒有任何實際文字內容(去除空白)
+ const hasVisibleText = $a.text().trim().length > 0;
- // 進一步判斷 span 內部是否完全為空
- const allChildrenEmpty = $a.children().length > 0 && $a.children().toArray().every(child => {
- return $(child).text().trim().length === 0;
- });
+ // 進一步判斷 span 內部是否完全為空
+ const allChildrenEmpty = $a.children().length > 0 && $a.children().toArray().every(child => {
+ return $(child).text().trim().length === 0;
+ });
- // 如果沒有文字內容且子元素全為空,則移除
- if (!hasVisibleText && allChildrenEmpty) {
- $a.remove();
- }
- });
- $('.i-member-pic-wrap a').removeAttr('target');
- function markCheckStatusButton() {
+ // 如果沒有文字內容且子元素全為空,則移除
+ if (!hasVisibleText && allChildrenEmpty) {
+ $a.remove();
+ }
+ });
+ $('.i-member-pic-wrap a').removeAttr('target');
+ function markCheckStatusButton() {
$('.ask-question').each(function () {
var $prev = $(this).prev(); // 取得前一個元素
@@ -1246,8 +1396,8 @@
$prev.addClass('CheckStatus'); // 加上 class
}
});
- };
- markCheckStatusButton();
+ };
+ markCheckStatusButton();
// 綁定滑動事件
@@ -1270,8 +1420,8 @@
$('.box-social-share').before($('.sitemenu-wrap3'));
$('.box-social-share').before($('.sitemenu-wrap3'));
$('.box-social-share').before($('.sitemenu-wrap3'));
- $(".member-data2-tr").before($(".show-member .table-striped > tbody > tr:nth-of-type(4)"));
- $(".nav-pills").before($(".show-member .table-striped > tbody > tr:last-child"));
+ // $(".member-data2-tr").before($(".show-member .table-striped > tbody > tr:nth-of-type(4)"));
+ // $(".nav-pills").before($(".show-member .table-striped > tbody > tr:last-child"));
//檔案室手風琴
$('.panel-title>.collapsed').click(function(){
@@ -1322,7 +1472,7 @@
if ($(window).width() <769) {
$('.modules-menu-level-0').after($('.header-nav'));
}else{
- $('.outdropdowns').before($('.header-nav'));
+ $('.dropdowns').before($('.header-nav'));
};
$('.sitemenu-vertical .sitemenu-dropdown-toggle').click(function(){
$('.sitemenu-vertical .dropdown-menu').slideToggle();
@@ -1390,7 +1540,7 @@
$('.modules-menu-level-0').after($('.header-nav'));
}else{
- $('.outdropdowns').before($('.header-nav'));
+ $('.dropdowns').before($('.header-nav'));
};
if ($(window).width() > 821) {
@@ -1407,9 +1557,6 @@
}
headerH();
})
- $(window).scroll(function() {
- initdata1();
- });
// $(window).scroll(function() {
// if ($(this).scrollTop() > 100) { /* 要滑動到選單的距離 */
// $('.outdropdowns').addClass('navFixed'); /* 幫選單加上固定效果 */
@@ -1613,6 +1760,95 @@
$(this).replaceWith($(this).contents());
});
});
+ //選單li加上fa-chevron-down
+ $(document).ready(function () {
+ function addDropdownIcons() {
+ if ($(window).width() > 769) {
+ $('#main-nav.modules-menu-level-0 > li').each(function () {
+ if ($(this).children('ul').length > 0) {
+ const $toggle = $(this).children('a.dropdown-toggle');
+ if ($toggle.find('i.fa-chevron-down').length === 0) {
+ $toggle.append(' ');
+ }
+ }
+ });
+ }else {
+ // 螢幕寬度小於等於 768 時,移除所有 chevron-down icon
+ $('#main-nav.modules-menu-level-0 .kenmenu-drop').remove();
+ }
+ }
+
+ addDropdownIcons();
+
+ $(window).resize(function () {
+ addDropdownIcons();
+ });
+ });
+ //banner動畫淡出
+ $(document).ready(function(){
+ // 一開始先觸發動畫
+ $(".w-ad-banner__slide.cycle-slide-active [data-animation]").each(function(){
+ triggerAnimation($(this));
+ });
+
+ // 每次輪播換圖後觸發
+ $(".w-ad-banner__wrap").on("cycle-after", function(event, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag){
+ $(incomingSlideEl).find("[data-animation]").each(function(){
+ triggerAnimation($(this));
+ });
+ });
+
+ // 動畫觸發 function
+ function triggerAnimation($el){
+ let animClass = $el.attr("data-animation");
+ $el.removeClass(animClass); // 先移除,避免殘留
+ void $el[0].offsetWidth; // reflow 強制重繪
+ $el.addClass(animClass); // 重新加上動畫 class
+ }
+ });
+$(document).ready(function() {
+ // 核心清理函數
+ function removeHiddenLinks() {
+ $('.s-annc__post-wrap a').each(function() {
+ var $a = $(this);
+ // 如果 裡面有 且 display: none,就移除整個
+ if ($a.find('span').filter(function() {
+ return $(this).css('display') === 'none';
+ }).length > 0) {
+ $a.remove();
+ }
+ });
+ }
+
+ // 初始清理
+ removeHiddenLinks();
+
+ // 監控 .s-annc__post-wrap 內新增的節點
+ const target = document.querySelector('.s-annc__post-wrap');
+ if (target) {
+ const observer = new MutationObserver(function(mutationsList) {
+ // 每次有新增節點就重新清理
+ removeHiddenLinks();
+ });
+ observer.observe(target, { childList: true, subtree: true });
+ }
+});
+$(document).ready(function() {
+ $('[style]').each(function() {
+ var $el = $(this);
+ var style = $el.attr('style');
+ if (style && style.includes('font-size-adjust')) {
+ // 用正則移除 font-size-adjust 屬性(包含結尾的分號)
+ style = style.replace(/font-size-adjust\s*:\s*[^;]+;?/gi, '');
+ // 去除多餘空白
+ style = style.trim();
+ // 更新 style
+ $el.attr('style', style);
+ }
+ });
+});
+
+
// //選單樣式2
// $(document).ready(function() {
@@ -1632,10 +1868,107 @@
// }
// });
+ //隱藏Hashtags
+ $(document).ready(function () {
+ $('.universal-table-show .table-title').each(function () {
+ var $titleTd = $(this);
+ var titleText = $titleTd.text().trim();
+ var $nextTd = $titleTd.next('td');
+
+ if (titleText === 'Hashtags' && $nextTd.length > 0 && $nextTd.text().trim() === '') {
+ $titleTd.closest('tr').hide();
+ }
+ });
+ $('.universal-table-index .theadsearch tr th').each(function (index) {
+ const $th = $(this);
+ const title = $th.find('.universal-th-text').text().trim();
+
+ // 找到 Hashtags 欄
+ if (title === 'Hashtags') {
+ let allEmpty = true;
+
+ // 走訪 tbody 的每一列檢查對應欄位是否都為空
+ $('.universal-table-index tbody tr').each(function () {
+ const $td = $(this).find('td').eq(index);
+ if ($td.text().trim() !== '') {
+ allEmpty = false;
+ return false; // 提前跳出 each
+ }
+ });
+
+ if (allEmpty) {
+ // 隱藏 thead 裡對應的 th
+ $th.hide();
+
+ // 隱藏 tbody 所有對應的 td 欄位
+ $('.universal-table-index tbody tr').each(function () {
+ $(this).find('td').eq(index).hide();
+ });
+ }
+ }
+ });
+ });
+
$(window).load(function(){
$("iframe[src*='google']").attr('title','googleOauth');
});
+ //tabtitle位置
+ $(document).ready(function() {
+ $('.w-annc .w-annc__widget-title').each(function() {
+ var $title = $(this);
+ var $tabs = $title.find('.nav-tabs, .tab_nav, .nav_tabs_filter');
+
+ if ($tabs.length) {
+ $tabs.insertAfter($title);
+ }
+ });
+ });
+ //會員信箱a
+ $(document).ready(function() {
+ $('.member-data-value-6 a[href^="mailto:"]').each(function() {
+ var $link = $(this);
+ var html = $link.html();
+
+ // 檢查是否有信箱且有
+ if (html.indexOf('@') !== -1 && html.indexOf('
') !== -1) {
+ // 分割內容
+ var parts = html.split(/
/i);
+ var email = parts[0].trim();
+ var rest = parts.slice(1).join('
').trim();
+
+ // 更新連結
+ $link.html(email)
+ .attr('href', 'mailto:' + email)
+ .attr('title', email + '(在本視窗開啟)')
+ .attr('aria-label', email);
+
+ // 插入其餘內容
+ if (rest) {
+ $link.after('
' + rest);
+ }
+ }
+ });
+ });
+$(document).ready(function() {
+ $('a[href="/zh_tw/sitemap"]').html('');
+ $('a[href="/en/sitemap"]').html('')
+ // 找到 Sitemap 連結
+ var $sitemapLink = $('a[href="/zh_tw/sitemap"]');
+
+ // 找到目標容器
+ var $target = $('.searchclass');
+
+ // 移動到容器內的最前面
+ if ($sitemapLink.length && $target.length) {
+ $sitemapLink.prependTo($target);
+ }
+ var $sitemapLink = $('a[href="/en/sitemap"]');
+ var $target = $('.searchclass');
+ if ($sitemapLink.length && $target.length) {
+ $sitemapLink.prependTo($target);
+ }
+});
// 執行 member等高計算,目前改用flexbox故mark掉 by ika 20160105
// $(window).load(function() {
// if ($('.index-member-3').length && $(window).width() > 992) {
diff --git a/assets/stylesheets/template/base/_accesskey.scss b/assets/stylesheets/template/base/_accesskey.scss
index 5f8b74e..f08f664 100644
--- a/assets/stylesheets/template/base/_accesskey.scss
+++ b/assets/stylesheets/template/base/_accesskey.scss
@@ -1,7 +1,7 @@
@charset "utf-8";
a[accesskey] {
- position: absolute!important;
+ position: absolute;
margin-left: -0.9375em;
color: transparent !important;
}
diff --git a/assets/stylesheets/template/base/_global.scss b/assets/stylesheets/template/base/_global.scss
index 825fa35..c7079c7 100644
--- a/assets/stylesheets/template/base/_global.scss
+++ b/assets/stylesheets/template/base/_global.scss
@@ -115,18 +115,18 @@ a.btn-primary {
transition: all 200ms cubic-bezier(0.39, 0.5, 0.15, 1.36);
background: none;
border: none;
- color: $theme-color-main;
- box-shadow: $theme-color-main 0 0px 0px 2px inset;
+ color: $theme-color-hover;
+ box-shadow: $theme-color-hover 0 0px 0px 2px inset;
&:hover {
color: #fff;
- box-shadow:$theme-color-main 0 0px 0px 40px inset;
+ box-shadow:$theme-color-hover 0 0px 0px 40px inset;
}
}
.theadsearch2{
.btn-primary{
- background-color:$theme-color-second;
- border-color:$theme-color-second;
+ background-color:$theme-color-hover;
+ border-color:$theme-color-hover;
}
}
@@ -151,10 +151,16 @@ a.btn-primary {
}
}
}
-img{
+img {
+ max-width: 100%;
+ height: auto;
+}
+.w-annc,.i-video_data,.w-video_data,.w-ba-banner{
+ img{
width: 100%;
height: 100%;
object-fit: cover;
+ }
}
// Take care of exceeding content
// body[data-module="page_content"],
diff --git a/assets/stylesheets/template/base/_sitemap-override.scss b/assets/stylesheets/template/base/_sitemap-override.scss
index 1d692f6..9d20d82 100644
--- a/assets/stylesheets/template/base/_sitemap-override.scss
+++ b/assets/stylesheets/template/base/_sitemap-override.scss
@@ -3,6 +3,7 @@
@import "variables";
body .sitemap-list {
+ padding-left: 1.6em;
a {
color: $theme-color-main;
diff --git a/assets/stylesheets/template/layout/content.scss b/assets/stylesheets/template/layout/content.scss
index a2343ea..997e0f9 100644
--- a/assets/stylesheets/template/layout/content.scss
+++ b/assets/stylesheets/template/layout/content.scss
@@ -9,7 +9,7 @@
.verticalhome{
position: relative;
width: 100%;
- overflow: hidden;
+ z-index: unset!important;
}
.internal-page{
.layout-content{
@@ -23,8 +23,8 @@
}
.layout-content {
position: relative;
- min-height: 42.5em;
- background: #fff;
+ min-height: 55.5em;
+ background: #F8F9FA;
.container {
@extend .response-container;
}
@@ -33,7 +33,6 @@
overflow: hidden;
}
.video-banner{
- max-width: 850px;
margin: auto;
position: relative;
}
@@ -69,8 +68,8 @@
position: relative;
width: 100%;
background: #F8F9FA;
- padding-bottom: 4em;
- padding-top: 4em;
+ padding-bottom: 2em;
+ padding-top: 2em;
p{
padding-bottom: 1em;
}
@@ -80,22 +79,22 @@
position: relative;
width: 100%;
// background-image: linear-gradient(280deg, #e6e6e6 56%, #fff 0);
- padding-top: 4em;
- padding-bottom: 4em;
+ padding-top: 2em;
+ padding-bottom: 2em;
}
.contentwrap2{
overflow: hidden;
position: relative;
width: 100%;
- padding-top: 4em;
- padding-bottom: 4em;
+ padding-top: 2em;
+ padding-bottom: 2em;
}
.contentwrap3{
overflow: hidden;
position: relative;
width: 100%;
- padding-top: 4em;
- padding-bottom: 4em;
+ padding-top: 2em;
+ padding-bottom: 2em;
background:#F8F9FA;
}
.iconwrap{
diff --git a/assets/stylesheets/template/layout/header.scss b/assets/stylesheets/template/layout/header.scss
index 75fbaf1..e020f4e 100644
--- a/assets/stylesheets/template/layout/header.scss
+++ b/assets/stylesheets/template/layout/header.scss
@@ -1,9 +1,104 @@
@charset "utf-8";
@import "../initial";
+a[href="/zh_tw/sitemap"]{
+ padding: 0 1em;
+}
+a[href="/en/sitemap"]{
+ padding: 0 1em;
+}
.fc-cal-date-selected-fusion {
font-size: 1em!important;
}
+.nav_ul{
+ padding: 0;
+ & > li{
+ position: relative;
+ list-style:none;
+ float: left;
+ display: inline-block;
+ @media(max-width:480px){
+ width: 100%;
+ a{
+ display: block;
+ }
+ }
+ &:hover{
+ background-color:transparent;
+ > a{
+ text-decoration: underline;
+ padding: 0.7em;
+ }
+ & > ul{
+ display: block;
+ a{
+ color: #fff;
+ }
+ }
+ }
+ & > ul{
+ @media(max-width:480px){
+ position: relative;
+ box-shadow: none;
+ display: block;
+ li{
+ width: 100%;
+ }
+ }
+ display: none;
+ width:-webkit-fill-available;
+ min-width: max-content;
+ box-shadow: 2px 2px 5px #00000033;
+ margin: 0;
+ transition-duration: 0.5s;
+ background:$theme-color-second;
+ position: absolute;
+ padding: 0;
+ li{
+ list-style:none;
+ float: none!important;
+ a{
+ color: #fff;
+ display: block;
+ padding: 0.7em;
+ }
+ &:hover{
+ background-color: rgba(darken($theme-color-second, 10%), 1);;
+ & > ul{
+ display: block;
+ }
+ }
+ }
+ }
+ }
+
+
+}
+.orbit-bar-inner{
+ .orbit-bar-menu{
+ display: flex;
+ align-items: center;
+ }
+
+ blockquote{
+ color: #fff;
+ padding: 0;
+ margin: 0;
+ font-size: unset;
+ border-left: 0;
+ &:after, &:before{
+ display: none;
+ }
+ a{
+ color: #fff;
+ text-decoration: none;
+ display: inline-block;
+ height: 40px;
+ padding: 0.7em;
+ font-size: 0.85em;
+ }
+ }
+}
.outdropdowns{
background-color: #fff;
position: relative;
@@ -28,7 +123,7 @@
}
}
.dropdowns{
- padding: 0;
+
}
.accessibility_mode a:focus{
outline: 0.1em solid !important;
@@ -47,7 +142,7 @@
li{
list-style: none;
}
- a[accesskey] {
+ a[accesskey]{
position: relative!important;
}
diff --git a/assets/stylesheets/template/modules/ad_banner.scss b/assets/stylesheets/template/modules/ad_banner.scss
index f3dcd6d..5078bcd 100644
--- a/assets/stylesheets/template/modules/ad_banner.scss
+++ b/assets/stylesheets/template/modules/ad_banner.scss
@@ -68,13 +68,6 @@ iframe{
.w-ba-banner__slide {
width: 100%;
}
-[data-cycle-carousel-visible="3"] .w-ba-banner__slide {
- width: auto;
- height: auto
-}
-[data-cycle-carousel-visible="3"]{
- padding-bottom: 0;
-}
.ad-overlay {
color: #333333;
font-family: $main-font;
@@ -105,11 +98,7 @@ iframe{
}
button {
- // background: hsla(0,0%,100%,.4);
- // width: 100%;
- // height: 3px;
- // border: unset;
- background: white !important;
+ background: #ccc !important;
display: inline-block;
margin-right: 0.25em;
width: 0.8em !important;
@@ -193,7 +182,7 @@ ul.button-mid{
top: 50%;
position: absolute;
transform: translateY(-50%);
- z-index: 100;
+ z-index: 200;
&:hover {
background: rgba(0,0,0,0.1);
@@ -215,7 +204,7 @@ ul.button-mid{
top: 50%;
position: absolute;
transform: translateY(-50%);
- z-index: 100;
+ z-index: 200;
&:hover {
background: rgba(0,0,0,0.1);
}
@@ -374,14 +363,6 @@ ul.button-mid{
width: 100%;
height: 100%;
}
-
-
- .banner-pager {
- right: 1em;
- top: -2em;
- z-index: 100;
- display: none;
- }
}
// Widget 3
@@ -511,11 +492,8 @@ ul.button-mid{
padding: 0.5em;
overflow: hidden;
}
- .banner-pager{
- display: none;
- }
.banner-overlay {
- border-bottom: 3px solid $theme-color-second;
+ // border-bottom: 3px solid $theme-color-second;
text-align: center;
width: 100%;
visibility: unset !important;
@@ -629,6 +607,7 @@ ul.button-mid{
}
//Widget 10
.ba-banner-widget-10 {
+ margin-bottom: 1em;
.w-ad-banner__caption{
padding: 2em 1em;
background-image: linear-gradient(180deg, transparent 0, #00000066 40%, #000);
@@ -647,7 +626,6 @@ ul.button-mid{
"g1 g2 g3"
"g1 g4 g5";
grid-gap: 2% 1%;
- grid-template-columns:32.3% 32.3% 32.3%;
}
.bannerimgwrapper{
overflow: hidden;
diff --git a/assets/stylesheets/template/modules/announcement.scss b/assets/stylesheets/template/modules/announcement.scss
index 4d5d061..6f1a242 100644
--- a/assets/stylesheets/template/modules/announcement.scss
+++ b/assets/stylesheets/template/modules/announcement.scss
@@ -8,6 +8,20 @@
// Announcement widget
// ## Gerneral styles for widgets
+.s-annc__show-title{
+ span{
+ justify-content: center;
+ &:before{
+ display: none!important;
+ }
+ &:after{
+ display: none!important;
+ }
+ }
+}
+.w-annc__item_inner{
+ position: relative;
+}
.VivaTimeline{
z-index: 1;
position: relative;
@@ -42,7 +56,7 @@
}
.w-annc .w-annc__subtitle{
display: -webkit-box;
- -webkit-line-clamp: 1;
+ -webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
@@ -121,7 +135,7 @@
@extend .i-title;
color: $theme-color-main;
font-weight: normal;
- display: flex!important;
+ display: flex;
align-items: center;
}
@@ -287,6 +301,7 @@
// Widget-4
.widget-announcement-4 {
+
.w-annc__title {
font-family: $main-font;
display: -webkit-box;
@@ -319,12 +334,6 @@
-webkit-box-orient: vertical;
}
}
- .clearfix{
- // text-align: center;
- // display: flex;
- // justify-content: center;
- // margin-bottom: 2em;
- }
.w-annc__content-wrap {
&:after {
content: '';
@@ -337,16 +346,18 @@
}
}
.w-annc__item{
+ padding: 0.5em;
+ margin: 0!important;
+ }
+ .w-annc__item_inner{
-webkit-transition: .3s all ease;
-o-transition: .3s all ease;
transition: .3s all ease;
background: #fff;
-webkit-box-shadow: 0 1px 2px 0 #0000002e;
box-shadow: 0 1px 2px 0 #0000002e;
- margin-right: 0.5em;
- margin-left: 0.5em;
+ margin: 0;
margin-bottom: 1em;
- padding: 0;
&:hover{
-webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
@@ -359,21 +370,7 @@
}
}
}
- .w-annc__item{
- // @media(min-width: $screen-lg){
- // width:382px !important;
- // }
- // @media(max-width: 1025px)and(min-width: 821px){
- // width: 30.5vw !important;
- // }
- // @media(max-width: 820px)and(min-width: 768px){
- // width: 356px!important;
- // }
- // @media (max-width: $screen-xs) {
- // width: 94vw !important;
- // margin-left: 0 !important;
- // margin-right: 0 !important;
- // }
+ .w-annc__item_inner{
&:hover{
-webkit-transform: translateY(-6px);
-ms-transform: translateY(-6px);
@@ -420,7 +417,6 @@
}
.w-annc__list{
display: flex;
- justify-content: center;
}
.w-annc__postdate-wrap{
color: #fff!important;
@@ -633,9 +629,6 @@
margin-right: 1em;
overflow: hidden;
position: relative !important;
- @media(max-width: $screen-xs){
- width: 100% !important;
- }
@media(min-width: 1600px){
height: 28em;
.w-annc__img-wrap{
@@ -708,11 +701,6 @@
-webkit-box-orient: vertical;
}
}
- .clearfix{
- // text-align: center;
- // display: flex;
- // justify-content: center;
- }
.w-annc__subtitle {
display: -webkit-box;
-webkit-line-clamp: 2;
@@ -733,46 +721,24 @@
}
}
.w-annc__item{
- -webkit-transition: .3s all ease;
- -o-transition: .3s all ease;
- transition: .3s all ease;
- padding-bottom: 1em;
- @media(min-width: $screen-lg){
- width:382px !important;
- }
- @media(max-width: 1025px)and(min-width: 821px){
- width: 30.5vw !important;
- }
- @media(max-width: 820px)and(min-width: 768px){
- width: 356px!important;
- }
- @media (max-width: $screen-xs) {
- width: 93.5vw !important;
- margin-left: 0 !important;
- margin-right: 1em !important;
- }
- &: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;
- .w-annc__content-wrap:after{
- width: 100%;
- background: #f2f2f2;
- }
- }
- }
- .w-annc__item{
+ padding: 0.5em;
+ margin: 0!important;
+ }
+ .w-annc__item_inner{
+ background: #fff;
+ -webkit-transition: .3s all ease;
+ -o-transition: .3s all ease;
+ transition: .3s all ease;
+ -webkit-box-shadow:none!important;
+ box-shadow:none!important;
+ margin: 0;
+ margin-bottom: 1em;
+ }
+ .w-annc__item_inner{
&:hover{
-webkit-transform: translateY(-6px);
-ms-transform: translateY(-6px);
transform: translateY(-6px);
-
- .w-annc__img-wrap{
- box-shadow: 0 12px 24px #0000004d, 0 10px 10px #00000033;
- -webkit-box-shadow: 0 12px 24px #0000004d, 0 10px 10px #00000033;
- }
img{
// transform: scale(1.2)!important;
// -webkit-transition: .3s ease-out;
@@ -816,11 +782,6 @@
}
}
.w-annc__item{
- padding: 0;
- margin-right: 0.5em;
- margin-left: 0.5em;
- overflow: hidden;
- position: relative !important;
@media(min-width: 1600px){
height: 28em;
@@ -831,10 +792,8 @@
}
@media(min-width: $screen-xs)and(max-width: 1599px){
height: 20em;
-
.w-annc__img-wrap{
height: 20em;
-
}
}
}
@@ -869,7 +828,7 @@
bottom: 0;
left: 0;
width: 100%;
- height: 8px;
+ height: 18px;
background-color: $theme-color-second;
z-index: -1;
-webkit-transition: height .6s;
@@ -1326,9 +1285,6 @@
margin-right: 1em;
overflow: hidden;
position: relative !important;
- @media(max-width: $screen-xs){
- width: 100% !important;
- }
@media(min-width: 1600px){
height: 28em;
.w-annc__img-wrap{
@@ -1426,37 +1382,49 @@
transition: width .5s ease, background-color .5s ease;
}
}
- .w-annc__item{
- -webkit-transition: .3s all ease;
- -o-transition: .3s all ease;
- transition: .3s all ease;
- padding-bottom: 1em;
- @media(min-width: $screen-lg){
- width:382px !important;
- }
- @media(max-width: 1025px)and(min-width: 821px){
- width: 30.5vw !important;
- }
- @media(max-width: 820px)and(min-width: 768px){
- width: 356px!important;
- }
- @media (max-width: $screen-xs) {
- width: 93.5vw !important;
- margin-left: 0 !important;
- margin-right: 1em !important;
- }
- &: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;
- .w-annc__content-wrap:after{
- width: 100%;
- background: #f2f2f2;
- }
- }
- }
+ .w-annc__item{
+ padding: 0.5em;
+ margin: 0!important;
+ }
+ .w-annc__item_inner{
+ background: #fff;
+ -webkit-transition: .3s all ease;
+ -o-transition: .3s all ease;
+ transition: .3s all ease;
+ -webkit-box-shadow:none!important;
+ box-shadow:none!important;
+ margin: 0;
+ margin-bottom: 1em;
+ }
+ .w-annc__item_inner{
+ &:hover{
+ -webkit-transform: translateY(-6px);
+ -ms-transform: translateY(-6px);
+ transform: translateY(-6px);
+ img{
+ // transform: scale(1.2)!important;
+ // -webkit-transition: .3s ease-out;
+ // -moz-transition: .3s ease-out;
+ // -ms-transition: .3s ease-out;
+ // -o-transition: .3s ease-out;
+ // transition: .3s ease-out;
+ }
+ .transitionfade{
+ height: inherit;
+ 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;
+ }
+ }
+ }
.w-annc__item{
&:hover{
-webkit-transform: translateY(-6px);
@@ -1468,10 +1436,6 @@
align-items: end;
flex-wrap: wrap;
}
- .w-annc__img-wrap{
- box-shadow: 0 12px 24px #0000004d, 0 10px 10px #00000033;
- -webkit-box-shadow: 0 12px 24px #0000004d, 0 10px 10px #00000033;
- }
img{
transform: scale(1.2)!important;
-webkit-transition: .3s ease-out;
@@ -1515,27 +1479,27 @@
}
}
.w-annc__item{
- padding: 0;
- margin-right: 0.5em;
- margin-left: 0.5em;
+ margin-right: 1em;
overflow: hidden;
position: relative !important;
@media(min-width: 1600px){
- height: 28em;
-
+ height: 28em;
.w-annc__img-wrap{
height: 28em;
-
}
}
@media(min-width: $screen-xs)and(max-width: 1599px){
- height: 20em;
-
+ height: 20em;
.w-annc__img-wrap{
- height: 20em;
-
+ height: 20em;
}
}
+ @media(max-width: $screen-xs){
+ height: 20em;
+ .w-annc__img-wrap{
+ height: 20em;
+ }
+ }
}
li{
&:hover{
@@ -2001,6 +1965,9 @@
// Widget-13
// ## Table
.widget-announcement-13 {
+ .table>tbody>tr>td{
+ border: 0;
+ }
.w-annc__th{
white-space: nowrap;
@media(max-width: $screen-xs){
@@ -2040,7 +2007,16 @@
// Widget-14
.widget-announcement-14 {
-
+ .w-annc__inner{
+ @media(min-width:769px){
+ display: flex;
+ }
+ }
+ .w-annc__img-wrap{
+ @media(min-width:769px){
+ padding-right: 1em!important;
+ }
+ }
.w-annc__img-wrap {
margin-bottom: 0;
padding: 0;
@@ -2089,47 +2065,29 @@
}
.w-annc__img-wrap {
- height: 15.5em;
+ // height: 15.5em;
margin: 0;
overflow: hidden;
}
.w-annc__item{
+ padding: 0.5em;
+ margin: 0!important;
+ }
+ .w-annc__item_inner{
background: #fff;
-webkit-transition: .3s all ease;
-o-transition: .3s all ease;
transition: .3s all ease;
-webkit-box-shadow: 0 1px 2px 0 #0000002e;
box-shadow: 0 1px 2px 0 #0000002e;
- margin-right: 0.5em;
- margin-left: 0.5em;
+ margin: 0;
margin-bottom: 1em;
- padding: 0;
- @media(min-width: $screen-lg){
- width:382px !important;
- }
- @media(max-width: 1025px)and(min-width: 821px){
- width: 30.5vw !important;
- }
- @media(max-width: 820px)and(min-width: 768px){
- width: 356px!important;
- }
- @media (max-width: $screen-xs) {
- width: 94.5vw !important;
- margin-left: 0 !important;
- margin-right: 1em !important;
- }
}
- // .cycle-slide{
- // width:25vw !important;
- // }
- // .cycle-carousel-wrap{
- // margin-left:0.5em !important;
- // }
}
//Widget 16
.widget-announcement-16 {
.w-annc__item{
- padding-right: 1em;
+ // padding-right: 1em;
}
.w-annc__img{
width: 100%;
@@ -2452,7 +2410,7 @@
}
.i-annc__img-wrap {
overflow: hidden;
- height: 14.5em;
+ // height: 14.5em;
margin: 1em 0.5em;
@media (max-width:$screen-xs) {
height: 7em;
@@ -2603,13 +2561,14 @@ table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child:before, table.dataT
table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before, table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th:first-child:before {
background-color: $theme-gray !important;
}
-.i-annc__table{
- border: 0.0625em solid #ddd !important;
-}
.i-annc__table .child span.dtr-data li {
padding: 0 0.5em;
}
-
+.i-annc{
+ tr{
+ border: 0.0625em solid #ddd !important;
+ }
+}
// Index-1
// Index-2
.index-announcement-1,
@@ -3509,7 +3468,7 @@ table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before, tabl
}
.i-annc__img-wrap {
overflow: hidden;
- height: 14.5em;
+ // height: 14.5em;
margin: 1em 0.5em;
@media (max-width:$screen-xs) {
height: 7em;
diff --git a/assets/stylesheets/template/modules/archives.scss b/assets/stylesheets/template/modules/archives.scss
index 501260a..4ebd37b 100644
--- a/assets/stylesheets/template/modules/archives.scss
+++ b/assets/stylesheets/template/modules/archives.scss
@@ -7,6 +7,9 @@
//
// Widget
// ## gerenral styles
+.i-archive__file-wrap{
+ font-size: 1.2em;
+}
.i-archive__list{
.date-thead{
min-width: 4em;
@@ -18,6 +21,7 @@
}
}
.i-items{
+ border: 1px solid #ccc;
@media(min-width: 768px){
background-color: #fff;
}
@@ -42,9 +46,6 @@
@extend .unity-title;
}
}
-.i-archive-item-title{
- font-weight: normal;
-}
.panel-title{
@extend .i-title;
}
@@ -144,14 +145,14 @@
.i-archive-title {
@extend .unity-title;
}
-.link{margin-left: 0.5em;}
-.txt { background-color: #6dbb73; margin-left: 0.5em;}
-.xlsx { background-color: #bb6d7f; margin-left: 0.5em;}
-.pdf { background-color: #3b8347; margin-left: 0.5em;}
-.docx { background-color: #846dbb; margin-left: 0.5em;}
-.pptx { background-color: #6d77bb; margin-left: 0.5em;}
-.jpg { background-color: #bb6d6d; margin-left: 0.5em;}
-.zip { background-color: #dcb957; margin-left: 0.5em;}
+.link{margin-right: 0.5em;}
+.txt { background-color: #6dbb73; margin-right: 0.5em;}
+.xlsx { background-color: #bb6d7f; margin-right: 0.5em;}
+.pdf { background-color: #3b8347; margin-right: 0.5em;}
+.docx { background-color: #846dbb; margin-right: 0.5em;}
+.pptx { background-color: #6d77bb; margin-right: 0.5em;}
+.jpg { background-color: #bb6d6d; margin-right: 0.5em;}
+.zip { background-color: #dcb957; margin-right: 0.5em;}
.table>caption+thead>tr:first-child>td, .table>caption+thead>tr:first-child>th, .table>colgroup+thead>tr:first-child>td, .table>colgroup+thead>tr:first-child>th, .table>thead:first-child>tr:first-child>td, .table>thead:first-child>tr:first-child>th{
// border-top: 0.0625em solid #ddd;
}
@@ -160,10 +161,12 @@
font-family: $main-font;
.i-archive__item-wrap{
- border: 1px solid #ccc;
- margin-bottom: 20px;
- box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
- padding: 15px;
+ border-bottom: 1px solid #ccc;
+ padding-bottom: 1em;
+ padding-top: 1em;
+ &:last-child{
+ border-bottom: 0;
+ }
}
.i-archive__archive-title {
@@ -183,7 +186,6 @@
list-style: none;
}
- .i-archive__category-list {}
.i-archive__category-title {
padding-bottom: 0.3125em;
@@ -195,13 +197,12 @@
}
.i-archive__file-list {
- display: block;
margin-bottom: 0;
}
.i-archive__file-wrap {
margin:0;
- padding:0.5em 0 0;
+ padding:0 0 0.5em 0;
border-radius: 0.125em;
}
@@ -399,7 +400,6 @@
margin-bottom: 1.5em;
position: relative;
background: #fff;
- border-radius: 5px;
}
.head{
@media(min-width: 821px){
diff --git a/assets/stylesheets/template/modules/event_news.scss b/assets/stylesheets/template/modules/event_news.scss
index c30b4c3..623665a 100644
--- a/assets/stylesheets/template/modules/event_news.scss
+++ b/assets/stylesheets/template/modules/event_news.scss
@@ -57,17 +57,27 @@
.w-annc__list{
padding: 0!important;
}
+// .event-news-14
+.event-news-14{
+ .w-annc__inner{
+ display: flex;
+ flex-wrap: wrap;
+ margin-bottom: 1em;
+ .w-annc__list{
+ @media(max-width:768px){
+ width:100%;
+ }
+
+ }
+ }
+}
//event-news-21
.event-news-21 {
.w-annc__item{
padding: 0;
- margin-right: 0.5em;
- margin-left: 0.5em;
+ margin-right: 1em;
overflow: hidden;
position: relative !important;
- @media(max-width: $screen-xs){
- width: 100% !important;
- }
@media(min-width: 1600px){
height: 28em;
.w-annc__img-wrap{
@@ -113,9 +123,6 @@
.w-annc__title{
color: #fff;
- @media(min-width:1920px){
- font-size: 1.6rem!important;
- }
}
.w-annc__title {
font-family: $main-font;
@@ -143,12 +150,6 @@
-webkit-box-orient: vertical;
}
}
- .clearfix{
- text-align: center;
- display: flex;
- justify-content: center;
- margin-bottom: 2em;
- }
.w-annc__subtitle {
display: -webkit-box;
-webkit-line-clamp: 2;
@@ -169,46 +170,24 @@
}
}
.w-annc__item{
- -webkit-transition: .3s all ease;
- -o-transition: .3s all ease;
- transition: .3s all ease;
- padding-bottom: 1em;
- @media(min-width: $screen-lg){
- width:382px !important;
- }
- @media(max-width: 1025px)and(min-width: 821px){
- width: 30.5vw !important;
- }
- @media(max-width: 820px)and(min-width: 768px){
- width: 356px!important;
- }
- @media (max-width: $screen-xs) {
- width: 93.5vw !important;
- margin-left: 0 !important;
- margin-right: 1em !important;
- }
- &: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;
- .w-annc__content-wrap:after{
- width: 100%;
- background: #f2f2f2;
- }
- }
- }
- .w-annc__item{
+ padding: 0.5em;
+ margin: 0!important;
+ }
+ .w-annc__item_inner{
+ background: #fff;
+ -webkit-transition: .3s all ease;
+ -o-transition: .3s all ease;
+ transition: .3s all ease;
+ -webkit-box-shadow:none!important;
+ box-shadow:none!important;
+ margin: 0;
+ margin-bottom: 1em;
+ }
+ .w-annc__item_inner{
&:hover{
-webkit-transform: translateY(-6px);
-ms-transform: translateY(-6px);
transform: translateY(-6px);
-
- .w-annc__img-wrap{
- box-shadow: 0 12px 24px #0000004d, 0 10px 10px #00000033;
- -webkit-box-shadow: 0 12px 24px #0000004d, 0 10px 10px #00000033;
- }
img{
// transform: scale(1.2)!important;
// -webkit-transition: .3s ease-out;
@@ -252,11 +231,6 @@
}
}
.w-annc__item{
- padding: 0;
- margin-right: 0.5em;
- margin-left: 0.5em;
- overflow: hidden;
- position: relative !important;
@media(min-width: 1600px){
height: 28em;
@@ -267,10 +241,8 @@
}
@media(min-width: $screen-xs)and(max-width: 1599px){
height: 20em;
-
.w-annc__img-wrap{
height: 20em;
-
}
}
}
@@ -285,21 +257,18 @@
}
}
position: relative;
- @media only screen and (max-width: 769px) and(min-width:500px){
- flex: 0 0 50%;
- }
}
.card{
position: absolute;
z-index:0;
- padding: 20px 25px;
+ padding: 30px 25px;
bottom: 0;
left: 0;
background-color: transparent;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(32%, #ffffff00), color-stop(89%, #00000080));
background-image: linear-gradient(
180deg
- , #ffffff00 32%, #00000080 89%);
+ , #ffffff00 2%, #00000080 89%);
width: 100%;
}
.card:before{
@@ -308,7 +277,7 @@
bottom: 0;
left: 0;
width: 100%;
- height: 8px;
+ height: 18px;
background-color: $theme-color-second;
z-index: -1;
-webkit-transition: height .6s;
@@ -330,7 +299,6 @@
font-weight: bold;
color: #599df7;
}
- .w-annc__widget-title { float: left; }
.w-annc__more {
margin-top: 1.5em;
display: none;
@@ -370,7 +338,7 @@
transition: .3s all ease;
margin-right: 0.5em;
margin-left: 0.5em;
- margin-bottom: 1em;
+ margin-bottom: 1em!important;
padding: 0;
width: 100% !important;
display: flex!important;
diff --git a/assets/stylesheets/template/modules/gallery.scss b/assets/stylesheets/template/modules/gallery.scss
index a084182..52eebb4 100644
--- a/assets/stylesheets/template/modules/gallery.scss
+++ b/assets/stylesheets/template/modules/gallery.scss
@@ -1,6 +1,30 @@
@charset "utf-8";
@import "../initial";
+.album-name{
+ min-height: 1em;
+ display: block;
+}
+.show-pic{
+ overflow: hidden;
+ &:hover{
+ img{
+ transform: scale(1.1) !important;
+ -webkit-transition: .3s ease-out;
+ -moz-transition: .3s ease-out;
+ -ms-transition: .3s ease-out;
+ -o-transition: .3s ease-out;
+ transition: .3s ease-out;
+ }
+ }
+}
+.widget-gallery{
+ position: relative;
+ z-index: 1;
+}
+.widget-content-inner{
+ margin-bottom: 1em;
+}
.index-pic{
overflow: hidden;
padding: 0;
@@ -60,6 +84,10 @@
}
.widget-content {
width: 100%;
+ @media(min-width:769px){
+ display: flex;
+ flex-wrap: wrap;
+ }
// margin-left: -0.3125em;
// margin-right: -0.3125em;
@@ -96,7 +124,6 @@
.widget-pic {
margin-right:1em;
border-radius: 10px;
- behavior: url("/assets/ie_support/PIE2/PIE.htc");
border: 2px solid $theme-color-second;
overflow: hidden;
display: inline-block;
@@ -117,8 +144,214 @@
display: inline-block;
width: 100%;
height: auto;
- border-radius: 1.5em;
- transform: scale(4) translateY(-1%);
+ }
+ }
+ }
+ }
+ &.widget7 {
+ position: relative;
+ .cycle-carousel-wrap{
+ display: flex;
+ align-items: baseline;
+ }
+ .gallery-widget-title{
+ // float: left;
+ // width: 150px;
+ // display: inline-block;
+ // padding: 5px 0 0 20px;
+ position: relative;
+ @media(max-width:$screen-xs){
+ float: none;
+ width: 100%;
+ }
+ &:before {
+ content: "";
+ display: inline-block;
+ width: 1px;
+ height: 140px;
+ margin: 0;
+ overflow: hidden;
+ background: #fff;
+ position: absolute;
+ top: -100px;
+ left: 0;
+ }
+ .en {
+ float: left;
+ font-size: 1.5em;
+ line-height: 1em;
+ color: #FFF;
+ font-weight: bold;
+ }
+ .ch {
+ float: left;
+ font-size: 1em;
+ line-height: 1em;
+ color: #FFF;
+ display: inline-block;
+ margin: 8px 0 0 0;
+ }
+ }
+ .mask_title {
+ color: #000000;
+ text-align: center;
+ margin: 0;
+ padding: 8px 10px 10px;
+ background: #fff;
+ display: block;
+ font-size: 1.2em;
+ line-height: 1.7em;
+ width: 100%;
+ white-space: pre-line;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ white-space: normal;
+ height: 4em;
+ }
+
+ .button-mid{
+ position: absolute;
+ width: 100%;
+ top: 50%;
+ .prev-button,.next-button{
+ cursor: pointer;
+ }
+ @media(min-width:769px){
+ .prev-button{
+ left: 1.5em;
+ }
+ }
+ // position: absolute;
+ // width: 7%;
+ // height: 0;
+ // top: -2em;
+ // right: 0;
+ // min-width: 100px;
+ }
+
+ .banner-pager {
+ position:relative;
+ text-align: center;
+ margin-top: 10px;
+ }
+
+ .banner-pager span {
+ display: inline-block;
+ width: 10px;
+ height: 10px;
+ margin: 0 4px;
+ background: #ccc;
+ border-radius: 50%;
+ cursor: pointer;
+ }
+
+ .banner-pager .cycle-pager-active {
+ background: $theme-color-second;
+ }
+ .widget-content {
+ overflow: hidden;
+
+ .album-item {
+ display: flex;
+ flex-direction: column;
+ }
+
+ .widget-pic {
+ display: inline-block;
+ padding: 0.0625em;
+ text-align: center;
+ padding: 0.5em;
+ @media(max-width:$screen-xs){
+ margin: 0!important;
+ padding:0;
+ }
+
+ @include size(20%, auto);
+
+ img {
+ @include size(100%, 100%);
+ }
+ }
+ }
+ }
+ &.widget8 {
+ .cycle-slideshow>*:nth-child(n + 2):not(.active,[class*="-wrap"]){
+ display: none!important;
+ }
+ .cycle-carousel-wrap{
+ display: flex;
+ align-items: baseline;
+ }
+ .gallery-widget-title{
+ position: relative;
+ @media(max-width:$screen-xs){
+ float: none;
+ width: 100%;
+ }
+ }
+ .mask_title {
+ color: #000000;
+ text-align: center;
+ margin: 0;
+ padding: 8px 10px 10px;
+ background: #fff;
+ display: block;
+ font-size: 1em;
+ line-height: 1.7em;
+ height: 4em;
+ width: 100%;
+ box-sizing: border-box;
+ text-align: center;
+ padding: 8px 10px 10px;
+ overflow-wrap: break-word;
+ white-space: normal;
+ }
+
+ .button-mid{
+
+ }
+
+ .banner-pager {
+ position:relative;
+ text-align: center;
+ margin-top: 10px;
+ }
+
+ .banner-pager span {
+ display: inline-block;
+ width: 10px;
+ height: 10px;
+ margin: 0 4px;
+ background: #ccc;
+ border-radius: 50%;
+ cursor: pointer;
+ }
+
+ .banner-pager .cycle-pager-active {
+ background: $theme-color-second;
+ }
+ .widget-content {
+ overflow: hidden;
+
+ .album-item {
+ display: flex;
+ flex-direction: column;
+ }
+
+ .widget-pic {
+ padding: 0.0625em;
+ text-align: center;
+ padding-left: 1em;
+ border-radius: 1em;
+ @media(max-width:$screen-xs){
+ margin: 0!important;
+ }
+ img{
+ height: 12.5em!important;
}
}
}
@@ -131,6 +364,12 @@
}
&.index1 {
+ @media(min-width:769px){
+ .img-thumbnail{
+ height: 15em;
+ overflow: hidden;
+ }
+ }
.index-content {
@media(max-width: $screen-xs){
width: 100%;
@@ -167,7 +406,6 @@
}
}
}
-
&.index2 {
.index-part{
@media(max-width: $screen-xs){
@@ -205,68 +443,127 @@
}
}
&.index6 {
- .index-content{
- margin-bottom: 1em;
- @media(min-width: $screen-xs)and(max-width: 820px){
- width: 50%;
+ .index-content{
+ margin-bottom: 1em;
+ @media(min-width: $screen-xs)and(max-width: 820px){
+ width: 50%;
+ }
+ @media(max-width: $screen-xs){
+ width: 100%;
+ }
}
- @media(max-width: $screen-xs){
- width: 100%;
+ .index-pic{
+ border-bottom-right-radius: 30px;
+ overflow: hidden;
+ .img-thumbnail{
+ width: 100%;
+ border: 0;
+ padding: 0;
+ &:hover{
+ transform: scale(2);
+ -webkit-transition: .3s all ease;
+ -o-transition: .3s all ease;
+ transition: .3s all ease;
+ }
+ }
}
- }
- .index-pic{
- border-bottom-right-radius: 30px;
- overflow: hidden;
- .img-thumbnail{
- width: 100%;
- border: 0;
- padding: 0;
- &:hover{
- transform: scale(2);
- -webkit-transition: .3s all ease;
- -o-transition: .3s all ease;
- transition: .3s all ease;
+ .index-content {
+ &:nth-child(4n+1) {
+ clear: both;
+ }
+
+ .index-part {
+ padding: 0.5em;
+ }
+
+ .index-content-inner {
+ position: relative;
+ border: 0.0625em solid #ddd;
+ padding: 0.8em;
+ }
+
+ .index-content-title {
+ @extend .i-title;
+ font-family: $main-font;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ margin-bottom: 0;
+ height: 2.5em;
+ }
+
+ .index-img-description {
+ font-size: 0.813em;
+ display: -webkit-box;
+ -webkit-line-clamp: 3;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+ text-overflow: ellipsis;
}
}
}
- .index-content {
- &:nth-child(4n+1) {
- clear: both;
+ &.index7 {
+ @media(min-width:769px){
+ .img-thumbnail{
+ height: 15em;
+ overflow: hidden;
+ }
}
-
- .index-part {
- padding: 0.5em;
+ .img-thumbnail{
+ padding: 0;
}
+ .index-content {
+ margin-bottom: 1em;
+ @media(max-width: $screen-xs){
+ width: 100%;
+ }
+ &:nth-child(4n+1) {
+ clear: both;
+ }
- .index-content-inner {
- position: relative;
- border: 0.0625em solid #ddd;
- padding: 0.8em;
- }
+ .index-part {
+ padding: 0.5em;
+ width: 100%;
+ padding: 1vw;
+ color: #fff;
+ box-sizing: border-box;
+ background-color: rgba(0, 0, 0, 0.6);
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ z-index: 2;
+ a{
+ color: #fff;
+ }
+ }
- .index-content-title {
- @extend .i-title;
- font-family: $main-font;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- overflow: hidden;
- text-overflow: ellipsis;
- margin-bottom: 0;
- height: 2.5em;
- }
+ .index-content-inner {
+ position: relative;
+ }
- .index-img-description {
- font-size: 0.813em;
- display: -webkit-box;
- -webkit-line-clamp: 3;
- -webkit-box-orient: vertical;
- overflow: hidden;
- text-overflow: ellipsis;
+ .index-content-title {
+ @extend .i-title;
+ font-family: $main-font;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+
+ .index-img-description {
+ font-size: 0.813em;
+ display: -webkit-box;
+ -webkit-line-clamp: 3;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
}
}
}
-}
.show-gallery {
.show-title {
diff --git a/assets/stylesheets/template/modules/member.scss b/assets/stylesheets/template/modules/member.scss
index 4937ab1..1f9b257 100644
--- a/assets/stylesheets/template/modules/member.scss
+++ b/assets/stylesheets/template/modules/member.scss
@@ -7,6 +7,11 @@
//
// Member Index
// ## Gerneral styles for Index
+.i-member-profile-item{
+ a{
+ word-wrap: break-word;
+ }
+}
.i-member-profile-item{
list-style: none;
}
@@ -186,9 +191,8 @@
.i-member-item {
width: 100%;
}
- .i-member-item-inner { display: flex; }
- .i-member-pic-wrap { width: 40%; }
- .i-member-profile-data-wrap { width: 60%; }
+ .i-member-pic-wrap { width: 100%; }
+ .i-member-profile-data-wrap { width: 100%; }
}
}
@@ -494,7 +498,7 @@
padding-bottom: 1em;
}
.nav-pills>li.active>a, .nav-pills>li.active>a:focus, .nav-pills>li.active>a:hover {
- background-color: #91bfea;
+ background-color: $theme-color-second;
}
.nav-pills>li>a {
border-radius: unset;
@@ -537,4 +541,98 @@
.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th{
border: 0;
}
+}
+// Index 9
+.index-member-9 {
+ .i-annc__page-title{
+ display: none;
+ }
+ @media(min-width:769px){
+ .i-member-profile-list{
+ display: flex;
+ flex-wrap: wrap;
+ }
+ .i-member-profile-item.deputy {
+ width: 100%;
+ }
+ .titlesection,.infosection{
+ width: 50%;
+ }
+ }
+ .i-member-pic-wrap{
+ display: none!important;
+ }
+ .member-data-value-1 {
+ color: #0693e3;
+ font-size: 2em;
+ }
+ .member-data-value-name{
+ color: #0693e3;
+ font-size: 2em;
+ }
+ .member-data-title-1,.member-data-title-name {
+ display: none;
+ }
+ .i-member-section {
+ max-width: 31.25em;
+ margin: auto;
+ }
+
+ .i-member-status-title {
+ @extend .unity-title;
+ }
+
+ .i-member-item-inner {
+ background: none;
+ padding: 1.5em 1rem;
+ margin-bottom: 1em;
+ border-bottom: 2px solid #333;
+ @media(max-width:768px){
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ }
+ }
+ .i-member-profile-data-wrap{
+ @media(max-width:768px){
+ width: 100%;
+ }
+ }
+
+ .i-member-pic-wrap {
+ height: auto;
+ margin-bottom: 1em;
+ clip-path: polygon(25% 5.77%, 75% 5.77%, 100% 50%, 75% 94.23%, 25% 94.23%, 0% 50%);
+ height: 10em;
+ width: 10em;
+ padding: 0;
+ }
+
+ .i-member-pic {
+ width: 100%;
+ padding: 0;
+ height: 100%;
+ object-fit: cover;
+ }
+
+ .i-member-profile-list {
+ @include list-reset;
+ color: #737f85;
+ }
+
+ .i-member-profile-item {
+ margin-bottom: 0.5em;
+ font-size: $font-13;
+ }
+
+ // RWD
+ @media screen and (min-width: $screen-sm) {
+ .i-member-section {
+ max-width: 100%;
+ }
+
+ .i-member-item-inner {
+
+ }
+ }
}
\ No newline at end of file
diff --git a/assets/stylesheets/template/modules/menu.scss b/assets/stylesheets/template/modules/menu.scss
index 271b22b..3fc251f 100644
--- a/assets/stylesheets/template/modules/menu.scss
+++ b/assets/stylesheets/template/modules/menu.scss
@@ -78,18 +78,31 @@
//固定選單
.navFixed {
+ @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;
- -webkit-transition: all .3s ease;
+ }
+ -webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-ms-transition: all .3s ease;
-o-transition: all .3s ease;
transition: all .3s ease;
- }
+ padding: 0.5em 0;
z-index: 10;
position: fixed;
left: 0;
- top:0;
margin-top: 0;
min-width: 100%;
-webkit-backdrop-filter: saturate(180%) blur(20px);
@@ -196,7 +209,6 @@
@media (min-width:769px)and(max-width: 1024px){
display: flex;
flex-wrap: wrap;
- justify-content:space-between;
padding: 0;
width: 100%;
}
@@ -206,7 +218,7 @@
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
- width: 65%;
+ width: 76%;
}
.has-dropdown.level-1.active {
.modules-menu-level-1 {
@@ -392,6 +404,9 @@
padding:0;
left: auto;
@media(min-width:769px){
+ // max-height: 70vh;
+ // overflow-y: auto;
+ // overflow-x: hidden;
min-width: 200px;
width:max-content;
box-shadow: 2px 2px 5px #00000033;
@@ -405,7 +420,7 @@
& > li {
position: relative;
- padding: 1em;
+ padding: 0.8em;
// & + li {
// border-top: 0.0625em solid lighten($theme-gray, 5%);
// }
@@ -416,10 +431,14 @@
font-weight: 600;
color: #686868;
font-size: 1.1em;
+ @media(max-width: 768px){
+ color: #686868;
+ }
}
&:hover {
/* background-color: $theme-color-second;*/
+ background: #e5e5e5;
@media(max-width: 769px){
a,i {
color:$theme-color-second;
diff --git a/assets/stylesheets/template/modules/universal-table.scss b/assets/stylesheets/template/modules/universal-table.scss
index 0df16c3..1137032 100644
--- a/assets/stylesheets/template/modules/universal-table.scss
+++ b/assets/stylesheets/template/modules/universal-table.scss
@@ -2,6 +2,9 @@
@import "../initial";
+.universal-form-inline{
+ position: relative;
+}
.universal-table-index tbody{
width:100% ;
}
@@ -34,7 +37,7 @@
width: 100%;
position: relative;
@media(max-width:$screen-xs){
- margin-top: 3em;
+
}
}
.universal-btn{
@@ -78,6 +81,7 @@
display: flex;
flex-wrap: wrap;
width: 100%;
+ border:0!important;
tr{
display: flex;
flex-wrap: wrap;
@@ -100,12 +104,15 @@
cursor: pointer;
padding: 0;
position: absolute;
- right:1em;
+ right:0;
z-index:2;
@media(max-width: $screen-xs){
margin-top: 0.5em;
right:0;
- top:-4em;
+ top:0;
+ position: relative;
+ float: right;
+ margin-bottom: 0.5em;
}
.searchbtn2, .universal-btn {
line-height: 2em;
@@ -209,6 +216,8 @@
margin-top: 1em;
z-index: 1;
position: relative;
+ width: 100%;
+ clear: both;
.fa-search{
color: #333!important;
}
@@ -367,4 +376,284 @@
transform: scale(1.1);
}
}
-}
\ No newline at end of file
+}
+
+img.image-preview {
+ max-width: 100px;
+}
+.universal-form-inline5{
+ .tdken{
+ @media(min-width:820px){
+ width: calc(50% - 1em) !important;
+ }
+ @media(min-width:768px)and(max-width:820px){
+ width: calc(50% - 1em) !important;
+ }
+ &:hover{
+ -webkit-transform: translateY(-6px);
+ -ms-transform: translateY(-6px);
+ transform: translateY(-6px);
+ box-shadow: 0 12px 24px #0000004d, 0 10px 10px #00000033;
+ -webkit-box-shadow: 0 12px 24px #0000004d, 0 10px 10px #00000033;
+ -webkit-transition: all .3sease;
+ -moz-transition: all .3s ease;
+ -ms-transition: all .3s ease;
+ -o-transition: all .3s ease;
+ transition: all .3sease;
+ .fa-thumbtack{
+ transform: scale(1.1) rotate(45deg);
+ }
+ i{
+ color:$theme-color-second;
+ transform: scale(1.1) ;
+ -webkit-transition: all .3sease;
+ -moz-transition: all .3s ease;
+ -ms-transition: all .3s ease;
+ -o-transition: all .3s ease;
+ transition: all .3sease;
+ }
+ }
+ }
+ .universal-table-index{
+ border:0;
+ }
+ .theadsearch{
+ display: none;
+ }
+ .universal-th-text{
+ padding: 0;
+ }
+ .image-preview {
+ width: 80px;
+ }
+ td,th{
+ width: 100%!important;
+ }
+ .kentbody{
+ display: flex;
+ flex-wrap: wrap;
+ }
+ tbody{
+ // display: flex;
+ // flex-wrap: wrap;
+ justify-content: center;
+ tr{
+ padding:18px 20px 25px 20px;
+ background-color: #fff;
+ box-shadow: 0 2px 8px 0px #999;
+ border-radius:30px;
+ margin: 0.5em;
+ position: relative;
+ min-height: 12em;
+ }
+ td{
+ border:0!important;
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ padding-bottom: 0 !important;
+ color: #0757A0;
+ font-size: 1.4rem;
+ a{
+ color: #2D9349;
+ font-size:medium;
+ }
+ &:nth-child(2){
+ font-size: 1.5rem;
+ color: #333;
+ font-weight: 500;
+ margin-bottom: 0.5em;
+ }
+ &:nth-child(5){
+ color: #00F;
+ }
+ }
+ }
+ .fa-thumbtack{
+ transform: rotate(45deg);position: absolute;right: 2em;
+ }
+}
+.universal-form-inline6{
+ .tdken{
+ @media(min-width:820px){
+ width: calc(33.3% - 1em) !important;
+ }
+ @media(min-width:768px)and(max-width:820px){
+ width: calc(50% - 1em) !important;
+ }
+ &:hover{
+ -webkit-transform: translateY(-6px);
+ -ms-transform: translateY(-6px);
+ transform: translateY(-6px);
+ box-shadow: 0 12px 24px #0000004d, 0 10px 10px #00000033;
+ -webkit-box-shadow: 0 12px 24px #0000004d, 0 10px 10px #00000033;
+ -webkit-transition: all .3sease;
+ -moz-transition: all .3s ease;
+ -ms-transition: all .3s ease;
+ -o-transition: all .3s ease;
+ transition: all .3sease;
+ .fa-thumbtack{
+ transform: scale(1.1) rotate(45deg);
+ }
+ i{
+ color:$theme-color-second;
+ transform: scale(1.1) ;
+ -webkit-transition: all .3sease;
+ -moz-transition: all .3s ease;
+ -ms-transition: all .3s ease;
+ -o-transition: all .3s ease;
+ transition: all .3sease;
+ }
+ }
+ }
+ .universal-table-index{
+ border:0;
+ }
+ .theadsearch{
+ display: none;
+ }
+ .universal-th-text{
+ padding: 0;
+ }
+ .image-preview {
+ width: 80px;
+ }
+ td,th{
+ width: 100%!important;
+ }
+ .kentbody{
+ display: flex;
+ flex-wrap: wrap;
+ }
+ tbody{
+ // display: flex;
+ // flex-wrap: wrap;
+ justify-content: center;
+ tr{
+ padding:18px 20px 25px 20px;
+ background-color: #fff;
+ box-shadow: 0 2px 8px 0px #999;
+ border-radius:30px;
+ margin: 0.5em;
+ position: relative;
+ min-height: 12em;
+ }
+ td{
+ border:0!important;
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ padding-bottom: 0 !important;
+ color: #0757A0;
+ font-size: 1.4rem;
+ a{
+ color: #2D9349;
+ font-size:medium;
+ }
+ &:nth-child(2){
+ font-size: 1.5rem;
+ color: #333;
+ font-weight: 500;
+ margin-bottom: 0.5em;
+ }
+ &:nth-child(5){
+ color: #00F;
+ }
+ }
+ }
+ .fa-thumbtack{
+ transform: rotate(45deg);position: absolute;right: 2em;
+ }
+}
+
+// .universal-table-show {
+
+// border-collapse: collapse;
+// .table-content{
+// table{
+// border: 0;
+// }
+// tbody > tr:nth-of-type(even) {
+// background-color: #cccccc30;
+// }
+// td{
+// border-bottom: 1px #333 solid;
+// }
+// }
+// td{
+// border-top:0!important;
+// min-width: 7em;
+// border-left: 0 !important;
+// border-right: 0 !important;
+// }
+// .universal-table-show.table td{
+// padding: 15px 18px;
+// }
+// tbody>tr:nth-of-type(odd){
+// background-color:transparent;
+// }
+// .table-content{
+// min-width: 100%!important;
+// }
+// .universal-table-tr{
+// display: flex;
+// flex-wrap: wrap;
+// justify-content: center;
+// width: 100%;
+// &:first-child{
+// display:none;
+// }
+// &:nth-child(2){
+// .table-title{
+// display: none;
+// }
+// .table-content{
+// padding-top: 1em;
+// width: 100%;
+// color: #173463;
+// font-size: 2.2rem;
+// font-weight: 900;
+// text-align: center;
+// padding-bottom: 0;
+// }
+// }
+// &:nth-child(3){
+// .table-title{
+// display: none;
+// }
+// .table-content{
+// width: 100%;
+// color: #e66b28;
+// font-size: 2.2rem;
+// font-weight: 900;
+// text-align: center;
+// padding-top: 0;
+// }
+// }
+// &:nth-child(4){
+// .table-title{
+// display: none;
+// }
+// .table-content{
+// margin-bottom: 1em;
+// }
+// }
+// &:nth-child(5){
+// .table-title{
+// display: none;
+// }
+// }
+
+// }
+// .table-content{
+// background-color: #fff;
+// padding: 0;
+// }
+// .table-title{
+// width: 100%;
+// padding: 30px 0;
+// color: #2D9349;
+// font-size: 1.8rem;
+// font-weight: 600;
+// }
+// }
diff --git a/assets/stylesheets/template/modules/video.scss b/assets/stylesheets/template/modules/video.scss
index dcf46e8..e707224 100644
--- a/assets/stylesheets/template/modules/video.scss
+++ b/assets/stylesheets/template/modules/video.scss
@@ -15,6 +15,9 @@
display: block!important;
}
}
+.w-video_data {
+ z-index: 1;
+}
.Video__Player{
display: flex;
-webkit-box-align: center;
@@ -29,8 +32,7 @@
padding-top: 0px;
border-radius: 50%;
border: 0px;
- background-color: $theme-color-second;
- background: url(/assets/btn-play.svg) no-repeat;
+ background: url(/assets/youtube.png) no-repeat;
background-size: 100%;
background-repeat: no-repeat;
background-position: center center;
@@ -437,7 +439,7 @@
text-overflow: ellipsis;
max-height: 4.5em;
line-height: 1.5em;
- min-height: 4.5em;
+ // min-height: 4.5em;
}
.video_info{
margin:0.5em 0;
@@ -513,7 +515,7 @@
border-radius: 50%;
border: 0px;
background-color: $theme-color-second;
- background: url(/assets/btn-play.svg) no-repeat;
+ background: url(/assets/youtube.png) no-repeat;
background-size: 100%;
background-repeat: no-repeat;
background-position: center center;
@@ -620,6 +622,89 @@
white-space: normal;
}
}
+.video_data-widget-6{
+ .video_info{
+ display: none;
+ }
+ .videohover{
+ position: absolute;
+ transition: 0.3s;
+ z-index: 2;
+ opacity: 1;
+ width: 100%;
+ height: 100%;
+ bottom: 0;
+ right: 0;
+ background-image: linear-gradient(180deg, transparent 0, #00000063 90%, #000);
+ }
+ .video_data{
+ padding: 0;
+ }
+ .video_snapshot{
+ transform: none!important;
+ box-shadow: none!important;
+ }
+ @media(max-width:768px){
+ margin-bottom: 3em;
+ }
+ .btnwrapper{
+ @media(max-width:768px)and(min-width:$screen-xs){
+ top:100%!important;
+ width: 14%!important;
+ left: 44%!important;
+ }
+ @media(max-width:$screen-xs){
+ top: 100%!important;
+ width: 24% !important;
+ left: 38% !important;
+ }
+ }
+ .video_data_wrap{
+ @media(min-width:$screen-xs){
+ display: flex;
+ flex-wrap: wrap;
+ }
+ }
+ // .video_data{
+ // @media(max-width:821px)and(min-width:$screen-xs){
+ // width: 48vw !important;
+ // float: none;
+ // }
+ // @media(max-width:$screen-xs){
+ // width: 92.5vw !important;
+ // margin-left: 0 !important;
+ // margin-right: 1em !important;
+ // float: none;
+ // }
+ // }
+ .video_desc{
+ display: -webkit-box;
+ -webkit-line-clamp: 3;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-height: 4.5em;
+ line-height: 1.5em;
+ // min-height: 4.5em;
+ }
+ .video_info{
+ margin:0.5em 0;
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ bottom: 0;
+ right: 0;
+ background-image: linear-gradient(180deg, transparent 0, #00000063 90%, #000);
+ }
+ .video_link{
+ display: -webkit-box;
+ -webkit-line-clamp: 3;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: normal;
+ }
+}
.video_detail{
@media(max-width:820px){
.video_box_wrap{
@@ -806,18 +891,18 @@
height:10em;
}
-@media(max-width: 821px)and(min-width: 769px){
- height: 7.8em;
+ @media(max-width: 821px)and(min-width: 769px){
+ height: 7.8em;
-}
-@media(max-width:768px)and(min-width:$screen-xs){
- height: 13.5em;
+ }
+ @media(max-width:768px)and(min-width:$screen-xs){
+ height: 13.5em;
-}
-@media(max-width: $screen-xs){
- height:13.5em;
-}
+ }
+ @media(max-width: $screen-xs){
+ height:13.5em;
+ }
}
.video_linkwrapper5{
diff --git a/assets/stylesheets/template/modules/web_resource.scss b/assets/stylesheets/template/modules/web_resource.scss
index 51806ef..8a8e97a 100644
--- a/assets/stylesheets/template/modules/web_resource.scss
+++ b/assets/stylesheets/template/modules/web_resource.scss
@@ -34,7 +34,7 @@
.widget-content{
list-style: none;
@media(min-width: $screen-xs)and(max-width: 768px){
- width: 50%!important;
+ // width: 50%!important;
margin:0 auto;
}
}
@@ -94,6 +94,43 @@
}
}
&.widget2{
+ .widget-content{
+ @media(min-width:769px){
+ width: 25%;
+ }
+ @media(max-width:768px){
+ width: 50%;
+ }
+ &:hover{
+ .link-img-wrap img{
+ transform:scale(0.9,0.9);
+ transition: all 0.3s;
+ }
+ }
+ }
+ .widget-title {
+ @extend .unity-title;
+ }
+ .link-img-wrap{
+ @media(min-width:769px){
+ height: 10em;
+ img{
+ height: auto;
+ }
+ }
+ width: 50%;
+ margin: auto;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+ .list-unstyled{
+ display: flex;
+ flex-wrap: wrap;
+ overflow: hidden;
+ }
+ }
+ &.widget10{
.link-img-wrap{
height: 14em;
}
@@ -312,6 +349,52 @@
}
}
}
+ &.widget11{
+ .widget-content-title {
+ padding-top: 0.5em;
+ position: absolute;
+ z-index: 2;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ flex-wrap: wrap;
+ height: 100%;
+ width: 100%;
+ top: 0;
+ color: #fff;
+ }
+ .link-img-wrap{
+ // height: 14em;
+ filter: brightness(0.8);
+ }
+ .widget-content{
+ text-align: center;
+ position: relative;
+ width: 100%;
+ overflow: hidden;
+ &:hover{
+ img{
+ transform: scale(1.1) !important;
+ -webkit-transition: .3s ease-out;
+ -moz-transition: .3s ease-out;
+ -ms-transition: .3s ease-out;
+ -o-transition: .3s ease-out;
+ transition: .3s ease-out;
+ }
+ }
+ @media(min-width:769px){
+ width: calc(100% / 4 - 1em);
+ padding: 0;
+ }
+ }
+ .list-unstyled{
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ overflow: hidden;
+ gap: 1em;
+ }
+ }
}
// Link INDEX
diff --git a/assets/stylesheets/template/template.scss b/assets/stylesheets/template/template.scss
index c2ac8f8..f60af72 100644
--- a/assets/stylesheets/template/template.scss
+++ b/assets/stylesheets/template/template.scss
@@ -121,6 +121,7 @@ ul.tab_nav {
width: 100%;
li {
+ font-size: 1em;
list-style: none;
position: relative;
padding: 0.5em 1em;
@@ -693,6 +694,40 @@ table.dataTable>tbody>tr.child{
opacity: 1;
transform: translatez(0) scale(1);
}
+.fadeInUp {
+ opacity: 0;
+ transform: translateY(20px);
+ animation: fadeInUpAnim 0.5s forwards;
+}
+
+@keyframes fadeInUpAnim {
+ from {
+ opacity: 0;
+ transform: translateY(20px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
+
+.fadeInDown {
+ opacity: 0;
+ transform: translateY(-20px);
+ animation: fadeInDownAnim 0.5s forwards;
+}
+
+@keyframes fadeInDownAnim {
+ from {
+ opacity: 0;
+ transform: translateY(-20px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
//研討會
.seminar-index,.survey-index,.application_form-index{
th{
diff --git a/home/header.html.erb b/home/header.html.erb
index 51c0b68..34a3236 100644
--- a/home/header.html.erb
+++ b/home/header.html.erb
@@ -18,11 +18,12 @@