pro-blog/public/assets/style.css
2022-05-17 17:47:18 +08:00

162 lines
2.2 KiB
CSS

* {
margin: 0;
padding: 0;
}
a{
text-decoration: none;
color:#333;
}
.show-flex {
display: flex;
}
header {
background-color: black;
color: #fff;
line-height: 60px;
height: 60px;
}
.logo {
font-size: 30px;
flex: 1;
}
.logo a{
color: #fff;
}
.site-nav {
text-align: right;
margin-left: 20px;
}
.site-nav a {
color: #fff;
text-decoration: none;
display: inline-block;
padding: 0 20px;
font-size: 18px;
}
.site-nav a:hover {
color: #333;
background-color: aqua;
}
.container {
width: 900px;
max-width: 90%;
margin: auto;
}
.main {
margin: 30px auto;
}
.article-item {
margin-bottom: 30px;
border-bottom: dashed 1px #ccc;
padding-bottom: 30px;
}
.article-item .image img {
width: 100px;
height: 100px;
display: block;
border-radius: 5px;
}
.article-item .info {
flex: 1;
margin-left: 10px;
}
.info .title {
height: 30px;
overflow: hidden;
line-height: 30px;
text-overflow: ellipsis;
}
.info .title a{
display: block;
}
.info .desc {
color: #666;
font-size: 14px;
height: 40px;
line-height: 20px;
overflow: hidden;
}
.info .ext {
height: 30px;
line-height: 30px;
text-align: right;
color: #666;
font-size: 12px;
}
.search-input {
width: 200px;
}
.search-input .el-input__inner {
border-radius: 50px;
}
/* 详情页 */
#artilce-info{
color:#666;
font-size:14px;
margin:20px 0;
}
#artilce-info div{
margin-right: 10px;
}
#article-content{
line-height: 30px;
}
#article-content p{
margin: 10px 0;
}
@media screen and (max-width: 500px) {
header {
padding: 0 20px;
}
.container {
max-width: 100%;
}
.search-input {
position: absolute;
top: 60px;
width: auto;
left: 20px;
right: 20px;
}
.site-nav a {
padding: 0 10px;
}
.main {
padding-top: 50px;
}
.article-item {
padding: 15px;
margin-bottom: 0;
}
.article-item:hover,
.article-item:active {
background-color: rgba(0, 0, 0, 0.1);
}
.article-item .info .ext {
text-align: left;
}
}