|
|
@@ -58,9 +58,6 @@
|
|
|
<img :src="getInfoImg(item)" alt="展览资讯" class="news-img" />
|
|
|
<div class="news-content">
|
|
|
<h4 class="news-title">{{ getTitle(item) }}</h4>
|
|
|
- <span class="news-desc"
|
|
|
- ><el-icon> <SortUp /> </el-icon
|
|
|
- ></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -463,24 +460,24 @@ onMounted(() => {
|
|
|
}
|
|
|
|
|
|
.news-content {
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
width: 100%;
|
|
|
- height: 106px;
|
|
|
- background: linear-gradient(90deg, rgba(177, 150, 123, 0) 0%, #b1967b 100%);
|
|
|
+ height: 30px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ opacity: 0.8;
|
|
|
+ position: absolute;
|
|
|
+ bottom: 0;
|
|
|
+ background: linear-gradient(180deg, rgba(256, 256, 256, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
|
|
|
|
|
|
.news-title {
|
|
|
- width: 150px;
|
|
|
- text-align: right;
|
|
|
font-size: 16px;
|
|
|
- font-weight: 800;
|
|
|
- margin: 16px;
|
|
|
- float: right;
|
|
|
- color: #ffffff;
|
|
|
- display: -webkit-box;
|
|
|
- -webkit-line-clamp: 2;
|
|
|
- -webkit-box-orient: vertical;
|
|
|
+ margin: 0;
|
|
|
+ color: #fff;
|
|
|
+ font-weight: bold;
|
|
|
+ white-space: nowrap;
|
|
|
overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
font-family: 'heavy';
|
|
|
}
|
|
|
|
|
|
@@ -562,6 +559,7 @@ onMounted(() => {
|
|
|
width: 100%;
|
|
|
height: 206px;
|
|
|
object-fit: cover;
|
|
|
+ transform: translateY(-25%);
|
|
|
}
|
|
|
|
|
|
.exhibition-info {
|