@charset "utf-8"; @import "../initial"; // Link MODULES .widget-link{ .list-unstyled{ display: flex; flex-wrap: wrap; } } .widget-content{ margin-bottom: 1em; @media(max-width:768px){ .link-img-wrap,.widget-content-txt{ width: 100%; } } } .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; } .widget-link__item{ list-style: none; } .widget-link__list{ padding: 0; } .widget-content-title,.widget-content-context{ display: -webkit-box; -webkit-line-clamp: 1; -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; } } .widget-title { @extend .unity-title; } &.widget1 { img{ // width: 32%; } .widget-content { text-align: center; & + .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{ .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; } .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_wrapper { padding-bottom: 2em; } .widget-content{ overflow: unset !important; } .widget-link__item > a{ position: relative; z-index: 100; } .widget-link__item{ .liWrapper{ &:after{ content: ""; border-radius: 5px; position: absolute; z-index: -1; top: 0; left: 0; width: 100%; height: 100%; -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); opacity: 0; padding: 3px; border: 3px solid #d000c4; border-image-source: linear-gradient(180deg, #d000c4 0%, #247fdd 41.97%, #baf2ff 70.46%, #006ff8 98.45%); border-image-slice: 10; } } background-color: #fff; border-radius: 5px; -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); -o-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); &:hover{ z-index: 101 !important; position: relative !important; -webkit-transform: scale(1.25, 1.25); -ms-transform: scale(1.25, 1.25); transform: scale(1.25, 1.25); -webkit-box-shadow: 0px 0px 10px 2px rgba(212, 56, 212, 0.589); -moz-box-shadow: 0px 0px 10px 2px rgba(212, 56, 212, 0.589); box-shadow: 0px 0px 10px 2px rgba(212, 56, 212, 0.589); .widget-title-wrap{ display: block; } .liWrapper{ &:after{ opacity: 1; z-index: 100; } } } } .widget-title-wrap{ display: none; position: absolute; color: #ffffff; text-shadow: 2px 2px 3px #000000; font-size: 1rem; bottom: 0; width: 100%; padding: 1em; text-align: center; background-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.7) 40%, #000); } } &.widget-5{ .widget-link__morewrap{ width: 100%; display: flex; justify-content: center; a.btn-primary{ width: 270px; } } .widget-link_wrapper { padding-bottom: 1em; padding-top: 1em; overflow: hidden; } .widget-content{ overflow: unset !important; } .widget-link__item > a{ position: relative; z-index: 100; } .widget-link__item{ .liWrapper{ &:after{ content: ""; border-radius: 5px; position: absolute; z-index: -1; top: 0; left: 0; width: 100%; height: 100%; -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); opacity: 0; padding: 3px; border: 3px solid #d000c4; border-image-source: linear-gradient(180deg, #d000c4 0%, #247fdd 41.97%, #baf2ff 70.46%, #006ff8 98.45%); border-image-slice: 10; } } border-radius: 5px; -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); -o-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); &:hover{ background-color: #fff; z-index: 101 !important; position: relative !important; -webkit-transform: scale(1.25, 1.25); -ms-transform: scale(1.25, 1.25); transform: scale(1.25, 1.25); -webkit-box-shadow: 0px 0px 10px 2px rgba(212, 56, 212, 0.589); -moz-box-shadow: 0px 0px 10px 2px rgba(212, 56, 212, 0.589); box-shadow: 0px 0px 10px 2px rgba(212, 56, 212, 0.589); .widget-title-wrap{ display: block; } .liWrapper{ &:after{ opacity: 1; z-index: 100; } } } } .widget-title-wrap{ display: none; position: absolute; color: #ffffff; text-shadow: 2px 2px 3px #000000; font-size: 1rem; bottom: 0; width: 100%; padding: 1em; text-align: center; background-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.7) 40%, #000); } } &.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; } } } } &.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; } } &.widget12{ .widget-content{ padding-right: 0.5em; padding-left: 0.5em; @media(max-width:820px){ .col-sm-5{ width: 41.66666667%; float: left; } .col-sm-7 { padding-right: 0.9375em; padding-left: 0.9375em; width: 58.33333333%; float: left; } } @media(max-width:820px)and(min-width:768px){ width: 50%; } } .widget-link.widget1 .widget-content { text-align: center; padding: 0.5em; } .link-img-wrap { padding: 0; overflow: hidden; } .widget-content-inner{ display: inline-block; cursor: pointer; border: 1px solid #BBE0FB; padding: 10px; background: #fff; position: relative; // @media(min-width:768px){ // height: -webkit-fill-available; // } &:hover{ -webkit-box-shadow: 0px 0px 10px 2px #a1eafb; -moz-box-shadow: 0px 0px 10px 2px #a1eafb; box-shadow: 0px 0px 10px 2px #a1eafb; } @media(max-width:$screen-xs){ width: 100%; } } .widget-content-title{ font-weight: bold; font-size: 18px; line-height: 28px; } .index-context{ color: #828080; font-size: 14px; line-height: 22px; } .link-img-wrap{ &: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%; } } &.widget13{ .col-sm-5 { flex: 0 0 auto; width: 41.66666667%; float: left; } .col-sm-7 { flex: 0 0 auto; width: 58.33333333%; float: left; } .widget-content{ margin-bottom: 0.5em; } .list-unstyled{ margin-top: 0.8em; } .widget-link.widget1 .widget-content { text-align: center; padding: 0.5em; } .link-img-wrap { padding: 0; overflow: hidden; } .widget-content-inner{ display: inline-block; cursor: pointer; border: 1px solid #BBE0FB; padding: 10px; background: #fff; position: relative; &:hover{ -webkit-box-shadow: 0px 0px 10px 2px #a1eafb; -moz-box-shadow: 0px 0px 10px 2px #a1eafb; box-shadow: 0px 0px 10px 2px #a1eafb; } @media(max-width:$screen-xs){ width: 100%; } } .widget-content-title{ color: #7e2ece; } .index-context { color: #828080; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; white-space: normal; } .link-img-wrap{ &: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%; } } } // Link INDEX .index-link { clear: both; .index-title { @extend .unity-title; } &.index1 { .index-content-title { display: block; } .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{ .index-title-wrap{ h4 { font-size: 1.2rem; font-weight: bold; } } .index-title{ span{ color: #fff; justify-content: center; &:after{ border-color: #FF0086; width: 15rem; background-color: #FF0086; left: unset; } } } .index-content{ padding: 0; border-radius: 0; margin: 0.5em; @media(min-width:769px){ width: calc(33.3% - 1em); } @media(min-width:480px)and(max-width:768px){ width: calc(50% - 1em); } } .link-img-wrap{ width: 100%; display: block; } .widget-link_wrapper { padding-bottom: 2em; padding-top: 1em; overflow: hidden; } .list-unstyled{ overflow: unset !important; display: flex; flex-wrap: wrap; } .index-content > a{ position: relative; z-index: 100; display: block; } .index-content{ .liWrapper{ &:after{ content: ""; border-radius: 5px; position: absolute; z-index: -1; top: 0; left: 0; width: 100%; height: 100%; -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); opacity: 0; padding: 3px; border: 3px solid #d000c4; border-image-source: linear-gradient(180deg, #d000c4 0%, #247fdd 41.97%, #baf2ff 70.46%, #006ff8 98.45%); border-image-slice: 10; } } border-radius: 5px; -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); -o-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); &:hover{ background-color: #262729; z-index: 101 !important; height: max-content; position: relative !important; -webkit-transform: scale(1.25, 1.25); -ms-transform: scale(1.25, 1.25); transform: scale(1.25, 1.25); -webkit-box-shadow: 0px 0px 10px 2px rgba(212, 56, 212, 0.589); -moz-box-shadow: 0px 0px 10px 2px rgba(212, 56, 212, 0.589); box-shadow: 0px 0px 10px 2px rgba(212, 56, 212, 0.589); .index-title-wrap{ display: block; } .liWrapper{ &:after{ opacity: 1; z-index: 100; } } } } .index-title-wrap{ position: relative; color: #ffffff; text-shadow: 2px 2px 3px #000000; font-size: 1rem; bottom: 0; width: 100%; padding: 1em; text-align: center; } } &.index3{ .index-title{ span{ color: #fff; justify-content: center; &:after{ border-color: #FF0086; width: 15rem; background-color: #FF0086; left: unset; } } } .index-content{ padding: 0; border-radius: 0; margin: 0.5em; @media(min-width:769px){ width: calc(20% - 1em); } @media(min-width:480px)and(max-width:768px){ width: calc(33.3% - 1em); } } .link-img-wrap{ width: 100%; display: block; } .widget-link_wrapper { padding-bottom: 2em; padding-top: 1em; overflow: hidden; } .list-unstyled{ overflow: unset !important; display: flex; flex-wrap: wrap; } .index-content > a{ position: relative; z-index: 100; display: block; } .index-content{ .liWrapper{ &:after{ content: ""; border-radius: 5px; position: absolute; z-index: -1; top: 0; left: 0; width: 100%; height: 100%; -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); opacity: 0; padding: 3px; border: 3px solid #d000c4; border-image-source: linear-gradient(180deg, #d000c4 0%, #247fdd 41.97%, #baf2ff 70.46%, #006ff8 98.45%); border-image-slice: 10; } } border-radius: 5px; -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); -o-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); &:hover{ background-color: #fff; z-index: 101 !important; position: relative !important; -webkit-transform: scale(1.25, 1.25); -ms-transform: scale(1.25, 1.25); transform: scale(1.25, 1.25); -webkit-box-shadow: 0px 0px 10px 2px rgba(212, 56, 212, 0.589); -moz-box-shadow: 0px 0px 10px 2px rgba(212, 56, 212, 0.589); box-shadow: 0px 0px 10px 2px rgba(212, 56, 212, 0.589); .index-title-wrap{ display: block; } .liWrapper{ &:after{ opacity: 1; z-index: 100; } } } } .index-title-wrap{ display: none; position: absolute; color: #ffffff; text-shadow: 2px 2px 3px #000000; font-size: 1rem; bottom: 0; width: 100%; padding: 1em; text-align: center; background-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.7) 40%, #000); } } } .index-link.index2 li.col-md-4{ text-align: center; }