diff options
| author | Eltrac <hi@guhub.cn> | 2025-06-06 16:00:30 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-06-06 16:00:30 +0800 |
| commit | fa48f611d0de8cbe389268ae3f356f307b6a4970 (patch) | |
| tree | e5a6d465e0a214de291b6e95b672665bf8be173f /assets/css/components | |
| parent | 279e6b2d33d2ca20777f9affd8c7cfe2b9ca228b (diff) | |
feat: brand new linkroll page (originally blogroll)
Former-commit-id: 1de3fcd5b70746251b37f711e999c21f02f4b51d
Diffstat (limited to 'assets/css/components')
| -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 } + } +} |
