diff --git a/core/static/core/style.css b/core/static/core/style.css index c53dd80..1d5d153 100644 --- a/core/static/core/style.css +++ b/core/static/core/style.css @@ -1,17 +1,17 @@ html, body, div, h1, h2, h3, h4, h5, h6, a, p, b, i, -form, label, +form, label, input, table, thead, tbody, tr, td { margin: 0; border: none; padding: 0; + font-family: monospace; } html, body { width: 100%; height: 100%; - font-family: monospace; font-size: 14px; } @@ -79,18 +79,73 @@ form { margin: 12px 0; } -form label { +label { display: none; } -form input { - margin: 0 0 6px; +input { + -moz-appearance: none; + -webkit-appearance: none; + border: 1px solid #666666; + border-radius: 4px; + padding: 6px; + font-size: 1rem; + background-color: #1E1E1E; + color: #BBBBBB; + box-shadow: 0 0 3px #1E1E1E; + transition: border 100ms, color 100ms, box-shadow 100ms; +} + +input:hover, input:focus { + border: 1px solid #77AAEE; + color: #EEEEEE; + box-shadow: 0 0 3px #77AAEE; } form p { color: #EE9966; } + +#login-form { + display: flex; + flex-direction: column; +} + +#username-textbox, #password-textbox { + flex: 0 1 auto; + max-width: 180px; + margin: 3px 0; +} + +#login-button { + flex: 0 1 auto; + max-width: 120px; + margin: 3px 0; +} + + +@media only screen and (min-width: 600px) { + #login-form { + flex-direction: row; + } + + #username-textbox { + flex: 1 0 auto; + margin: 3px 3px 3px 0; + } + + #password-textbox { + flex: 1 0 auto; + margin: 3px; + } + + #login-button { + flex: 1 0 auto; + margin: 3px 0 3px 3px; + } +} + table { border-collapse: collapse; margin: 16px 0; @@ -152,6 +207,23 @@ td { } } +#amount-form { + display: flex; + flex-direction: row; +} + +#amount-textbox { + flex: 1 0 auto; + max-width: 180px; + margin: 3px 3px 3px 0; +} + +#amount-button { + flex: 1 0 auto; + max-width: 120px; + margin: 3px 0 3px 3px; +} + #transaction-list { margin: 12px 0; display: flex; @@ -196,7 +268,7 @@ td { .amount-block { margin-right: 6px; - background-color: #222222; + background-color: #1E1E1E; border-radius: 4px; color: #BBBBBB; } diff --git a/core/templates/core/balance.html b/core/templates/core/balance.html index cd8f3ed..1621720 100644 --- a/core/templates/core/balance.html +++ b/core/templates/core/balance.html @@ -12,10 +12,10 @@

balance prediction

-
- - - + + + + {% if amount_error %}

try a number, stupid

{% endif %} diff --git a/core/templates/registration/login.html b/core/templates/registration/login.html index bc34c4f..9a517e5 100644 --- a/core/templates/registration/login.html +++ b/core/templates/registration/login.html @@ -6,13 +6,13 @@ {% block content %} - + {% csrf_token %} - - - - - + + + + + {% if form.errors %}

nope.