summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron <byroncorrales@gmail.com>2011-10-25 00:52:53 -0600
committerByron <byroncorrales@gmail.com>2011-10-25 00:52:53 -0600
commitcfa983321297e0aaa425e5bfedde56effb76c247 (patch)
tree22da2ae18d95f9b9b156d3647c6a5bac8a731010
parent949410c1614f23dc70f9c0a40253597417c2eae8 (diff)
downloadaskbot-cfa983321297e0aaa425e5bfedde56effb76c247.tar.gz
askbot-cfa983321297e0aaa425e5bfedde56effb76c247.tar.bz2
askbot-cfa983321297e0aaa425e5bfedde56effb76c247.zip
Style for comments form and comment list, on question template
-rw-r--r--askbot/skins/common/templates/question/question_vote_buttons.html12
-rw-r--r--askbot/skins/default/media/images/comment-background.pngbin0 -> 250 bytes
-rw-r--r--askbot/skins/default/media/images/comment.pngbin0 -> 606 bytes
-rw-r--r--askbot/skins/default/media/images/small-button-cancel.pngbin0 -> 211 bytes
-rw-r--r--askbot/skins/default/media/images/vote-arrow-down-new.pngbin0 -> 1458 bytes
-rw-r--r--askbot/skins/default/media/images/vote-arrow-down-on-new.pngbin0 -> 980 bytes
-rw-r--r--askbot/skins/default/media/images/vote-arrow-up-new.pngbin0 -> 979 bytes
-rw-r--r--askbot/skins/default/media/images/vote-arrow-up-on-new.pngbin0 -> 1029 bytes
-rw-r--r--askbot/skins/default/media/style/style.css337
-rw-r--r--askbot/skins/default/templates/question/question_card.html1
10 files changed, 194 insertions, 156 deletions
diff --git a/askbot/skins/common/templates/question/question_vote_buttons.html b/askbot/skins/common/templates/question/question_vote_buttons.html
index b3db504f..5403c0f8 100644
--- a/askbot/skins/common/templates/question/question_vote_buttons.html
+++ b/askbot/skins/common/templates/question/question_vote_buttons.html
@@ -1,9 +1,9 @@
{% if question_vote %}
<img id="question-img-upvote-{{ question.id }}" class="question-img-upvote"
{% if question_vote.is_upvote() %}
- src="{{'/images/vote-arrow-up-on.png'|media}}"
+ src="{{'/images/vote-arrow-up-on-new.png'|media}}"
{% else %}
- src="{{'/images/vote-arrow-up.png'|media}}"
+ src="{{'/images/vote-arrow-up-new.png'|media}}"
{% endif %}
alt="{% trans %}i like this post (click again to cancel){% endtrans %}"
title="{% trans %}i like this post (click again to cancel){% endtrans %}" />
@@ -13,23 +13,23 @@
</div>
<img id="question-img-downvote-{{ question.id }}" class="question-img-downvote"
{% if question_vote.is_downvote() %}
- src="{{'/images/vote-arrow-down-on.png'|media}}"
+ src="{{'/images/vote-arrow-down-on-new.png'|media}}"
{% else %}
- src="{{'/images/vote-arrow-down.png'|media}}"
+ src="{{'/images/vote-arrow-down-new.png'|media}}"
{% endif %}
alt="{% trans %}i dont like this post (click again to cancel){% endtrans %}"
title="{% trans %}i dont like this post (click again to cancel){% endtrans %}" />
{% else %}
<img id="question-img-upvote-{{ question.id }}" class="question-img-upvote"
alt="{% trans %}i like this post (click again to cancel){% endtrans %}"
- src="{{'/images/vote-arrow-up.png'|media}}"
+ src="{{'/images/vote-arrow-up-new.png'|media}}"
title="{% trans %}i like this post (click again to cancel){% endtrans %}" />
<div id="question-vote-number-{{ question.id }}" class="vote-number"
title="{% trans %}current number of votes{% endtrans %}">
{{ question.score }}
</div>
<img id="question-img-downvote-{{ question.id }}" class="question-img-downvote"
- src="{{'/images/vote-arrow-down.png'|media}}"
+ src="{{'/images/vote-arrow-down-new.png'|media}}"
alt="{% trans %}i dont like this post (click again to cancel){% endtrans %}"
title="{% trans %}i dont like this post (click again to cancel){% endtrans %}" />
{% endif %}
diff --git a/askbot/skins/default/media/images/comment-background.png b/askbot/skins/default/media/images/comment-background.png
new file mode 100644
index 00000000..4299b847
--- /dev/null
+++ b/askbot/skins/default/media/images/comment-background.png
Binary files differ
diff --git a/askbot/skins/default/media/images/comment.png b/askbot/skins/default/media/images/comment.png
new file mode 100644
index 00000000..9dcc4c66
--- /dev/null
+++ b/askbot/skins/default/media/images/comment.png
Binary files differ
diff --git a/askbot/skins/default/media/images/small-button-cancel.png b/askbot/skins/default/media/images/small-button-cancel.png
new file mode 100644
index 00000000..79a87497
--- /dev/null
+++ b/askbot/skins/default/media/images/small-button-cancel.png
Binary files differ
diff --git a/askbot/skins/default/media/images/vote-arrow-down-new.png b/askbot/skins/default/media/images/vote-arrow-down-new.png
new file mode 100644
index 00000000..f2a28aea
--- /dev/null
+++ b/askbot/skins/default/media/images/vote-arrow-down-new.png
Binary files differ
diff --git a/askbot/skins/default/media/images/vote-arrow-down-on-new.png b/askbot/skins/default/media/images/vote-arrow-down-on-new.png
new file mode 100644
index 00000000..2127bf7d
--- /dev/null
+++ b/askbot/skins/default/media/images/vote-arrow-down-on-new.png
Binary files differ
diff --git a/askbot/skins/default/media/images/vote-arrow-up-new.png b/askbot/skins/default/media/images/vote-arrow-up-new.png
new file mode 100644
index 00000000..cb9ea8b6
--- /dev/null
+++ b/askbot/skins/default/media/images/vote-arrow-up-new.png
Binary files differ
diff --git a/askbot/skins/default/media/images/vote-arrow-up-on-new.png b/askbot/skins/default/media/images/vote-arrow-up-on-new.png
new file mode 100644
index 00000000..ef895206
--- /dev/null
+++ b/askbot/skins/default/media/images/vote-arrow-up-on-new.png
Binary files differ
diff --git a/askbot/skins/default/media/style/style.css b/askbot/skins/default/media/style/style.css
index 5145d4ae..a6934629 100644
--- a/askbot/skins/default/media/style/style.css
+++ b/askbot/skins/default/media/style/style.css
@@ -1347,6 +1347,10 @@ span.delete-icon:hover {
.question-page{
+ h1{
+ padding-top:0px;
+ }
+
h1 a{
color:@question-link;
font-size:30px;
@@ -1514,169 +1518,214 @@ span.delete-icon:hover {
font-family:@yanone;
line-height:15px;
}
-
- div.comments {
- padding: 0;
+ .question-img-upvote:hover {
+ background: url(../images/vote-arrow-up-on-new.png)
}
- .comments .button {
- color: black;
- font-size: 11px;
- background: #eeeeee;
- padding: 3px;
- cursor: pointer;
+ .question-img-downvote:hover {
+ background: url(../images/vote-arrow-down-on-new.png)
}
- .comment a {
- background-color: inherit;
- color: blue;
- padding: 0;
+ .question-img-favorite:hover {
+ background: url(../images/vote-favorite-on.png)
}
-
- .comment a.author, a.author:hover {
- background-color: inherit;
- color: blue;
+ div.comments {
padding: 0;
}
-
- .comment a.author:hover {
- text-decoration: underline;
+ #comment-title{
+ font-weight:bold;
+ font-size:23px;
+ color:@section-title;
+ width:200px;
+ float:left;
}
-
.comments {
- font-size: 12px;
- width: 650px;
+ font-size: 12px;
clear: both;
- }
-
- .comments .comment {
- border-top: 1px dotted #cccccc;
- margin: 0;
- overflow: auto;
- }
-
- .comments .content {
- margin-bottom: 7px;
- }
-
- .comments div.comment {
- min-height: 25px;
- }
-
- .comments div.comment:hover {
- background-color: #eee;
- }
-
- div.comment .comment-votes {
- float: left;
- width: 37px;
- line-height: 130%;
- padding: 6px 5px 6px 3px;
- }
+
+ div.controls {
+ clear: both;
+ float:left;
+ width: 100%;
+ margin: 3px 0 20px 5px;
+ }
+
+ .controls a {
+ color: #988e4c;
+ padding: 0 3px 2px 22px;
+ font-family:@trebuchet;
+ font-size:13px;
+ background:url(../images/comment.png) no-repeat center left;
+ }
- div.comment .comment-body {
- line-height: 140%;
- margin: 3px 26px 0 46px;
- padding: 5px 3px;
- color: #666;
- }
+ .controls a:hover {
+ background-color: #f5f0c9;
+ text-decoration: none;
+ }
- div.comment .comment-body p{
- font-size:inherit;
- margin-bottom: 3px;
- padding: 0;
- }
+ .button {
+ color: #988e4c;
+ font-size: 11px;
+ padding: 3px;
+ cursor: pointer;
+ }
+ a {
+ background-color: inherit;
+ color: @link;
+ padding: 0;
+ }
+
+ form.post-comments {
+ margin: 3px 30px 4px 5px;
+ }
- div.comment .comment-delete {
- float: right;
- width: 14px;
- line-height: 130%;
- padding: 8px 6px;
- }
+ textarea {
+ height: 42px;
+ width:100%;
+ margin: 12px 0 5px 1px;
+ font-family: @trebuchet;
+ outline: none;
+ overflow:auto;
+ font-size: 12px;
+ line-height: 140%;
+ padding-left:2px;
+ padding-top:4px;
+ border:#cce6ec 3px solid;
+ }
- div.comment .upvote {
- margin: 0px;
- padding-right: 17px;
- padding-top: 2px;
- text-align: right;
- height: 20px;
- font-size: 13px;
- font-weight: bold;
- color: #777;
- }
+ input {
+ margin-left: 10px;
+ margin-top: 1px;
+ vertical-align: top;
+ width: 100px;
+ }
+ button{
+ background:url(../images/small-button-blue.png) repeat-x top;
+ border:0;
+ color:@button-label;
+ font-size:12px;
+ width:95px;
+ font-weight:bold;
+ height:24px;
+ margin-top:-2px;
+ cursor:pointer;
+ .rounded-corners(4px);
+ .text-shadow(0px,1px,0px,#E6F6FA);
+ .box-shadow(1px, 1px, 2px, #808080);
+ float:left;
+ }
+ button:hover{
+ background: url(../images/small-button-blue.png) bottom repeat-x;
+ .text-shadow(0px, 1px, 0px, #c6d9dd);
+ }
+ .counter {
+ display: inline-block;
+ width: 245px;
+ float:right;
+ color:#b6a475 !important;
+ vertical-align: top;
+ font-family:@trebuchet;
+ float:right;
+ text-align:right;
+ }
+ .comment {
+ border-bottom: 1px solid #edeeeb;
+ margin: 0;
+ margin-top:8px;
+ padding-bottom:4px;
+ overflow: auto;
+ font-family:@trebuchet;
+ font-size:11px;
+ min-height: 25px;
+ background:url(../images/comment-background.png) bottom repeat-x;
+ .rounded-corners(5px);
+ }
+ div.comment:hover {
+ background-color: #efefef;
+ }
+ a.author{
+ background-color: inherit;
+ color: @link;
+ padding: 0;
+ }
- div.comment .upvote.upvoted {
- color: #d64000;
- }
+ a.author:hover {
+ text-decoration: underline;
+ }
+ span.delete-icon{
+ background:url(../images/close-small.png) no-repeat;
+ }
+ span.delete-icon:hover{
+ border:#BC564B 2px solid;
+ .rounded-corners(10px);
+
+ }
+ .content {
+ margin-bottom: 7px;
+ }
+
+ .comment-votes {
+ float: left;
+ width: 37px;
+ line-height: 130%;
+ padding: 6px 5px 6px 3px;
+ }
- div.comment .upvote.hover {
- background: url(../images/go-up-grey.png) no-repeat;
- background-position: right 1px;
- }
+ .comment-body {
+ line-height: 140%;
+ margin: 3px 26px 0 46px;
+ padding: 5px 3px;
+ color: #666;
+ }
- div.comment .upvote:hover {
- background: url(../images/go-up-orange.png) no-repeat;
- background-position: right 1px;
- }
+ .comment-body p{
+ font-size:inherit;
+ margin-bottom: 3px;
+ padding: 0;
+ }
- .comments div.controls {
- clear: both;
- background: url(../images/gray-up-arrow-h18px.png) no-repeat;
- width: 100%;
- padding-left: 12px;
- margin: 3px 0 20px 5px;
- }
+ .comment-delete {
+ float: right;
+ width: 14px;
+ line-height: 130%;
+ padding: 8px 6px;
+ }
- .comments form.post-comments {
- width: 560px;
- margin: 3px 30px 4px 45px;
- }
+ .upvote {
+ margin: 0px;
+ padding-right: 17px;
+ padding-top: 2px;
+ text-align: right;
+ height: 20px;
+ font-size: 13px;
+ font-weight: bold;
+ color: #777;
+ }
- .comments textarea {
- display: block;
- height: 42px;
- width: 572px;
- margin: 6px 0 5px 1px;
- font-family: sans-serif;
- outline: none;
- overflow:auto;
- font-size: 12px;
- line-height: 140%;
- padding-left:2px;
- }
-
- .comments input {
- margin-left: 10px;
- margin-top: 1px;
- vertical-align: top;
- width: 100px;
- }
+ .upvote.upvoted {
+ color: #d64000;
+ }
- .comments .counter {
- display: inline-block;
- width: 245px;
- vertical-align: top;
- }
+ .upvote.hover {
+ background: url(../images/go-up-grey.png) no-repeat;
+ background-position: right 1px;
+ }
- .comments .controls a {
- color: #888888;
- padding: 0 3px 2px;
- }
+ .upvote:hover {
+ background: url(../images/go-up-orange.png) no-repeat;
+ background-position: right 1px;
+ }
- .comments .controls a:hover {
- background-color: #777777;
- color: white;
- text-decoration: none;
+ .help-text{
+ float: right;
+ text-align:right;
+ color: gray;
+ margin-bottom: 0px;
+ margin-top: 0px;
+ line-height: 50%;
+ }
}
- .comments .help-text{
- float: right;
- text-align:right;
- color: gray;
- margin-bottom: 0px;
- margin-top: 0px;
- line-height: 50%;
- }
}
#questionTools {
@@ -1723,18 +1772,6 @@ span.delete-icon:hover {
vertical-align: top;
}
-.question-img-upvote:hover {
- background: url(../images/vote-arrow-up-on.png)
-}
-
-.question-img-downvote:hover {
- background: url(../images/vote-arrow-down-on.png)
-}
-
-.question-img-favorite:hover {
- background: url(../images/vote-favorite-on.png)
-}
-
/* ----- Footer links , check blocks/footer.html----- */
diff --git a/askbot/skins/default/templates/question/question_card.html b/askbot/skins/default/templates/question/question_card.html
index b1fa1743..b5cde475 100644
--- a/askbot/skins/default/templates/question/question_card.html
+++ b/askbot/skins/default/templates/question/question_card.html
@@ -16,6 +16,7 @@
<div id="question-controls" class="post-controls">
{% include "question/question_controls.html" %}
</div>
+ <h1 id="comment-title">Comments</h1>
{% include "question/question_comments.html" %}
</div>
</div>