user_actions form markup and styling

This commit is contained in:
sarven 2009-01-20 22:36:57 +00:00
parent 1cf469e244
commit bb4a6a514b
7 changed files with 64 additions and 34 deletions

View File

@ -22,6 +22,7 @@
* @category Personal * @category Personal
* @package Laconica * @package Laconica
* @author Evan Prodromou <evan@controlyourself.ca> * @author Evan Prodromou <evan@controlyourself.ca>
* @author Sarven Capadisli <csarven@controlyourself.ca>
* @copyright 2008-2009 Control Yourself, Inc. * @copyright 2008-2009 Control Yourself, Inc.
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://laconi.ca/ * @link http://laconi.ca/

View File

@ -88,6 +88,19 @@ class BlockForm extends Form
return 'block-' . $this->profile->id; return 'block-' . $this->profile->id;
} }
/**
* class of the form
*
* @return string class of the form
*/
function formClass()
{
return 'form_user_block';
}
/** /**
* Action of the form * Action of the form
* *

View File

@ -89,7 +89,7 @@ class SubscribeForm extends Form
function formClass() function formClass()
{ {
return 'form_subscribe'; return 'form_user_subscribe';
} }

View File

@ -88,6 +88,17 @@ class UnblockForm extends Form
return 'unblock-' . $this->profile->id; return 'unblock-' . $this->profile->id;
} }
/**
* class of the form
*
* @return string class of the form
*/
function formClass()
{
return 'form_user_unblock';
}
/** /**
* Action of the form * Action of the form
* *

View File

@ -89,7 +89,7 @@ class UnsubscribeForm extends Form
function formClass() function formClass()
{ {
return 'form_unsubscribe'; return 'form_user_unsubscribe';
} }
/** /**

View File

@ -570,8 +570,7 @@ display:none;
list-style-type:none; list-style-type:none;
} }
#user_actions li { #user_actions li {
border-top-width:1px; margin-bottom:4px;
border-top-style:dotted;
} }
#user_actions li:first-child { #user_actions li:first-child {
border-top:0; border-top:0;
@ -584,34 +583,29 @@ padding:0;
display:none; display:none;
} }
#user_actions a,
#user_actions input.submit { #user_actions input.submit {
display:block; display:block;
text-align:left; text-align:left;
padding:4px 0 4px 19px; cursor:pointer;
width:100%;
} }
#user_actions a { #user_actions a {
text-decoration:none; text-decoration:none;
} }
#user_subscribe a,
#TB_window input.submit,
#user_actions input.submit {
border:0;
cursor:pointer;
padding-left:16px;
width:100%;
font-size:0.9em;
}
#user_subscribe a {
width:auto;
.form_user_block input.submit,
.form_user_unblock input.submit {
border:0;
padding-left:20px; padding-left:20px;
} }
#user_subscribe a,
#TB_window input.submit,
#user_subscribe input.submit,
.form_user_subscribe input.submit { .form_user_subscribe input.submit {
font-weight:bold;
} }

View File

@ -125,30 +125,41 @@ background-image:url(../../base/images/icons/icon_vcard.gif);
/*user_actions*/ /*user_actions*/
#user_actions li { #user_actions li {
border-top-color:#eee; /*border-top-color:#eee;*/
} }
#user_subscribe a,
#TB_window input.submit,
.form_user_subscribe input.submit { .form_user_send-a-message input.submit,
background-image: url(../images/icons/twotone/green/shield.gif); .form_user_nudge input.submit,
background-position: 0 45%; .form_user_block input.submit,
.form_user_unblock input.submit {
background-position: 0 40%;
background-repeat: no-repeat; background-repeat: no-repeat;
background-color:transparent;
} }
.form_user_subscribe input.submit,
.form_user_unsubscribe input.submit { .form_user_unsubscribe input.submit {
background-color:#647819; background-color:#A9BF4F;
color:#fff; color:#fff;
} }
.form_user_unsubscribe input.submit {
background-color:#97BFD1;
}
#user_send-a-message a { #user_send-a-message a {
background:url(../images/icons/twotone/green/quote.gif) 0 45% no-repeat; background-image:url(../images/icons/twotone/green/quote.gif);
} }
.form_user_nudge input.submit { .form_user_nudge input.submit {
background:url(../images/icons/twotone/green/mail.gif) 0 45% no-repeat; background-image:url(../images/icons/twotone/green/mail.gif);
} }
.form_user_block input.submit { .form_user_block input.submit,
background:url(../images/icons/twotone/green/against.gif) 0 45% no-repeat; .form_user_unblock input.submit {
background-image:url(../images/icons/twotone/green/shield.gif);
color:#000;
} }
/* NOTICES */ /* NOTICES */
.notices li.over { .notices li.over {
background-color:#fcfcfc; background-color:#fcfcfc;