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

118 lines
2.0 KiB
Stylus
Raw Permalink Normal View History

2020-04-01 12:09:06 +08:00
.home-content-container {
2022-10-14 17:56:32 +08:00
background var(--background-color-1)
2020-04-01 12:09:06 +08:00
.home-article-list {
2020-04-01 12:09:06 +08:00
.home-article-item {
position relative
2020-10-28 00:20:32 +08:00
keep-container(true, 1.015, 1.015, 28px, 38px)
2020-11-13 14:43:22 +08:00
2020-10-28 00:20:32 +08:00
.top-icon {
position absolute
top 10px
right 12px
2022-10-14 17:56:32 +08:00
color var(--text-color-4)
font-size 1.2rem
transform rotate(45deg)
2020-11-20 12:02:22 +08:00
+keep-tablet() {
font-size 1.16rem
}
2020-10-28 00:20:32 +08:00
}
.home-article-title {
position relative
margin 0
2022-10-14 17:56:32 +08:00
color var(--text-color-2)
font-weight 600
font-size 1.4rem
line-height 1.5
2020-06-04 22:11:27 +08:00
2020-11-20 12:02:22 +08:00
+keep-tablet() {
font-size 1.3rem
2020-06-04 22:11:27 +08:00
}
2020-11-13 14:43:22 +08:00
2020-11-20 12:02:22 +08:00
+keep-mobile() {
font-size 1.2rem
2020-06-04 22:11:27 +08:00
}
2020-04-01 12:09:06 +08:00
}
2020-11-13 14:43:22 +08:00
.home-article-content {
margin 20px 0
2022-10-14 17:56:32 +08:00
color var(--text-color-3)
text-align justify
word-wrap break-word
2020-04-01 12:09:06 +08:00
}
2020-11-13 14:43:22 +08:00
.home-article-meta-info-container {
display flex
align-items center
justify-content space-between
2022-10-14 17:56:32 +08:00
color var(--text-color-4)
font-size 0.92rem
.home-article-meta-info {
letter-spacing 0.5px
span {
margin-right 10px
2020-04-26 18:34:51 +08:00
&:last-child {
margin-right 0
2020-04-26 18:34:51 +08:00
}
ul
li {
display inline
}
}
.home-article-category {
2020-11-20 12:02:22 +08:00
+keep-mobile() {
display none
}
}
.home-article-tag {
2020-11-20 12:02:22 +08:00
+keep-tablet() {
display none
}
}
}
2020-11-13 14:43:22 +08:00
2022-10-20 17:38:05 +08:00
.read-more {
display flex
align-items center
}
hr {
flex 1
height 1px
margin 0 10px
background var(--border-color)
border none
}
2022-10-20 17:38:05 +08:00
a {
2022-10-14 17:56:32 +08:00
color var(--text-color-4)
&:hover {
color var(--primary-color)
}
}
}
}
2020-04-01 12:09:06 +08:00
}
}