diff options
| author | Reorx <novoreorx@gmail.com> | 2022-09-07 16:20:55 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-09-07 16:20:55 +0800 |
| commit | ceede2988aa86ad19a2ff84bb3eb76b91b8dd4da (patch) | |
| tree | be07df163b941520c64284aeefd1606c4c55532f /assets/css/common/main.css | |
| parent | ea271b565162f9a4144b97c23dbce3135403e094 (diff) | |
move .first-entry css to main.css, styling newsletter section
Diffstat (limited to 'assets/css/common/main.css')
| -rw-r--r-- | assets/css/common/main.css | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/assets/css/common/main.css b/assets/css/common/main.css index 004de15..d1dd1c3 100644 --- a/assets/css/common/main.css +++ b/assets/css/common/main.css @@ -14,7 +14,7 @@ } mark { margin: 0 -0.4em; - padding: 0.1em 0.4em; + padding: 0em 0.4em; border-radius: 0.8em 0.3em; background: transparent; background-image: linear-gradient( @@ -27,6 +27,51 @@ mark { box-decoration-break: clone; } +/* for home and section page */ +.first-entry { + position: relative; + min-height: 320px; + margin: var(--gap) 0 calc(var(--gap) * 2) 0; +} + +.first-entry .entry-header { + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + margin: var(--gap) 0 calc(var(--gap) * 2); +} + +.first-entry .entry-header h1 { + font-size: 34px; + line-height: 1.3; +} +@media screen and (max-width: 400px) { + .first-entry .entry-header h1 { + font-size: 30px; + } +} + +.first-entry .entry-content { + margin: 14px 0; + font-size: 17px; + color: var(--primary); + line-height: 1.6em; + display: block; + overflow: initial; /* fix <mark> edge get cut */ +} + +.first-entry .entry-content p { + margin-bottom: .8em; +} +.first-entry .entry-content li p { + margin-bottom: .5em; +} + +.first-entry .entry-footer { + font-size: 14px; +} + + /* for post page */ .main.post { max-width: calc(var(--post-width) + var(--gap) * 2); |
