diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-14 21:12:05 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-14 21:12:05 +0800 |
| commit | 38195627e2f8cfdc0079b8dd7c7977567f54b86b (patch) | |
| tree | b0aeed2742274b62d8139bb524f6f3a3d44b88e8 /assets/css/components | |
| parent | 5a048dc954bdc9641b1dca9305cd26ed2b25c480 (diff) | |
feat: new fictions section page
Former-commit-id: cd1c5a16954b73d8ba3e3bfafe5e633e5ecfd029
Diffstat (limited to 'assets/css/components')
| -rw-r--r-- | assets/css/components/_fictions.scss | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/assets/css/components/_fictions.scss b/assets/css/components/_fictions.scss index c235a5f2..58c15ba0 100644 --- a/assets/css/components/_fictions.scss +++ b/assets/css/components/_fictions.scss @@ -1,33 +1,27 @@ #fiction-section { .fiction-welcome { margin: 2rem 0; - display: flex; - align-items: center; - gap: 2rem; - @media screen and (max-width: 768px) { - gap: 1rem; - } - - .fiction-welcome-image img { - width: 10rem; - @media screen and (max-width: 768px) { - width: 7rem; - } - opacity: 0.8; - } } .fiction-list { - margin: 4rem 0; + display: flex; + flex-wrap: wrap; + justify-content: space-around; + gap: 2rem; + .fiction-item { text-align: center; - margin: 2rem 0; + margin: 0; + filter: url(#x); + font-size: 1.5rem; + font-weight: 900; - .fiction-item-title { - margin: 0; - } - .fiction-item-meta { - color: var(--secondary-text-color); + // Apply slight random rotation using nth-child + @for $i from 1 through 10 { + &:nth-child(#{$i}) { + transform: rotate(#{random(7) - 4}deg); + opacity: #{(random(5) + 5) / 10}; + } } } } |
