summaryrefslogtreecommitdiff
path: root/assets/css/components
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-07-14 21:12:05 +0800
committerEltrac <hi@guhub.cn>2025-07-14 21:12:05 +0800
commitcd1c5a16954b73d8ba3e3bfafe5e633e5ecfd029 (patch)
treeb0aeed2742274b62d8139bb524f6f3a3d44b88e8 /assets/css/components
parent5f3933751ede3845ebc3ff319986d25515501522 (diff)
feat: new fictions section page
Diffstat (limited to 'assets/css/components')
-rw-r--r--assets/css/components/_fictions.scss36
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};
+ }
}
}
}