summaryrefslogtreecommitdiffstats
path: root/hyperkitty/static
diff options
context:
space:
mode:
Diffstat (limited to 'hyperkitty/static')
-rw-r--r--hyperkitty/static/css/hyperkitty.css34
-rw-r--r--hyperkitty/static/js/hyperkitty.js14
2 files changed, 45 insertions, 3 deletions
diff --git a/hyperkitty/static/css/hyperkitty.css b/hyperkitty/static/css/hyperkitty.css
index 5381e86..f08baaa 100644
--- a/hyperkitty/static/css/hyperkitty.css
+++ b/hyperkitty/static/css/hyperkitty.css
@@ -134,6 +134,16 @@ table.user-data {
list-style-type: none;
}
+.flashmsg {
+ position: absolute;
+ left: 0;
+ width: 100%;
+ text-align: center;
+}
+.flashmsg .alert {
+ display: inline-block;
+}
+
/* Add icons to some text */
.participant, .discussion, .saved, .notsaved {
@@ -394,6 +404,15 @@ form.likeform {
margin-right: 4em;
}
+#thread-list .thread-list-header .thread-new {
+ float: right;
+}
+#thread-list .thread-list-header .thread-new strong {
+ font-size: 150%;
+ font-weight: bold;
+ margin-right: 0.2em;
+}
+
/* Thread view */
@@ -902,3 +921,18 @@ a.reply.disabled {
white-space: pre;
text-align: left;
}
+
+
+/*
+ * New thread form
+ */
+.new-thread-form {
+ margin-left: 2em;
+}
+.new-thread-form #id_subject,
+.new-thread-form textarea {
+ width: 90%;
+}
+.new-thread-form .buttons .submit {
+ margin-right: 2em;
+}
diff --git a/hyperkitty/static/js/hyperkitty.js b/hyperkitty/static/js/hyperkitty.js
index 87d6987..5371657 100644
--- a/hyperkitty/static/js/hyperkitty.js
+++ b/hyperkitty/static/js/hyperkitty.js
@@ -61,7 +61,6 @@ function vote(elem, value) {
function setup_vote() {
- $("a.youlike.disabled").add("a.youdislike.disabled").tooltip();
$("a.youlike").click(function(e) { e.preventDefault(); vote(this, 1); });
$("a.youdislike").click(function(e) { e.preventDefault(); vote(this, -1); });
}
@@ -107,7 +106,6 @@ function setup_favorites() {
form.find("a.saved").show();
}
}).trigger("change");
- $(".favorite a.disabled").tooltip();
$(".favorite a").bind("click", function(e) {
e.preventDefault();
if ($(elem).hasClass("disabled")) {
@@ -145,7 +143,6 @@ function setup_favorites() {
*/
function setup_replies() {
- $("a.reply.disabled").tooltip();
$("a.reply").click(function(e) {
e.preventDefault();
if (!$(this).hasClass("disabled")) {
@@ -301,6 +298,15 @@ function setup_months_list() {
$("#months-list").accordion({ collapsible: true, active: current });
}
+function setup_disabled_tooltips() {
+ $("a.disabled").tooltip().click(function (e) {
+ e.preventDefault();
+ });
+}
+
+function setup_flash_messages() {
+ $('.flashmsg').delay(3000).fadeOut('slow');
+}
/*
@@ -315,4 +321,6 @@ $(document).ready(function() {
setup_months_list();
setup_favorites();
setup_replies();
+ setup_disabled_tooltips();
+ setup_flash_messages();
});