diff options
| author | Reorx <novoreorx@gmail.com> | 2022-04-21 16:54:49 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-04-21 16:54:49 +0800 |
| commit | 368da1791e45b542618b49dd635c1048f5a75c53 (patch) | |
| tree | 125ac9c57589a9e42dcfa076f4ad76080255ca26 /assets/css/common/post-entry.css | |
| parent | 5b8b8241f30ca5f5571fbf752b66c80c1b82130f (diff) | |
fix home page first-entry margins
Diffstat (limited to 'assets/css/common/post-entry.css')
| -rw-r--r-- | assets/css/common/post-entry.css | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/assets/css/common/post-entry.css b/assets/css/common/post-entry.css index 2602ec5..17f8712 100644 --- a/assets/css/common/post-entry.css +++ b/assets/css/common/post-entry.css @@ -1,8 +1,5 @@ .first-entry { position: relative; - display: flex; - flex-direction: column; - justify-content: center; min-height: 320px; margin: var(--gap) 0 calc(var(--gap) * 2) 0; } @@ -12,6 +9,7 @@ display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; + margin: 1.5em 0; } .first-entry .entry-header h1 { @@ -22,7 +20,14 @@ .first-entry .entry-content { margin: 14px 0; font-size: 16px; - -webkit-line-clamp: 3; + color: var(--primary); + line-height: 1.5em; + display: block; +} + +.first-entry .entry-content p, +.first-entry .entry-content li { + margin-bottom: .8em; } .first-entry .entry-footer { |
