UI tweaks.

This commit is contained in:
BurnyLlama 2021-10-31 20:45:01 +01:00
parent f068c17153
commit c5427e0ee3
4 changed files with 39 additions and 8 deletions

View File

@ -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 {

View File

@ -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;
transition: border .3s;
&:hover {
border-bottom: .1rem solid palette.$accent;
}
a.current {
&.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;
}
}

View File

@ -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}

View File

@ -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}