login & register design refinement
This commit is contained in:
parent
73f14419dd
commit
027513400a
4 changed files with 13 additions and 5 deletions
|
|
@ -3,14 +3,14 @@
|
|||
|
||||
<?php if(is_null($userId)) : ?>
|
||||
<h2><?=_('Login')?></h2>
|
||||
<form method="post" action="<?=$linker->link(array('users','login'))?>">
|
||||
<form method="post" action="<?=$linker->link(array('users','login'))?>" class="logreg">
|
||||
<fieldset>
|
||||
<label for="username"><?=_('Username')?>:</label>
|
||||
<input name="username" type="text" placeholder="<?=_('Username')?>" title="<?=_('Username')?>" required="required" /><br />
|
||||
<label for="password"><?=_('Password')?>:</label>
|
||||
<input name="password" type="password" placeholder="<?=_('Password')?>" title="<?=_('Password')?>" required="required" /><br />
|
||||
</fieldset>
|
||||
<input type="submit" name="login" value="<?=_('Login')?>" />
|
||||
<input type="submit" name="login" class="cta" value="<?=_('Login')?>" />
|
||||
<?=_('or')?> <a href="<?=$linker->link(array('users','register'))?>"><?=_('register yourself')?></a>
|
||||
</form>
|
||||
<?php endif ?>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<?php if($failed) : ?>
|
||||
<p class="invalid"><?=_('Login failed')?>.</p>
|
||||
<?php endif ?>
|
||||
<form method="post" action="<?=$linker->link(array(), 2)?>">
|
||||
<form method="post" action="<?=$linker->link(array(), 2)?>" class="logreg">
|
||||
<fieldset>
|
||||
<label for="username"><?=_('Username')?>:</label>
|
||||
<input name="username" type="text" placeholder="<?=_('Username')?>" value="<?=$username?>" required="required" /><br />
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@
|
|||
<?php endforeach ?>
|
||||
</ul>
|
||||
<?php endif ?>
|
||||
<form method="post" action="<?=$linker->link(array(), 2)?>">
|
||||
<form method="post" action="<?=$linker->link(array(), 2)?>" class="logreg">
|
||||
<fieldset>
|
||||
<label for="username"><?=_('Username')?>:</label>
|
||||
<input name="username" type="text" placeholder="<?=_('Username')?>" title="<?=_('Username')?>" required="required" maxlength="<?=$validationSettings['username']['maxlength']?>" value="<?=$username?>" <?=(array_key_exists('username', $validation)) ? 'class="invalid"' : null?> /><br />
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ sup{top:-.5em}
|
|||
sub{bottom:-.25em}
|
||||
svg:not(:root){overflow:hidden}
|
||||
figure{margin:0}
|
||||
fieldset{border:.0625em solid #c0c0c0;margin:0 .125em;padding:.35em .625em .75em}
|
||||
fieldset{border:0;margin:0;padding:0}
|
||||
legend{border:0;padding:0}
|
||||
button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}
|
||||
button,input{line-height:normal}
|
||||
|
|
@ -126,6 +126,14 @@ aside{display:none}
|
|||
input[type="submit"][disabled]{text-shadow:1px 2px #d48c4e;background:#f9ac69;border-color:#d48c4e}
|
||||
|
||||
|
||||
/** Login & Registration **/
|
||||
|
||||
.logreg{width:auto;display:inline-block;padding:15px 20px;background:#eae8e4;border-radius:3px}
|
||||
.logreg label{display:block;font-size:.875em}
|
||||
.logreg input{margin:5px 0 15px}
|
||||
.logreg .cta{display:block}
|
||||
|
||||
|
||||
/** Character Profile **/
|
||||
|
||||
.cportrait img{width:100%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue