From c5427e0ee3b51d763b5bedb975a20d8acbd015b0 Mon Sep 17 00:00:00 2001 From: BurnyLlama Date: Sun, 31 Oct 2021 20:45:01 +0100 Subject: [PATCH] UI tweaks. --- src/sass/landing.scss | 6 +++++- src/sass/theme.scss | 37 ++++++++++++++++++++++++++++++++----- static/css/landing.css | 2 +- static/css/theme.css | 2 +- 4 files changed, 39 insertions(+), 8 deletions(-) diff --git a/src/sass/landing.scss b/src/sass/landing.scss index 2c74301..3769760 100644 --- a/src/sass/landing.scss +++ b/src/sass/landing.scss @@ -5,7 +5,11 @@ main { flex-direction: column; align-items: center; justify-content: center; - padding: 25vh 2rem; + padding: 20vh 2rem; +} + +header, h1 { + text-align: center; } h1 { diff --git a/src/sass/theme.scss b/src/sass/theme.scss index f406d64..507cd2d 100644 --- a/src/sass/theme.scss +++ b/src/sass/theme.scss @@ -35,20 +35,34 @@ nav { .logo { width: 3rem; height: 3rem; + margin-right: 2rem; border-radius: 100%; background-color: palette.$primary; } a { color: palette.$accent; - margin: 1rem 2rem; + border-bottom: .1rem solid transparent; + + margin: .25rem 1rem .5rem 1rem; + padding: .15rem .5rem .25rem .5rem; font-size: 1.25rem; text-decoration: none transparent; - } - a.current { - color: palette.$primary; + transition: border .3s; + + &:hover { + border-bottom: .1rem solid palette.$accent; + } + + &.current { + color: palette.$primary; + + &:hover { + border-bottom: .1rem solid palette.$primary; + } + } } } @@ -95,10 +109,23 @@ input { margin: 1em 0; padding: .75em 1.25em; - width: 80ch; + width: min(80ch, 80vw); + outline: 0 none transparent; + border: .2rem solid transparent; border-radius: settings.$border_radius_s; box-shadow: shadows.$small; + + transition: border .3s, background-color .5s, border-radius .5s; + + &:hover { + background-color: palette.$grey4; + border-radius: settings.$border_radius_m; + } + + &:active, &:focus { + border: .2rem solid palette.$primary; + } } diff --git a/static/css/landing.css b/static/css/landing.css index 171e213..c7ba54d 100644 --- a/static/css/landing.css +++ b/static/css/landing.css @@ -1 +1 @@ -main{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25vh 2rem}h1{color:#e0e0ff} +main{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20vh 2rem}header,h1{text-align:center}h1{color:#e0e0ff} diff --git a/static/css/theme.css b/static/css/theme.css index c1c4512..4ffd024 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -1 +1 @@ -*{margin:0;padding:0;border:0 none transparent;box-sizing:border-box;scroll-behavior:smooth;font-family:"Manrope Regular",sans-serif;font-size:1rem;line-height:1.5}html,body{color:#e0e0ff;background-color:#10102f;height:100%}nav{display:flex;align-items:center;background-color:#20203f;border-radius:0 0 2rem 2rem;box-shadow:.5rem 0 4rem #00001f;margin:0 0 2rem 0;padding:1rem 2rem}nav .logo{width:3rem;height:3rem;border-radius:100%;background-color:#ee588f}nav a{color:#fba7c6;margin:1rem 2rem;font-size:1.25rem;text-decoration:none transparent}nav a.current{color:#ee588f}header,h1,h2,h3,h4,h5,h6{color:#fba7c6}header{font-size:4rem}h1{font-size:1.5rem;font-weight:normal}h2{font-size:1.35rem;font-weight:normal}h3{font-size:1.2rem;font-weight:normal}h4{font-size:1.05rem;font-weight:normal}h5{font-size:.9rem;font-weight:normal}form{display:flex;flex-direction:column;justify-content:center;align-items:center}input{color:#e0e0ff;background-color:#20203f;margin:1em 0;padding:.75em 1.25em;width:80ch;border-radius:.5rem;box-shadow:.25rem 0 2rem #00001f}footer{display:flex;flex-direction:column;align-items:center;margin:5vh 2rem}footer a{color:#74b6fb;font-size:.8rem} +*{margin:0;padding:0;border:0 none transparent;box-sizing:border-box;scroll-behavior:smooth;font-family:"Manrope Regular",sans-serif;font-size:1rem;line-height:1.5}html,body{color:#e0e0ff;background-color:#10102f;height:100%}nav{display:flex;align-items:center;background-color:#20203f;border-radius:0 0 2rem 2rem;box-shadow:.5rem 0 4rem #00001f;margin:0 0 2rem 0;padding:1rem 2rem}nav .logo{width:3rem;height:3rem;margin-right:2rem;border-radius:100%;background-color:#ee588f}nav a{color:#fba7c6;border-bottom:.1rem solid transparent;margin:.25rem 1rem .5rem 1rem;padding:.15rem .5rem .25rem .5rem;font-size:1.25rem;text-decoration:none transparent;transition:border .3s}nav a:hover{border-bottom:.1rem solid #fba7c6}nav a.current{color:#ee588f}nav a.current:hover{border-bottom:.1rem solid #ee588f}header,h1,h2,h3,h4,h5,h6{color:#fba7c6}header{font-size:4rem}h1{font-size:1.5rem;font-weight:normal}h2{font-size:1.35rem;font-weight:normal}h3{font-size:1.2rem;font-weight:normal}h4{font-size:1.05rem;font-weight:normal}h5{font-size:.9rem;font-weight:normal}form{display:flex;flex-direction:column;justify-content:center;align-items:center}input{color:#e0e0ff;background-color:#20203f;margin:1em 0;padding:.75em 1.25em;width:min(80ch,80vw);outline:0 none transparent;border:.2rem solid transparent;border-radius:.5rem;box-shadow:.25rem 0 2rem #00001f;transition:border .3s,background-color .5s,border-radius .5s}input:hover{background-color:#30304f;border-radius:1rem}input:active,input:focus{border:.2rem solid #ee588f}footer{display:flex;flex-direction:column;align-items:center;margin:5vh 2rem}footer a{color:#74b6fb;font-size:.8rem}