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

750 lines
14 KiB
SCSS

@charset "utf-8";
@import "../initial";
// Link MODULES
.aside{
@media(min-width:769px){
.widget-content{
width: 100%!important;
}
}
}
.modules-menu{
@media(min-width:769px){
.widget-content{
width: 100%!important;
}
}
}
.liWrapper{
position: relative;
}
.liWrapper.is-default-img{
&:after {
content: '';
width: 100%;
height: 100%;
position: absolute;
background-color: lighten($theme-color-second, 60%);
top: 0;
left: 0;
overflow: hidden;
border-radius: 1em;
}
}
.link-img-wrap.is-default-img {
&:after {
content: '';
width: 100%;
height: 100%;
position: absolute;
background-color: lighten($theme-color-second, 60%);
top: 0;
left: 0;
overflow: hidden;
border-radius: 1em;
}
}
.widget-link {
clear: both;
.link-img-wrap{
position: relative;
}
}
.widget-content-title-wrapper{
position: relative;
[data-list="statuses"]{
position: absolute;
top: 1em;
left: 0;
}
.widget-content-title{
padding:1em 1.5em;
}
}
.link-img-wrap{
overflow: hidden;
border-radius: 1em;
}
.widget-link__item {
vertical-align: top;
}
.widget-link {
margin-bottom: 1em;
margin-top: 1em;
.widget-link__more{
display: none;
}
}
.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){
align-items: normal;
}
.liWrapper{
margin:0 0.5em;
overflow: hidden;
img.widget-link__img {
overflow: hidden;
border-radius: 1em;
}
}
}
.widget-title {
@extend .unity-title;
}
&.widget1 {
.widget-content {
border-radius: 1em;
overflow: hidden;
padding: 0;
&:hover{
transition: all 0.3s;
background-color: rgba($theme-color-second, 0.1);
}
& + .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;
}
}
}
&.widget2{
.widget-content{
// @media(min-width:769px){
// width: 25%;
// }
@media(max-width:768px){
width: 100%;
}
&:hover{
.link-img-wrap img{
transform:scale(1.1,1.1);
transition: all 0.3s;
}
}
.widget-content-title {
padding-top: 0.5em;
@extend .i-subtitle;
}
}
.widget-title {
@extend .unity-title;
}
.link-img-wrap{
@media(min-width:769px){
img{
height: auto;
}
}
margin: auto;
display: flex;
align-items: center;
justify-content: center;
}
.list-unstyled{
display: flex;
flex-wrap: wrap;
overflow: hidden;
}
}
&.widget3{
.widget-content{
// @media(min-width:769px){
// width: 25%;
// }
@media(max-width:768px){
width: 100%;
}
&:hover{
.link-img-wrap img{
transform:scale(1.1,1.1);
transition: all 0.3s;
}
}
.widget-content-title {
padding-top: 0.5em;
@extend .i-subtitle;
}
}
.widget-title {
@extend .unity-title;
}
.link-img-wrap{
@media(min-width:769px){
img{
height: auto;
}
}
margin: auto;
display: flex;
align-items: center;
justify-content: center;
}
.list-unstyled{
display: flex;
flex-wrap: wrap;
overflow: hidden;
}
}
&.widget10{
.widget-content {
padding: 0.5em;
}
.link-img-wrap{
}
.list-unstyled{
display: flex;
flex-wrap: wrap;
overflow: hidden;
li:nth-child(n+9){
display: none;
}
}
}
&.widget-4{
.widget-link_wrapper {
position: relative;
overflow: hidden; /* ✅ 改在 wrapper 裁切,不在 slideshow */
}
.widget-content.cycle-slideshow {
overflow: visible !important;
height: auto !important;
}
.cycle-carousel-wrap {
height: auto !important;
}
.widget-link__item {
vertical-align: top;
height: auto !important;
white-space: normal;
}
.widget-content-title {
white-space: normal;
word-break: break-word;
}
}
&.widget7{
.list-unstyled{
display: flex;
justify-content: center;
flex-wrap: wrap;
li:nth-child(n+16){
display: none;
}
}
.widget-content {
width: 20%;
padding: 1em;
&:hover{
img{
transform: scale(1.1, 1.1);
transition: all 0.3s;
}
}
[data-list="statuses"] {
position: relative;
float: left;
top: 0;
left: 0;
}
.link-img-wrap{
overflow: hidden;
aspect-ratio: 9 / 9;
border-radius: 100%;
background: #d7d7d7;
display: flex;
justify-content: center;
align-items: center;
margin: 0;
transition: transform 0.4s ease;
}
@media(max-width:$screen-xs){
width: 100%;
}
.link-img-wrap{
border-radius:100%;
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 1em;
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;
}
}
}
}
&.widget8{
.widget-content{
padding: 1em;
border-radius: 1em;
overflow: hidden;
@media(max-width:$screen-xs){
width: 100%;
}
}
.link-img-wrap{
border-radius: 2em;
overflow: hidden;
&:hover{
img{
transform: scale(1.1) translateY(-1%);
-webkit-transition: .3s all ease;
-o-transition: .3s all ease;
transition: .3s all ease;
}
}
}
img{
width: 100%;
}
}
&.widget9{
.list-unstyled{
display: flex;
justify-content: center;
flex-wrap: wrap;
li:nth-child(n+16){
display: none;
}
}
.widget-content-title-wrapper {
position: absolute;
top: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.widget-content {
width: 20%;
padding: 1em;
.widget-content-a{
width: 100%;
position: relative;
display: block;
height: 100%;
border-radius: 100%;
background-color: rgba($theme-color-second, 0.2);
&:hover{
border-radius: 2em;
-webkit-transition: .3s all ease;
-o-transition: .3s all ease;
transition: .3s all ease;
.link-img-wrap{
border-radius: 2em;
-webkit-transition: .3s all ease;
-o-transition: .3s all ease;
transition: .3s all ease;
}
}
}
&:hover{
img{
transform: scale(1.1, 1.1);
transition: all 0.3s;
}
}
[data-list="statuses"] {
position: relative;
float: left;
top: 0;
left: 0;
}
.link-img-wrap{
opacity: .8;
overflow: hidden;
aspect-ratio: 9 / 9;
border-radius: 100%;
background: #d7d7d7;
display: flex;
justify-content: center;
align-items: center;
margin: 0;
transition: transform 0.4s ease;
}
@media(max-width:$screen-xs){
width: 100%;
}
.link-img-wrap{
border-radius:100%;
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 1em;
text-shadow:
0 0 5px #fff,
0 0 10px #fff,
0 0 15px #fff,
0 0 20px #fff,
0 0 25px #fff;
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 {
text-shadow: 0px 0px 5px #000000;
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;
height: fit-content;
&: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{
.liWrapper{
border-radius: 100%;
aspect-ratio: 9 / 9;
overflow: hidden;
&:hover{
border-radius: 2em;
-webkit-transition: .3s all ease;
-o-transition: .3s all ease;
transition: .3s all ease;
}
}
.widget-content-title{
text-align: center;
}
}
&.widget13{
.widget-content{
clear: both;
}
.widget-title{
float: left;
}
.index-context{
display: block;
}
.widget-link-flex{
display:flex;
flex-wrap:wrap;
align-items: center;
padding: 1em;
border-radius: 6px;
background: rgba(255, 255, 255, 0.6) !important;
box-shadow: 0px 0px 4px 0px #00000033 !important;
}
.widget-link__item{
padding: 0.5em;
}
.prev-button,.next-button{
background-color: $theme-color-second;
&:hover{
background: rgba(0, 0, 0, 0.45) !important;
}
}
.liWrapper{
width:30%;
margin: 0!important;
@media(max-width:767px){
width:100%;
}
}
.widget-content-title{
width:70%;
padding: 0 1em;
@media(max-width:767px){
width:100%;
}
}
}
}
// Link INDEX
.index-content{
&:hover{
.link-img-wrap img{
transform: scale(1.1) translateY(-1%);
-webkit-transition: .3s all ease;
-o-transition: .3s all ease;
transition: .3s all ease;
}
}
}
.index-content-title{
@extend .i-title;
}
@media (max-width: 768px) {
.index-link .link-img-wrap {
width:100%!important;
}
}
.index-content-wrapper{
padding: 1em 1.5em;
position: relative;
}
.index-link .link-img-wrap img {
width:100%!important;
}
.index-link {
clear: both;
[data-list="statuses"]{
position: absolute;
left: 0;
top: 0;
}
.index-title {
@extend .unity-title;
}
&.index1 {
.link-img-wrap{
padding: 0;
}
.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;
}
}
&.index2 {
.index-content-wrapper {
border-radius: 1em;
}
.link-img-wrap{
height: auto !important;
width: 100%;
}
.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;
}
}
&.index3 {
.link-img-wrap{
padding: 0;
}
.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;
}
}
&.index4 {
.index-content-wrapper {
border-radius: 1em;
}
.link-img-wrap{
height: auto !important;
width: 100%;
}
.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;
}
}
}