summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util.php8
-rw-r--r--theme/default/display.css20
-rw-r--r--theme/stoica/display.css20
3 files changed, 44 insertions, 4 deletions
diff --git a/lib/util.php b/lib/util.php
index 2da767a04..7e49dd8bd 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -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');
}
diff --git a/theme/default/display.css b/theme/default/display.css
index efc94331d..502543e4b 100644
--- a/theme/default/display.css
+++ b/theme/default/display.css
@@ -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 ===== */
diff --git a/theme/stoica/display.css b/theme/stoica/display.css
index 395da2e2f..49f86aef9 100644
--- a/theme/stoica/display.css
+++ b/theme/stoica/display.css
@@ -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 ===== */