diff options
| author | Eltrac <hi@guhub.cn> | 2025-06-07 02:50:09 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-06-07 02:50:09 +0800 |
| commit | f8f728edbfeecdfeb5e7b3f61994af6028a01680 (patch) | |
| tree | c26c78a7ebbbd86b3312627a431e95545a367a69 /assets/css/components/_shortcodes.scss | |
| parent | 0660eba2d965e07e72496616ff3527aa6d2dd506 (diff) | |
| parent | 2108c84a3efdbd1d0583283fa53bc9851e3a5e63 (diff) | |
Merge branch 'master' of https://github.com/BigCoke233/geek-death-project
Former-commit-id: 92b9414863c95a4b034ca2687ab326484af52496
Diffstat (limited to 'assets/css/components/_shortcodes.scss')
| -rw-r--r-- | assets/css/components/_shortcodes.scss | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/assets/css/components/_shortcodes.scss b/assets/css/components/_shortcodes.scss index 52de0999..934417d3 100644 --- a/assets/css/components/_shortcodes.scss +++ b/assets/css/components/_shortcodes.scss @@ -137,3 +137,69 @@ .sidenote-content { font-size: 1rem } + +/* blog links */ + +.linkroll { + display: flex; + flex-wrap: wrap; + gap: 1rem; +} + +a.blog-link { + position: relative; + background-color: var(--block-background-color); + text-decoration: none; + color: var(--text-color); + padding: 1rem 2rem; + padding-right: 4rem; + border-radius: 1rem; + width: calc(50% - 2rem); + box-sizing: border-box; + overflow: hidden; + + h4, p { + margin: 0; + font-size: 1.2rem; + } + + p { + line-height: 1.5; + } + + .link-content { + z-index: 10; + } + + img { + --size: 5rem; + display: block; + position: absolute; + right: -1rem; + bottom: -1rem; + width: var(--size); + height: var(--size); + border-radius: 100%; + z-index: 0; + } +} + +@media screen and (max-width: 768px) { + a.blog-link { + font-size: 1.2rem; + padding: 0.5rem 1rem; + padding-right: 2rem; + width: 100%; + } +} + +a.podcast-link { + text-decoration: none; + color: inherit; + width: calc(25% - 1rem); + .link-image { + overflow: hidden; + border-radius: 5px; + img { margin: 0 } + } +} |
