diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2024-05-26 11:35:57 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2024-05-26 11:37:53 +0200 |
commit | ab54573f8fe1803f0599efbc2ce53ff04e72ec7f (patch) | |
tree | c01281525a9b9be7bc90554c0ea74eb82dbe3c86 /src/styles | |
parent | 41e3a123fea457c96f0322c1417ce74f13643e81 (diff) | |
download | sousleciel.lol-ab54573f8fe1803f0599efbc2ce53ff04e72ec7f.tar.gz |
feat(styles): Recoleta font + real wave for main title
Diffstat (limited to 'src/styles')
-rw-r--r-- | src/styles/main.css | 43 |
1 files changed, 41 insertions, 2 deletions
diff --git a/src/styles/main.css b/src/styles/main.css index e61c05d..fb5aa62 100644 --- a/src/styles/main.css +++ b/src/styles/main.css @@ -1,3 +1,5 @@ +/* font */ + @font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/ibm-plex-mono-medium-normal.woff2") format("woff2"); @@ -26,6 +28,22 @@ font-weight: 600; } +@font-face { + font-family: "Recoleta"; + src: url("/static/fonts/recoleta-medium-normal.woff") format("woff"); + font-style: normal; + font-weight: 400; +} + +@font-face { + font-family: "Recoleta"; + src: url("/static/fonts/recoleta-bold-normal.woff") format("woff"); + font-style: normal; + font-weight: 600; +} + +/* page */ + * { font-family: "IBM Plex Mono", monospace; } @@ -35,6 +53,8 @@ body { max-width: 96ch; } +/* title */ + h1 { font-size: 2em; margin-top: 1em; @@ -44,10 +64,19 @@ header h1 { margin-bottom: 30vh; } -h1 > a { - text-decoration-style: wavy; +header h1 a { + text-decoration: none; + font-size: 2em; + font-family: "Recoleta"; + letter-spacing: .08em; + background-image: url("/static/underline.svg"); + background-position-y: .5em; + background-repeat: repeat-x; + background-size: auto; } +/* elements */ + a, a:hover, a:visited { color: blue; } @@ -83,3 +112,13 @@ img { .img-item:not(:last-child) { margin-right: 1em; } + +/* mobile */ +@media only screen and (max-width: 72ch) { + + /* title */ + + header h1 a { + font-size: 13vw; + } +} |