]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
user_actions form markup and styling
authorsarven <csarven@plantard.controlezvous.ca>
Tue, 20 Jan 2009 22:36:57 +0000 (22:36 +0000)
committersarven <csarven@plantard.controlezvous.ca>
Tue, 20 Jan 2009 22:36:57 +0000 (22:36 +0000)
actions/showstream.php
lib/blockform.php
lib/subscribeform.php
lib/unblockform.php
lib/unsubscribeform.php
theme/base/css/display.css
theme/identica/css/display.css

index 1d79ea30d28bbee6fbfcec06092b943b0e346be1..d550ec2951533aaff95d15626a0b20d76c60a6c4 100644 (file)
@@ -22,6 +22,7 @@
  * @category  Personal
  * @package   Laconica
  * @author    Evan Prodromou <evan@controlyourself.ca>
+ * @author    Sarven Capadisli <csarven@controlyourself.ca>
  * @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
  * @link      http://laconi.ca/
index 51e43f8b599158cad389d082459a8058a6758d41..b7790681d82c14041cb72cc611678347eb391309 100644 (file)
@@ -88,6 +88,19 @@ class BlockForm extends Form
         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
      *
@@ -127,4 +140,4 @@ class BlockForm extends Form
     {
         $this->out->submit('submit', _('Block'));
     }
-}
\ No newline at end of file
+}
index 8b69efd1acdfd8bae2e783652e5b201f841145db..231e740a7283eac7195a8e6440a02a9084e9ad1a 100644 (file)
@@ -89,7 +89,7 @@ class SubscribeForm extends Form
 
     function formClass()
     {
-        return 'form_subscribe';
+        return 'form_user_subscribe';
     }
 
 
index 4cb9ae4f5d29d5ace1ce80da3f6758ffaab7cdf3..025011a829c6d27ce5d38ff804f81013a5df90aa 100644 (file)
@@ -88,6 +88,17 @@ class UnblockForm extends Form
         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
      *
@@ -127,4 +138,4 @@ class UnblockForm extends Form
     {
         $this->out->submit('submit', _('Unblock'));
     }
-}
\ No newline at end of file
+}
index b222f0e54d04f6b50c29f1018a3c17ae127f0ebb..092369db7bbf6fb64b8344efd4276b59b416b497 100644 (file)
@@ -89,7 +89,7 @@ class UnsubscribeForm extends Form
 
     function formClass()
     {
-        return 'form_unsubscribe';
+        return 'form_user_unsubscribe';
     }
 
     /**
index 3c776aea0af47b2b98d63d9e7e4451ba9df303f7..fc1f35e356ddfc447630efcec6d44a8027f5bb28 100644 (file)
@@ -570,8 +570,7 @@ display:none;
 list-style-type:none;
 }
 #user_actions li {
-border-top-width:1px;
-border-top-style:dotted;
+margin-bottom:4px;
 }
 #user_actions li:first-child {
 border-top:0;
@@ -584,34 +583,29 @@ padding:0;
 display:none;
 }
 
-#user_actions a,
 #user_actions input.submit {
 display:block;
 text-align:left;
-padding:4px 0 4px 19px;
+cursor:pointer;
+width:100%;
 }
 #user_actions a {
 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;
 }
 
-#user_subscribe a,
-#TB_window input.submit,
+
+
+#user_subscribe input.submit,
 .form_user_subscribe input.submit {
-font-weight:bold;
+
 }
 
 
index d5a5ce95640374e0e6c5813233050c9551da76f8..eb5f78b9e823224d012aa563592b1a0b8770d294 100644 (file)
@@ -125,30 +125,41 @@ background-image:url(../../base/images/icons/icon_vcard.gif);
 
 /*user_actions*/
 #user_actions li {
-border-top-color:#eee;
+/*border-top-color:#eee;*/
 }
-#user_subscribe a,
-#TB_window input.submit,
-.form_user_subscribe input.submit {
-background-image: url(../images/icons/twotone/green/shield.gif);
-background-position: 0 45%;
+
+
+.form_user_send-a-message input.submit,
+.form_user_nudge input.submit,
+.form_user_block input.submit,
+.form_user_unblock input.submit {
+background-position: 0 40%;
 background-repeat: no-repeat;
+background-color:transparent;
 }
+.form_user_subscribe input.submit,
 .form_user_unsubscribe input.submit {
-background-color:#647819;
+background-color:#A9BF4F;
 color:#fff;
 }
+.form_user_unsubscribe input.submit {
+background-color:#97BFD1;
+}
+
 #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 {
-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 {
-background:url(../images/icons/twotone/green/against.gif) 0 45% no-repeat;
+.form_user_block input.submit,
+.form_user_unblock input.submit {
+background-image:url(../images/icons/twotone/green/shield.gif);
+color:#000;
 }
 
 
+
 /* NOTICES */
 .notices li.over {
 background-color:#fcfcfc;
@@ -242,4 +253,4 @@ background-color:#0f0;
 }
 #home #intro #step_create-a-community a {
 background-color:#00f;
-}
\ No newline at end of file
+}