hexo-theme-keep/source/css/layout/home-content.styl

82 lines
1.3 KiB
Stylus
Raw Normal View History

2020-04-01 12:09:06 +08:00
@require "common/variables.styl"
.home-content-container {
.home-article-list {
2020-04-01 12:09:06 +08:00
.home-article-item {
2020-04-01 12:09:06 +08:00
margin-bottom: 60px;
padding-bottom: 30px;
2020-04-01 12:09:06 +08:00
.home-article-title {
position: relative;
&::before {
content: '';
position: absolute;
top: 50%;
transform: translateY(-50%);
left: -16px;
width: 2px;
height: 20px;
2020-04-01 22:42:24 +08:00
background: $primary-color;
transition: all 0.5s ease;
}
2020-04-01 12:09:06 +08:00
font-weight: 600;
2020-04-01 22:42:24 +08:00
color: $second-text-color;
font-size: 22px;
margin: 0;
a {
2020-04-01 22:42:24 +08:00
color: $second-text-color;
2020-04-01 12:09:06 +08:00
}
}
.home-article-content {
margin: 45px 0;
line-height: 2em;
2020-04-01 12:09:06 +08:00
}
.home-article-meta-info {
display: flex;
justify-content: space-between;
align-items: center;
span {
letter-spacing: 1px;
}
hr {
border: none;
flex: 1;
height: 1px;
background: $border-color;
margin: 0 10px;
}
}
}
2020-04-01 12:09:06 +08:00
}
.paginator {
2020-04-01 12:09:06 +08:00
padding-bottom: 40px;
2020-04-01 12:09:06 +08:00
.page-number {
display: none !important;
}
2020-04-01 12:09:06 +08:00
a.prev {
float: left;
}
2020-04-01 12:09:06 +08:00
a.next {
float: right;
2020-04-01 12:09:06 +08:00
}
2020-04-01 12:09:06 +08:00
}
2020-04-01 12:09:06 +08:00
}