proj-iott/assets/stylesheets/template/modules/web_resource.scss

115 lines
2.1 KiB
SCSS
Executable File

@charset "utf-8";
@import "../initial";
// Link MODULES
.widget-link {
// 在 layout-content 下的樣式
.widget-title {
@extend .unity-title;
}
&.widget4, &.widget-7{
li{
box-shadow: #cccccc 0px 0px 3px 2px;
padding: 0 0 2em 0;
position: relative;
margin: 0px 10px;
overflow: hidden;
vertical-align: top;
}
.widget-content{
height: 28em;
@media(min-width: $screen-xs)and(max-width: 768px){
height: 40em!important;
img{
width: 100%;
}
}
}
.widget-content-title{
margin: 1em;
position: relative;
white-space: pre-wrap;
a{
color: #265e94;
font-weight: bold;
font-size: 1.25em;
}
}
.widget-content-context{
padding: 0 1em;
white-space: pre-wrap;
.widget-content-title{
margin: 0;
}
}
}
&.widget1 {
.widget-content {
position: relative;
line-height: 2.5em;
& + .widget-content {
border-top: 0.0625em dotted $theme-gray-light;
}
.widget-content-title {
display: inline-block;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
}
// 在 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;
}
}
}