Commit 0804ff7a by Kyle Fiedler

Added styles for single question and profile view

parent bbe94325
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
{% spaceless %} {% spaceless %}
<span class="action-link"> <span class="action-link">
<a class="question-delete" id="answer-delete-link-{{answer.id}}"> <a class="question-delete" id="answer-delete-link-{{answer.id}}">
{% if answer.deleted %}{% trans %}undelete{% endtrans %}{% else %}&#10006;{% endif %}</a> {% if answer.deleted %}{% trans %}undelete{% endtrans %}{% else %}delete{% endif %}</a>
</span> </span>
{% endspaceless %} {% endspaceless %}
{% endif %} {% endif %}
......
lms/static/images/askbot/vote-arrow-up.png

200 Bytes | W: | H:

lms/static/images/askbot/vote-arrow-up.png

1.11 KB | W: | H:

lms/static/images/askbot/vote-arrow-up.png
lms/static/images/askbot/vote-arrow-up.png
lms/static/images/askbot/vote-arrow-up.png
lms/static/images/askbot/vote-arrow-up.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -9,9 +9,9 @@ body.user-profile-page { ...@@ -9,9 +9,9 @@ body.user-profile-page {
} }
ul.sub-info { ul.sub-info {
// border-top: 1px solid #ddd;
margin-top: lh(); margin-top: lh();
list-style: none; list-style: none;
padding: 0;
> li { > li {
display: table-cell; display: table-cell;
...@@ -57,6 +57,7 @@ body.user-profile-page { ...@@ -57,6 +57,7 @@ body.user-profile-page {
ul { ul {
list-style: none; list-style: none;
padding: 0;
&.user-stats-table { &.user-stats-table {
list-style: none; list-style: none;
...@@ -72,37 +73,28 @@ body.user-profile-page { ...@@ -72,37 +73,28 @@ body.user-profile-page {
margin-bottom: 30px; margin-bottom: 30px;
li { li {
background-position: 10px center; background-position: 10px -10px;
background-repeat: no-repeat; background-repeat: no-repeat;
@include border-radius(4px);
display: inline-block; display: inline-block;
height: 20px; padding: 2px 10px 2px 40px;
padding: 10px 10px 10px 40px; margin-bottom: lh(.5);
border: 1px solid lighten($border-color, 10%);
&.up { &.up {
background-color:#d1e3a8; background-image: url(../images/askbot/vote-arrow-up.png);
background-image: url(../images/askbot/vote-arrow-up-activate.png);
margin-right: 6px; margin-right: 6px;
span.vote-count {
color: #3f6c3e;
}
} }
&.down { &.down {
background-image: url(../images/askbot/vote-arrow-down-activate.png); background-image: url(../images/askbot/vote-arrow-down.png);
background-color:#eac6ad;
span.vote-count {
color: $mit-red;
}
} }
} }
} }
&.badges { &.badges {
@include inline-block(); @include inline-block();
padding: 0;
margin: 0;
a { a {
background-color: #e3e3e3; background-color: #e3e3e3;
......
// Styles for the single question view // Styles for the single question view
div.question-header { div.question-header {
@include clearfix();
div.official-stamp { div.official-stamp {
background: $mit-red; background: $mit-red;
color: #fff; color: #fff;
font-size: 12px; font-size: 12px;
margin-left: -1px;
margin-top: 10px; margin-top: 10px;
padding: 2px 5px; padding: 2px 5px;
text-align: center; text-align: center;
margin-left: -1px;
} }
div.vote-buttons { div.vote-buttons {
...@@ -19,40 +20,40 @@ div.question-header { ...@@ -19,40 +20,40 @@ div.question-header {
width: flex-grid(0.7,9); width: flex-grid(0.7,9);
ul { ul {
padding: 0;
margin: 0;
li { li {
background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
cursor: pointer; color: #999;
font-size: em(20);
font-weight: bold; font-weight: bold;
height: 20px;
list-style: none; list-style: none;
padding: 10px;
text-align: center; text-align: center;
width: 70%;
&.post-vote {
@include border-radius(4px);
@include box-shadow(inset 0 1px 0px #fff);
}
&.question-img-upvote, &.answer-img-upvote { &.question-img-upvote, &.answer-img-upvote {
background-image: url(../images/askbot/vote-arrow-up.png); background-image: url(../images/askbot/vote-arrow-up.png);
@include box-shadow(inset 0 1px 0px rgba(255, 255, 255, 0.5)); background-position: center 0;
cursor: pointer;
height: 12px;
margin-bottom: lh(.5);
&:hover, &.on { &:hover, &.on {
background-color:#d1e3a8; background-image: url(../images/askbot/vote-arrow-up.png);
border-color: darken(#D1E3A8, 20%); background-position: center -22px;
background-image: url(../images/askbot/vote-arrow-up-activate.png);
} }
} }
&.question-img-downvote, &.answer-img-downvote { &.question-img-downvote, &.answer-img-downvote {
cursor: pointer;
background-image: url(../images/askbot/vote-arrow-down.png); background-image: url(../images/askbot/vote-arrow-down.png);
background-position: center 0;
height: 12px;
margin-top: lh(.5);
&:hover, &.on { &:hover, &.on {
background-color:#EAC6AD; background-image: url(../images/askbot/vote-arrow-down.png);
border-color: darken(#EAC6AD, 20%); background-position: center -22px;
background-image: url(../images/askbot/vote-arrow-down-activate.png);
} }
} }
} }
...@@ -66,6 +67,11 @@ div.question-header { ...@@ -66,6 +67,11 @@ div.question-header {
h1 { h1 {
margin-top: 0; margin-top: 0;
font-weight: 100;
a {
font-weight: 100;
}
} }
div.meta-bar { div.meta-bar {
...@@ -89,10 +95,8 @@ div.question-header { ...@@ -89,10 +95,8 @@ div.question-header {
width: flex-grid(4,8); width: flex-grid(4,8);
a { a {
&.question-delete { @extend a:link;
text-decoration: none; cursor: pointer;
cursor: pointer;
}
} }
span.sep { span.sep {
...@@ -333,7 +337,6 @@ div.question-header { ...@@ -333,7 +337,6 @@ div.question-header {
} }
div.controls { div.controls {
border-top: 1px solid #efefef;
text-align: right; text-align: right;
a { a {
......
...@@ -10,6 +10,7 @@ div.question-list-header { ...@@ -10,6 +10,7 @@ div.question-list-header {
h1 { h1 {
margin: 0; margin: 0;
font-size: 1em; font-size: 1em;
font-weight: 100;
> a.light-button { > a.light-button {
float: right; float: right;
......
...@@ -216,19 +216,20 @@ div.discussion-wrapper aside { ...@@ -216,19 +216,20 @@ div.discussion-wrapper aside {
} }
div.karma { div.karma {
background: #eee; border: 1px solid $border-color;
border: 1px solid #D3D3D3;
@include border-radius(3px);
@include box-sizing(border-box); @include box-sizing(border-box);
@include box-shadow(inset 0 0 0 1px #fff, 0 1px 0 #fff);
padding: lh(.4) 0; padding: lh(.4) 0;
text-align: center; text-align: center;
width: flex-grid(1, 3); width: flex-grid(1, 3);
float: right; float: right;
strong { p {
display: block; text-align: center;
font-style: 20px;
strong {
display: block;
font-style: 20px;
}
} }
} }
...@@ -255,8 +256,6 @@ div.discussion-wrapper aside { ...@@ -255,8 +256,6 @@ div.discussion-wrapper aside {
overflow: visible; overflow: visible;
ul { ul {
font-size: 14px;
h2 { h2 {
margin:0 (-(lh())) 5px (-(lh())); margin:0 (-(lh())) 5px (-(lh()));
padding: lh(.5) lh(); padding: lh(.5) lh();
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
ul.tags { ul.tags {
list-style: none; list-style: none;
display: inline; display: inline;
padding: 0;
li, a { li, a {
position: relative; position: relative;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment