diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-15 23:51:25 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-15 23:51:25 +0800 |
| commit | 764e20e3ebabcb1f38f6a91c3b09de2473cadb5d (patch) | |
| tree | af1394fd393976380d21010e379c03b95ac8810c /assets/css/components/_post.scss | |
| parent | eddcb141d0afc462d976fdbe09ef2dc7c3f9159e (diff) | |
refactor: gallery styles and update imports
Moved gallery shortcode styles from _post.scss to _markdown.scss and deleted the unused _post.scss file. Updated import paths in content.scss and global.scss to reflect the new location of markdown styles.
Diffstat (limited to 'assets/css/components/_post.scss')
| -rw-r--r-- | assets/css/components/_post.scss | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/assets/css/components/_post.scss b/assets/css/components/_post.scss deleted file mode 100644 index 4ffe742c..00000000 --- a/assets/css/components/_post.scss +++ /dev/null @@ -1,57 +0,0 @@ - - -/* gallery shortcode */ - -.gallery { - display: flex; - overflow-x: auto; - scroll-behavior: smooth; - gap: 0.5rem; - white-space: nowrap; - - & > figure, & > a:has(> figure) { - margin: 0; - flex-shrink: 0; - display: inline-block; - max-width: 100%; - position: relative; - box-shadow: inset 0 -2rem 2rem -2rem rgba(0, 0, 0, 0.1); - img { - height: 20rem; - display: block; - border-radius: 4px; - margin: 0; - } - figcaption { - position: absolute; - bottom: 0; - left: 0; - padding: 0.35rem; - h4 { - font-size: 0.8rem; - margin: 0; - text-align: left; - width: fit-content; - color: var(--text-color); - background-color: rgba(var(--block-background-color-rgb), 0.75); - backdrop-filter: blur(0.5rem); - padding: 0.2rem 0.35rem; - border-radius: 3px; - line-height: 1.2; - } - } - } - & > p { display: none } - - &.center { - justify-content: center; - } - &.full-width { - & > figure { - flex-shrink: unset; - img { - width: 100%; - } - } - } -} |
