@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; } &.widget1 { .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: 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; } & + .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{ } } &.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: 769px){ padding: 1em !important; } @media(max-width:1024px){ width: 33.3% !important; padding: 0.5em !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 { 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; } .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%; } } } // 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; }