Tweak label style for better visual hierarchy.

Username -> Your Name
This commit is contained in:
Sage Vaillancourt 2022-09-29 16:22:31 -04:00
parent c7229d5db1
commit f9810ce2b9
2 changed files with 16 additions and 8 deletions

View File

@ -14,7 +14,7 @@ import undercover.db as db
import undercover.email as email
from undercover.pdf_builder import CLData
writing_blueprint = Blueprint('writing', __name__,)
writing_blueprint = Blueprint('writing', __name__)
class CLForm(Form):
@ -32,7 +32,7 @@ class CLForm(Form):
)
username = StringField(
'Username:',
'Your Name:',
[validators.Length(min=4, max=99)],
default="Sage"
)

View File

@ -67,11 +67,19 @@ h2 {
}
label {
font-family: /*'Source Sans Pro', TODO: Host or link this */ sans-serif;
/* font-weight: bold; Re-enable with above font */
font-size: 100%;
font-weight: bold;
color: #eee;
background-color: #757575;
color: #777;
padding: 0.15em 0.5em;
transition-property: color, background-color;
transition-duration: 135ms;
transition-timing-function: ease-out;
}
label:hover {
color: white;
background-color: #222;
}
input, textarea {
@ -128,7 +136,7 @@ div.user form input {
background-color: white;
transition-property: color, background-color;
transition-duration: 135ms;
transition-timing-function: ease-in;
transition-timing-function: ease-out;
}
.white-black-button:hover {
@ -144,7 +152,7 @@ div.user form input {
background-color: black;
transition-property: color, background-color;
transition-duration: 135ms;
transition-timing-function: ease-in;
transition-timing-function: ease-out;
}
.black-white-button:hover {
@ -246,7 +254,7 @@ textarea {
line-height: 100%;
}
input {
font-size: 200%;
font-size: 150%;
width: 100%;
}
.letter-form {