@charset "utf-8"; @import "../initial"; @keyframes shine{ 0% { left: -40%; } 10% { left: 120%; } 100% { left: 120%; } } // Link MODULES .morebken{ font-size: 1.2em; font-weight: normal; color: #333; padding: 0.5em 1em; width: fit-content; float: right; cursor: pointer; display: flex; align-items: center; &:hover{ color: $theme-color-second; } i{ font-size: 0.8em; padding-left: 5px; } } .rotate { -webkit-transform: rotate(-180deg); transform: rotate(-180deg); } .widget-link_wrapper{ z-index: 1; } .widget-link__img{ width: 100%; } .widget-content{ list-style: none; @media(min-width: $screen-xs)and(max-width: 768px){ // width: 50%!important; margin:0 auto; } } .widget-link__item{ list-style: none; } .widget-link__list{ padding: 0; } .widget-content-title,.widget-content-context{ display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; white-space: normal; } .widget-link { // 在 layout-content 下的樣式 .cycle-carousel-wrap{ @media(min-width: 769px){ display: flex; align-items: normal; } .liWrapper{ margin:0 0.5em; overflow: hidden; } } .widget-title { @extend .unity-title; } &.widget1 { img{ // width: 32%; } .widget-content { text-align: center; border-radius: 4px; padding-top: calc(.6em + 2px); padding-bottom: calc(.6em + 2px); display: block; background: $theme-color-second; margin-bottom: 1em; color: #fff; a{ color: #fff; } &:hover{ background: $theme-color-hover; } & + .widget-content { // border-top: 0.0625em dotted $theme-gray-light; } .widget-content-title { padding-top: 0.5em; @extend .i-subtitle; } } // 在 layout-footer 下的樣式 .layout-footer & { .widget-content { line-height: 2em; border-top-color: $theme-green-light; } } } &.widget10 { margin-top: 1em; .widget-title{ display: none; } img{ // width: 32%; } .list-unstyled{ padding-left: 0; width: 70%; margin: auto; } .widget-content { list-style: none; margin-bottom: 1em; a{ color: #337ab7; } &:hover{ a{ text-decoration: underline; } } & + .widget-content { // border-top: 0.0625em dotted $theme-gray-light; } .widget-content-title { padding-top: 0.5em; @extend .i-subtitle; } } // 在 layout-footer 下的樣式 .layout-footer & { .widget-content { line-height: 2em; border-top-color: $theme-green-light; } } } &.widget11 { img{ // width: 32%; } .widget-content { text-align: center; border-radius: 4px; padding-top: calc(.6em + 2px); padding-bottom: calc(.6em + 2px); display: block; background: $theme-color-hover; margin-bottom: 1em; color: #fff; position: relative; overflow: hidden; &:before{ content: ""; position: absolute; top: 0; left: -40%; width: 50%; height: 100%; background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(rgba(255, 255, 255, 0.3))); background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%); -webkit-transform: skewX(-25deg); transform: skewX(-25deg); -webkit-animation-name: shine; animation-name: shine; -webkit-animation-duration: 3s; animation-duration: 3s; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; } &:first-child{ background-color: transparent; border: 1px solid $theme-color-hover; a{ color: $theme-color-hover; &:before{ font-family: "Font Awesome 6 Free"; /* 確保載入了 Font Awesome */ font-weight: 900; /* solid 款式要加這個 */ content: "\f15c"; /* fa-file-lines 的 unicode */ margin-right: 6px; } } &:hover{ background: $theme-color-hover; a{ color: #fff; } } } &:nth-child(3){ background-color: #ff9245; border: 1px solid #ff9245; } a{ color: #fff; &:before{ font-family: "Font Awesome 6 Free"; /* 確保載入了 Font Awesome */ font-weight: 900; /* solid 款式要加這個 */ content: "\f35a"; /* fa-file-lines 的 unicode */ margin-right: 6px; } } &:hover{ opacity: .8; -webkit-box-shadow: 0 0 0 .2rem #abb8c340; box-shadow: 0 0 0 .2rem #abb8c340; } & + .widget-content { // border-top: 0.0625em dotted $theme-gray-light; } .widget-content-title { padding-top: 0.5em; @extend .i-subtitle; } } // 在 layout-footer 下的樣式 .layout-footer & { .widget-content { line-height: 2em; border-top-color: $theme-green-light; } } } &.widget2{ .link-img-wrap{ height: 14em; } .list-unstyled{ display: flex; flex-wrap: wrap; overflow: hidden; li:nth-child(n+5){ display: none; } } } &.widget-3 { ul{ @media(max-width: $screen-xs){ flex-wrap: wrap; } li{ background-color: transparent; @media(max-width: $screen-xs){ width: 25%; } } } } &.widget-4{ .widget-link__item{ } } &.widget-5{ .widget-content{ list-style: none; @media(min-width: $screen-xs)and(max-width: 768px){ width: 50%!important; margin:0 auto; } } } &.widget-6{ .widget-content{ list-style: none; @media(min-width: $screen-xs)and(max-width: 768px){ width: 50%!important; margin:0 auto; } } } &.widget7{ .list-unstyled{ li:nth-child(n+16){ display: none; } } .widget-content { line-height: 2.5em; width: 20%; padding: 2em; text-align: center; @media(max-width:1200px)and(min-width: 1025px){ padding: 1em !important; } @media(max-width:1024px)and(min-width: 769px){ width: 33.3% !important; padding: 0.5em !important; } @media(max-width:$screen-xs){ width: 50% !important; padding: 0.5em !important; } .link-img-wrap{ border-radius:10em; width: 10em; height: 10em; overflow: hidden; margin: auto; &:hover{ border-radius:2em; -webkit-transition: .3s all ease; -o-transition: .3s all ease; transition: .3s all ease; } } & + .widget-content { } .widget-content-title { background-color: #fff; padding:0 0.5em; border-radius: 0.5em; color: #333; font-weight: bold; text-align: center; width: fit-content; margin: auto; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; @media(max-width: 768px){ width: auto; padding: 0.2em 0.5em; display: -webkit-box; -webkit-line-clamp: 2; line-height: normal; } } } } &.widget8{ .widget-content{ padding-top: 2em; @media(max-width:$screen-xs){ width: 100%; } } .link-img-wrap{ border-radius: 2em; overflow: hidden; height: 20em; &:hover{ img{ transform: scale(1.2) translateY(-1%); -webkit-transition: .3s all ease; -o-transition: .3s all ease; transition: .3s all ease; } } } img{ width: 100%; } } &.widget9{ margin-bottom: 2em; margin-top: 2em; .list-unstyled{ display: flex; justify-content: center; flex-wrap: wrap; li:nth-child(n+16){ display: none; } } .hex-border { width: 95%; height: 95%; background: #f8f8f8; color: #6D6D6D; display: flex; justify-content: center; align-items: center; text-align: center; clip-path: inherit; transition: background 0.4s ease; font-weight: bold; border-radius: 100%; } .widget-content { // clip-path: polygon( // 25% 5.77%, // 75% 5.77%, // 100% 50%, // 75% 94.23%, // 25% 94.23%, // 0% 50% // ); width: 10em!important; height: 10em; border-radius: 100%; background: #d7d7d7; /* 邊框顏色 */ display: flex; justify-content: center; align-items: center; margin: 1em; transition: transform 0.4s ease; &:hover{ transform: rotate(45deg); background:$theme-color-second; } @media(max-width:$screen-xs){ width: 8em!important; height: 8em; } &:hover{ .hex-border{ background:linear-gradient(180deg, $theme-color-second 0, #e8f6ff 100%); } background:$theme-color-second; -webkit-transition: .3s all ease; -o-transition: .3s all ease; transition: .3s all ease; -webkit-transform:rotate(15deg) translateY(-6px); -ms-transform: rotate(15deg) translateY(-6px); transform:rotate(15deg) translateY(-6px); } @media(max-width:1200px)and(min-width: 769px){ padding: 1em !important; } .link-img-wrap{ border-radius:10em; overflow: hidden; &:hover{ border-radius:2em; -webkit-transition: .3s all ease; -o-transition: .3s all ease; transition: .3s all ease; } } & + .widget-content { } .widget-content-title { padding:0 0.5em; border-radius: 0.5em; color: #333; font-weight: bold; text-align: center; width: fit-content; margin: auto; @media(max-width: 768px){ width: auto; padding: 0.2em 0.5em; display: -webkit-box; -webkit-line-clamp: 2; line-height: normal; } } } } } // Link INDEX .index-link { clear: both; .index-title { @extend .unity-title; } &.index1 { .index-content { padding: 1em 0; list-style: none; & + .index-content { border-top: 0.0625em dotted $theme-gray-light; } .index-context { display: inline-block; // margin: 0 0 0.625em 2em; color: darken($theme-gray-light, 20%); } } .index-content-title { font-family: $main-font; font-size: 1em; } } &.index2 { .link-title{ &:hover{ color: $theme-color-second; } } .index-content{ list-style: none; } .list-unstyled { display: flex; flex-wrap: wrap; } .index-content { padding: 1em; } .status-top { line-height: 2.5; } } } .index-link.index2 li.col-md-4{ text-align: center; }