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

362 lines
7.1 KiB
SCSS

@charset "utf-8";
@import "../initial";
// Link MODULES
.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%
}
}
.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.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 {
display: inline-block;
padding-top: 0.5em;
@extend .i-subtitle;
}
}
// 在 layout-footer 下的樣式
.layout-footer & {
.widget-content {
line-height: 2em;
border-top-color: $theme-green-light;
}
}
}
&.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: 50%;
overflow: hidden;
&:hover{
border-radius: 20%;
-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 {
.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;
}
}
&.index3 {
.link-img-wrap img{
width: 100%;
}
.link-img-wrap{
position: relative;
@media(max-width: 768px){
width: 100%;
}
@media(min-width: 769px){
width: 50%;
}
}
.link-text{
padding:2em!important;
}
.index-content {
padding: 0;
list-style: none;
background: #dee2fd;
& + .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%);
}
&:nth-child(even){
background: #f2eaf8;
.link-img-wrap{
@media(min-width: 769px){
&:after{
top: 15%;
content:'';
left:0;
position: absolute;
width: 0;
height: 0;
border-style: solid;
border-width:30px 0 10px 40px;
border-color: transparent transparent transparent #f2eaf8;
}
}
}
}
&:nth-child(odd){
.link-img-wrap{
@media(min-width: 769px){
&:after{
top: 15%;
content:'';
right:0;
position: absolute;
width: 0;
height: 0;
border-style: solid;
border-width: 30px 40px 10px 0;
border-color: transparent #dee2fd transparent transparent;
}
}
}
.index-content-title{
@media(min-width: 769px){
flex-wrap: wrap-reverse;
display: flex;
}
}
}
}
.index-content-title {
font-family: $main-font;
font-size: 1em;
}
}
&.index4 {
.link-img-wrap img{
width: 100%;
}
.link-img-wrap{
position: relative;
@media(max-width: 768px){
width: 100%;
}
@media(min-width: 769px){
width: 50%;
img{
// height: 100%;
// width: auto;
// max-width: unset;
}
}
}
.link-text{
@media(min-width: $screen-xs){
padding:1em 2em!important;
}
@media(max-width: $screen-xs){
padding-bottom: 2em !important;
}
}
.link-text-inner{
padding-bottom: 1em;
padding-top: 0.5em;
border-top: 4px solid #411e5c;
// border-bottom: 4px solid #411e5c;
}
.index-content {
padding: 0;
list-style: none;
.index-context {
display: inline-block;
// margin: 0 0 0.625em 2em;
color: darken($theme-gray-light, 20%);
}
&:nth-child(even){
.link-img-wrap{
}
}
&:nth-child(odd){
.link-img-wrap{
}
.index-content-title{
@media(min-width: 769px){
flex-wrap: wrap-reverse;
display: flex;
}
}
}
}
.index-content-title {
font-family: $main-font;
font-size: 1em;
}
}
}
.index-link.index2 li.col-md-4{
text-align: center;
}