Miao-Yunzai/plugins/genshin/resources/html/mysNews-list/mysNews-list.css

153 lines
2.9 KiB
CSS
Raw Normal View History

* {
margin: 0;
padding: 0;
box-sizing: border-box;
user-select: none;
font-family: sans-serif;
}
@font-face {
font-family: "tttgbnumber";
src: url("../../font/tttgbnumber.ttf");
font-weight: normal;
font-style: normal;
}
.container {
width: 700px;
padding: 20px 15px 10px 15px;
background-color: #f5f6fb;
}
.head_box {
border-radius: 15px 50px 50px 15px;
font-family: "tttgbnumber";
padding: 35px 40px;
position: relative;
box-shadow: 0 5px 10px 0 rgb(0 0 0 / 15%);
background: url(./蒙德.png) #fff;
background-repeat: no-repeat;
background-size: 100% auto;
}
.head_box h1 {
font-size: 30px;
line-height: 36px;
margin: 0;
word-break: break-word;
word-wrap: break-word;
display: block;
}
body {
background: #f0f1f5;
line-height: 150%;
color: #333;
font-size: 16px;
width: 700px;
transform: scale(1.2);
transform-origin: 0 0;
}
.body_box {
padding: 20px 0px;
}
.data_box {
box-shadow: 0 5px 10px 0 rgb(0 0 0 / 15%);
border-radius: 15px;
background-color: #fff;
/* font-family: "tttgbnumber"; */
padding: 10px 0px 10px 0px;
font-size: 16px;
word-wrap: break-word;
word-break: break-word;
height: auto;
overflow-x: hidden;
}
.newscard {
display: flex;
padding: 16px 20px 16px 20px;
border-bottom: 1px solid #ddd;
}
.newscard-left {
width: 40px;
-ms-flex-negative: 0;
flex-shrink: 0;
font-size: 26px;
}
.newscard-comment {
width: 40px;
height: 30px;
position: relative;
text-align: center;
display: table-cell;
display: table;
vertical-align: middle;
}
.newscard-info {
display: block;
margin-left: 14px;
padding: 8px 0 6px;
overflow: hidden;
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
}
.newscard-title {
font-size: 22px;
line-height: 24px;
font-weight: 600;
color: #333;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.newscard-content {
display: -webkit-box;
margin-top: 14px;
color: #999;
overflow: hidden;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
line-height: 30px;
max-height: 86px;
word-break: break-word;
word-wrap: break-word;
font-size: 18px;
outline: none;
}
.newscard-num {
display: table-cell;
text-align: center;
vertical-align: middle;
font-family: "tttgbnumber";
}
.newscard-time {
font-size: 16px;
color: #999;
line-height: 1;
margin-top: 14px;
font-family: "tttgbnumber";
}
.newscard-cover {
margin-top: 10px;
width: 242px;
height: 124px;
-ms-flex-negative: 0;
flex-shrink: 0;
margin-left: 14px;
overflow: hidden;
}
.newscard-img {
width: 100%;
height: 100%;
border-radius: 8px;
background-position: 50%;
background-repeat: no-repeat;
/* background-size: 60%; */
background-color: #f6f6f6;
background-size: cover;
}
.logo {
font-size: 14px;
font-family: "tttgbnumber";
text-align: center;
color: #7994a7;
}