vertical2_new/assets/stylesheets/template/modules/web_resource.scss

632 lines
14 KiB
SCSS

@charset "utf-8";
@import "../initial";
// 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%;
margin: auto;
}
}
.widget-link__item{
list-style: none;
}
.widget-link__list{
padding: 0;
}
.widget-content-title,.widget-content-context{
// display: -webkit-box;
// -webkit-line-clamp: 2;
// -webkit-box-orient: vertical;
// overflow: hidden;
// text-overflow: ellipsis;
}
.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;
// text-align: center;
// display: flex;
// justify-content: center;
// flex-wrap: wrap;
span{
width: 100%;
}
// &:before{
// display: block;
// position: relative;
// text-align: center;
// content: '';
// height: 6px;
// width: 80px;
// background-color: #00356a;
// margin-bottom: 0.2em;
// }
}
&.widget7 {
.widget-title{
// margin-bottom: 10px;
// background: #268663;
// font-size: 0.9375em;
// font-weight: bold;
// line-height: 30px;
// border-radius: 6px !important;
// margin-top: 0;
// padding: 8.5px 15px 8.5px;
// text-transform: uppercase;
// color: #fff;
}
img{
// width: 32%;
}
.widget-content {
border-radius: 0.5em;
background: radial-gradient(circle at 60% 90%, #eaf6fd, transparent 60%), radial-gradient(circle at 10% 10%, #bddbf8, transparent 25%), #dbdee280;
border: 1px solid #d7d7d7;
padding: 15px 15px;
cursor: pointer;
z-index: 2;
font-weight: bold;
color: #6D6D6D;
width: 100%;
position: relative;
display: block;
margin-bottom: 10px;
a{
color: #6D6D6D;
}
&:hover{
background: radial-gradient(circle at 70% 80%, #66a9e2b3, transparent 60%), radial-gradient(circle at 1% 1%, #fb8f72, transparent 30%), radial-gradient(circle at 50% 50%, #3c78ff4d, transparent 70%), linear-gradient(135deg, #2b7bbe 0%, #00437c 80%, #fb8f72 100%);
border: 2px solid #ec6641;
-webkit-transition: .6s all ease;
-o-transition: .6s all ease;
transition: .6s all ease;
-webkit-transform: translateY(-6px);
-ms-transform: translateY(-6px);
transform: translateY(-6px);
a{
color: #fff;
}
}
& + .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{
.list-unstyled{
display: flex;
justify-content: center;
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{
}
}
&.widget1{
.widget-title{
text-align: center;
}
.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;
}
.widget-content {
width: 10em;
height: 10em;
clip-path: polygon(
25% 5.77%,
75% 5.77%,
100% 50%,
75% 94.23%,
25% 94.23%,
0% 50%
);
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;
height: 8em;
}
&:hover{
.hex-border{
// background:linear-gradient(180deg, #ec6641 0, #e8f6ff 100%);
background: radial-gradient(circle at 60% 90%, #ffe6df, transparent 60%), radial-gradient(circle at 20% 10%, #f5bfb0de, transparent 25%), #ec66418b;
}
background:$theme-color-third;
-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;
}
}
}
}
&.widget9{
.list-unstyled{
display: flex;
justify-content: center;
flex-wrap: wrap;
li:nth-child(n+16){
display: none;
}
}
.widget-content {
overflow: hidden;
line-height: 1.5em;
width: 23%;
height: 5em;
padding: 2em;
text-align: center;
margin: 0.8em;
color: #6D6D6D;
display: flex;
justify-content: center;
align-items: center;
background: #f8f8f8;
cursor: pointer;
border-radius: 12px;
-webkit-box-shadow: 0 30px 40px 0 #7070700f;
box-shadow: 0 30px 40px 0 #7070700f;
position: relative;
backdrop-filter: blur(5px);
background: #ffffff59;
&:after{
z-index: 0;
content: '';
position: absolute;
top: -100%;
left: -100%;
width: 200%;
height: 200%;
background: linear-gradient(
45deg,
rgba(255, 255, 255, 0) 30%,
#fff 50%,
rgba(255, 255, 255, 0) 70%
);
transform: translateX(-100%) rotate(0deg);
transition: all 1.2s ease;
pointer-events: none;
}
&:before{
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 12px;
padding: 2px;
background: linear-gradient(45deg, white, #E7E8EA);
-webkit-mask: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff)) content-box, -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff));
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
z-index: -1;
}
@media(max-width:1024px){
margin: 0.5em;
}
&:hover{
// background: #eaf6fd;
background: radial-gradient(circle at 60% 90%, #eaf6fd, transparent 60%), radial-gradient(circle at 10% 10%, #bddbf8, transparent 25%), #dbdee280;
border: 2px solid $theme-color-third;
-webkit-transition: .6s all ease;
-o-transition: .6s all ease;
transition: .6s all ease;
-webkit-transform: translateY(-6px);
-ms-transform: translateY(-6px);
transform: translateY(-6px);
&:after{
transform: translateX(100%) rotate(0deg);
}
}
@media(max-width:1200px)and(min-width: 769px){
padding: 1em !important;
}
@media(max-width:1024px){
width:42% !important;
padding: 0.5em !important;
}
.link-img-wrap{
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;
z-index: 1;
@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;
}
.link-img-wrap{
border-radius: 2em;
overflow: hidden;
&: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%;
}
}
&.widget10 {
img{
// width: 32%;
}
.list-unstyled{
padding-left: 3em;
}
.widget-content {
list-style: disc;
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: radial-gradient(circle at 70% 80%, #00437c, transparent 60%), radial-gradient(circle at 25% 25%, rgba(160, 191, 255, 0.501961), transparent 40%), radial-gradient(circle at 50% 50%, rgba(60, 120, 255, 0.301961), transparent 70%), linear-gradient(135deg, #00437c 0%, #00437c 60%, #80b5ff 100%);
margin-bottom: 1em;
color: #fff;
a{
color: #fff;
}
&:hover{
background: radial-gradient(circle at 60% 90%, #dea797, transparent 60%), radial-gradient(circle at 10px 10px, #eb8467, transparent 25%), #ec6641;
}
& + .widget-content {
// border-top: 0.0625em dotted $theme-gray-light;
}
.widget-content-title {
@extend .i-subtitle;
}
}
// 在 layout-footer 下的樣式
.layout-footer & {
.widget-content {
line-height: 2em;
border-top-color: $theme-green-light;
}
}
}
&.widget12 {
img{
// width: 32%;
}
.list-unstyled{
padding: 1em;
padding-left: 2em;
border-radius: 15px;
background-color: #f9f9f9ed;
}
.widget-content {
position: relative;
padding-bottom: 1em;
padding-left: 0;
@media (min-width: 480px) and (max-width: 768px){
width: 100%!important;
}
a{
&:before{
font-family: "Font Awesome 5 Free";
font-weight: 900;
position: absolute;
content: "";
left:-20px;
color: $theme-color-third;
}
}
& + .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;
}
}
}
&.widget13{
.widget-title{
margin: 0;
}
.widget-content{
@media(max-width:$screen-xs){
width: 100%;
}
}
.widget-content2{
position: relative;
padding-top: 1em;
text-align: justify;
.widget-img{
position: absolute;
width: 100%;
left: 0;
z-index: 0;
}
.widget-content-title{
background: #ffffffcc;
padding: 0 10px;
margin: 20px auto;
font-size: 1.2em;
position: relative;
z-index: 1;
}
}
.list-unstyled{
display: flex;
flex-wrap: wrap;
overflow: hidden;
}
}
}
// 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;
}