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

458 lines
9.6 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: 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{
}
}
&.widget1{
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;
}
.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, #899cdd 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;
}
}
}
}
&.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: #e1e1e1;
border: 2px solid $theme-color-second;
-webkit-transition: .3s all ease;
-o-transition: .3s all ease;
transition: .3s 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{
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;
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%;
}
}
}
// 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;
}