diff options
| author | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-11-10 00:43:24 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-11-10 00:43:24 +0100 |
| commit | 6a177e466334086b26689429e3da5a8bfba449de (patch) | |
| tree | b4d4d400f3c33ad233056e6808017905097eae4e /scss/main.scss | |
| parent | 8129d4f13d4c25874e48394fce8b3dccb123a92b (diff) | |
feat(link): change color on hover
Diffstat (limited to 'scss/main.scss')
| -rw-r--r-- | scss/main.scss | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/scss/main.scss b/scss/main.scss index 40fbcb4..31e7246 100644 --- a/scss/main.scss +++ b/scss/main.scss @@ -1,15 +1,19 @@ @use "../node_modules/reset-css/reset.css"; +:root { + --text-color: #000 +} + body { + --background-image: ; height: 100vh; display: flex; align-items: center; justify-content: center; font-size: 18px; - background-position: center; - background-attachment: fixed; - background-repeat: no-repeat; + background: var(--background-image) center fixed no-repeat; background-size: cover; + color: var(--text-color); } .credits { @@ -19,7 +23,7 @@ body { gap: 1em; font-size: 16px; & a { - color: black; + color: var(--text-color); } } @@ -44,6 +48,7 @@ h2 { align-items: center; gap: 2rem; margin-bottom: 2rem; + color: var(--text-color); &__information { display: flex; @@ -68,6 +73,10 @@ h2 { } .links { + --text-color-hover: var(--text-color); + --background: #000; + --background-hover: var(--background); + display: flex; margin-top: 2rem; width: 100%; @@ -78,13 +87,20 @@ h2 { justify-content: center; width: 33%; border-radius: 16px; + background: var(--background); + &:hover { + background: var(--background-hover); + } } & a { display: block; - color: black; + color: var(--text-color); text-decoration: none; text-align: center; padding: 1em; width: 100%; + &:hover { + color: var(--text-color-hover); + } } } |
