added stars [ci skip]
This commit is contained in:
parent
d64eb529d2
commit
51a6a3c8a3
4 changed files with 16 additions and 8 deletions
BIN
app/assets/images/buttons/star_faved.png
Normal file
BIN
app/assets/images/buttons/star_faved.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
BIN
app/assets/images/buttons/star_not_faved.png
Normal file
BIN
app/assets/images/buttons/star_not_faved.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
|
|
@ -20,7 +20,21 @@
|
|||
|
||||
.canvas-frame .fav {
|
||||
@include transition(opacity);
|
||||
@include opacity(0)
|
||||
@include opacity(0);
|
||||
|
||||
background-image : image_url('buttons/star_not_faved.png');
|
||||
background-size : 30px 30px;
|
||||
height : 30px;
|
||||
width : 30px;
|
||||
|
||||
&.faved {
|
||||
background-image : image_url('buttons/star_faved.png');
|
||||
}
|
||||
|
||||
&:hover {
|
||||
text-decoration : none;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* functionality under edit mode */
|
||||
|
|
|
|||
|
|
@ -1,12 +1,6 @@
|
|||
<div class="content">
|
||||
|
||||
<a href="#" class="fav">
|
||||
{{#if favorite}}
|
||||
NOT WORTHY
|
||||
{{else}}
|
||||
FAVE IT
|
||||
{{/ if}}
|
||||
</a>
|
||||
<a href="#" class="fav {{#if favorite}}faved{{/if}}"></a>
|
||||
|
||||
{{#if photos}}
|
||||
<div class="image-container">
|
||||
|
|
|
|||
Loading…
Reference in a new issue