@charset "utf-8"; @import "../initial"; // // Widget // // Announcement widget // ## Gerneral styles for widgets .w-annc { .w-annc__widget-title { @extend .unity-title; } .w-annc__list { margin: 0; padding: 0; list-style: none; } .w-annc__item { margin-bottom: 30px; } .label { font-size: 0.75rem; font-weight: normal; } .w-annc__meta { .w-annc__category-wrap, .w-annc__postdate-wrap, .w-annc__status-wrap { display: inline-block; margin-right: 0.2em; font-size: 0.8125em; color: $theme-gray; font-weight: normal; } i { color: $theme-gray; } } .w-annc__subtitle { font-size: 0.8125em; color: $theme-gray; } .w-annc__entry-title { margin-bottom: 10px; } .w-annc__title { font-family: $sub-font; color: #4e4e4e; text-decoration: none; font-size: 0.8125rem; &:hover { color: #1c8ace;; } } } // Widget-1 .widget-announcement-1 { .w-annc__img-wrap { height: 200px; margin: 0 0 1em; } .w-annc__title { font-family: $main-font; line-height: 1.3; font-size: 1.2rem; } } // Widget-2 .widget-announcement-2 { .w-annc__img-wrap { height: 200px; margin: 0 0 1em; } .w-annc__title { font-family: $main-font; line-height: 1.3; font-size: 1.2rem; } } // Widget-3 .widget-announcement-3 { .w-annc__img-wrap { height: 200px; margin: 0 0 1em; } .w-annc__title { font-family: $main-font; line-height: 1.3; font-size: 1.2rem; } } // Widget-4 .widget-announcement-4 { .w-annc__title { font-family: $main-font; line-height: 1.3; font-size: 1rem; } .w-annc__list > .w-annc__item:nth-child(3n+1) { clear: both; } .w-annc__img-wrap { height: 260px; // margin: 0 0 1em; @media(max-width: 993px){ height: 450px; } @media(max-width: 480px){ height: 280px; img{ transform: scale(1.05)!important; } } @media(max-width: 415px){ height: 245px; img{ transform: scale(1.05)!important; } } @media(max-width: 376px){ height: 210px; } @media(max-width: 321px){ height: 180px; } } .itembg { position: relative; display: block; background-color: #f2f2f2; .w-annc__content-wrap { padding: 10px 20px; @media(min-width: 1200px){ height: 180px; overflow: hidden; } } .w-annc__img-wrap img { transition: all 0.5s; -ms-transition: all 0.5s; -o-transition: all 0.5s; -webkit-transition: all 0.5s; -moz-transition: all 0.5s; } .w-annc__meta { margin-top: 10px; } .item_more_box { position: relative; display:block; text-align: right; .item_more { position: relative; display:inline-block; padding:5px 30px; color:#FFFFFF; letter-spacing: 1px; background-color: #3281b8; border-radius: 20px; behavior: url("/assets/ie_support/PIE2/PIE.htc"); font-size:0.85em; } } } .w-annc__list li a:hover { .itembg .w-annc__img-wrap img { transform: scale(1.2); -ms-transform: scale(1.2); /* 適用 IE 等 microsoft 系列 */ -o-transform: scale(1.2); /* 適用 opera 系列; opera 15 後改版成 -webkit*/ -webkit-transform: scale(1.2); /* 適用 safari, google chrome 等系列*/ -moz-transform: scale(1.2); /* 適用 firefox 等 Mozilla Gecko 系列*/ } .item_more { background-color: #42afd0; } } } // Widget-5 .widget-announcement-5 { .w-annc__title { font-family: $main-font; line-height: 1.3; font-size: 1.2rem; } .w-annc__item { border-bottom: 1px dashed lighten($theme-gray, 65%); padding-bottom: 1em; margin-bottom: 1em; } } // Widget-6 .widget-announcement-6 { @media(max-width: 993px) { margin-bottom: 40px; } .col-mm-1 { width: 10%; } .col-mm-9 { width: 75%; @media(max-width: 700px) { width: 65%; } @media(max-width: 530px) { width: 75%; } @media(max-width: 361px) { width: 100%; } } .col-mm-2 { width: 15%; } .w-annc__item { margin-bottom: 0.8em; padding-bottom: 0.8em; border-bottom: 1px dashed lighten($theme-gray, 65%); } .anline { border-bottom: 1.5px solid #636060; padding-bottom: 10px; } .w-annc__entry-title { margin: 0; } .w-annc__category-wrap, .w-annc__postdate-wrap, .w-annc__status, .w-annc__title { font-size: 0.8125rem; } .w-annc__category-wrap { vertical-align: middle; @media(max-width: 481px) { width: 25%; } } .w-annc__entry-title { margin: 0; position: relative; display: inline-block; vertical-align: middle; @media(max-width: 481px) { width: 70%; } } .w-annc__postdate-wrap { vertical-align: middle; @media(max-width: 530px) { display: none; } } .col-sm-2, .col-sm-2, .col-sm-7 { float: none; } .w-annc__title { font-size: 0.95rem; color: #222222; // font-weight:600; } .w-annc__status { display: inline-block; } // 類別不斷行 // .w-annc__postdate, // .w-annc__category { // white-space: nowrap; // } .w-annc__postdate { white-space: nowrap; } } // Widget-7 .widget-announcement-7 { .w-annc__item { margin-bottom: 0.8em; padding-bottom: 0.8em; border-bottom: 1px dashed lighten($theme-gray, 65%); } .w-annc__entry-title { margin: 0; } .w-annc__category-wrap, .w-annc__postdate-wrap, .w-annc__status, .w-annc__title { font-size: 0.75rem; } .w-annc__status { display: inline-block; } } // ## Gerneral styles for table widgets .w-annc__category, .w-annc__postdate { white-space: nowrap; } // Widget-8 // ## Table .widget-announcement-8 { .w-annc__th { color: #fff; background: $theme-color-main; font-size: 0.8125em; border: none; } .w-annc__status { display: inline-block; font-size: 0.75rem; } td { font-size: 0.8125em; } a:hover { text-decoration: none; } } // Widget-9 // ## Table .widget-announcement-9 { .w-annc__th { color: #fff; background: $theme-color-main; font-size: 0.8125em; border: none; } .w-annc__status { display: inline-block; font-size: 0.75rem; } td { font-size: 0.8125em; } a:hover { text-decoration: none; } } // Widget-10 .widget-announcement-10 { .w-annc__item { margin-bottom: 0.8em; padding-bottom: 0.8em; border-bottom: 1px dashed lighten($theme-gray, 65%); } .w-annc__entry-title { margin: 0; } .w-annc__postdate-wrap { font-size: 0.8125em; } .w-annc__status { display: inline-block; font-size: 0.75rem; } } // Widget-11 .widget-announcement-11 { .w-annc__item { margin-bottom: 0.8em; padding-bottom: 0.8em; border-bottom: 1px dashed lighten($theme-gray, 65%); } .w-annc__entry-title { margin: 0; } .w-annc__postdate-wrap { font-size: 0.8125em; } .w-annc__status { display: inline-block; font-size: 0.75rem; } } // Widget-12 // ## Table .widget-announcement-12 { .w-annc__th { color: #fff; background: $theme-color-main; font-size: 0.8125em; border: none; } .w-annc__status { display: inline-block; font-size: 0.75rem; } td { font-size: 0.8125em; } a:hover { text-decoration: none; } } // Widget-13 // ## Table .widget-announcement-13 { .w-annc__th { color: #fff; background: $theme-color-main; font-size: 0.8125em; border: none; } .w-annc__status { display: inline-block; font-size: 0.75rem; } td { font-size: 0.8125em; } a:hover { text-decoration: none; } } // Widget-14 .widget-announcement-14 { .w-annc__list { padding: 0 15px; } .w-annc__img-wrap { height: 300px; margin-bottom: 15px; @media (min-width: $screen-md) { height: 200px; margin-bottom: 0; } } .w-annc__item { margin-bottom: 0.8em; padding-bottom: 0.8em; border-bottom: 1px dashed lighten($theme-gray, 65%); } .w-annc__entry-title { margin: 0 0 10px; @media (min-width: $screen-md) { margin-bottom: 0; } } .w-annc__postdate-wrap { font-size: 0.8125em; } .w-annc__status { display: inline-block; } .w-annc__postdate { font-size: 0.8125rem; } } // Announcement index // ## General style for index pages .i-annc { .i-annc__page-title { @extend .unity-title; } .i-annc__list { margin: 0; padding: 0; list-style: none; } .i-annc__widget-title { @extend .unity-title; } .i-annc__item { margin-bottom: 30px; } .i-annc__img { width: 100%; max-width: 100%; height: auto; } .i-annc__th { color: $theme-white; background: #4d9dd8; font-size: 0.8125em; border: none; white-space: nowrap; } .i-annc__category, .i-annc__postdate, .i-annc__view-count { white-space: nowrap; } .i-annc__status-wrap { span { display: inline-block; padding: 0.2em 0.6em 0.3em; &:last-child { margin: 0 5px 3px 0; display: inline-block; } } } td { font-size: 0.95rem; @media(max-width: 480px){ font-size: 0.85rem!important; } } .i-annc__title:hover { text-decoration: none; } .label { font-size: 0.75rem; font-weight: normal; } .i-annc__meta { .i-annc__category-wrap, .i-annc__postdate-wrap, .i-annc__status-wrap { display: inline-block; margin-right: 0.2em; font-size: 0.8125em; color: $theme-gray; font-weight: normal; } i { color: $theme-gray; } } .i-annc__subtitle { font-size: 0.8125em; color: $theme-gray; } .i-annc__entry-title { margin-bottom: 10px; } .i-annc__title { font-family: $sub-font; color: #4a4a4a; text-decoration: none; font-size: 1rem; @media(max-width: 480px){ font-size: 0.9rem!important; } &:hover { color: #4d9dd8; } } } // Index-1 .index-announcement-1 {} // Index-5 // Index-6 .index-announcement-5, .index-announcement-6 { .i-annc__img-wrap { margin: 0 0 1em; } .i-annc__title { font-family: $main-font; font-size: 1.2rem; line-height: 1.3; } } // Index-7 .index-announcement-7 { .i-annc__title { font-family: $main-font; line-height: 1.3; font-size: 1.2rem; } .i-annc__list > .i-annc__item:nth-child(3n+1) { clear: both; } .i-annc__img-wrap { height: 200px; margin: 0 0 1em; } } // Index-8 .index-announcement-8 { .i-annc__title { font-family: $main-font; line-height: 1.3; font-size: 1.2rem; } .i-annc__item { border-bottom: 1px dashed lighten($theme-gray, 65%); padding-bottom: 1em; margin-bottom: 1em; } } // Index-9 // Index-10 .index-announcement-10, .index-announcement-9 { .i-annc__item { margin-bottom: 0.8em; padding-bottom: 0.8em; border-bottom: 1px dashed lighten($theme-gray, 65%); } .i-annc__entry-title { margin: 0; } .i-annc__category-wrap, .i-annc__postdate-wrap, .i-annc__status, .i-annc__title { font-size: 0.8125rem; } .i-annc__status { display: inline-block; } } // Index-11 // Index-12 .index-announcement-11, .index-announcement-12 { .i-annc__item { margin-bottom: 0.8em; padding-bottom: 0.8em; border-bottom: 1px dashed lighten($theme-gray, 65%); } .i-annc__entry-title { margin: 0; } .i-annc__postdate-wrap { font-size: 0.8125em; } .i-annc__status { display: inline-block; font-size: 0.75rem; } } // Index-16 .index-announcement-16 { td ul { margin: 0; padding: 0; list-style: none; } } // Announcement show .s-annc { .s-annc__show-title { @extend .unity-title; } .s-annc__meta-wrap { border-bottom: 1px solid $theme-gray-light; @include clearfix; .s-annc__meta--item { font-size: 0.875rem; margin-right: 1em; margin-bottom: 0.6em; float: left; i { color: darken($theme-gray-light, 10%); } } .s-annc__tag-wrap { position: relative; margin-right: 0; padding-left: 1.6em; clear: both; float: none; i { position: absolute; top: 7px; left: 0; } } .s-annc__tag-wrap { .s-annc__tag { font-weight: normal; } } } .s-annc__post-wrap { @include clearfix; margin-bottom: 2em; } .s-annc__related-wrap { padding-top: 1em; border-top: 1px dotted $theme-gray-light; } .s-annc__related-file { margin-bottom: 15px; } .s-annc__related-file, .s-annc__related-link { padding-bottom: 6px; padding-left: 1.6em; i { margin: 8px 0 0 -1.6em; float: left; color: darken($theme-gray-light, 10%); } } .s-annc__related-file-list, .s-annc__related-link-list { display: inline-block; } .s-annc__flie-title { max-width: 9.375rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .s-annc__social > * { display: inline-block; vertical-align: top; } .s-annc__social .print-button { color: #fff; font-size: 0.6875em; border-radius: 4px; behavior: url("/assets/ie_support/PIE2/PIE.htc"); padding: 2px 6px; background-color: $theme-color-main; } .s-annc__social .print-button:hover { background-color: lighten($theme-color-main, 10%); } }