diff --git a/_annc_widget21.html.erb b/_annc_widget21.html.erb deleted file mode 100644 index 2d2da2e..0000000 --- a/_annc_widget21.html.erb +++ /dev/null @@ -1,181 +0,0 @@ -
-
-

- {{widget-title}} -

- <%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %> -
-
-
- - -
-
- -
- diff --git a/assets/stylesheets/template/layout/content.scss b/assets/stylesheets/template/layout/content.scss index b593a43..9b0104b 100644 --- a/assets/stylesheets/template/layout/content.scss +++ b/assets/stylesheets/template/layout/content.scss @@ -10,7 +10,6 @@ position: relative; width: 100%; background-color: #F8F9FA; - z-index: 1 !important; overflow: hidden; } .internal-page{ @@ -128,14 +127,6 @@ padding: 1.5em; } } -.index-publications-3 .i-annc__img-wrap{ - height: 20em; - overflow: hidden; - margin: 0 0 1em 0; -} -.index-publications-3 .i-annc__content-wrap{ - height: 6em; -} .image-carousel{ padding: 15px 0px 25px 0px; } diff --git a/assets/stylesheets/template/layout/header.scss b/assets/stylesheets/template/layout/header.scss index 61c2d71..aec97bb 100644 --- a/assets/stylesheets/template/layout/header.scss +++ b/assets/stylesheets/template/layout/header.scss @@ -25,7 +25,6 @@ margin-bottom: 0; border: none; border-radius: 0; - z-index:1000; background-color: #fff; -webkit-box-shadow: 0 1px 5px 1px rgba(26, 26, 26, .3); box-shadow: 0 1px 5px 1px rgba(26, 26, 26, .3); @@ -74,7 +73,6 @@ @media (min-width:1025px) { margin-bottom: -4em; - z-index: 105; position: relative; } } diff --git a/assets/stylesheets/template/modules/announcement.scss b/assets/stylesheets/template/modules/announcement.scss index 1ddd7ba..a6d5f13 100644 --- a/assets/stylesheets/template/modules/announcement.scss +++ b/assets/stylesheets/template/modules/announcement.scss @@ -82,6 +82,12 @@ @extend .i-title; } .w-annc__meta { + display: flex !important; + position: relative; + align-items: center; + .w-annc__postdate-wrap{ + margin-right: 0.5em; + } .w-annc__status-wrap, .w-annc__postdate-wrap, .w-annc__category-wrap { @@ -90,10 +96,14 @@ @extend .i-title; color: $theme-color-main; font-weight: normal; + display: flex!important; + align-items: center; } i { color:$theme-color-main; + font-size: medium; + padding-right: 0.3em; } } @@ -105,6 +115,7 @@ .w-annc__entry-title { margin-bottom: 0.625em; margin-top: 0.5em; + // clear: both; } .w-annc__title { @@ -1701,12 +1712,10 @@ } .i-annc__item { - padding-left: 0 !important; - padding-right: 0 !important; list-style: none; overflow: hidden; border-bottom: 1px solid #bbb; - padding: 1em; + padding: 1em 0; // box-shadow: #0000004d 0 0 4px; // background: #fff; @media(min-width: $screen-xs){ @@ -1767,6 +1776,9 @@ } .i-annc__meta { + display: flex !important; + position: relative; + align-items: center; .i-annc__status-wrap, .i-annc__postdate-wrap, .i-annc__category-wrap { @@ -1774,10 +1786,15 @@ font-size: 1em; color: $theme-color-main; font-weight: normal; + display: flex; + align-items: center; + margin-right: 0.5em; } i { color: $theme-color-main; + font-size: medium; + padding-right: 0.3em; } } @@ -1799,6 +1816,7 @@ -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; + // clear: both; } .i-annc__title { @@ -1890,6 +1908,9 @@ table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before, tabl // Index-5 .index-announcement-5{ + .i-annc__item { + width: 100%; + } .i-annc__content-wrap{ @media(max-width: 768px){ padding-top: 0.5em; @@ -1901,6 +1922,9 @@ table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before, tabl } // Index-6 .index-announcement-6 { + .i-annc__item { + width: 100%; + } .i-annc__title { font-family: $main-font; } @@ -2290,7 +2314,6 @@ table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before, tabl @include clearfix; .s-annc__meta--item { - font-size: 0.875rem; margin-right: 1em; margin-bottom: 0.6em; float: left; @@ -2370,6 +2393,9 @@ table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before, tabl .s-annc__flie-title { white-space: nowrap; + width: 100%; + margin-bottom: 0.5em; + text-align: justify; } .s-annc__social > * { @@ -2729,3 +2755,228 @@ table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before, tabl word-break: break-all; white-space: break-spaces; } +.show-publications{ + ul{ + padding: 0; + } +} +.video_data-widget-1{ + .video_info{ + margin:0.5em 0; + } +} +.video_title { + clear: both; +} +.video_data{ + list-style: none; +} +.video_tag{ + display: flex; + float: left; +} +.view_info{ + margin-bottom: 1em; +} +.video_group_time{ + clear: both; +} +.video_group_time{ + color: $theme-color-main!important; +} +.video_tag{ + color: #fff!important; + background: #626262; + padding: 4px 8px; + border-radius: 5px; + margin: 0.5em 0.5em 0.5em 0; +} +.video_title { + clear: both; + height: 3em; +} +.video_data_wrap{ + padding-right: 0.4375em; + padding-left: 0.4375em; +} +.imglst_desc{ + margin: 1em 0; +} +.category_box { + padding: 0; + border: 1px solid #6868688f; + border-radius: 0.5em 0 0 0.5em; + overflow: hidden; +} +.search_box{ + padding: 0; + border-radius: 0 0.5em 0.5em 0; + overflow: hidden; + border: 1px solid #6868688f; +} +.video_linkwrapper{ + position:relative; + height: 12em; + overflow:hidden; + width: 100%; + border-radius: 1em; + img{ + transform:scale(1.3) translatey(-6px); + width: 100%; + } + @media(max-width: 1025px)and(min-width: 821px){ + height: 11.5em; + img{ + transform:scale(1.6) translatey(-3px); + } + } + @media(max-width: 821px)and(min-width: 769px){ + height:8em; + img{ + transform:scale(1.6) translatey(-3px); + } + } + @media(max-width:768px)and(min-width: 600px){ + height: 22.5em; + img{ + transform:scale(1.3) translatey(-45px); + width: 100%; + } + } +} +.video_desc { + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; + text-overflow: ellipsis; + white-space: normal; + padding-bottom: 0; + @media(min-width: 769px){ + height: 3em; + } + +} + +.video_linkwrapper2{ + position:relative; + height: 17.5em; + overflow:hidden; + width: 100%; + border-radius: 1em; + img{ + transform:scale(1.3) translatey(-41px); + width: 100%; + } + @media(max-width: 1025px)and(min-width: 821px){ + height:16.5em; + img{ + transform:scale(1.3) translatey(-8px); + } + } + @media(max-width: 821px)and(min-width: 769px){ + height:11.5em; + img{ + transform:scale(1.3) translatey(-13px); + } + } + @media(max-width:768px)and(min-width: 600px){ + height: 22.5em; + img{ + transform:scale(1.3) translatey(-48px); + width: 100%; + } + } + @media(max-width: $screen-xs){ + height: 12.5em; + img{ + transform:scale(1.3) translatey(-22px); + width: 100%; + } + } +} +.video_linkwrapper3{ + position:relative; + height: 12em; + overflow:hidden; + img{ + transform:scale(1.6) translatey(5px); + } + @media(max-width: 1025px)and(min-width: 821px){ + height:9.5em; + img{ + transform:scale(1.6) translatey(6px); + } + } + @media(max-width: 821px)and(min-width: 769px){ + height:7.5em; + img{ + transform:scale(1.6) translatey(6px); + } + } + @media(max-width:768px)and(min-width: 600px){ + height: 22.5em; + img{ + transform:scale(1.3) translatey(-48px); + width: 100%; + } + } + @media(max-width: $screen-xs){ + height: 12.5em; + img{ + transform:scale(1.3) translatey(-3px); + width: 100%; + } + } +} +.video_data{ + @media(max-width: 768px){ + width: 100%; + } +} +.video_data:hover, .video_data.hover-class{ + @media(min-width: 1025px){ + .video_snapshot{ + box-shadow: 4px 4px 5px 1px rgba(0, 0, 0, 0.3); + -webkit-transform: scale(1.35) translateY(-6px); + -ms-transform: scale(1.35) translateY(-6px); + transform: scale(1.35) translateY(-6px); + -webkit-transition: all .3s ease; + -moz-transition: all .3s ease; + -ms-transition: all .3s ease; + -o-transition: all .3s ease; + transition: all .3s ease; + } + .video_linkwrapper3{ + .video_snapshot{ + -webkit-transform: scale(1.95) translateY(-6px)!important; + -ms-transform: scale(1.95) translateY(-6px)!important; + transform: scale(1.95) translateY(-6px)!important; + } + } + } +} +.index-publications-3{ + @media(min-width:$screen-xs){ + .i-annc__img{ + width: auto; + max-width: unset; + height: 20em; + } + } +} +.index-publications-3 .i-annc__img-wrap{ + overflow: hidden; + margin: 0 0 1em 0; + text-align: center; +} +// .index-publications-3 .i-annc__content-wrap{ +// height: 6em; +// } +.wordcloud2{ + span{ + font-size: 1.5em !important; + height: 2em !important; + position: relative !important; + } +} diff --git a/assets/stylesheets/template/modules/archives.scss b/assets/stylesheets/template/modules/archives.scss index ffba23d..b29069d 100644 --- a/assets/stylesheets/template/modules/archives.scss +++ b/assets/stylesheets/template/modules/archives.scss @@ -154,8 +154,15 @@ .index-archive-1 { 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; + } + .i-archive__archive-title { - font-size: 1.2rem; + font-size: 1.3rem; margin-bottom: 0.625em; vertical-align: top; } @@ -182,23 +189,20 @@ font-size: 0.8125rem; } - .i-archive__item-wrap {} - .i-archive__file-list { display: block; - margin-bottom: 0.8em; + margin-bottom: 0; } .i-archive__file-wrap { - margin: 0 0.625rem 1em 0; - padding: 0.5em 0.75em; + margin:0; + padding:0.5em 0 0; border-radius: 0.125em; - border: 0.0625em solid lighten($theme-gray-light, 10%); } - .i-archive__file-name { - font-size: 1rem; - } + // .i-archive__file-name { + // font-size: 1rem; + // } } .index-archive-4 { diff --git a/assets/stylesheets/template/modules/menu.scss b/assets/stylesheets/template/modules/menu.scss index c7b159b..fdbf669 100644 --- a/assets/stylesheets/template/modules/menu.scss +++ b/assets/stylesheets/template/modules/menu.scss @@ -2,74 +2,74 @@ @import "../initial"; -// 選單樣式2 -.modules-menu{ - @media (min-width: $screen-sm){ - li{ - padding-left: 0!important; - } - .modules-menu-level-1 > li > a{ - color: $theme-color-second!important; - } - } - .modules-menu-level-0 > li{ - @media (min-width: $screen-sm){ - position: static!important; - } - } - - .modules-menu-level-1{ - - @media (min-width: $screen-sm){ - min-width:unset; - flex-wrap: wrap; - justify-content: flex-start; - left:0!important; - display: flex!important; - visibility: hidden; - opacity: 0; - width: 100vw!important; - box-shadow: 2px 2px 5px #00000033; - margin:0; - padding:1em 13% 3em!important; - transition-duration: 0.5s; - background: #f0f0f0; - } - } - .modules-menu-level-0 > li:hover .modules-menu-level-1, .modules-menu .modules-menu-level-0 > li.hover-class .modules-menu-level-1{ - visibility: visible!important; - opacity: 1!important; - } - - .modules-menu-level-2 { - right:auto!important; - display: block; - top: auto!important; - left: auto!important; - background-color: transparent!important; - position: relative!important; - } - .modules-menu-level-1{ - @media (min-width: $screen-sm) { - & > li { - width: 25%; - & > a { - padding-left: 1em; - padding: 5px 0; - } - - &:hover { - .modules-menu-level-2 { - display: block; - } - } - } - .modules-menu-level-2{ - display: block; - } - } - } -} +// // 選單樣式2 +// .modules-menu{ +// @media (min-width: $screen-sm){ +// li{ +// padding-left: 0!important; +// } +// .modules-menu-level-1 > li > a{ +// color: $theme-color-second!important; +// } +// } +// .modules-menu-level-0 > li{ +// @media (min-width: $screen-sm){ +// position: static!important; +// } +// } +// +// .modules-menu-level-1{ +// +// @media (min-width: $screen-sm){ +// min-width:unset; +// flex-wrap: wrap; +// justify-content: flex-start; +// left:0!important; +// display: flex!important; +// visibility: hidden; +// opacity: 0; +// width: 100vw!important; +// box-shadow: 2px 2px 5px #00000033; +// margin:0; +// padding:1em 13% 3em!important; +// transition-duration: 0.5s; +// background: #f0f0f0; +// } +// } +// .modules-menu-level-0 > li:hover .modules-menu-level-1, .modules-menu .modules-menu-level-0 > li.hover-class .modules-menu-level-1{ +// visibility: visible!important; +// opacity: 1!important; +// } +// +// .modules-menu-level-2 { +// right:auto!important; +// display: block; +// top: auto!important; +// left: auto!important; +// background-color: transparent!important; +// position: relative!important; +// } +// .modules-menu-level-1{ +// @media (min-width: $screen-sm) { +// & > li { +// width: 25%; +// & > a { +// padding-left: 1em; +// padding: 5px 0; +// } +// +// &:hover { +// .modules-menu-level-2 { +// display: block; +// } +// } +// } +// .modules-menu-level-2{ +// display: block; +// } +// } +// } +// } //固定選單 .navFixed { @@ -309,7 +309,11 @@ // border-radius: 0.5em; } } - + @media (min-width: $screen-sm)and(max-width: 1439px){ + .modules-menu-level-1 { + right: 0; + } + } @media (min-width: $screen-sm) { margin: 0; padding: 0; @@ -398,12 +402,15 @@ } &:hover { - color: $theme-color-second; + background-color: $theme-color-second; @media(max-width: 769px){ a,i { color: #fff; } } + &>a { + color: #fff; + } } } diff --git a/assets/stylesheets/template/modules/universal-table.scss b/assets/stylesheets/template/modules/universal-table.scss index bd3198f..38406bf 100644 --- a/assets/stylesheets/template/modules/universal-table.scss +++ b/assets/stylesheets/template/modules/universal-table.scss @@ -75,7 +75,7 @@ padding: 0; position: absolute; right:1em; - z-index: 99; + z-index:1; @media(max-width: $screen-xs){ margin-top: 0.5em; right:0; @@ -208,9 +208,32 @@ padding: 15px 10px!important; } .universal-table-index1{ + table-layout: auto !important; .col-ken{ @media(min-width: $screen-xs){ - width: auto!important; + width: auto!important; + } + } + @media(min-width: $screen-xs){ + .universal-th-icon{ + padding:5px!important; + } + .universal-dropdown{ + .btn{ + padding: 0.3125em!important; + } + } + .universal-th-text{ + display: block!important; + clear: both; + } + } +} +.universal-table-index3{ + table-layout: auto !important; + .col-ken{ + @media(min-width: $screen-xs){ + width: auto!important; } } @@ -229,10 +252,11 @@ } } } -.universal-table-index3{ +.universal-table-index2{ + table-layout: auto !important; .col-ken{ @media(min-width: $screen-xs){ - width: auto!important; + width: auto!important; } } @@ -252,12 +276,25 @@ } } .universal-table-index4{ - .universal-th-text{ - margin: 0; - } + table-layout: auto !important; .col-ken{ - @media(min-width: $screen-xs){ + @media(min-width: $screen-xs){ width: auto!important; + } + + } + @media(min-width: $screen-xs){ + .universal-th-icon{ + padding:5px!important; + } + .universal-dropdown{ + .btn{ + padding: 0.3125em!important; } + } + .universal-th-text{ + display: block!important; + clear: both; + } } } diff --git a/assets/stylesheets/template/template.scss b/assets/stylesheets/template/template.scss index 410e586..9db3ccf 100644 --- a/assets/stylesheets/template/template.scss +++ b/assets/stylesheets/template/template.scss @@ -172,9 +172,6 @@ ul.tab_nav { } } } -.video_data{ - width: 100%; -} .black-screen-social-window.reactable.right .content-social .social_wrap > div{ background-color: #ffffffc2; } @@ -507,3 +504,6 @@ input.search_box{ display: flex; } } +.modal-backdrop{ + z-index: 2; +} diff --git a/modules/announcement/_annc_widget15.html.erb b/modules/announcement/_annc_widget15.html.erb index abe2f58..29333cc 100644 --- a/modules/announcement/_annc_widget15.html.erb +++ b/modules/announcement/_annc_widget15.html.erb @@ -37,11 +37,11 @@ {{status}} - + {{postdate}} - + {{category}} diff --git a/modules/announcement/_annc_widget17.html.erb b/modules/announcement/_annc_widget17.html.erb index cb7b210..bdb26b4 100644 --- a/modules/announcement/_annc_widget17.html.erb +++ b/modules/announcement/_annc_widget17.html.erb @@ -14,7 +14,7 @@