fix(link): fix long words and URLs style bug

This commit is contained in:
Dillon
2020-02-13 13:30:58 +08:00
parent a07f0c65f5
commit 917cf4a427
11 changed files with 397 additions and 384 deletions

View File

@@ -9,7 +9,7 @@
}
}
.post {
.summary {
padding-top: 1rem;
padding-bottom: .8rem;
color: $global-font-color;
@@ -36,7 +36,7 @@
}
}
.post-list-title {
.post-title {
font-size: 1.6rem;
}
@@ -60,33 +60,43 @@
}
.post-content {
display: -moz-box;
display: -webkit-box;
-moz-box-orient: vertical;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
margin-top: .3rem;
width: 100%;
max-height: 10rem;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow-wrap: break-word;
}
h2,
h3,
h4,
h5,
h6,
p {
font-size: 1rem;
margin: 0;
padding: .2rem 0;
overflow: hidden;
overflow-wrap: break-word;
text-overflow: ellipsis;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
font-size: 1rem;
display: inline;
a {
word-break: break-all;
&::after {
content: "\A";
white-space: pre;
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
line-height: 2;
}
.post-footer {
margin-top: .5rem;
display: flex;
@@ -130,4 +140,4 @@
}
}
}
}
}