summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--askbot/setup_templates/settings.py2
-rw-r--r--askbot/setup_templates/settings.py.mustache2
-rw-r--r--askbot/skins/default/media/style/lib_style.less12
-rw-r--r--askbot/skins/default/media/style/style.css31
-rw-r--r--askbot/skins/default/media/style/style.less83
-rw-r--r--askbot/skins/default/templates/macros.html5
-rw-r--r--askbot/skins/default/templates/question/question_card.html2
7 files changed, 78 insertions, 59 deletions
diff --git a/askbot/setup_templates/settings.py b/askbot/setup_templates/settings.py
index c3f5533a..715e6ce8 100644
--- a/askbot/setup_templates/settings.py
+++ b/askbot/setup_templates/settings.py
@@ -131,7 +131,7 @@ DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
#TEMPLATE_DIRS = (,) #template have no effect in askbot, use the variable below
-#ASKBOT_EXTRA_SKIN_DIR = #path to your private skin collection
+#ASKBOT_EXTRA_SKINS_DIR = #path to your private skin collection
#take a look here http://askbot.org/en/question/207/
TEMPLATE_CONTEXT_PROCESSORS = (
diff --git a/askbot/setup_templates/settings.py.mustache b/askbot/setup_templates/settings.py.mustache
index 2d114fe6..69da823a 100644
--- a/askbot/setup_templates/settings.py.mustache
+++ b/askbot/setup_templates/settings.py.mustache
@@ -130,7 +130,7 @@ DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
#TEMPLATE_DIRS = (,) #template have no effect in askbot, use the variable below
-#ASKBOT_EXTRA_SKIN_DIR = #path to your private skin collection
+#ASKBOT_EXTRA_SKINS_DIR = #path to your private skin collection
#take a look here http://askbot.org/en/question/207/
TEMPLATE_CONTEXT_PROCESSORS = (
diff --git a/askbot/skins/default/media/style/lib_style.less b/askbot/skins/default/media/style/lib_style.less
index 4f2bad79..941c83ff 100644
--- a/askbot/skins/default/media/style/lib_style.less
+++ b/askbot/skins/default/media/style/lib_style.less
@@ -26,7 +26,7 @@
/* CSS3 Elements */
.box-shadow (@hor: 0px, @vert: 0px, @blur: 5px, @shadow: #929292){
- -webkit-box-shadow: @arguments;
+ -webkit-box-shadow: @arguments ;
-moz-box-shadow: @arguments;
box-shadow: @arguments;
}
@@ -53,3 +53,13 @@
-webkit-border-top-left-radius:@radio;
-webkit-border-top-right-radius:@radio;
}
+
+.rounded-corners-right(@radio:5px){
+ border-top-right-radius:@radio;
+ border-bottom-right-radius:@radio;
+ -moz-border-radius-topright:@radio;
+ -moz-border-radius-bottomright:@radio;
+ -webkit-border-bottom-right-radius:@radio;
+ -webkit-border-top-right-radius:@radio;
+}
+
diff --git a/askbot/skins/default/media/style/style.css b/askbot/skins/default/media/style/style.css
index 3a38a9cb..4f886a4c 100644
--- a/askbot/skins/default/media/style/style.css
+++ b/askbot/skins/default/media/style/style.css
@@ -85,7 +85,7 @@ body.anon #searchBar .searchInputCancelable{width:405px;}
.box li{list-style-type:disc;font-size:13px;line-height:20px;margin-bottom:10px;color:#707070;}
.box ul.tags{list-style:none;margin:0;padding:0;line-height:170%;display:block;}
.box #displayTagFilterControl p label{color:#707070;font-size:15px;}
-.box .inputs #interestingTagInput,.box .inputs #ignoredTagInput{width:158px;border:#c9c9b5 1px solid;height:25px;}
+.box .inputs #interestingTagInput,.box .inputs #ignoredTagInput{width:153px;padding-left:5px;border:#c9c9b5 1px solid;height:25px;}
.box .inputs #interestingTagAdd,.box .inputs #ignoredTagAdd{background:url(../images/small-button-blue.png) repeat-x top;border:0;color:#4a757f;font-weight:bold;font-size:12px;width:30px;height:27px;margin-top:-2px;cursor:pointer;border-radius:4px;-ms-border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;-khtml-border-radius:4px;text-shadow:0px 1px 0px #e6f6fa;-moz-text-shadow:0px 1px 0px #e6f6fa;-webkit-text-shadow:0px 1px 0px #e6f6fa;-webkit-box-shadow:1px 1px 2px #808080;-moz-box-shadow:1px 1px 2px #808080;box-shadow:1px 1px 2px #808080;}
.box .inputs #interestingTagAdd:hover,.box .inputs #ignoredTagAdd:hover{background:url(../images/small-button-blue.png) repeat-x bottom;}
.box img.gravatar{margin:1px;}
@@ -121,7 +121,7 @@ body.anon #searchBar .searchInputCancelable{width:405px;}
ul#searchTags{margin-left:10px;float:right;padding-top:2px;}
.search-tips{font-size:16px;line-height:17px;color:#707070;margin:5px 0 10px 0;padding:0px;float:left;font-family:'Yanone Kaffeesatz',sans-serif;}.search-tips a{text-decoration:underline;color:#1b79bd;}
#question-list{float:left;position:relative;background-color:#FFF;padding:0;width:100%;}
-.short-summary{position:relative;filter:inherit;padding:10px;border-bottom:1px solid #DDDBCE;margin-bottom:1px;overflow:hidden;width:710px;float:left;background:url(../images/summary-background.png) repeat-x;}.short-summary h2{font-size:24px;font-weight:normal;line-height:26px;padding-left:0;margin-bottom:8px;display:block;font-family:'Yanone Kaffeesatz',sans-serif;}
+.short-summary{position:relative;filter:inherit;padding:10px;border-bottom:1px solid #DDDBCE;margin-bottom:1px;overflow:hidden;width:710px;float:left;background:url(../images/summary-background.png) repeat-x;}.short-summary h2{font-size:24px;font-weight:normal;line-height:26px;padding-left:0;margin-bottom:6px;display:block;font-family:'Yanone Kaffeesatz',sans-serif;}
.short-summary a{color:#464646;}
.short-summary .userinfo{text-align:right;line-height:16px;font-family:Arial;padding-right:4px;}
.short-summary .userinfo .relativetime,.short-summary span.anonymous{font-size:11px;clear:both;font-weight:normal;color:#555;}
@@ -168,24 +168,21 @@ ul#searchTags{margin-left:10px;float:right;padding-top:2px;}
.tag-size-9{font-size:20px;}
.tag-size-10{font-size:21px;}
ul.tags,ul.tags.marked-tags,ul#related-tags{list-style:none;margin:0;padding:0;line-height:170%;display:block;}
-ul.tags li{float:left;display:block;margin:0 5px 0 0;padding:0;height:20px;}
+ul.tags li{float:left;display:block;margin:0 8px 0 0;padding:0;height:20px;}
.wildcard-tags{clear:both;}
ul.tags.marked-tags li,.wildcard-tags ul.tags li{margin-bottom:5px;}
#tagSelector div.inputs{clear:both;float:none;margin-bottom:10px;}
.tags-page ul.tags li,ul#ab-user-tags li{width:160px;margin:5px;}
-ul#related-tags li{margin:0 5px 5px 0;float:left;clear:left;}
-.tag-left{background:url(../images/tag-right.png) no-repeat right center;border:none;cursor:pointer;display:block;float:left;height:20px;margin:0 5px 0 0;padding:0;}
-.tag-right{background:url(../images/tag-left.png) no-repeat left center;border:none;display:block;float:left;height:20px;line-height:20px;font-weight:normal;font-size:11px;padding:0px 10px 0px 15px;text-decoration:none;text-align:center;white-space:nowrap;vertical-align:middle;font-family:Arial;color:#717179;}
-.deletable-tag{margin-right:3px;white-space:nowrap;}
-.deletable-tag .tag-right{padding-right:0px;float:left;}
-.deletable-tag.tag-left{padding-right:0px;}
+ul#related-tags li{margin:0 5px 8px 0;float:left;clear:left;}
+.tag-left{cursor:pointer;display:block;float:left;height:17px;margin:0 5px 0 0;padding:0;-webkit-box-shadow:0px 0px 5px #d3d6d7;-moz-box-shadow:0px 0px 5px #d3d6d7;box-shadow:0px 0px 5px #d3d6d7;}
+.tag-right{background:#f3f6f6;border:#fff 1px solid ;border-top:#fff 2px solid;outline:#cfdbdb 1px solid;display:block;float:left;height:17px;line-height:17px;font-weight:normal;font-size:11px;padding:0px 8px 0px 8px;text-decoration:none;text-align:center;white-space:nowrap;vertical-align:middle;font-family:Arial;color:#717179;}
+.deletable-tag{margin-right:3px;white-space:nowrap;border-top-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;-webkit-border-top-right-radius:4px;}
.tags a.tag-right,.tags span.tag-right{color:#585858;text-decoration:none;}
.tags a:hover{color:#1A1A1A;}
.users-page h1,.tags-page h1{float:left;}
.main-page h1{margin-right:5px;}
-span.delete-icon{padding-left:13px;vertical-align:bottom;background:url(../images/close-small-dark.png) bottom no-repeat;cursor:default;}
-span.delete-icon:hover{background:url(../images/close-small-dark.png) top no-repeat;}
-.tags span.delete-icon{float:left;height:20px;width:8px;margin:0px 0 0 10px;display:block;}
+.delete-icon{margin-top:-1px;float:left;height:21px;width:18px;display:block;line-height:20px;text-align:center;background:#bbcdcd;cursor:default;color:#fff;border-top:#cfdbdb 1px solid;font-family:Arial;border-top-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;-webkit-border-top-right-radius:4px;text-shadow:0px 1px 0px #7ea0a0;-moz-text-shadow:0px 1px 0px #7ea0a0;-webkit-text-shadow:0px 1px 0px #7ea0a0;}
+.delete-icon:hover{background:#b32f2f;}
.tag-number{font-weight:normal;float:left;font-size:16px;color:#5d5d5d;}
.badges .tag-number{float:none;display:inline;padding-right:15px;}
.section-title{color:#7ea9b3;font-family:'Yanone Kaffeesatz',sans-serif;font-weight:bold;font-size:24px;}
@@ -261,8 +258,8 @@ span.delete-icon:hover{background:url(../images/close-small-dark.png) top no-rep
.question-page .comments .button{color:#988e4c;font-size:11px;padding:3px;cursor:pointer;}
.question-page .comments a{background-color:inherit;color:#1b79bd;padding:0;}
.question-page .comments form.post-comments{margin:3px 26px 0 42px;}.question-page .comments form.post-comments textarea{font-size:13px;line-height:1.3;}
-.question-page .comments textarea{height:42px;width:100%;margin:7px 0 5px 1px;font-family:Arial;outline:none;overflow:auto;font-size:12px;line-height:140%;padding-left:2px;padding-top:4px;border:#cce6ec 3px solid;}
-.question-page .comments input{margin-left:10px;margin-top:1px;vertical-align:top;width:100px;}
+.question-page .comments textarea{height:42px;width:100%;margin:7px 0 5px 1px;font-family:Arial;outline:none;overflow:auto;font-size:12px;line-height:140%;padding-left:2px;padding-top:3px;border:#cce6ec 3px solid;}
+@media screen and (-webkit-min-device-pixel-ratio:0){textarea{padding-left:3px !important;}}.question-page .comments input{margin-left:10px;margin-top:1px;vertical-align:top;width:100px;}
.question-page .comments button{background:url(../images/small-button-blue.png) repeat-x top;border:0;color:#4a757f;font-family:Arial;font-size:13px;width:100px;font-weight:bold;height:27px;line-height:25px;margin-bottom:5px;cursor:pointer;border-radius:4px;-ms-border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;-khtml-border-radius:4px;text-shadow:0px 1px 0px #e6f6fa;-moz-text-shadow:0px 1px 0px #e6f6fa;-webkit-text-shadow:0px 1px 0px #e6f6fa;-webkit-box-shadow:1px 1px 2px #808080;-moz-box-shadow:1px 1px 2px #808080;box-shadow:1px 1px 2px #808080;}
.question-page .comments button:hover{background:url(../images/small-button-blue.png) bottom repeat-x;text-shadow:0px 1px 0px #c6d9dd;-moz-text-shadow:0px 1px 0px #c6d9dd;-webkit-text-shadow:0px 1px 0px #c6d9dd;}
.question-page .comments .counter{display:inline-block;width:245px;float:right;color:#b6a475 !important;vertical-align:top;font-family:Arial;float:right;text-align:right;}
@@ -270,8 +267,8 @@ span.delete-icon:hover{background:url(../images/close-small-dark.png) top no-rep
.question-page .comments div.comment:hover{background-color:#efefef;}
.question-page .comments a.author{background-color:inherit;color:#1b79bd;padding:0;}
.question-page .comments a.author:hover{text-decoration:underline;}
-.question-page .comments span.delete-icon{background:url(../images/close-small.png) no-repeat;}
-.question-page .comments span.delete-icon:hover{border:#BC564B 2px solid;border-radius:10px;-ms-border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;-khtml-border-radius:10px;}
+.question-page .comments span.delete-icon{background:url(../images/close-small.png) no-repeat;border:0;width:14px;height:14px;}
+.question-page .comments span.delete-icon:hover{border:#BC564B 2px solid;border-radius:10px;-ms-border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;-khtml-border-radius:10px;margin:-3px 0px 0px -2px;}
.question-page .comments .content{margin-bottom:7px;}
.question-page .comments .comment-votes{float:left;width:37px;line-height:130%;padding:6px 5px 6px 3px;}
.question-page .comments .comment-body{line-height:1.3;margin:3px 26px 0 46px;padding:5px 3px;color:#666;font-size:13px;}.question-page .comments .comment-body .edit{padding-left:6px;}
@@ -469,7 +466,7 @@ ul.form-horizontal-rows label{position:absolute;left:0px;bottom:6px;margin:0px;l
ul.form-horizontal-rows li input{position:absolute;bottom:0px;left:180px;margin:0px;}
.narrow .summary{float:left;}
.user-profile-tool-links{font-weight:bold;vertical-align:top;}
-ul.post-tags{margin-left:7px;}
+ul.post-tags{margin-left:3px;}
ul.post-tags li{margin-top:4px;margin-bottom:3px;}
ul.post-retag{margin-bottom:0px;margin-left:5px;}
#question-controls .tags{margin:0 0 3px 0;}
diff --git a/askbot/skins/default/media/style/style.less b/askbot/skins/default/media/style/style.less
index 6c21e6d3..d1ca6283 100644
--- a/askbot/skins/default/media/style/style.less
+++ b/askbot/skins/default/media/style/style.less
@@ -584,7 +584,8 @@ body.anon {
.inputs{
#interestingTagInput, #ignoredTagInput{
- width:158px;
+ width:153px;
+ padding-left:5px;
border:#c9c9b5 1px solid;
height:25px;
}
@@ -878,7 +879,7 @@ ul#searchTags {
font-weight:normal;
line-height: 26px;
padding-left: 0;
- margin-bottom:8px;
+ margin-bottom:6px;
display:block;
font-family:@main-font;
}
@@ -1132,7 +1133,7 @@ ul#related-tags {
ul.tags li {
float:left;
display: block;
- margin: 0 5px 0 0;
+ margin: 0 8px 0 0;
padding: 0;
height:20px;
}
@@ -1159,7 +1160,7 @@ ul#ab-user-tags li {
}
ul#related-tags li {
- margin: 0 5px 5px 0;
+ margin: 0 5px 8px 0;
float: left;
clear: left;
}
@@ -1167,26 +1168,28 @@ ul#related-tags li {
/* .tag-left and .tag-right are for the sliding doors decoration of tags */
.tag-left {
- background: url(../images/tag-right.png) no-repeat right center;
- border: none;
cursor: pointer;
display: block;
float: left;
- height: 20px;
+ height: 17px;
margin: 0 5px 0 0;
padding: 0;
+ .box-shadow(0px,0px,5px,#d3d6d7);
}
.tag-right {
- background:url(../images/tag-left.png) no-repeat left center;
- border: none;
+ background: #f3f6f6;
+ border:#fff 1px solid ;
+ border-top:#fff 2px solid;
+ outline:#cfdbdb 1px solid;
+ /* .box-shadow(0px,1px,0px,#88a8a8);*/
display: block;
float: left;
- height: 20px;
- line-height: 20px;
+ height: 17px;
+ line-height: 17px;
font-weight: normal;
font-size: 11px;
- padding: 0px 10px 0px 15px;
+ padding: 0px 8px 0px 8px;
text-decoration: none;
text-align: center;
white-space: nowrap;
@@ -1197,14 +1200,7 @@ ul#related-tags li {
.deletable-tag {
margin-right: 3px;
white-space: nowrap;
-}
-
-.deletable-tag .tag-right {
- padding-right: 0px;
- float: left;
-}
-.deletable-tag.tag-left {
- padding-right: 0px;
+ .rounded-corners-right(4px);
}
.tags a.tag-right,
@@ -1225,23 +1221,28 @@ ul#related-tags li {
margin-right: 5px;
}
-span.delete-icon {
- padding-left: 13px;
- vertical-align: bottom;
- background: url(../images/close-small-dark.png) bottom no-repeat;
+.delete-icon {
+ margin-top:-1px;
+ float: left;
+ height: 21px;
+ width:18px;
+ display: block;
+ line-height:20px;
+ text-align:center;
+ background: #bbcdcd;
cursor: default;
+ color:#fff;
+ border-top:#cfdbdb 1px solid;
+ font-family:@body-font;
+ .rounded-corners-right(4px);
+ .text-shadow(0px,1px,0px,#7ea0a0)
+
}
-span.delete-icon:hover {
- background: url(../images/close-small-dark.png) top no-repeat;
+.delete-icon:hover {
+ background: #b32f2f;
}
-.tags span.delete-icon {
- float: left;
- height: 20px;
- width:8px;
- margin: 0px 0 0 10px;
- display: block;
-}
+
.tag-number {
font-weight: normal;
@@ -1777,9 +1778,16 @@ span.delete-icon:hover {
font-size: 12px;
line-height: 140%;
padding-left:2px;
- padding-top:4px;
+ padding-top:3px;
border:#cce6ec 3px solid;
}
+
+ /* A small hack to solve 1px problem on webkit browsers */
+ @media screen and (-webkit-min-device-pixel-ratio:0){
+ textarea{
+ padding-left:3px !important;
+ }
+ }
input {
margin-left: 10px;
@@ -1844,11 +1852,14 @@ span.delete-icon:hover {
}
span.delete-icon{
background:url(../images/close-small.png) no-repeat;
+ border:0;
+ width:14px;
+ height:14px;
}
span.delete-icon:hover{
border:#BC564B 2px solid;
.rounded-corners(10px);
-
+ margin: -3px 0px 0px -2px;
}
.content {
margin-bottom: 7px;
@@ -3142,7 +3153,7 @@ ul.form-horizontal-rows li input {
ul.post-tags {
- margin-left: 7px;
+ margin-left: 3px;
}
ul.post-tags li {
margin-top: 4px;
diff --git a/askbot/skins/default/templates/macros.html b/askbot/skins/default/templates/macros.html
index 582980f4..4553b5b1 100644
--- a/askbot/skins/default/templates/macros.html
+++ b/askbot/skins/default/templates/macros.html
@@ -223,11 +223,11 @@ poor design of the data or methods on data objects #}
rel="tag"
>{{ tag|replace('*', '&#10045;')|truncate(20,True)}}</{% if not is_link or tag[-1] == '*' %}span{% else %}a{% endif %}>
{% if deletable %}
- <span class="delete-icon"
+ <div class="delete-icon"
{% if delete_link_title %}
title="{{ delete_link_title }}"
{% endif %}
- ></span>
+ >x</div>
{% endif %}
</{{ html_tag }}>
{{ extra_content }}
@@ -328,6 +328,7 @@ for the purposes of the AJAX comment editor #}
{% spaceless %}
{% if post.comment_count > 0 %}
<h2 id="comment-title">Comments</h2>
+ <div class="clean"></div>
{% endif %}
{% set widget_id = 'comments-for-' + post.post_type + '-' + post.id|string %}
<div class="comments" id="{{widget_id}}">
diff --git a/askbot/skins/default/templates/question/question_card.html b/askbot/skins/default/templates/question/question_card.html
index b1fa1743..87f92209 100644
--- a/askbot/skins/default/templates/question/question_card.html
+++ b/askbot/skins/default/templates/question/question_card.html
@@ -14,7 +14,7 @@
{{question.html}}
</div>
<div id="question-controls" class="post-controls">
- {% include "question/question_controls.html" %}
+ {% include "question/question_controls.html" %}
</div>
{% include "question/question_comments.html" %}
</div>