style(posts): expand cover art to 1/3 width on desktop and 100% full-width on mobile
Deploy / build (push) Successful in 27s
Deploy / build (push) Successful in 27s
This commit is contained in:
1 parent
2b495efe43
commit
af37f7ff1b
4 files changed
+22
-22
No files matched your search
@@ -152,8 +152,8 @@ a.dispatchEvent(new Event('timeupdate'));
|
||||
下面每个播放器都会滚动歌词、把当前句保持在中间,旁边还有 **.srt 下载** —— 想烧字进视频或在 VLC 里打开都行。
|
||||
|
||||
<style>
|
||||
.subs-track{margin:2.4rem 0;display:flex;gap:1.4rem;align-items:flex-start}
|
||||
.subs-cover{flex:0 0 160px;width:160px;aspect-ratio:1/1;border-radius:12px;overflow:hidden;border:1px solid var(--border,#3a3f47);background:var(--card,#1e2025);box-shadow:0 6px 18px rgba(0,0,0,.15)}
|
||||
.subs-track{margin:2.4rem 0;display:flex;gap:1.5rem;align-items:flex-start;padding:1.2rem;border-radius:12px;background:var(--card,#1e2025);border:1px solid var(--border,#3a3f47);box-shadow:0 4px 16px rgba(0,0,0,.1)}
|
||||
.subs-cover{flex:0 0 33.333%;width:33.333%;max-width:280px;min-width:200px;aspect-ratio:1/1;border-radius:10px;overflow:hidden;border:1px solid var(--border,#3a3f47);background:#000}
|
||||
.subs-cover img{width:100%;height:100%;object-fit:cover;display:block}
|
||||
.subs-content{flex:1 1 0;min-width:0}
|
||||
.subs-content figcaption{display:flex;align-items:baseline;gap:.6rem;flex-wrap:wrap;font-weight:600;margin-bottom:.35rem}
|
||||
@@ -163,12 +163,12 @@ a.dispatchEvent(new Event('timeupdate'));
|
||||
.subs-dl:hover{background:rgba(34,197,94,.14)}
|
||||
.subs-dl::before{content:"↓ "}
|
||||
.subs-content audio{width:100%}
|
||||
.subs-box{position:relative;max-height:220px;overflow-y:auto;border:1px solid var(--border,#3a3f47);border-radius:8px;padding:.7rem 1rem;margin-top:.6rem;font-size:.95em;line-height:1.6}
|
||||
.subs-box{position:relative;max-height:220px;overflow-y:auto;border:1px solid var(--border,#3a3f47);border-radius:8px;padding:.7rem 1rem;margin-top:.6rem;font-size:.95em;line-height:1.6;background:rgba(0,0,0,.25)}
|
||||
.subs-box p{margin:.18rem 0;opacity:.55}
|
||||
.subs-box p.on{opacity:1;font-weight:600;color:var(--accent,#22c55e)}
|
||||
@media(max-width:640px){
|
||||
.subs-track{flex-direction:column;align-items:stretch;gap:1rem}
|
||||
.subs-cover{width:120px;margin:0 auto}
|
||||
@media(max-width:680px){
|
||||
.subs-track{flex-direction:column;align-items:stretch;gap:1.2rem;padding:1rem}
|
||||
.subs-cover{flex:none;width:100%;max-width:none;min-width:0;aspect-ratio:1/1;margin:0}
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
Reference in new issue
Block a user