From f1986a7c00b4b2da469fa810c3042a4e974a1234 Mon Sep 17 00:00:00 2001 From: Adolfo Fitoria Date: Tue, 11 Oct 2011 15:02:08 -0300 Subject: moving all media to common --- askbot/skins/common/media/images/anon.png | Bin 0 -> 687 bytes askbot/skins/common/media/images/bigbutton.png | Bin 0 -> 263 bytes .../skins/common/media/images/bigbuttonhover.png | Bin 0 -> 236 bytes .../common/media/images/blue-up-arrow-h18px.png | Bin 0 -> 593 bytes askbot/skins/common/media/images/box-arrow.gif | Bin 0 -> 69 bytes askbot/skins/common/media/images/bullet_green.gif | Bin 0 -> 64 bytes askbot/skins/common/media/images/cc-88x31.png | Bin 0 -> 5460 bytes askbot/skins/common/media/images/cc-by-sa.png | Bin 0 -> 5083 bytes .../skins/common/media/images/close-small-dark.png | Bin 0 -> 226 bytes .../common/media/images/close-small-hover.png | Bin 0 -> 337 bytes askbot/skins/common/media/images/close-small.png | Bin 0 -> 293 bytes .../skins/common/media/images/contributorsback.png | Bin 0 -> 714 bytes askbot/skins/common/media/images/dash.gif | Bin 0 -> 44 bytes .../common/media/images/dialog-warning-off.png | Bin 0 -> 419 bytes .../skins/common/media/images/dialog-warning.png | Bin 0 -> 603 bytes .../common/media/images/djangomade124x25_grey.gif | Bin 0 -> 2035 bytes askbot/skins/common/media/images/dot-g.gif | Bin 0 -> 61 bytes askbot/skins/common/media/images/dot-list.gif | Bin 0 -> 56 bytes askbot/skins/common/media/images/edit.png | Bin 0 -> 758 bytes .../common/media/images/expander-arrow-hide.gif | Bin 0 -> 126 bytes .../common/media/images/expander-arrow-show.gif | Bin 0 -> 135 bytes askbot/skins/common/media/images/favicon.gif | Bin 0 -> 898 bytes askbot/skins/common/media/images/favicon.ico | Bin 0 -> 1150 bytes .../skins/common/media/images/feed-icon-small.png | Bin 0 -> 669 bytes askbot/skins/common/media/images/go-up-grey.png | Bin 0 -> 563 bytes askbot/skins/common/media/images/go-up-orange.png | Bin 0 -> 586 bytes .../common/media/images/gray-up-arrow-h18px.png | Bin 0 -> 383 bytes askbot/skins/common/media/images/grippie.png | Bin 0 -> 162 bytes askbot/skins/common/media/images/indicator.gif | Bin 0 -> 2545 bytes askbot/skins/common/media/images/logo.gif | Bin 0 -> 3792 bytes askbot/skins/common/media/images/logo.png | Bin 0 -> 5841 bytes askbot/skins/common/media/images/logo1.png | Bin 0 -> 2752 bytes askbot/skins/common/media/images/logo2.png | Bin 0 -> 2124 bytes .../common/media/images/mail-envelope-empty.png | Bin 0 -> 547 bytes .../common/media/images/mail-envelope-full.png | Bin 0 -> 482 bytes askbot/skins/common/media/images/medala.gif | Bin 0 -> 801 bytes askbot/skins/common/media/images/medala_on.gif | Bin 0 -> 957 bytes askbot/skins/common/media/images/new.gif | Bin 0 -> 635 bytes askbot/skins/common/media/images/nophoto.png | Bin 0 -> 696 bytes askbot/skins/common/media/images/openid.gif | Bin 0 -> 910 bytes askbot/skins/common/media/images/print.png | Bin 0 -> 1391 bytes askbot/skins/common/media/images/pw-login.gif | Bin 0 -> 1818 bytes askbot/skins/common/media/images/quest-bg.gif | Bin 0 -> 294 bytes askbot/skins/common/media/images/scopearrow.png | Bin 0 -> 538 bytes askbot/skins/common/media/images/sprite.png | Bin 0 -> 5325 bytes askbot/skins/common/media/images/sprites.png | Bin 0 -> 13173 bytes .../common/media/images/sprites_source/sprites.svg | 732 ++++++ .../common/media/images/summary-background.png | Bin 0 -> 291 bytes askbot/skins/common/media/images/tag-left.png | Bin 0 -> 290 bytes askbot/skins/common/media/images/tag-right.png | Bin 0 -> 187 bytes .../skins/common/media/images/vote-accepted-on.png | Bin 0 -> 1124 bytes askbot/skins/common/media/images/vote-accepted.png | Bin 0 -> 1058 bytes .../common/media/images/vote-arrow-down-on.png | Bin 0 -> 905 bytes .../skins/common/media/images/vote-arrow-down.png | Bin 0 -> 876 bytes .../skins/common/media/images/vote-arrow-up-on.png | Bin 0 -> 906 bytes askbot/skins/common/media/images/vote-arrow-up.png | Bin 0 -> 843 bytes .../common/media/images/vote-favorite-off.png | Bin 0 -> 930 bytes .../skins/common/media/images/vote-favorite-on.png | Bin 0 -> 1023 bytes askbot/skins/common/media/images/wiki.png | Bin 0 -> 5178 bytes .../skins/common/media/js/jquery.animate-colors.js | 105 + askbot/skins/common/media/js/less.min.js | 16 + askbot/skins/common/media/js/live_search.js | 2 +- askbot/skins/common/media/js/utils.js | 14 + askbot/skins/common/media/style/auth.css | 48 + .../common/media/style/jquery.autocomplete.css | 37 + askbot/skins/common/media/style/lib_style.less | 38 + askbot/skins/common/media/style/prettify.css | 27 + askbot/skins/common/media/style/style.css | 2616 ++++++++++++++++++++ 68 files changed, 3634 insertions(+), 1 deletion(-) create mode 100644 askbot/skins/common/media/images/anon.png create mode 100644 askbot/skins/common/media/images/bigbutton.png create mode 100644 askbot/skins/common/media/images/bigbuttonhover.png create mode 100755 askbot/skins/common/media/images/blue-up-arrow-h18px.png create mode 100755 askbot/skins/common/media/images/box-arrow.gif create mode 100755 askbot/skins/common/media/images/bullet_green.gif create mode 100755 askbot/skins/common/media/images/cc-88x31.png create mode 100644 askbot/skins/common/media/images/cc-by-sa.png create mode 100755 askbot/skins/common/media/images/close-small-dark.png create mode 100755 askbot/skins/common/media/images/close-small-hover.png create mode 100755 askbot/skins/common/media/images/close-small.png create mode 100644 askbot/skins/common/media/images/contributorsback.png create mode 100755 askbot/skins/common/media/images/dash.gif create mode 100644 askbot/skins/common/media/images/dialog-warning-off.png create mode 100644 askbot/skins/common/media/images/dialog-warning.png create mode 100755 askbot/skins/common/media/images/djangomade124x25_grey.gif create mode 100755 askbot/skins/common/media/images/dot-g.gif create mode 100755 askbot/skins/common/media/images/dot-list.gif create mode 100755 askbot/skins/common/media/images/edit.png create mode 100755 askbot/skins/common/media/images/expander-arrow-hide.gif create mode 100755 askbot/skins/common/media/images/expander-arrow-show.gif create mode 100644 askbot/skins/common/media/images/favicon.gif create mode 100644 askbot/skins/common/media/images/favicon.ico create mode 100644 askbot/skins/common/media/images/feed-icon-small.png create mode 100644 askbot/skins/common/media/images/go-up-grey.png create mode 100644 askbot/skins/common/media/images/go-up-orange.png create mode 100755 askbot/skins/common/media/images/gray-up-arrow-h18px.png create mode 100755 askbot/skins/common/media/images/grippie.png create mode 100755 askbot/skins/common/media/images/indicator.gif create mode 100644 askbot/skins/common/media/images/logo.gif create mode 100644 askbot/skins/common/media/images/logo.png create mode 100755 askbot/skins/common/media/images/logo1.png create mode 100755 askbot/skins/common/media/images/logo2.png create mode 100644 askbot/skins/common/media/images/mail-envelope-empty.png create mode 100644 askbot/skins/common/media/images/mail-envelope-full.png create mode 100755 askbot/skins/common/media/images/medala.gif create mode 100755 askbot/skins/common/media/images/medala_on.gif create mode 100755 askbot/skins/common/media/images/new.gif create mode 100755 askbot/skins/common/media/images/nophoto.png create mode 100755 askbot/skins/common/media/images/openid.gif create mode 100644 askbot/skins/common/media/images/print.png create mode 100644 askbot/skins/common/media/images/pw-login.gif create mode 100755 askbot/skins/common/media/images/quest-bg.gif create mode 100644 askbot/skins/common/media/images/scopearrow.png create mode 100644 askbot/skins/common/media/images/sprite.png create mode 100644 askbot/skins/common/media/images/sprites.png create mode 100644 askbot/skins/common/media/images/sprites_source/sprites.svg create mode 100644 askbot/skins/common/media/images/summary-background.png create mode 100644 askbot/skins/common/media/images/tag-left.png create mode 100644 askbot/skins/common/media/images/tag-right.png create mode 100755 askbot/skins/common/media/images/vote-accepted-on.png create mode 100755 askbot/skins/common/media/images/vote-accepted.png create mode 100755 askbot/skins/common/media/images/vote-arrow-down-on.png create mode 100755 askbot/skins/common/media/images/vote-arrow-down.png create mode 100755 askbot/skins/common/media/images/vote-arrow-up-on.png create mode 100755 askbot/skins/common/media/images/vote-arrow-up.png create mode 100755 askbot/skins/common/media/images/vote-favorite-off.png create mode 100755 askbot/skins/common/media/images/vote-favorite-on.png create mode 100644 askbot/skins/common/media/images/wiki.png create mode 100644 askbot/skins/common/media/js/jquery.animate-colors.js create mode 100644 askbot/skins/common/media/js/less.min.js create mode 100644 askbot/skins/common/media/style/auth.css create mode 100644 askbot/skins/common/media/style/jquery.autocomplete.css create mode 100644 askbot/skins/common/media/style/lib_style.less create mode 100644 askbot/skins/common/media/style/prettify.css create mode 100644 askbot/skins/common/media/style/style.css diff --git a/askbot/skins/common/media/images/anon.png b/askbot/skins/common/media/images/anon.png new file mode 100644 index 00000000..a2041590 Binary files /dev/null and b/askbot/skins/common/media/images/anon.png differ diff --git a/askbot/skins/common/media/images/bigbutton.png b/askbot/skins/common/media/images/bigbutton.png new file mode 100644 index 00000000..2a7c0f05 Binary files /dev/null and b/askbot/skins/common/media/images/bigbutton.png differ diff --git a/askbot/skins/common/media/images/bigbuttonhover.png b/askbot/skins/common/media/images/bigbuttonhover.png new file mode 100644 index 00000000..cf4bacca Binary files /dev/null and b/askbot/skins/common/media/images/bigbuttonhover.png differ diff --git a/askbot/skins/common/media/images/blue-up-arrow-h18px.png b/askbot/skins/common/media/images/blue-up-arrow-h18px.png new file mode 100755 index 00000000..e1f29e86 Binary files /dev/null and b/askbot/skins/common/media/images/blue-up-arrow-h18px.png differ diff --git a/askbot/skins/common/media/images/box-arrow.gif b/askbot/skins/common/media/images/box-arrow.gif new file mode 100755 index 00000000..89dcf5b3 Binary files /dev/null and b/askbot/skins/common/media/images/box-arrow.gif differ diff --git a/askbot/skins/common/media/images/bullet_green.gif b/askbot/skins/common/media/images/bullet_green.gif new file mode 100755 index 00000000..fa530910 Binary files /dev/null and b/askbot/skins/common/media/images/bullet_green.gif differ diff --git a/askbot/skins/common/media/images/cc-88x31.png b/askbot/skins/common/media/images/cc-88x31.png new file mode 100755 index 00000000..0f2a0f10 Binary files /dev/null and b/askbot/skins/common/media/images/cc-88x31.png differ diff --git a/askbot/skins/common/media/images/cc-by-sa.png b/askbot/skins/common/media/images/cc-by-sa.png new file mode 100644 index 00000000..f0a944e0 Binary files /dev/null and b/askbot/skins/common/media/images/cc-by-sa.png differ diff --git a/askbot/skins/common/media/images/close-small-dark.png b/askbot/skins/common/media/images/close-small-dark.png new file mode 100755 index 00000000..280c1fc7 Binary files /dev/null and b/askbot/skins/common/media/images/close-small-dark.png differ diff --git a/askbot/skins/common/media/images/close-small-hover.png b/askbot/skins/common/media/images/close-small-hover.png new file mode 100755 index 00000000..7899aec7 Binary files /dev/null and b/askbot/skins/common/media/images/close-small-hover.png differ diff --git a/askbot/skins/common/media/images/close-small.png b/askbot/skins/common/media/images/close-small.png new file mode 100755 index 00000000..5a99d31f Binary files /dev/null and b/askbot/skins/common/media/images/close-small.png differ diff --git a/askbot/skins/common/media/images/contributorsback.png b/askbot/skins/common/media/images/contributorsback.png new file mode 100644 index 00000000..dd728383 Binary files /dev/null and b/askbot/skins/common/media/images/contributorsback.png differ diff --git a/askbot/skins/common/media/images/dash.gif b/askbot/skins/common/media/images/dash.gif new file mode 100755 index 00000000..d1ddc507 Binary files /dev/null and b/askbot/skins/common/media/images/dash.gif differ diff --git a/askbot/skins/common/media/images/dialog-warning-off.png b/askbot/skins/common/media/images/dialog-warning-off.png new file mode 100644 index 00000000..258e4d86 Binary files /dev/null and b/askbot/skins/common/media/images/dialog-warning-off.png differ diff --git a/askbot/skins/common/media/images/dialog-warning.png b/askbot/skins/common/media/images/dialog-warning.png new file mode 100644 index 00000000..a9e4ff39 Binary files /dev/null and b/askbot/skins/common/media/images/dialog-warning.png differ diff --git a/askbot/skins/common/media/images/djangomade124x25_grey.gif b/askbot/skins/common/media/images/djangomade124x25_grey.gif new file mode 100755 index 00000000..d34bb311 Binary files /dev/null and b/askbot/skins/common/media/images/djangomade124x25_grey.gif differ diff --git a/askbot/skins/common/media/images/dot-g.gif b/askbot/skins/common/media/images/dot-g.gif new file mode 100755 index 00000000..5d6bb28e Binary files /dev/null and b/askbot/skins/common/media/images/dot-g.gif differ diff --git a/askbot/skins/common/media/images/dot-list.gif b/askbot/skins/common/media/images/dot-list.gif new file mode 100755 index 00000000..f6a6b865 Binary files /dev/null and b/askbot/skins/common/media/images/dot-list.gif differ diff --git a/askbot/skins/common/media/images/edit.png b/askbot/skins/common/media/images/edit.png new file mode 100755 index 00000000..dcb09be0 Binary files /dev/null and b/askbot/skins/common/media/images/edit.png differ diff --git a/askbot/skins/common/media/images/expander-arrow-hide.gif b/askbot/skins/common/media/images/expander-arrow-hide.gif new file mode 100755 index 00000000..feb6a618 Binary files /dev/null and b/askbot/skins/common/media/images/expander-arrow-hide.gif differ diff --git a/askbot/skins/common/media/images/expander-arrow-show.gif b/askbot/skins/common/media/images/expander-arrow-show.gif new file mode 100755 index 00000000..6825c56e Binary files /dev/null and b/askbot/skins/common/media/images/expander-arrow-show.gif differ diff --git a/askbot/skins/common/media/images/favicon.gif b/askbot/skins/common/media/images/favicon.gif new file mode 100644 index 00000000..f7f9061b Binary files /dev/null and b/askbot/skins/common/media/images/favicon.gif differ diff --git a/askbot/skins/common/media/images/favicon.ico b/askbot/skins/common/media/images/favicon.ico new file mode 100644 index 00000000..51a57bed Binary files /dev/null and b/askbot/skins/common/media/images/favicon.ico differ diff --git a/askbot/skins/common/media/images/feed-icon-small.png b/askbot/skins/common/media/images/feed-icon-small.png new file mode 100644 index 00000000..2794b0f5 Binary files /dev/null and b/askbot/skins/common/media/images/feed-icon-small.png differ diff --git a/askbot/skins/common/media/images/go-up-grey.png b/askbot/skins/common/media/images/go-up-grey.png new file mode 100644 index 00000000..763bb799 Binary files /dev/null and b/askbot/skins/common/media/images/go-up-grey.png differ diff --git a/askbot/skins/common/media/images/go-up-orange.png b/askbot/skins/common/media/images/go-up-orange.png new file mode 100644 index 00000000..eca3579d Binary files /dev/null and b/askbot/skins/common/media/images/go-up-orange.png differ diff --git a/askbot/skins/common/media/images/gray-up-arrow-h18px.png b/askbot/skins/common/media/images/gray-up-arrow-h18px.png new file mode 100755 index 00000000..78767445 Binary files /dev/null and b/askbot/skins/common/media/images/gray-up-arrow-h18px.png differ diff --git a/askbot/skins/common/media/images/grippie.png b/askbot/skins/common/media/images/grippie.png new file mode 100755 index 00000000..6524d416 Binary files /dev/null and b/askbot/skins/common/media/images/grippie.png differ diff --git a/askbot/skins/common/media/images/indicator.gif b/askbot/skins/common/media/images/indicator.gif new file mode 100755 index 00000000..1c72ebb5 Binary files /dev/null and b/askbot/skins/common/media/images/indicator.gif differ diff --git a/askbot/skins/common/media/images/logo.gif b/askbot/skins/common/media/images/logo.gif new file mode 100644 index 00000000..ac4ceda6 Binary files /dev/null and b/askbot/skins/common/media/images/logo.gif differ diff --git a/askbot/skins/common/media/images/logo.png b/askbot/skins/common/media/images/logo.png new file mode 100644 index 00000000..10559161 Binary files /dev/null and b/askbot/skins/common/media/images/logo.png differ diff --git a/askbot/skins/common/media/images/logo1.png b/askbot/skins/common/media/images/logo1.png new file mode 100755 index 00000000..d79a6271 Binary files /dev/null and b/askbot/skins/common/media/images/logo1.png differ diff --git a/askbot/skins/common/media/images/logo2.png b/askbot/skins/common/media/images/logo2.png new file mode 100755 index 00000000..bd3cccd9 Binary files /dev/null and b/askbot/skins/common/media/images/logo2.png differ diff --git a/askbot/skins/common/media/images/mail-envelope-empty.png b/askbot/skins/common/media/images/mail-envelope-empty.png new file mode 100644 index 00000000..0fde87dc Binary files /dev/null and b/askbot/skins/common/media/images/mail-envelope-empty.png differ diff --git a/askbot/skins/common/media/images/mail-envelope-full.png b/askbot/skins/common/media/images/mail-envelope-full.png new file mode 100644 index 00000000..2277e919 Binary files /dev/null and b/askbot/skins/common/media/images/mail-envelope-full.png differ diff --git a/askbot/skins/common/media/images/medala.gif b/askbot/skins/common/media/images/medala.gif new file mode 100755 index 00000000..93dd1a39 Binary files /dev/null and b/askbot/skins/common/media/images/medala.gif differ diff --git a/askbot/skins/common/media/images/medala_on.gif b/askbot/skins/common/media/images/medala_on.gif new file mode 100755 index 00000000..a18f9e85 Binary files /dev/null and b/askbot/skins/common/media/images/medala_on.gif differ diff --git a/askbot/skins/common/media/images/new.gif b/askbot/skins/common/media/images/new.gif new file mode 100755 index 00000000..8a220b53 Binary files /dev/null and b/askbot/skins/common/media/images/new.gif differ diff --git a/askbot/skins/common/media/images/nophoto.png b/askbot/skins/common/media/images/nophoto.png new file mode 100755 index 00000000..2daf0ffd Binary files /dev/null and b/askbot/skins/common/media/images/nophoto.png differ diff --git a/askbot/skins/common/media/images/openid.gif b/askbot/skins/common/media/images/openid.gif new file mode 100755 index 00000000..8540e12b Binary files /dev/null and b/askbot/skins/common/media/images/openid.gif differ diff --git a/askbot/skins/common/media/images/print.png b/askbot/skins/common/media/images/print.png new file mode 100644 index 00000000..37bf88af Binary files /dev/null and b/askbot/skins/common/media/images/print.png differ diff --git a/askbot/skins/common/media/images/pw-login.gif b/askbot/skins/common/media/images/pw-login.gif new file mode 100644 index 00000000..f88b1bcf Binary files /dev/null and b/askbot/skins/common/media/images/pw-login.gif differ diff --git a/askbot/skins/common/media/images/quest-bg.gif b/askbot/skins/common/media/images/quest-bg.gif new file mode 100755 index 00000000..b7540238 Binary files /dev/null and b/askbot/skins/common/media/images/quest-bg.gif differ diff --git a/askbot/skins/common/media/images/scopearrow.png b/askbot/skins/common/media/images/scopearrow.png new file mode 100644 index 00000000..73dc6744 Binary files /dev/null and b/askbot/skins/common/media/images/scopearrow.png differ diff --git a/askbot/skins/common/media/images/sprite.png b/askbot/skins/common/media/images/sprite.png new file mode 100644 index 00000000..1a0fbc78 Binary files /dev/null and b/askbot/skins/common/media/images/sprite.png differ diff --git a/askbot/skins/common/media/images/sprites.png b/askbot/skins/common/media/images/sprites.png new file mode 100644 index 00000000..dcc1bdc3 Binary files /dev/null and b/askbot/skins/common/media/images/sprites.png differ diff --git a/askbot/skins/common/media/images/sprites_source/sprites.svg b/askbot/skins/common/media/images/sprites_source/sprites.svg new file mode 100644 index 00000000..34898e30 --- /dev/null +++ b/askbot/skins/common/media/images/sprites_source/sprites.svg @@ -0,0 +1,732 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + X + + + X + + + X + + + + + + + + + + + + + + + + + + + + + + + + + ASK A QUESTION + ASK A QUESTION + + + + + + + + + + + + + diff --git a/askbot/skins/common/media/images/summary-background.png b/askbot/skins/common/media/images/summary-background.png new file mode 100644 index 00000000..58c3855a Binary files /dev/null and b/askbot/skins/common/media/images/summary-background.png differ diff --git a/askbot/skins/common/media/images/tag-left.png b/askbot/skins/common/media/images/tag-left.png new file mode 100644 index 00000000..5a9d8a0d Binary files /dev/null and b/askbot/skins/common/media/images/tag-left.png differ diff --git a/askbot/skins/common/media/images/tag-right.png b/askbot/skins/common/media/images/tag-right.png new file mode 100644 index 00000000..871664c3 Binary files /dev/null and b/askbot/skins/common/media/images/tag-right.png differ diff --git a/askbot/skins/common/media/images/vote-accepted-on.png b/askbot/skins/common/media/images/vote-accepted-on.png new file mode 100755 index 00000000..2026f3bc Binary files /dev/null and b/askbot/skins/common/media/images/vote-accepted-on.png differ diff --git a/askbot/skins/common/media/images/vote-accepted.png b/askbot/skins/common/media/images/vote-accepted.png new file mode 100755 index 00000000..ecd18551 Binary files /dev/null and b/askbot/skins/common/media/images/vote-accepted.png differ diff --git a/askbot/skins/common/media/images/vote-arrow-down-on.png b/askbot/skins/common/media/images/vote-arrow-down-on.png new file mode 100755 index 00000000..048dbb44 Binary files /dev/null and b/askbot/skins/common/media/images/vote-arrow-down-on.png differ diff --git a/askbot/skins/common/media/images/vote-arrow-down.png b/askbot/skins/common/media/images/vote-arrow-down.png new file mode 100755 index 00000000..e4fdec0a Binary files /dev/null and b/askbot/skins/common/media/images/vote-arrow-down.png differ diff --git a/askbot/skins/common/media/images/vote-arrow-up-on.png b/askbot/skins/common/media/images/vote-arrow-up-on.png new file mode 100755 index 00000000..56ad0c25 Binary files /dev/null and b/askbot/skins/common/media/images/vote-arrow-up-on.png differ diff --git a/askbot/skins/common/media/images/vote-arrow-up.png b/askbot/skins/common/media/images/vote-arrow-up.png new file mode 100755 index 00000000..6e9a51c7 Binary files /dev/null and b/askbot/skins/common/media/images/vote-arrow-up.png differ diff --git a/askbot/skins/common/media/images/vote-favorite-off.png b/askbot/skins/common/media/images/vote-favorite-off.png new file mode 100755 index 00000000..c1bef074 Binary files /dev/null and b/askbot/skins/common/media/images/vote-favorite-off.png differ diff --git a/askbot/skins/common/media/images/vote-favorite-on.png b/askbot/skins/common/media/images/vote-favorite-on.png new file mode 100755 index 00000000..1f9c14ab Binary files /dev/null and b/askbot/skins/common/media/images/vote-favorite-on.png differ diff --git a/askbot/skins/common/media/images/wiki.png b/askbot/skins/common/media/images/wiki.png new file mode 100644 index 00000000..06d487f3 Binary files /dev/null and b/askbot/skins/common/media/images/wiki.png differ diff --git a/askbot/skins/common/media/js/jquery.animate-colors.js b/askbot/skins/common/media/js/jquery.animate-colors.js new file mode 100644 index 00000000..07d8ac9c --- /dev/null +++ b/askbot/skins/common/media/js/jquery.animate-colors.js @@ -0,0 +1,105 @@ +/**! + * @preserve Color animation jQuery-plugin + * http://www.bitstorm.org/jquery/color-animation/ + * Copyright 2011 Edwin Martin + * Released under the MIT and GPL licenses. + */ + +(function($) { + /** + * Check whether the browser supports RGBA color mode. + * + * Author Mehdi Kabab + * @return {boolean} True if the browser support RGBA. False otherwise. + */ + function isRGBACapable() { + var $script = $('script:first'), + color = $script.css('color'), + result = false; + if (/^rgba/.test(color)) { + result = true; + } else { + try { + result = ( color != $script.css('color', 'rgba(0, 0, 0, 0.5)').css('color') ); + $script.css('color', color); + } catch (e) { + } + } + + return result; + } + + $.extend(true, $, { + support: { + 'rgba': isRGBACapable() + } + }); + + var properties = ['color', 'backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'outlineColor']; + $.each(properties, function(i, property) { + $.fx.step[property] = function(fx) { + if (!fx.init) { + fx.begin = parseColor($(fx.elem).css(property)); + fx.end = parseColor(fx.end); + fx.init = true; + } + + fx.elem.style[property] = calculateColor(fx.begin, fx.end, fx.pos); + } + }); + + // borderColor doesn't fit in standard fx.step above. + $.fx.step.borderColor = function(fx) { + if (!fx.init) { + fx.end = parseColor(fx.end); + } + var borders = properties.slice(2, 6); // All four border properties + $.each(borders, function(i, property) { + if (!fx.init) { + fx[property] = {begin: parseColor($(fx.elem).css(property))}; + } + + fx.elem.style[property] = calculateColor(fx[property].begin, fx.end, fx.pos); + }); + fx.init = true; + } + + // Calculate an in-between color. Returns "#aabbcc"-like string. + function calculateColor(begin, end, pos) { + var color = 'rgb' + ($.support['rgba'] ? 'a' : '') + '(' + + parseInt((begin[0] + pos * (end[0] - begin[0])), 10) + ',' + + parseInt((begin[1] + pos * (end[1] - begin[1])), 10) + ',' + + parseInt((begin[2] + pos * (end[2] - begin[2])), 10); + if ($.support['rgba']) { + color += ',' + (begin && end ? parseFloat(begin[3] + pos * (end[3] - begin[3])) : 1); + } + color += ')'; + return color; + } + + // Parse an CSS-syntax color. Outputs an array [r, g, b] + function parseColor(color) { + var match, triplet; + + // Match #aabbcc + if (match = /#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/.exec(color)) { + triplet = [parseInt(match[1], 16), parseInt(match[2], 16), parseInt(match[3], 16), 1]; + + // Match #abc + } else if (match = /#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/.exec(color)) { + triplet = [parseInt(match[1], 16) * 17, parseInt(match[2], 16) * 17, parseInt(match[3], 16) * 17, 1]; + + // Match rgb(n, n, n) + } else if (match = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color)) { + triplet = [parseInt(match[1]), parseInt(match[2]), parseInt(match[3]), 1]; + + } else if (match = /rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9\.]*)\s*\)/.exec(color)) { + triplet = [parseInt(match[1], 10), parseInt(match[2], 10), parseInt(match[3], 10),parseFloat(match[4])]; + + // No browser returns rgb(n%, n%, n%), so little reason to support this format. + } else if (color == 'transparent'){ + triplet = [0,0,0,0] + } + return triplet; + } +})(jQuery); diff --git a/askbot/skins/common/media/js/less.min.js b/askbot/skins/common/media/js/less.min.js new file mode 100644 index 00000000..6e4d5cff --- /dev/null +++ b/askbot/skins/common/media/js/less.min.js @@ -0,0 +1,16 @@ +// +// LESS - Leaner CSS v1.1.3 +// http://lesscss.org +// +// Copyright (c) 2009-2011, Alexis Sellier +// Licensed under the Apache 2.0 License. +// +// +// LESS - Leaner CSS v1.1.3 +// http://lesscss.org +// +// Copyright (c) 2009-2011, Alexis Sellier +// Licensed under the Apache 2.0 License. +// +(function(a,b){function v(a,b){var c="less-error-message:"+p(b),e=["
    ",'
  • {0}
  • ',"
  • {current}
  • ",'
  • {2}
  • ',"
"].join("\n"),f=document.createElement("div"),g,h;f.id=c,f.className="less-error-message",h="

"+(a.message||"There is an error in your .less file")+"

"+'

'+b+" ",a.extract&&(h+="on line "+a.line+", column "+(a.column+1)+":

"+e.replace(/\[(-?\d)\]/g,function(b,c){return parseInt(a.line)+parseInt(c)||""}).replace(/\{(\d)\}/g,function(b,c){return a.extract[parseInt(c)]||""}).replace(/\{current\}/,a.extract[1].slice(0,a.column)+''+a.extract[1].slice(a.column)+"")),f.innerHTML=h,q([".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #ee4444;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.ctx {","color: #dd4444;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),f.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),d.env=="development"&&(g=setInterval(function(){document.body&&(document.getElementById(c)?document.body.replaceChild(f,document.getElementById(c)):document.body.insertBefore(f,document.body.firstChild),clearInterval(g))},10))}function u(a){d.env=="development"&&typeof console!="undefined"&&console.log("less: "+a)}function t(a){return a&&a.parentNode.removeChild(a)}function s(){if(a.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(b){u("browser doesn't support AJAX.");return null}}function r(a,b,c,e){function i(b,c,d){b.status>=200&&b.status<300?c(b.responseText,b.getResponseHeader("Last-Modified")):typeof d=="function"&&d(b.status,a)}var f=s(),h=g?!1:d.async;typeof f.overrideMimeType=="function"&&f.overrideMimeType("text/css"),f.open("GET",a,h),f.setRequestHeader("Accept",b||"text/x-less, text/css; q=0.9, */*; q=0.5"),f.send(null),g?f.status===0?c(f.responseText):e(f.status,a):h?f.onreadystatechange=function(){f.readyState==4&&i(f,c,e)}:i(f,c,e)}function q(a,b,c){var d,e=b.href?b.href.replace(/\?.*$/,""):"",f="less:"+(b.title||p(e));(d=document.getElementById(f))===null&&(d=document.createElement("style"),d.type="text/css",d.media=b.media||"screen",d.id=f,document.getElementsByTagName("head")[0].appendChild(d));if(d.styleSheet)try{d.styleSheet.cssText=a}catch(g){throw new Error("Couldn't reassign styleSheet.cssText.")}else(function(a){d.childNodes.length>0?d.firstChild.nodeValue!==a.nodeValue&&d.replaceChild(a,d.firstChild):d.appendChild(a)})(document.createTextNode(a));c&&h&&(u("saving "+e+" to cache."),h.setItem(e,a),h.setItem(e+":timestamp",c))}function p(a){return a.replace(/^[a-z]+:\/\/?[^\/]+/,"").replace(/^\//,"").replace(/\?.*$/,"").replace(/\.[^\.\/]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")}function o(b,c,e,f){var g=a.location.href.replace(/[#?].*$/,""),i=b.href.replace(/\?.*$/,""),j=h&&h.getItem(i),k=h&&h.getItem(i+":timestamp"),l={css:j,timestamp:k};/^(https?|file):/.test(i)||(i.charAt(0)=="/"?i=a.location.protocol+"//"+a.location.host+i:i=g.slice(0,g.lastIndexOf("/")+1)+i),r(b.href,b.type,function(a,g){if(!e&&l&&g&&(new Date(g)).valueOf()===(new Date(l.timestamp)).valueOf())q(l.css,b),c(null,b,{local:!0,remaining:f});else try{(new d.Parser({optimization:d.optimization,paths:[i.replace(/[\w\.-]+$/,"")],mime:b.type})).parse(a,function(a,d){if(a)return v(a,i);try{c(d,b,{local:!1,lastModified:g,remaining:f}),t(document.getElementById("less-error-message:"+p(i)))}catch(a){v(a,i)}})}catch(h){v(h,i)}},function(a,b){throw new Error("Couldn't load "+b+" ("+a+")")})}function n(a,b){for(var c=0;c>>0;for(var d=0;d>>0,c=Array(b),d=arguments[1];for(var e=0;e>>0,c=0;if(b===0&&arguments.length===1)throw new TypeError;if(arguments.length>=2)var d=arguments[1];else for(;;){if(c in this){d=this[c++];break}if(++c>=b)throw new TypeError}for(;c=b)return-1;c<0&&(c+=b);for(;ck&&(j[f]=j[f].slice(c-k),k=c)}function q(){j[f]=g,c=h,k=c}function p(){g=j[f],h=c,k=c}var b,c,f,g,h,i,j,k,l,m=this,n=function(){},o=this.imports={paths:a&&a.paths||[],queue:[],files:{},mime:a&&a.mime,push:function(b,c){var e=this;this.queue.push(b),d.Parser.importer(b,this.paths,function(a){e.queue.splice(e.queue.indexOf(b),1),e.files[b]=a,c(a),e.queue.length===0&&n()},a)}};this.env=a=a||{},this.optimization="optimization"in this.env?this.env.optimization:1,this.env.filename=this.env.filename||null;return l={imports:o,parse:function(d,g){var h,l,m,o,p,q,r=[],t,u=null;c=f=k=i=0,j=[],b=d.replace(/\r\n/g,"\n"),j=function(c){var d=0,e=/[^"'`\{\}\/\(\)]+/g,f=/\/\*(?:[^*]|\*+[^\/*])*\*+\/|\/\/.*/g,g=0,h,i=c[0],j,k;for(var l=0,m,n;l0)throw{type:"Syntax",message:"Missing closing `}`",filename:a.filename};return c.map(function(a){return a.join("")})}([[]]),h=new e.Ruleset([],s(this.parsers.primary)),h.root=!0,h.toCSS=function(c){var d,f,g;return function(g,h){function n(a){return a?(b.slice(0,a).match(/\n/g)||"").length:null}var i=[];g=g||{},typeof h=="object"&&!Array.isArray(h)&&(h=Object.keys(h).map(function(a){var b=h[a];b instanceof e.Value||(b instanceof e.Expression||(b=new e.Expression([b])),b=new e.Value([b]));return new e.Rule("@"+a,b,!1,0)}),i=[new e.Ruleset(null,h)]);try{var j=c.call(this,{frames:i}).toCSS([],{compress:g.compress||!1})}catch(k){f=b.split("\n"),d=n(k.index);for(var l=k.index,m=-1;l>=0&&b.charAt(l)!=="\n";l--)m++;throw{type:k.type,message:k.message,filename:a.filename,index:k.index,line:typeof d=="number"?d+1:null,callLine:k.call&&n(k.call)+1,callExtract:f[n(k.call)],stack:k.stack,column:m,extract:[f[d-1],f[d],f[d+1]]}}return g.compress?j.replace(/(\s)+/g,"$1"):j}}(h.eval);if(c=0&&b.charAt(v)!=="\n";v--)w++;u={name:"ParseError",message:"Syntax Error on line "+p,index:c,filename:a.filename,line:p,column:w,extract:[q[p-2],q[p-1],q[p]]}}this.imports.queue.length>0?n=function(){g(u,h)}:g(u,h)},parsers:{primary:function(){var a,b=[];while((a=s(this.mixin.definition)||s(this.rule)||s(this.ruleset)||s(this.mixin.call)||s(this.comment)||s(this.directive))||s(/^[\s\n]+/))a&&b.push(a);return b},comment:function(){var a;if(b.charAt(c)==="/"){if(b.charAt(c+1)==="/")return new e.Comment(s(/^\/\/.*/),!0);if(a=s(/^\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/))return new e.Comment(a)}},entities:{quoted:function(){var a,d=c,f;b.charAt(d)==="~"&&(d++,f=!0);if(b.charAt(d)==='"'||b.charAt(d)==="'"){f&&s("~");if(a=s(/^"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'/))return new e.Quoted(a[0],a[1]||a[2],f)}},keyword:function(){var a;if(a=s(/^[A-Za-z-]+/))return new e.Keyword(a)},call:function(){var a,b,d=c;if(!!(a=/^([\w-]+|%)\(/.exec(j[f]))){a=a[1].toLowerCase();if(a==="url")return null;c+=a.length;if(a==="alpha")return s(this.alpha);s("("),b=s(this.entities.arguments);if(!s(")"))return;if(a)return new e.Call(a,b,d)}},arguments:function(){var a=[],b;while(b=s(this.expression)){a.push(b);if(!s(","))break}return a},literal:function(){return s(this.entities.dimension)||s(this.entities.color)||s(this.entities.quoted)},url:function(){var a;if(b.charAt(c)==="u"&&!!s(/^url\(/)){a=s(this.entities.quoted)||s(this.entities.variable)||s(this.entities.dataURI)||s(/^[-\w%@$\/.&=:;#+?~]+/)||"";if(!s(")"))throw new Error("missing closing ) for url()");return new e.URL(a.value||a.data||a instanceof e.Variable?a:new e.Anonymous(a),o.paths)}},dataURI:function(){var a;if(s(/^data:/)){a={},a.mime=s(/^[^\/]+\/[^,;)]+/)||"",a.charset=s(/^;\s*charset=[^,;)]+/)||"",a.base64=s(/^;\s*base64/)||"",a.data=s(/^,\s*[^)]+/);if(a.data)return a}},variable:function(){var a,d=c;if(b.charAt(c)==="@"&&(a=s(/^@@?[\w-]+/)))return new e.Variable(a,d)},color:function(){var a;if(b.charAt(c)==="#"&&(a=s(/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})/)))return new e.Color(a[1])},dimension:function(){var a,d=b.charCodeAt(c);if(!(d>57||d<45||d===47))if(a=s(/^(-?\d*\.?\d+)(px|%|em|pc|ex|in|deg|s|ms|pt|cm|mm|rad|grad|turn)?/))return new e.Dimension(a[1],a[2])},javascript:function(){var a,d=c,f;b.charAt(d)==="~"&&(d++,f=!0);if(b.charAt(d)==="`"){f&&s("~");if(a=s(/^`([^`]*)`/))return new e.JavaScript(a[1],c,f)}}},variable:function(){var a;if(b.charAt(c)==="@"&&(a=s(/^(@[\w-]+)\s*:/)))return a[1]},shorthand:function(){var a,b;if(!!t(/^[@\w.%-]+\/[@\w.-]+/)&&(a=s(this.entity))&&s("/")&&(b=s(this.entity)))return new e.Shorthand(a,b)},mixin:{call:function(){var a=[],d,f,g,h=c,i=b.charAt(c);if(i==="."||i==="#"){while(d=s(/^[#.](?:[\w-]|\\(?:[a-fA-F0-9]{1,6} ?|[^a-fA-F0-9]))+/))a.push(new e.Element(f,d)),f=s(">");s("(")&&(g=s(this.entities.arguments))&&s(")");if(a.length>0&&(s(";")||t("}")))return new e.mixin.Call(a,g,h)}},definition:function(){var a,d=[],f,g,h,i;if(!(b.charAt(c)!=="."&&b.charAt(c)!=="#"||t(/^[^{]*(;|})/)))if(f=s(/^([#.](?:[\w-]|\\(?:[a-fA-F0-9]{1,6} ?|[^a-fA-F0-9]))+)\s*\(/)){a=f[1];while(h=s(this.entities.variable)||s(this.entities.literal)||s(this.entities.keyword)){if(h instanceof e.Variable)if(s(":"))if(i=s(this.expression))d.push({name:h.name,value:i});else throw new Error("Expected value");else d.push({name:h.name});else d.push({value:h});if(!s(","))break}if(!s(")"))throw new Error("Expected )");g=s(this.block);if(g)return new e.mixin.Definition(a,d,g)}}},entity:function(){return s(this.entities.literal)||s(this.entities.variable)||s(this.entities.url)||s(this.entities.call)||s(this.entities.keyword)||s(this.entities.javascript)||s(this.comment)},end:function(){return s(";")||t("}")},alpha:function(){var a;if(!!s(/^\(opacity=/i))if(a=s(/^\d+/)||s(this.entities.variable)){if(!s(")"))throw new Error("missing closing ) for alpha()");return new e.Alpha(a)}},element:function(){var a,b,c;c=s(this.combinator),a=s(/^(?:[.#]?|:*)(?:[\w-]|\\(?:[a-fA-F0-9]{1,6} ?|[^a-fA-F0-9]))+/)||s("*")||s(this.attribute)||s(/^\([^)@]+\)/);if(a)return new e.Element(c,a)},combinator:function(){var a,d=b.charAt(c);if(d===">"||d==="&"||d==="+"||d==="~"){c++;while(b.charAt(c)===" ")c++;return new e.Combinator(d)}if(d===":"&&b.charAt(c+1)===":"){c+=2;while(b.charAt(c)===" ")c++;return new e.Combinator("::")}return b.charAt(c-1)===" "?new e.Combinator(" "):new e.Combinator(null)},selector:function(){var a,d,f=[],g,h;while(d=s(this.element)){g=b.charAt(c),f.push(d);if(g==="{"||g==="}"||g===";"||g===",")break}if(f.length>0)return new e.Selector(f)},tag:function(){return s(/^[a-zA-Z][a-zA-Z-]*[0-9]?/)||s("*")},attribute:function(){var a="",b,c,d;if(!!s("[")){if(b=s(/^[a-zA-Z-]+/)||s(this.entities.quoted))(d=s(/^[|~*$^]?=/))&&(c=s(this.entities.quoted)||s(/^[\w-]+/))?a=[b,d,c.toCSS?c.toCSS():c].join(""):a=b;if(!s("]"))return;if(a)return"["+a+"]"}},block:function(){var a;if(s("{")&&(a=s(this.primary))&&s("}"))return a},ruleset:function(){var a=[],b,d,g;p();if(g=/^([.#: \w-]+)[\s\n]*\{/.exec(j[f]))c+=g[0].length-1,a=[new e.Selector([new e.Element(null,g[1])])];else while(b=s(this.selector)){a.push(b),s(this.comment);if(!s(","))break;s(this.comment)}if(a.length>0&&(d=s(this.block)))return new e.Ruleset(a,d);i=c,q()},rule:function(){var a,d,g=b.charAt(c),k,l;p();if(g!=="."&&g!=="#"&&g!=="&")if(a=s(this.variable)||s(this.property)){a.charAt(0)!="@"&&(l=/^([^@+\/'"*`(;{}-]*);/.exec(j[f]))?(c+=l[0].length-1,d=new e.Anonymous(l[1])):a==="font"?d=s(this.font):d=s(this.value),k=s(this.important);if(d&&s(this.end))return new e.Rule(a,d,k,h);i=c,q()}},"import":function(){var a;if(s(/^@import\s+/)&&(a=s(this.entities.quoted)||s(this.entities.url))&&s(";"))return new e.Import(a,o)},directive:function(){var a,d,f,g;if(b.charAt(c)==="@"){if(d=s(this["import"]))return d;if(a=s(/^@media|@page|@-[-a-z]+/)){g=(s(/^[^{]+/)||"").trim();if(f=s(this.block))return new e.Directive(a+" "+g,f)}else if(a=s(/^@[-a-z]+/))if(a==="@font-face"){if(f=s(this.block))return new e.Directive(a,f)}else if((d=s(this.entity))&&s(";"))return new e.Directive(a,d)}},font:function(){var a=[],b=[],c,d,f,g;while(g=s(this.shorthand)||s(this.entity))b.push(g);a.push(new e.Expression(b));if(s(","))while(g=s(this.expression)){a.push(g);if(!s(","))break}return new e.Value(a)},value:function(){var a,b=[],c;while(a=s(this.expression)){b.push(a);if(!s(","))break}if(b.length>0)return new e.Value(b)},important:function(){if(b.charAt(c)==="!")return s(/^! *important/)},sub:function(){var a;if(s("(")&&(a=s(this.expression))&&s(")"))return a},multiplication:function(){var a,b,c,d;if(a=s(this.operand)){while((c=s("/")||s("*"))&&(b=s(this.operand)))d=new e.Operation(c,[d||a,b]);return d||a}},addition:function(){var a,d,f,g;if(a=s(this.multiplication)){while((f=s(/^[-+]\s+/)||b.charAt(c-1)!=" "&&(s("+")||s("-")))&&(d=s(this.multiplication)))g=new e.Operation(f,[g||a,d]);return g||a}},operand:function(){var a,d=b.charAt(c+1);b.charAt(c)==="-"&&(d==="@"||d==="(")&&(a=s("-"));var f=s(this.sub)||s(this.entities.dimension)||s(this.entities.color)||s(this.entities.variable)||s(this.entities.call);return a?new e.Operation("*",[new e.Dimension(-1),f]):f},expression:function(){var a,b,c=[],d;while(a=s(this.addition)||s(this.entity))c.push(a);if(c.length>0)return new e.Expression(c)},property:function(){var a;if(a=s(/^(\*?-?[-a-z_0-9]+)\s*:/))return a[1]}}}},typeof a!="undefined"&&(d.Parser.importer=function(a,b,c,d){a.charAt(0)!=="/"&&b.length>0&&(a=b[0]+a),o({href:a,title:a,type:d.mime},c,!0)}),function(a){function d(a){return Math.min(1,Math.max(0,a))}function c(b){if(b instanceof a.Dimension)return parseFloat(b.unit=="%"?b.value/100:b.value);if(typeof b=="number")return b;throw{error:"RuntimeError",message:"color functions take numbers as parameters"}}function b(b){return a.functions.hsla(b.h,b.s,b.l,b.a)}a.functions={rgb:function(a,b,c){return this.rgba(a,b,c,1)},rgba:function(b,d,e,f){var g=[b,d,e].map(function(a){return c(a)}),f=c(f);return new a.Color(g,f)},hsl:function(a,b,c){return this.hsla(a,b,c,1)},hsla:function(a,b,d,e){function h(a){a=a<0?a+1:a>1?a-1:a;return a*6<1?g+(f-g)*a*6:a*2<1?f:a*3<2?g+(f-g)*(2/3-a)*6:g}a=c(a)%360/360,b=c(b),d=c(d),e=c(e);var f=d<=.5?d*(b+1):d+b-d*b,g=d*2-f;return this.rgba(h(a+1/3)*255,h(a)*255,h(a-1/3)*255,e)},hue:function(b){return new a.Dimension(Math.round(b.toHSL().h))},saturation:function(b){return new a.Dimension(Math.round(b.toHSL().s*100),"%")},lightness:function(b){return new a.Dimension(Math.round(b.toHSL().l*100),"%")},alpha:function(b){return new a.Dimension(b.toHSL().a)},saturate:function(a,c){var e=a.toHSL();e.s+=c.value/100,e.s=d(e.s);return b(e)},desaturate:function(a,c){var e=a.toHSL();e.s-=c.value/100,e.s=d(e.s);return b(e)},lighten:function(a,c){var e=a.toHSL();e.l+=c.value/100,e.l=d(e.l);return b(e)},darken:function(a,c){var e=a.toHSL();e.l-=c.value/100,e.l=d(e.l);return b(e)},fadein:function(a,c){var e=a.toHSL();e.a+=c.value/100,e.a=d(e.a);return b(e)},fadeout:function(a,c){var e=a.toHSL();e.a-=c.value/100,e.a=d(e.a);return b(e)},spin:function(a,c){var d=a.toHSL(),e=(d.h+c.value)%360;d.h=e<0?360+e:e;return b(d)},mix:function(b,c,d){var e=d.value/100,f=e*2-1,g=b.toHSL().a-c.toHSL().a,h=((f*g==-1?f:(f+g)/(1+f*g))+1)/2,i=1-h,j=[b.rgb[0]*h+c.rgb[0]*i,b.rgb[1]*h+c.rgb[1]*i,b.rgb[2]*h+c.rgb[2]*i],k=b.alpha*e+c.alpha*(1-e);return new a.Color(j,k)},greyscale:function(b){return this.desaturate(b,new a.Dimension(100))},e:function(b){return new a.Anonymous(b instanceof a.JavaScript?b.evaluated:b)},escape:function(b){return new a.Anonymous(encodeURI(b.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},"%":function(b){var c=Array.prototype.slice.call(arguments,1),d=b.value;for(var e=0;e255?255:a<0?0:a).toString(16);return a.length===1?"0"+a:a}).join("")},operate:function(b,c){var d=[];c instanceof a.Color||(c=c.toColor());for(var e=0;e<3;e++)d[e]=a.operate(b,this.rgb[e],c.rgb[e]);return new a.Color(d,this.alpha+c.alpha)},toHSL:function(){var a=this.rgb[0]/255,b=this.rgb[1]/255,c=this.rgb[2]/255,d=this.alpha,e=Math.max(a,b,c),f=Math.min(a,b,c),g,h,i=(e+f)/2,j=e-f;if(e===f)g=h=0;else{h=i>.5?j/(2-e-f):j/(e+f);switch(e){case a:g=(b-c)/j+(b":a.compress?">":" > "}[this.value]}}(c("less/tree")),function(a){a.Expression=function(a){this.value=a},a.Expression.prototype={eval:function(b){return this.value.length>1?new a.Expression(this.value.map(function(a){return a.eval(b)})):this.value.length===1?this.value[0].eval(b):this},toCSS:function(a){return this.value.map(function(b){return b.toCSS(a)}).join(" ")}}}(c("less/tree")),function(a){a.Import=function(b,c){var d=this;this._path=b,b instanceof a.Quoted?this.path=/\.(le?|c)ss$/.test(b.value)?b.value:b.value+".less":this.path=b.value.value||b.value,this.css=/css$/.test(this.path),this.css||c.push(this.path,function(a){if(!a)throw new Error("Error parsing "+d.path);d.root=a})},a.Import.prototype={toCSS:function(){return this.css?"@import "+this._path.toCSS()+";\n":""},eval:function(b){var c;if(this.css)return this;c=new a.Ruleset(null,this.root.rules.slice(0));for(var d=0;d0){c=this.arguments&&this.arguments.map(function(b){return b.eval(a)});for(var g=0;g0&&c>this.params.length)return!1;d=Math.min(c,this.arity);for(var e=0;e1?Array.prototype.push.apply(d,e.find(new a.Selector(b.elements.slice(1)),c)):d.push(e);break}});return this._lookups[g]=d},toCSS:function(b,c){var d=[],e=[],f=[],g=[],h,i;if(!this.root)if(b.length===0)g=this.selectors.map(function(a){return[a]});else for(var j=0;j0&&(h=g.map(function(a){return a.map(function(a){return a.toCSS(c)}).join("").trim()}).join(c.compress?",":g.length>3?",\n":", "),d.push(h,(c.compress?"{":" {\n ")+e.join(c.compress?"":"\n ")+(c.compress?"}":"\n}\n"))),d.push(f);return d.join("")+(c.compress?"\n":"")}}}(c("less/tree")),function(a){a.Selector=function(a){this.elements=a,this.elements[0].combinator.value===""&&(this.elements[0].combinator.value=" ")},a.Selector.prototype.match=function(a){return this.elements[0].value===a.elements[0].value?!0:!1},a.Selector.prototype.toCSS=function(a){if(this._css)return this._css;return this._css=this.elements.map(function(b){return typeof b=="string"?" "+b.trim():b.toCSS(a)}).join("")}}(c("less/tree")),function(b){b.URL=function(b,c){b.data?this.attrs=b:(!/^(?:https?:\/|file:\/|data:\/)?\//.test(b.value)&&c.length>0&&typeof a!="undefined"&&(b.value=c[0]+(b.value.charAt(0)==="/"?b.value.slice(1):b.value)),this.value=b,this.paths=c)},b.URL.prototype={toCSS:function(){return"url("+(this.attrs?"data:"+this.attrs.mime+this.attrs.charset+this.attrs.base64+this.attrs.data:this.value.toCSS())+")"},eval:function(a){return this.attrs?this:new b.URL(this.value.eval(a),this.paths)}}}(c("less/tree")),function(a){a.Value=function(a){this.value=a,this.is="value"},a.Value.prototype={eval:function(b){return this.value.length===1?this.value[0].eval(b):new a.Value(this.value.map(function(a){return a.eval(b)}))},toCSS:function(a){return this.value.map(function(b){return b.toCSS(a)}).join(a.compress?",":", ")}}}(c("less/tree")),function(a){a.Variable=function(a,b){this.name=a,this +.index=b},a.Variable.prototype={eval:function(b){var c,d,e=this.name;e.indexOf("@@")==0&&(e="@"+(new a.Variable(e.slice(1))).eval(b).value);if(c=a.find(b.frames,function(a){if(d=a.variable(e))return d.value.eval(b)}))return c;throw{message:"variable "+e+" is undefined",index:this.index}}}}(c("less/tree")),c("less/tree").find=function(a,b){for(var c=0,d;c1?"["+a.value.map(function(a){return a.toCSS(!1)}).join(", ")+"]":a.toCSS(!1)};var g=location.protocol==="file:"||location.protocol==="chrome:"||location.protocol==="chrome-extension:"||location.protocol==="resource:";d.env=d.env||(location.hostname=="127.0.0.1"||location.hostname=="0.0.0.0"||location.hostname=="localhost"||location.port.length>0||g?"development":"production"),d.async=!1,d.poll=d.poll||(g?1e3:1500),d.watch=function(){return this.watchMode=!0},d.unwatch=function(){return this.watchMode=!1},d.env==="development"?(d.optimization=0,/!watch/.test(location.hash)&&d.watch(),d.watchTimer=setInterval(function(){d.watchMode&&n(function(a,b,c){a&&q(a.toCSS(),b,c.lastModified)})},d.poll)):d.optimization=3;var h;try{h=typeof a.localStorage=="undefined"?null:a.localStorage}catch(i){h=null}var j=document.getElementsByTagName("link"),k=/^text\/(x-)?less$/;d.sheets=[];for(var l=0;l'); //x_button.click(reset_query); - x_button.val('x'); + x_button.val('X'); x_button.click( function(){ query.val(''); diff --git a/askbot/skins/common/media/js/utils.js b/askbot/skins/common/media/js/utils.js index ec55e535..2b2579ab 100644 --- a/askbot/skins/common/media/js/utils.js +++ b/askbot/skins/common/media/js/utils.js @@ -12,6 +12,19 @@ var copyAltToTitle = function(sel){ sel.attr('title', sel.attr('alt')); }; +var animateHashes = function(){ + var id_value = window.location.hash; + if (id_value != ""){ + var previous_color = $(id_value).css('background-color'); + $(id_value).css('backgroundColor', '#FFF8C6'); + $(id_value) + .animate({backgroundColor: '#ff7f2a'}, 500) + .animate({backgroundColor: '#FFF8C6'}, 500, function(){ + $(id_value).css('backgroundColor', previous_color); + }); + } +}; + var getUniqueWords = function(value){ var words = $.trim(value).split(/\s+/); var uniques = new Object(); @@ -389,3 +402,4 @@ if(!this.JSON){this.JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typ (function(){var a={getSelection:function(){var b=this.jquery?this[0]:this;return(("selectionStart" in b&&function(){var c=b.selectionEnd-b.selectionStart;return{start:b.selectionStart,end:b.selectionEnd,length:c,text:b.value.substr(b.selectionStart,c)}})||(document.selection&&function(){b.focus();var d=document.selection.createRange();if(d==null){return{start:0,end:b.value.length,length:0}}var c=b.createTextRange();var e=c.duplicate();c.moveToBookmark(d.getBookmark());e.setEndPoint("EndToStart",c);return{start:e.text.length,end:e.text.length+d.text.length,length:d.text.length,text:d.text}})||function(){return{start:0,end:b.value.length,length:0}})()},replaceSelection:function(){var b=this.jquery?this[0]:this;var c=arguments[0]||"";return(("selectionStart" in b&&function(){b.value=b.value.substr(0,b.selectionStart)+c+b.value.substr(b.selectionEnd,b.value.length);return this})||(document.selection&&function(){b.focus();document.selection.createRange().text=c;return this})||function(){b.value+=c;return this})()}};jQuery.each(a,function(b){jQuery.fn[b]=this})})(); //our custom autocompleter var AutoCompleter=function(a){var b={autocompleteMultiple:true,multipleSeparator:" ",inputClass:"acInput",loadingClass:"acLoading",resultsClass:"acResults",selectClass:"acSelect",queryParamName:"q",limitParamName:"limit",extraParams:{},lineSeparator:"\n",cellSeparator:"|",minChars:2,maxItemsToShow:10,delay:400,useCache:true,maxCacheLength:10,matchSubset:true,matchCase:false,matchInside:true,mustMatch:false,preloadData:false,selectFirst:false,stopCharRegex:/\s+/,selectOnly:false,formatItem:null,onItemSelect:false,autoFill:false,filterResults:true,sortResults:true,sortFunction:false,onNoMatch:false};this.options=$.extend({},b,a);this.cacheData_={};this.cacheLength_=0;this.selectClass_="jquery-autocomplete-selected-item";this.keyTimeout_=null;this.lastKeyPressed_=null;this.lastProcessedValue_=null;this.lastSelectedValue_=null;this.active_=false;this.finishOnBlur_=true;this.options.minChars=parseInt(this.options.minChars,10);if(isNaN(this.options.minChars)||this.options.minChars<1){this.options.minChars=2}this.options.maxItemsToShow=parseInt(this.options.maxItemsToShow,10);if(isNaN(this.options.maxItemsToShow)||this.options.maxItemsToShow<1){this.options.maxItemsToShow=10}this.options.maxCacheLength=parseInt(this.options.maxCacheLength,10);if(isNaN(this.options.maxCacheLength)||this.options.maxCacheLength<1){this.options.maxCacheLength=10}if(this.options.preloadData===true){this.fetchRemoteData("",function(){})}};inherits(AutoCompleter,WrappedElement);AutoCompleter.prototype.decorate=function(a){this._element=a;this._element.attr("autocomplete","off");this._results=$("
").hide();if(this.options.resultsClass){this._results.addClass(this.options.resultsClass)}this._results.css({position:"absolute"});$("body").append(this._results);this.setEventHandlers()};AutoCompleter.prototype.setEventHandlers=function(){var a=this;a._element.keydown(function(b){a.lastKeyPressed_=b.keyCode;switch(a.lastKeyPressed_){case 38:b.preventDefault();if(a.active_){a.focusPrev()}else{a.activate()}return false;break;case 40:b.preventDefault();if(a.active_){a.focusNext()}else{a.activate()}return false;break;case 9:case 13:if(a.active_){b.preventDefault();a.selectCurrent();return false}break;case 27:if(a.active_){b.preventDefault();a.finish();return false}break;default:a.activate()}});a._element.blur(function(){if(a.finishOnBlur_){setTimeout(function(){a.finish()},200)}})};AutoCompleter.prototype.position=function(){var a=this._element.offset();this._results.css({top:a.top+this._element.outerHeight(),left:a.left})};AutoCompleter.prototype.cacheRead=function(d){var f,c,b,a,e;if(this.options.useCache){d=String(d);f=d.length;if(this.options.matchSubset){c=1}else{c=f}while(c<=f){if(this.options.matchInside){a=f-c}else{a=0}e=0;while(e<=a){b=d.substr(0,c);if(this.cacheData_[b]!==undefined){return this.cacheData_[b]}e++}c++}}return false};AutoCompleter.prototype.cacheWrite=function(a,b){if(this.options.useCache){if(this.cacheLength_>=this.options.maxCacheLength){this.cacheFlush()}a=String(a);if(this.cacheData_[a]!==undefined){this.cacheLength_++}return this.cacheData_[a]=b}return false};AutoCompleter.prototype.cacheFlush=function(){this.cacheData_={};this.cacheLength_=0};AutoCompleter.prototype.callHook=function(c,b){var a=this.options[c];if(a&&$.isFunction(a)){return a(b,this)}return false};AutoCompleter.prototype.activate=function(){var b=this;var a=function(){b.activateNow()};var c=parseInt(this.options.delay,10);if(isNaN(c)||c<=0){c=250}if(this.keyTimeout_){clearTimeout(this.keyTimeout_)}this.keyTimeout_=setTimeout(a,c)};AutoCompleter.prototype.activateNow=function(){var a=this.getValue();if(a!==this.lastProcessedValue_&&a!==this.lastSelectedValue_){if(a.length>=this.options.minChars){this.active_=true;this.lastProcessedValue_=a;this.fetchData(a)}}};AutoCompleter.prototype.fetchData=function(b){if(this.options.data){this.filterAndShowResults(this.options.data,b)}else{var a=this;this.fetchRemoteData(b,function(c){a.filterAndShowResults(c,b)})}};AutoCompleter.prototype.fetchRemoteData=function(c,e){var d=this.cacheRead(c);if(d){e(d)}else{var a=this;if(this._element){this._element.addClass(this.options.loadingClass)}var b=function(g){var f=false;if(g!==false){f=a.parseRemoteData(g);a.options.data=f;a.cacheWrite(c,f)}if(a._element){a._element.removeClass(a.options.loadingClass)}e(f)};$.ajax({url:this.makeUrl(c),success:b,error:function(){b(false)}})}};AutoCompleter.prototype.setOption=function(a,b){this.options[a]=b};AutoCompleter.prototype.setExtraParam=function(b,c){var a=$.trim(String(b));if(a){if(!this.options.extraParams){this.options.extraParams={}}if(this.options.extraParams[a]!==c){this.options.extraParams[a]=c;this.cacheFlush()}}};AutoCompleter.prototype.makeUrl=function(e){var a=this;var b=this.options.url;var d=$.extend({},this.options.extraParams);if(this.options.queryParamName===false){b+=encodeURIComponent(e)}else{d[this.options.queryParamName]=e}if(this.options.limitParamName&&this.options.maxItemsToShow){d[this.options.limitParamName]=this.options.maxItemsToShow}var c=[];$.each(d,function(f,g){c.push(a.makeUrlParam(f,g))});if(c.length){b+=b.indexOf("?")==-1?"?":"&";b+=c.join("&")}return b};AutoCompleter.prototype.makeUrlParam=function(a,b){return String(a)+"="+encodeURIComponent(b)};AutoCompleter.prototype.splitText=function(a){return String(a).replace(/(\r\n|\r|\n)/g,"\n").split(this.options.lineSeparator)};AutoCompleter.prototype.parseRemoteData=function(c){var h,b,f,d,g;var e=[];var b=this.splitText(c);for(f=0;f""){if(typeof c!=="object"){c={}}if(this.options.filterResults){h=String(b);g=String(l);if(!this.options.matchCase){h=h.toLowerCase();g=g.toLowerCase()}a=g.indexOf(h);if(this.options.matchInside){a=a>-1}else{a=a===0}}else{a=true}if(a){f.push({value:l,data:c})}}}if(this.options.sortResults){f=this.sortResults(f,b)}if(this.options.maxItemsToShow>0&&this.options.maxItemsToShowc){return 1}if(d");var f,l,j,a,h=false,d=false;var c=e.length;for(f=0;f"+this.showResult(l.value,l.data)+"");j.data("value",l.value);j.data("data",l.data);j.click(function(){var i=$(this);k.selectItem(i)}).mousedown(function(){k.finishOnBlur_=false}).mouseup(function(){k.finishOnBlur_=true});g.append(j);if(h===false){h=String(l.value);d=j;j.addClass(this.options.firstItemClass)}if(f==c-1){j.addClass(this.options.lastItemClass)}}this.position();this._results.html(g).show();a=this._results.outerWidth()-this._results.width();this._results.width(this._element.outerWidth()-a);$("li",this._results).hover(function(){k.focusItem(this)},function(){});if(this.autoFill(h,b)){this.focusItem(d)}};AutoCompleter.prototype.showResult=function(b,a){if($.isFunction(this.options.showResult)){return this.options.showResult(b,a)}else{return b}};AutoCompleter.prototype.autoFill=function(e,c){var b,a,d,f;if(this.options.autoFill&&this.lastKeyPressed_!=8){b=String(e).toLowerCase();a=String(c).toLowerCase();d=e.length;f=c.length;if(b.substr(0,f)===a){this._element.val(e);this.selectRange(f,d);return true}}return false};AutoCompleter.prototype.focusNext=function(){this.focusMove(+1)};AutoCompleter.prototype.focusPrev=function(){this.focusMove(-1)};AutoCompleter.prototype.focusMove=function(a){var b,c=$("li",this._results);a=parseInt(a,10);for(var b=0;b=c.length){b=c.length-1}}a=$(c[b])}else{a=$(b)}if(a){a.addClass(this.selectClass_).addClass(this.options.selectClass)}}};AutoCompleter.prototype.selectCurrent=function(){var a=$("li."+this.selectClass_,this._results);if(a.length==1){this.selectItem(a)}else{this.finish()}};AutoCompleter.prototype.selectItem=function(d){var c=d.data("value");var b=d.data("data");var a=this.displayValue(c,b);this.lastProcessedValue_=a;this.lastSelectedValue_=a;this.setValue(a);this.setCaret(a.length);this.callHook("onItemSelect",{value:c,data:b});this.finish()};AutoCompleter.prototype.isContentChar=function(a){if(a.match(this.options.stopCharRegex)){return false}else{if(a===this.options.multipleSeparator){return false}else{return true}}};AutoCompleter.prototype.getValue=function(){var c=this._element.getSelection();var d=this._element.val();var f=c.start;var e=f;for(cpos=f;cpos>=0;cpos=cpos-1){if(cpos===d.length){continue}var b=d.charAt(cpos);if(!this.isContentChar(b)){break}e=cpos}var a=f;for(cpos=f;cpos