Commit 8dccef8da2e407d77d381b198f811c26bde74daa
1 parent
2bfeaf43
Exists in
master
and in
4 other branches
list-group começa fechado na versao mobile
Showing
3 changed files
with
7 additions
and
2 deletions
Show diff stats
src/app/components/category-list/category-list.directive.js
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, |