Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
fix(style): fix summary height
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed Feb 10, 2020
1 parent e886475 commit 3b833da
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 18 deletions.
7 changes: 3 additions & 4 deletions assets/css/_page/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@

p {
font-size: 1rem;
margin: .5rem 0 .5rem 0;
margin: .5rem 0;
}

a {
Expand Down Expand Up @@ -319,15 +319,14 @@

kbd {
display: inline-block;
padding: .25em;
padding: .25rem;
background-color: $global-background-color;
border: 1px solid $global-border-color;
border-bottom-color: $global-border-color;
border-radius: 3px;
-webkit-box-shadow: inset 0 -1px 0 $global-border-color;
box-shadow: inset 0 -1px 0 $global-border-color;
font-size: .8em;
line-height: 1.25rem;
font-size: .8rem;
font-family: $code-font-family;
color: $code-color;

Expand Down
30 changes: 18 additions & 12 deletions assets/css/_page/_posts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,27 +60,33 @@
}

.post-content {
padding-top: .2rem;
font-size: .9rem;
display: -webkit-box;
margin-top: .3rem;
width: 100%;
max-height: 7rem;
overflow: hidden;
max-height: 10rem;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;

h2,
h3,
h4,
h5,
h6 {
font-size: 1rem;
line-height: 1rem;
padding-top: .3rem;
padding-bottom: .3rem;
h6,
p {
margin: 0;
padding: .3rem 0;
overflow: hidden;
overflow-wrap: break-word;
text-overflow: ellipsis;
}

p {
margin: 0;
padding-top: .3rem;
padding-bottom: .3rem;
padding: 0;
}

a {
word-break: break-all;
}
}

Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Target":"css/lib/forkawesome/forkawesome.min.css","MediaType":"text/css","Data":{}}

Large diffs are not rendered by default.

0 comments on commit 3b833da

Please sign in to comment.