调整 like 按钮的效果
This commit is contained in:
parent
12a23429d6
commit
db62889114
|
@ -1,5 +1,24 @@
|
||||||
.like-button {
|
.like-button {
|
||||||
|
color: #eaa296 !important;
|
||||||
|
background-color: transparent !important;
|
||||||
|
border: 1px solid #e79385 !important;
|
||||||
|
border-radius: 10rem;
|
||||||
|
&:hover {
|
||||||
|
background-color: #FCFF9E !important;
|
||||||
|
}
|
||||||
|
&:focus {
|
||||||
|
outline-style: none !important;
|
||||||
|
}
|
||||||
span {
|
span {
|
||||||
margin-left: 0.23rem;
|
margin-left: 0.23rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.like-button.liked {
|
||||||
|
background-color: #EAA296 !important;
|
||||||
|
color: #FFF !important;
|
||||||
|
&:focus {
|
||||||
|
outline-style: none !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,9 +17,9 @@ p ng-controller="LikesController" ng-cloak=""
|
||||||
button.like-button ng-show="! is_liked " ng-click="submit()"
|
button.like-button ng-show="! is_liked " ng-click="submit()"
|
||||||
|{{ count }}
|
|{{ count }}
|
||||||
span Like
|
span Like
|
||||||
button.like-button ng-show=" is_liked " ng-click="cancel()"
|
button.like-button.liked ng-show=" is_liked " ng-click="cancel()"
|
||||||
|{{ count }}
|
|{{ count }}
|
||||||
span Liked
|
span Like
|
||||||
div ng-controller = "QRCodesController"
|
div ng-controller = "QRCodesController"
|
||||||
.qrcode
|
.qrcode
|
||||||
a href="#" ng-model="qrcode" ng-init="qrcode=false" ng-click="show()"
|
a href="#" ng-model="qrcode" ng-init="qrcode=false" ng-click="show()"
|
||||||
|
|
Loading…
Reference in New Issue