houde_web_api/public/static/css/news_detail.css
2023-04-16 23:05:17 +08:00

350 lines
5.1 KiB
CSS

body {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: white;
}
a:hover {
text-decoration: none;
color: white;
}
.news_img {
width: 100%;
height: auto;
}
.news_img img {
width: 100%;
height: 100%;
}
#news {
width: 87%;
height: 160px;
background-color: rgb(0, 167, 134);
position: relative;
top: -90px;
left: 13%;
display: flex;
align-items: center;
justify-content: center;
}
.news_box {
width: 90%;
height: 90%;
}
.news_box_left {
width: 25%;
height: 100%;
float: left;
}
.size1 {
font-size: 40px;
font-weight: 600;
}
.size2 {
font-size: 30px;
}
.news span {
color: white;
}
.news_box_right {
width: 75%;
height: 100%;
float: left;
font-size: 18px;
}
.news_box_right img {
width: 20px;
height: 20px;
}
.news_border {
text-align: right;
width: 90px;
margin-left: 30px;
font-size: 14px;
margin-top: 20px;
float: right;
}
.news_border1 {
display: flex;
align-items: center;
margin-top: 30px;
flex-direction: row-reverse;
}
.news_border1 span {
font-size: 14px;
}
.news_border :hover {
border-bottom: 3px solid white;
}
#news_visible {
width: 100%;
height: 120px;
background-color: rgb(0, 167, 134);
}
.news_visible_box {
width: 80%;
height: 80%;
position: relative;
top: 10%;
margin: auto;
}
.news_visible_top {
width: 100%;
height: 50%;
display: flex;
align-items: center;
}
.news_visible_top span {
color: white;
font-size: 24px;
font-weight: 600;
}
.news_visible_bottom {
width: 100%;
height: 50%;
display: flex;
align-items: center;
}
.news_visible_border a {
width: 65px;
font-size: 14px;
float: left;
margin-right: 10px;
}
#content {
width: 90%;
height: auto;
margin: 0 auto;
border-bottom: 1px solid rgb(192, 192, 192);
}
.content_title {
display: flex;
justify-content: center;
/* border-bottom: 1px solid rgb(192, 192, 192); */
font-weight: 800;
font-size: 20px;
}
.content_information {
display: flex;
justify-content: center;
}
.content_link {
display: flex;
justify-content: space-between;
margin-top: 10px
}
.content_link a {
color: black;
}
#content_information_visible span {
width: 100%;
margin: 0 auto;
}
#content_visible {
width: 90%;
height: auto;
margin: 0 auto;
}
.content_title_visible {
display: flex;
justify-content: center;
font-weight: 800;
font-size: 20px;
}
.content_information_visible {
display: flex;
justify-content: center;
border-bottom: 1px solid rgb(192, 192, 192);
}
.content_link_visible p {
margin-top: 20px;
}
.content_link_visible a {
color: black;
cursor: pointer;
}
.news_content {
/* width: 100%;
height: auto;
border-bottom: 1px solid rgb(192, 192, 192);
overflow: hidden; */
}
.news_content img {
width: 60%;
object-fit: contain;
}
.information {
width: 100%;
height: 30px;
background-color: rgb(0, 167, 134);
display: flex;
align-items: center;
margin-top: 15px;
}
.information span {
margin-left: 10px;
color: white;
}
.content {
width: 100%;
display: flex;
justify-content: space-around;
}
.keywords {
width: 100%;
height: 30px;
display: flex;
align-items: center;
margin-top: 10px;
}
a {
cursor: pointer;
}
.pc {
display: flex;
justify-content: space-around;
}
#news_list {
width: 28%;
height: 250px;
display: flex;
justify-content: center;
}
#news_list a {
background-color: transparent !important;
color: #007bff;
}
.news_list_content {
width: 100%;
height: 80%;
margin: 10px auto;
box-shadow: darkgrey 5px 5px 8px -6px;
}
.mobile:hover {
margin-top: 20px;
box-shadow: rgb(233 165 165) 9px 9px 18px -6px;
}
.news_list_content_img {
width: 100%;
height: 50%;
text-align: center;
overflow: hidden;
}
.news_list_content_img img {
width: 100%;
height: 100%;
object-fit: cover;
}
#news_list_visible {
width: 25%;
height: 200px;
}
.news_list_content_title {
overflow: hidden;
text-overflow: ellipsis;
margin-top: 15px !important;
font-weight: 600;
color: #181818;
padding-left: 15px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
}
@media (max-width: 748px) {
.content {
width: 100%;
display: flex;
justify-content: space-around;
flex-direction: column !important;
}
#news_list_visible {
width: 100%;
height: 300px;
}
.news_list_content_title {
overflow: hidden;
text-overflow: ellipsis;
margin-top: 15px !important;
font-weight: 600;
color: #181818;
padding-left: 10px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
}
.de {
padding-left: 10px;
}
}
.text_box {
width: 100%;
height: 100%;
}
.news_title {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}