Add responsiveness (First draft)

This commit is contained in:
Benoit Favreault
2015-03-26 09:58:09 -04:00
committed by Francis Lachapelle
parent 516e5fd303
commit 48b74b0f6b
19 changed files with 275 additions and 96 deletions
+8 -2
View File
@@ -91,9 +91,9 @@
'hue-3': 'A700'
})
.accentPalette('sogo-green', {
'default': '300',
'default': '500',
'hue-1': '200',
'hue-2': '500',
'hue-2': '300',
'hue-3': 'A700'
})
.backgroundPalette('sogo-paper', {
@@ -146,6 +146,12 @@
templateUrl: 'bottomSheetTemplate.html'
});
};
$scope.toggleDetailView = function() {
$timeout(function() {
var view = angular.element(document.getElementById('detailView'));
view.toggleClass('sg-open');
})
};
$scope.$watch(function() {
return $mdMedia(sgConstant['gt-md']);
},