summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsarven <csarven@plantard.controlezvous.ca>2009-01-17 16:22:36 +0000
committersarven <csarven@plantard.controlezvous.ca>2009-01-17 16:22:36 +0000
commit05b00cc7df22d2e998d642e91fee6cea317a9b83 (patch)
treea178503a5cb6c8f42528369395e47b255da9d1cb
parente7687c66b21fec1a2db524842505d229ce896e72 (diff)
Login styles
-rw-r--r--actions/login.php14
-rw-r--r--theme/base/css/display.css68
2 files changed, 44 insertions, 38 deletions
diff --git a/actions/login.php b/actions/login.php
index 23ab16676..224b30f6f 100644
--- a/actions/login.php
+++ b/actions/login.php
@@ -130,15 +130,27 @@ class LoginAction extends Action
function showContent()
{
$this->elementStart('form', array('method' => 'post',
- 'id' => 'login',
+ 'id' => 'form_login',
+ 'class' => 'form_login',
'action' => common_local_url('login')));
+ $this->elementStart('fieldset');
+ $this->element('legend', null, _('Login to site'));
+ $this->elementStart('ul', 'form_datas');
+ $this->elementStart('li');
$this->input('nickname', _('Nickname'));
+ $this->elementEnd('li');
+ $this->elementStart('li');
$this->password('password', _('Password'));
+ $this->elementEnd('li');
+ $this->elementStart('li');
$this->checkbox('rememberme', _('Remember me'), false,
_('Automatically login in the future; ' .
'not for shared computers!'));
+ $this->elementEnd('li');
+ $this->elementEnd('ul');
$this->submit('submit', _('Login'));
$this->hidden('token', common_session_token());
+ $this->elementEnd('fieldset');
$this->elementEnd('form');
$this->elementStart('p');
$this->element('a', array('href' => common_local_url('recoverpassword')),
diff --git a/theme/base/css/display.css b/theme/base/css/display.css
index ce7f69b35..afddefd27 100644
--- a/theme/base/css/display.css
+++ b/theme/base/css/display.css
@@ -30,30 +30,38 @@ h1,h2,h3,h4,h5,h6 {
text-transform:uppercase;
margin-bottom:7px;
}
-legend { font-weight:bold; }
+caption {
+font-weight:bold;
+}
+.opened { display: block !important;}
+.closed { display: none !important;}
+
+
+legend {
+font-weight:bold;
+font-size:1.6em;
+text-transform:uppercase;
+}
input, textarea, select, option {
padding:4px;
font-family:sans-serif;
font-size:1em;
-moz-border-radius:4px;
}
-select, option {
-padding-bottom:0;
-}
-fieldset {
-padding:11px;
-}
input:focus, textarea:focus, select:focus {
border-width:2px;
border-style: solid;
--moz-border-radius:4px;
}
-caption {
-font-weight:bold;
+
+select, option {
+padding-bottom:0;
}
-.opened { display: block !important;}
-.closed { display: none !important;}
-span.required { font-weight:bold; }
+fieldset {
+padding:0;
+border:0;
+margin-bottom:29px;
+}
+
form ul li {
list-style-type:none;
margin:0 0 18px 0;
@@ -71,8 +79,10 @@ top:2px;
left:0;
}
-form .error {
-margin-right:11px;
+#page_notice .error {
+background-color:#F7E8E8;
+padding:4px 7px;
+-moz-border-radius:4px;
}
form label.submit {
display:none;
@@ -83,15 +93,7 @@ display:block;
.form_response {
margin-bottom:18px;
}
-.form_response dt {
-}
-.form_response dd {
-}
-form input.remove,
-form input.submit {
--moz-border-radius:4px;
-}
form input.submit {
}
@@ -99,24 +101,16 @@ form input.submit {
/* FORM SETTINGS */
-.form_settings fieldset {
-padding:0;
-border:0;
-margin-bottom:29px;
-}
-.form_settings legend {
-font-size:1.6em;
-text-transform:uppercase;
-}
-.form_settings .form_datas label {
-
-}
-
.form_guide {
font-style:italic;
}
-.form_settings .form_actions label {
+.form_login label,
+.form_settings label {
+margin-right:11px;
+}
+
+.form_actions label {
display:none;
}