adds icons of answerable on polls index

This commit is contained in:
Alberto Garcia Cabeza
2017-02-03 14:23:26 +01:00
parent cef9bf600c
commit 6728fe6751
4 changed files with 93 additions and 2 deletions

View File

@@ -1368,6 +1368,63 @@ ul.ballot-list {
.poll {
padding: $line-height;
position: relative;
.icon-poll-answer {
border-top: 0;
border-bottom: 60px solid transparent;
height: 0;
position: absolute;
right: 0;
top: 0;
width: 0;
&.can-answer:after,
&.cant-answer:after,
&.not-logged-in:after,
&.unverified:after {
font-family: "icons" !important;
left: 34px;
position: absolute;
top: 5px;
}
&.can-answer {
border-right: 60px solid $success-bg;
&:after {
color: $color-success;
content: "\59";
}
}
&.cant-answer {
border-right: 60px solid $warning-bg;
&:after {
color: $color-warning;
content: "\76";
}
}
&.not-logged-in {
border-right: 60px solid $info-bg;
&:after {
color: $color-info;
content: "\6f";
}
}
&.unverified {
border-right: 60px solid $warning-bg;
&:after {
color: $color-warning;
content: "\6f";
}
}
}
.dates {
color: $text-medium;
@@ -1375,6 +1432,7 @@ ul.ballot-list {
@include breakpoint(medium) {
float: right;
margin-right: $line-height;
}
}