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

111 lines
1.9 KiB
Stylus
Raw Normal View History

2020-12-01 16:51:38 +08:00
2020-04-01 12:09:06 +08:00
.home-content-container {
.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(1.02, 1.02, 28px, 38px);
2020-11-13 14:43:22 +08:00
2020-10-28 00:20:32 +08:00
.top-icon {
position: absolute;
2020-11-19 11:58:54 +08:00
top: 10px;
right: 12px;
2020-12-01 16:51:38 +08:00
font-size: 1.2rem;
2020-11-19 11:58:54 +08:00
transform: rotate(45deg);
color: var(--third-text-color);
2020-11-20 12:02:22 +08:00
+keep-tablet() {
2020-12-01 16:51:38 +08:00
font-size: 1.16rem;
}
2020-10-28 00:20:32 +08:00
}
.home-article-title {
position: relative;
font-weight: 600;
color: var(--second-text-color);
2020-12-01 16:51:38 +08:00
font-size: 1.5rem;
line-height: 1.5rem;
2020-06-04 22:11:27 +08:00
2020-11-20 12:02:22 +08:00
+keep-tablet() {
2020-12-01 16:51:38 +08:00
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() {
2020-12-01 16:51:38 +08:00
font-size: 1.2rem;
2020-06-04 22:11:27 +08:00
}
2020-11-13 14:43:22 +08:00
margin: 0;
2020-09-09 16:30:18 +08:00
2020-04-01 12:09:06 +08:00
}
2020-11-13 14:43:22 +08:00
.home-article-content {
word-wrap: break-word;
2021-01-04 19:01:53 +08:00
text-align: justify;
2020-11-13 14:43:22 +08:00
margin: 20px 0;
2020-12-01 16:51:38 +08:00
line-height: 2rem;
2020-04-01 12:09:06 +08:00
}
2020-11-13 14:43:22 +08:00
.home-article-meta-info-container {
display: flex;
justify-content: space-between;
align-items: center;
color: var(--third-text-color);
2020-12-01 16:51:38 +08:00
font-size: 1rem;
2020-04-26 18:34:51 +08:00
.home-article-meta-info {
letter-spacing: 0.5px;
span {
2020-04-26 18:34:51 +08:00
margin-right: 10px;
&:last-child {
margin-right: 0;
}
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
hr {
border: none;
flex: 1;
height: 1px;
background: var(--border-color);
margin: 0 10px;
}
a {
color: var(--third-text-color);
&:hover {
color: var(--primary-color)
}
}
}
}
2020-04-01 12:09:06 +08:00
}
}