diff options
author | Byron <byroncorrales@gmail.com> | 2011-10-23 11:31:27 -0600 |
---|---|---|
committer | Byron <byroncorrales@gmail.com> | 2011-10-23 11:31:27 -0600 |
commit | a554391ad4ce8ab9c9349f509b950a06479fdfcc (patch) | |
tree | d40486b7a48f143dfb4930ef8f775008ea56eb11 | |
parent | f708e6ef4f224f382123366cb59ff459e11849cb (diff) | |
download | askbot-a554391ad4ce8ab9c9349f509b950a06479fdfcc.tar.gz askbot-a554391ad4ce8ab9c9349f509b950a06479fdfcc.tar.bz2 askbot-a554391ad4ce8ab9c9349f509b950a06479fdfcc.zip |
Some changes in question sidebar
-rw-r--r-- | askbot/skins/default/media/style/style.css | 26 | ||||
-rw-r--r-- | askbot/skins/default/templates/question/sidebar.html | 29 |
2 files changed, 29 insertions, 26 deletions
diff --git a/askbot/skins/default/media/style/style.css b/askbot/skins/default/media/style/style.css index 23972142..e5c38294 100644 --- a/askbot/skins/default/media/style/style.css +++ b/askbot/skins/default/media/style/style.css @@ -451,7 +451,7 @@ h1 { width: 950px; } -/* ----- Sidebar Widgets Box, check main_page/sidebar.html ----- */ +/* ----- Sidebar Widgets Box, check main_page/sidebar.html or question/sidebar.html ----- */ .box { background: #fff; @@ -540,6 +540,30 @@ h1 { background:url(../images/small-button-blue.png) repeat-x bottom; } } + +/* widgets for question template */ + + a.follow{ + background: url(../images/medium-button.png) top repeat-x; + height:34px; + line-height:34px; + text-align:center; + border:0; + font-family:@yanone; + color:@button-label; + font-weight:normal; + font-size:21px; + margin-top:3px; + display:block; + width:150px; + .rounded-corners(4px); + .box-shadow(1px, 1px, 2px, #636363); + } + a.follow:hover{ + text-decoration:none; + background: url(../images/medium-button.png) bottom repeat-x; + .text-shadow(0px, 1px, 0px, #c6d9dd); + } } diff --git a/askbot/skins/default/templates/question/sidebar.html b/askbot/skins/default/templates/question/sidebar.html index ab3a9ace..61339b08 100644 --- a/askbot/skins/default/templates/question/sidebar.html +++ b/askbot/skins/default/templates/question/sidebar.html @@ -1,9 +1,9 @@ {% import "macros.html" as macros %} {{ settings.SIDEBAR_QUESTION_HEADER }} -<div class="box vote-buttons"> - <h2 id="questionTools">{% trans %}Question tools{% endtrans %}</h2> +<div class="box"> + <h2 >{% trans %}Question tools{% endtrans %}</h2> {% if favorited %} - <a class="button followed" + <a class="button follow" alt="{% trans %}click to unfollow this question{% endtrans %}"> <div>{% trans %}Following{% endtrans %}</div> <div class='unfollow'>{% trans %}Unfollow{% endtrans %}</div> @@ -38,28 +38,7 @@ </div> </div> {% cache 0 "questions_tags" questions_tags question.id language_code %} -{% if settings.SIDEBAR_QUESTION_SHOW_TAGS %} - <div class="box"> - <div class="clearfix"></div> - <h2> - {% trans %}Question tags{% endtrans %}: - </h2> - <ul id="related-tags" class="tags"> - {% for tag in tags %} - <li> - {{ macros.tag_widget( - tag, - html_tag = 'div', - url_params = 'start_over=true', - extra_content = '<span class="tag-number">× ' ~ - tag.used_count|intcomma ~ '</span>' - ) - }} - </li> - {% endfor %} - </ul> - </div> -{% endif %} + {% if settings.SIDEBAR_QUESTION_SHOW_META %} <div class="box"> |