mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-30 00:28:00 +01:00
Tweaked a few UI elements :/
This commit is contained in:
parent
b586c31a77
commit
9b6babed31
7 changed files with 43 additions and 24 deletions
|
@ -1,7 +1,7 @@
|
|||
<ul class="tabs fixed">
|
||||
<li ui-sref-active="active"><a ui-sref=".about">About Pony.fm</a></li>
|
||||
<li ui-sref-active="active"><a ui-sref=".faq">FAQ</a></li>
|
||||
<li ui-sref-active="active"><a ui-sref=".mlpforums-advertising-program">MLP Forums Advertising Program</a></li>
|
||||
</ul>
|
||||
<md-tabs class="about-tabs" md-selected="selectedTab" md-border-bottom>
|
||||
<md-tab ui-sref=".about" name="about">About Pony.fm</md-tab>
|
||||
<md-tab ui-sref=".faq" name="faq">FAQ</md-tab>
|
||||
<md-tab ui-sref=".mlpforums-advertising-program" name="advertising">MLP Forums Advertising Program</md-tab>
|
||||
</md-tabs>
|
||||
|
||||
<ui-view class="static-page fixed-tabs"></ui-view>
|
||||
|
|
|
@ -1,16 +1,11 @@
|
|||
<ul class="dropdowns">
|
||||
<li class="dropdown filterable" ng-class="{'has-filter': !query.filters.sort.isDefault}">
|
||||
<a class="dropdown-toggle btn btn-default" bs-dropdown>
|
||||
Order: <strong>{{query.filters.sort.title}}</strong>
|
||||
</a>
|
||||
<a class="btn btn-default" pfm-eat-click ng-click="clearFilter('sort')"><i class="material-icons">remove</i></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li ng-repeat="filter in ::filters.sort.values track by $index" ng-class="{selected: filter == query.filters.sort}">
|
||||
<a pfm-eat-click href="#" ng-click="setFilter('sort', filter)">{{::filter.title}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div layout="row">
|
||||
<md-input-container flex="100" flex-sm="50" flex-gt-sm="25">
|
||||
<label>Order by</label>
|
||||
<md-select ng-model="filter" md-on-close="handleSingularDropdown('sort', filter)">
|
||||
<md-option ng-repeat="filter in ::filters.sort.values track by $index" value="{{filter}}">{{::filter.title}}</md-option>
|
||||
</md-select>
|
||||
</md-input-container>
|
||||
</div>
|
||||
|
||||
<div class="pagination" ng-if="totalPages > 1">
|
||||
<ul>
|
||||
|
|
|
@ -27,6 +27,19 @@ module.exports = angular.module('ponyfm').controller "playlists", [
|
|||
$scope.query = playlists.mainQuery
|
||||
$scope.filters = playlists.filters
|
||||
|
||||
filterDropdown = (newVar, oldVar) ->
|
||||
if newVar instanceof Array && oldVar instanceof Array
|
||||
if 'any' in newVar
|
||||
if !('any' in oldVar)
|
||||
newVar = ['any']
|
||||
else if newVar.length > oldVar.length
|
||||
anyIndex = newVar.indexOf('any')
|
||||
newVar.splice(anyIndex, 1)
|
||||
|
||||
$scope.handleSingularDropdown = (filter, value) ->
|
||||
$scope.clearFilter filter
|
||||
$scope.setFilter filter, JSON.parse(value)
|
||||
|
||||
$scope.setFilter = (filter, value) ->
|
||||
$scope.query.setFilter filter, value
|
||||
$state.transitionTo 'content.playlists.list', {filter: $scope.query.toFilterString()}
|
||||
|
|
|
@ -100,6 +100,7 @@
|
|||
left: 64px;
|
||||
width: 100%;
|
||||
width: ~"calc(100% - 64px)";
|
||||
outline: 0;
|
||||
|
||||
.bar {
|
||||
z-index: 500;
|
||||
|
|
2
resources/assets/styles/content.less
vendored
2
resources/assets/styles/content.less
vendored
|
@ -643,7 +643,7 @@ html {
|
|||
.counter {
|
||||
position: absolute;
|
||||
bottom: 8px;
|
||||
right: 90px;
|
||||
right: 5px;
|
||||
font-size: 8pt;
|
||||
color: #fff;
|
||||
background: #b885bd;
|
||||
|
|
4
resources/assets/styles/layout.less
vendored
4
resources/assets/styles/layout.less
vendored
|
@ -359,6 +359,10 @@ header {
|
|||
}
|
||||
}
|
||||
|
||||
.about-tabs {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.checkboxes md-input-container {
|
||||
margin-top: 8px;
|
||||
margin-bottom: 0;
|
||||
|
|
14
resources/assets/styles/mobile.less
vendored
14
resources/assets/styles/mobile.less
vendored
|
@ -444,13 +444,19 @@
|
|||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.info {
|
||||
margin-left: 0;
|
||||
margin-top: 15px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.info {
|
||||
margin-left: 0;
|
||||
margin-top: 15px;
|
||||
text-align: center;
|
||||
.cover {
|
||||
display: block !important;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.buttons {
|
||||
|
|
Loading…
Reference in a new issue