chg(torrents): change torrent overview edit button css

This commit is contained in:
OldHawk
2018-01-19 16:19:01 +08:00
parent 6453433950
commit ae1714bf7d
2 changed files with 30 additions and 9 deletions

View File

@@ -120,14 +120,32 @@
color: #efefef;
border-color: #ccc;
}
}
&.btn-mt-o-success {
.btn-mt-o-success {
color: @state-success-text;
border: solid 1px @state-success-text;
&:focus {
color: @state-success-text;
border: solid 1px @state-success-text;
&:focus {
color: @state-success-text;
border-color: @state-success-text;
}
border-color: @state-success-text;
}
}
.btn-mt-o-primary {
color: @brand-primary;
border: solid 1px @brand-primary;
&:focus {
color: @brand-primary;
border-color: @brand-primary;
}
}
.btn-mt-o-light {
color: #fff !important;
border: solid 1px #fff !important;
&:focus {
color: #fff !important;
border-color: #fff !important;
}
}

View File

@@ -187,9 +187,12 @@
ng-bind-html="vm.getOverviewMarkedContent(vm.TGI.getTorrentOverview(vm.torrentLocalInfo))">
</div>
</div>
<span class="edit-overview-div" ng-if="vm.isOwner(vm.torrentLocalInfo) || vm.user.isOper">
<a href="#" ng-click="vm.beginEditOverview(vm.torrentLocalInfo)">{{'EDIT_THIS_OVERVIEW' | translate}}</a>
</span>
<button class="btn btn-xs btn-mt-o" mouse-enter-toggle-class="btn-mt-o-light" base-class="btn-mt-o-primary"
ng-if="vm.isOwner(vm.torrentLocalInfo) || vm.user.isOper"
ng-click="vm.beginEditOverview(vm.torrentLocalInfo)">
{{'EDIT_THIS_OVERVIEW' | translate}}
</button>
</div>
</dd>
</div>