]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
better styling for favor/disfavor buttons
authorEvan Prodromou <evan@prodromou.name>
Mon, 8 Sep 2008 18:35:15 +0000 (14:35 -0400)
committerEvan Prodromou <evan@prodromou.name>
Mon, 8 Sep 2008 18:35:15 +0000 (14:35 -0400)
darcs-hash:20080908183515-84dde-7630e2185aa2f0a4e95e3eb8502294361d9879e5.gz

lib/util.php
theme/default/display.css
theme/stoica/display.css

index 2da767a04400ceaf7ff191ea63144a755f90e432..7e49dd8bdfe613f7efc57ec503e721c192e6423e 100644 (file)
@@ -431,13 +431,13 @@ function common_password($id, $label, $instructions=NULL) {
        common_element_end('p');
 }
 
-function common_submit($id, $label) {
+function common_submit($id, $label, $cls='submit') {
        global $xw;
        common_element_start('p');
        common_element('input', array('type' => 'submit',
                                                                  'id' => $id,
                                                                  'name' => $id,
-                                                                 'class' => 'submit',
+                                                                 'class' => $cls,
                                                                  'value' => $label));
        common_element_end('p');
 }
@@ -1553,7 +1553,7 @@ function common_disfavor_form($notice) {
                                                                           'action' => common_local_url('disfavor')));
        common_hidden('token', common_session_token());
        common_hidden('notice', $notice->id);
-       common_submit('disfavor-submit-' . $notice->id, '♥');
+       common_submit('disfavor-submit-' . $notice->id, '♥', 'disfavor');
        common_element_end('form');
 }
 
@@ -1563,7 +1563,7 @@ function common_favor_form($notice) {
                                                                           'action' => common_local_url('favor')));
        common_hidden('token', common_session_token());
        common_hidden('notice', $notice->id);
-       common_submit('favor-submit-' . $notice->id, '♡');
+       common_submit('favor-submit-' . $notice->id, '♡', 'favor');
        common_element_end('form');
 }
 
index efc94331d80e1f403666dff0ce410b9c15a9ffda..502543e4b1b824785ac7fb1e372d7e3374ac5adf 100644 (file)
@@ -615,5 +615,25 @@ input#openid_url {
        background-color: #f7ebcc;
        }       
 
+/* ----- favor/disfavor -----*/
+
+input#disfavor, input.disfavor  {
+       display: inline;
+       color: #C15D42;
+       background-color: white;
+       cursor: pointer;
+       border: 0;
+       width: auto;
+       }
+       
+input#favor, input.favor  {
+       display: inline;
+       color: #C15D42;
+       background-color: white;
+       cursor: pointer;
+       border: 0;
+       width: auto;
+       }
+
 /* ===== End Forms Styling ===== */
 
index 395da2e2fe73ef376b213bc06fbc8cc749def1ae..49f86aef92ac6fc3afff03d663b33b4352dcee4b 100644 (file)
@@ -645,6 +645,26 @@ input#openid_url {
        line-height: 15px;
 }
 
+/* ----- favor/disfavor -----*/
+
+input#disfavor, input.disfavor  {
+       display: inline;
+       color: #C15D42;
+       background-color: white;
+       cursor: pointer;
+       border: 0;
+       width: auto;
+       }
+       
+input#favor, input.favor  {
+       display: inline;
+       color: #C15D42;
+       background-color: white;
+       cursor: pointer;
+       border: 0;
+       width: auto;
+       }
+
 /* ===== End Forms Styling ===== */
 
 /* ===== Tag Cloud Styling ===== */