diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-15 11:40:37 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-15 11:40:37 +0800 |
| commit | 07f6e08a2c841111456c30c00abf437f2ca6ac62 (patch) | |
| tree | af32edd7aa17ede3ab7543dcdcccf1748fcd3b1a /assets/css | |
| parent | 7f89e1b5cfc8d95c36e9addba3bf750b047f4ee7 (diff) | |
refactor: replace _fictions.scss with unocss
Diffstat (limited to 'assets/css')
| -rw-r--r-- | assets/css/components/_fictions.scss | 42 | ||||
| -rw-r--r-- | assets/css/global.scss | 1 | ||||
| -rw-r--r-- | assets/css/utils/_utility.scss | 8 |
3 files changed, 8 insertions, 43 deletions
diff --git a/assets/css/components/_fictions.scss b/assets/css/components/_fictions.scss deleted file mode 100644 index 58c15ba0..00000000 --- a/assets/css/components/_fictions.scss +++ /dev/null @@ -1,42 +0,0 @@ -#fiction-section { - .fiction-welcome { - margin: 2rem 0; - } - - .fiction-list { - display: flex; - flex-wrap: wrap; - justify-content: space-around; - gap: 2rem; - - .fiction-item { - text-align: center; - margin: 0; - filter: url(#x); - font-size: 1.5rem; - font-weight: 900; - - // 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}; - } - } - } - } -} - -.fiction-page { - .fiction-header { - display: flex; - flex-direction: column; - align-items: center; - } -} - -.fiction-page-header { - display: flex; - flex-direction: column; - align-items: center; -} diff --git a/assets/css/global.scss b/assets/css/global.scss index 56cc1976..c16fc056 100644 --- a/assets/css/global.scss +++ b/assets/css/global.scss @@ -10,7 +10,6 @@ @import "components/postlist"; @import "components/shortcodes"; @import "components/card"; -@import "components/fictions"; @import "components/library"; @import "components/footer"; @import "components/global-search"; diff --git a/assets/css/utils/_utility.scss b/assets/css/utils/_utility.scss index d2110714..53cd3642 100644 --- a/assets/css/utils/_utility.scss +++ b/assets/css/utils/_utility.scss @@ -52,3 +52,11 @@ figure { .font-mono { font-family: var(--mono-font-family); } + +.font-secondary { + color: var(--secondary-text-color); +} + +.xerox { + filter: url(#x); +} |
