371 lines
7.4 KiB
SCSS
371 lines
7.4 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%!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 {
|
|
background: #fff;
|
|
padding: 0.5em 1em;
|
|
// 在 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;
|
|
|
|
& + .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{
|
|
|
|
}
|
|
}
|
|
&.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;
|
|
}
|