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

112 lines
1.9 KiB
Stylus

@require "common/variables.styl"
@require "common/magic-theme.styl"
.home-content-container {
.home-article-list {
.home-article-item {
position: relative;
keep-container(1.02, 1.02, 28px, true);
.top-icon {
position: absolute;
top: 10px;
right: 12px;
font-size: 1.2em;
transform: rotate(45deg);
color: var(--third-text-color);
+keep-tablet() {
font-size: 1.16em;
}
}
.home-article-title {
position: relative;
font-weight: 600;
color: var(--second-text-color);
font-size: 1.5em;
line-height: 1.5em;
+keep-tablet() {
font-size: 1.3em;
}
+keep-mobile() {
font-size: 1.2em;
}
margin: 0;
}
.home-article-content {
text-align: justify;
margin: 20px 0;
line-height: 2em;
}
.home-article-meta-info-container {
display: flex;
justify-content: space-between;
align-items: center;
color: var(--third-text-color);
font-size: 1em;
.home-article-meta-info {
letter-spacing: 0.5px;
span {
margin-right: 10px;
&:last-child {
margin-right: 0;
}
ul, li {
display: inline;
}
}
.home-article-category {
+keep-mobile() {
display: none;
}
}
.home-article-tag {
+keep-tablet() {
display: none;
}
}
}
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)
}
}
}
}
}
}