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

143 lines
2.4 KiB
SCSS

@charset "utf-8";
@import "../initial";
// Link MODULES
.widget-link {
// 在 layout-content 下的樣式
.widget-title {
@extend .unity-title;
}
&.widget1 {
.link-img-wrap{
img{
width: 100%;
}
}
.widget-content {
line-height: 2.5em;
border-bottom: 1px solid #dddddd;
padding: 0.1em 0;
margin: 0 1.25em;
position: sticky;
&:hover {
background-color: #f9f9f9;
a{
color: $theme-color-second;
padding-left: 10px;
transition: 0.2s linear;
}
}
& + .widget-content {
}
.widget-content-title {
display: inline-block;
font-size: 0.9rem;
top: 0;
width: 100%;
height: 100%;
}
}
// 在 layout-footer 下的樣式
.layout-footer & {
.widget-content {
line-height: 2em;
border-top-color: $theme-green-light;
}
}
}
}
// Link INDEX
.index-link {
.index-title {
@extend .unity-title;
}
&.index1 {
.index-content {
& + .index-content {
border-top: 0.0625em dotted $theme-gray-light;
}
.index-context {
display: inline-block;
font-size: 0.813em;
margin: 0 0 0.625em 2em;
color: darken($theme-gray-light, 20%);
}
}
.index-content-title {
font-family: $main-font;
font-size: 1em;
}
}
&.index2 {
.list-unstyled {
display: flex;
flex-wrap: wrap;
}
.index-content {
padding: 1em;
}
.status-top {
line-height: 2.5;
}
}
}
.widget-4 {
.widget-link__img {
width: 100%;
@media(min-width: $screen-sm) {
height: 75px;
padding: 5px;
}
@media(max-width: $screen-sm) {
padding: 5px 50px;
vertical-align: middle;
}
}
.title {
color: #fff;
}
@media(min-width:$screen-xs) {
min-height: 250px;
padding-top: 2em;
}
}
.widget-link__widget-title{
border-left: 3px solid #0268b7;
padding-left: 6px;
span{
&:after{
content: "";
position: absolute;
bottom:-7px;
left: calc(100%/2 - 60px/2);
width: 60px;
height: 2px;
background: #1f66c4;
}
}
}
.widget-link_wrapper{
background: #f4f4f4;
padding: 1em 0;
}
// .widget-gallery{
// border-bottom: 1px solid #eee;
// margin-bottom: 20px;
// }