Commit 8dccef8da2e407d77d381b198f811c26bde74daa

Authored by Matheus Machado Monteiro - SUPDE/DEDES/DEDS1
1 parent 2bfeaf43

list-group começa fechado na versao mobile

src/app/components/category-list/category-list.directive.js
@@ -74,7 +74,6 @@ @@ -74,7 +74,6 @@
74 if(!vm._listGroup){ 74 if(!vm._listGroup){
75 vm._listGroup = vm.$element.find('.list-group'); 75 vm._listGroup = vm.$element.find('.list-group');
76 } 76 }
77 -  
78 vm._listGroup.slideToggle(); 77 vm._listGroup.slideToggle();
79 }; 78 };
80 79
src/app/components/category-list/category-list.html
@@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
7 </h3> 7 </h3>
8 8
9 <!-- <div class="list-group ng-hide" ng-show="!vm.isCollapsed" ng-class="vm.selectedCategory.slug"> --> 9 <!-- <div class="list-group ng-hide" ng-show="!vm.isCollapsed" ng-class="vm.selectedCategory.slug"> -->
10 - <div class="list-group" ng-class="vm.selectedCategory.slug"> 10 + <div class="list-group is-mobile" ng-class="vm.selectedCategory.slug">
11 <button type="button" class="list-group-item category-list--item" 11 <button type="button" class="list-group-item category-list--item"
12 ng-repeat="category in vm.categories" 12 ng-repeat="category in vm.categories"
13 ng-class="{active: vm.selectedCategory.slug === category.slug}" 13 ng-class="{active: vm.selectedCategory.slug === category.slug}"
src/app/components/category-list/category-list.scss
@@ -124,6 +124,12 @@ @@ -124,6 +124,12 @@
124 // height: 0; 124 // height: 0;
125 // line-height: 0; 125 // line-height: 0;
126 } 126 }
  127 +
  128 + &.is-mobile {
  129 + @media(max-width: $screen-sm) {
  130 + display: none;
  131 + }
  132 + }
127 } 133 }
128 134
129 .list-group-item.active, 135 .list-group-item.active,