diff --git a/client/css/forms.css b/client/css/forms.css index abc5e69..2f210ea 100644 --- a/client/css/forms.css +++ b/client/css/forms.css @@ -21,6 +21,9 @@ form ul { form ul li { margin-top: 0.5em; } +form .input { + margin-bottom: 1em; +} form .buttons { margin-top: 1em; } @@ -144,6 +147,7 @@ input[type=checkbox]:focus + .checkbox:before { /* * Regular inputs */ +select, textarea, input[type=text], input[type=email], @@ -161,6 +165,7 @@ input[type=password] { transition: border-color 0.1s linear, background-color 0.1s linear; } +select:disabled, textarea:disabled, input[type=text]:disabled, input[type=email]:disabled, @@ -170,6 +175,7 @@ input[type=password]:disabled { color: var(--input-disabled-text-color); } +select:focus, textarea:focus, input[type=text]:focus, input[type=email]:focus, @@ -217,6 +223,9 @@ input[type=button]:focus, input[type=submit]:focus { outline: 2px solid var(--text-color); } +select:-moz-focusring { + text-shadow: 0; +} button::-moz-focus-inner, input::-moz-focus-inner { border: 0; diff --git a/client/css/main.css b/client/css/main.css index e174f96..be83132 100644 --- a/client/css/main.css +++ b/client/css/main.css @@ -38,6 +38,7 @@ body { h1, h2, h3 { font-weight: normal; + margin-bottom: 1em; } a { diff --git a/client/css/users.css b/client/css/users.css index 7abbd7c..1b413b9 100644 --- a/client/css/users.css +++ b/client/css/users.css @@ -26,8 +26,10 @@ #user-registration .info p:first-child { margin: 0 0 0.5em 0; } -#user-registration p.hint { +#user .hint, +#user-registration .hint { margin-top: 0.5em; + margin-bottom: 0; color: var(--inactive-link-color); font-size: 80%; line-height: 120%; @@ -45,6 +47,7 @@ } #user-summary img { width: 6em; + height: 6em; margin: 0 1.5em 1.5em 0; float: left; } diff --git a/client/html/user.hbs b/client/html/user.hbs index d4fe6f9..03064e5 100644 --- a/client/html/user.hbs +++ b/client/html/user.hbs @@ -1,11 +1,11 @@ -
-
-

{{this.name}}

+

{{this.user.name}}

diff --git a/client/html/user_edit.hbs b/client/html/user_edit.hbs index bf3be1e..617423c 100644 --- a/client/html/user_edit.hbs +++ b/client/html/user_edit.hbs @@ -1,3 +1,45 @@
- Placeholder for account settings form +
+
+
    + {{#if this.canEditName}} +
  • + + +
  • + {{/if}} + + {{#if this.canEditPassword}} +
  • + + +

    Leave empty to keep the password unchanged.

    +
  • + {{/if}} + + {{#if this.canEditEmail}} +
  • + + +
  • + {{/if}} + + {{#if this.canEditRank}} +
  • + + +
  • + {{/if}} +
+ +
+
+
+ +
+
diff --git a/client/html/user_summary.hbs b/client/html/user_summary.hbs index 7519f50..b23a120 100644 --- a/client/html/user_summary.hbs +++ b/client/html/user_summary.hbs @@ -16,7 +16,7 @@ - {{#if this.isPrivate}} + {{#if this.isLoggedIn}}