fix(style): fix summary height

This commit is contained in:
Dillon
2020-02-10 22:16:30 +08:00
parent e88647514a
commit 3b833daa30
6 changed files with 38 additions and 18 deletions

View File

@@ -107,7 +107,7 @@
p { p {
font-size: 1rem; font-size: 1rem;
margin: .5rem 0 .5rem 0; margin: .5rem 0;
} }
a { a {
@@ -319,15 +319,14 @@
kbd { kbd {
display: inline-block; display: inline-block;
padding: .25em; padding: .25rem;
background-color: $global-background-color; background-color: $global-background-color;
border: 1px solid $global-border-color; border: 1px solid $global-border-color;
border-bottom-color: $global-border-color; border-bottom-color: $global-border-color;
border-radius: 3px; border-radius: 3px;
-webkit-box-shadow: inset 0 -1px 0 $global-border-color; -webkit-box-shadow: inset 0 -1px 0 $global-border-color;
box-shadow: inset 0 -1px 0 $global-border-color; box-shadow: inset 0 -1px 0 $global-border-color;
font-size: .8em; font-size: .8rem;
line-height: 1.25rem;
font-family: $code-font-family; font-family: $code-font-family;
color: $code-color; color: $code-color;

View File

@@ -60,27 +60,33 @@
} }
.post-content { .post-content {
padding-top: .2rem; display: -webkit-box;
font-size: .9rem; margin-top: .3rem;
width: 100%; width: 100%;
max-height: 7rem; max-height: 10rem;
overflow: hidden; text-overflow: ellipsis;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
h2, h2,
h3, h3,
h4, h4,
h5, h5,
h6 { h6,
font-size: 1rem; p {
line-height: 1rem; margin: 0;
padding-top: .3rem; padding: .3rem 0;
padding-bottom: .3rem; overflow: hidden;
overflow-wrap: break-word;
text-overflow: ellipsis;
} }
p { p {
margin: 0; padding: 0;
padding-top: .3rem; }
padding-bottom: .3rem;
a {
word-break: break-all;
} }
} }

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"Target":"css/lib/forkawesome/forkawesome.min.css","MediaType":"text/css","Data":{}}

File diff suppressed because one or more lines are too long