From: sarven Date: Sat, 17 Jan 2009 16:22:36 +0000 (+0000) Subject: Login styles X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=05b00cc7df22d2e998d642e91fee6cea317a9b83;p=quix0rs-gnu-social.git Login styles --- diff --git a/actions/login.php b/actions/login.php index 23ab166769..224b30f6fb 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 ce7f69b358..afddefd270 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; }