# HG changeset patch # User Chloe Laisne # Date 1468335492 -7200 # Node ID 5fd45a9fdacb5459c44d3657ba032a7278750f6d # Parent 69a9f3687902e942a9d9d7ece8d22673bbde9978 Voir plus button styling diff -r 69a9f3687902 -r 5fd45a9fdacb cms/app-client/app/components/sorting-component.js --- a/cms/app-client/app/components/sorting-component.js Tue Jul 12 09:48:11 2016 +0200 +++ b/cms/app-client/app/components/sorting-component.js Tue Jul 12 16:58:12 2016 +0200 @@ -12,7 +12,7 @@ minimum: Ember.computed('themes', function() { return Math.min(...this.themes.mapBy('count')); }), maximum: Ember.computed('themes', function() { return Math.max(...this.themes.mapBy('count')); }), - loader: true, + more: true, themes: [], themesObserver: Ember.observer('themes.@each', function() { @@ -39,12 +39,12 @@ this.set('isAlphabetical', false); this.sendAction('sort', 'descending'); } - this.set('loader', true); + this.set('more', true); }, loadMore: function() { this.sendAction('load'); - this.set('loader', false); + this.set('more', false); } } diff -r 69a9f3687902 -r 5fd45a9fdacb cms/app-client/app/styles/components/sorting-component.scss --- a/cms/app-client/app/styles/components/sorting-component.scss Tue Jul 12 09:48:11 2016 +0200 +++ b/cms/app-client/app/styles/components/sorting-component.scss Tue Jul 12 16:58:12 2016 +0200 @@ -5,7 +5,9 @@ .sorting-component div.options { text-align: right; - color: $dark-blue; + color: $medium-blue; + font-size: 13px; + line-height: 40px; } .sorting-component ul { @@ -33,8 +35,12 @@ bottom: 0px; } +.sorting-component div.tags.hasMore ul { + position: static; +} + .sorting-component ul li { - font-size: 12px; + font-size: 13px; } .sorting-component div.options ul li, @@ -67,4 +73,17 @@ .sorting-component div.options ul li.active { font-weight: bold; -} \ No newline at end of file +} + +.sorting-component div.tags .more { + display: block; + border: none; + outline: none; + padding: 0 15px; + margin: 0 auto; + font-size: 13px; + line-height: 40px; + background-color: $medium-blue; + color: $light-white; + cursor: pointer; +} diff -r 69a9f3687902 -r 5fd45a9fdacb cms/app-client/app/templates/components/sorting-component.hbs --- a/cms/app-client/app/templates/components/sorting-component.hbs Tue Jul 12 09:48:11 2016 +0200 +++ b/cms/app-client/app/templates/components/sorting-component.hbs Tue Jul 12 16:58:12 2016 +0200 @@ -8,11 +8,11 @@ -
+
    {{#each themes as |theme|}}
  • {{ theme.label }} ({{ theme.count }})
  • {{/each }}
- {{#if loader}}{{/if}} + {{#if more}}{{/if}}
\ No newline at end of file