Initial work in restyling Quay to be more like CoreOS styles

This commit is contained in:
Joseph Schorr 2014-08-11 21:47:04 -04:00
parent b9c6c4c2f2
commit ab68126d8a
12 changed files with 408 additions and 215 deletions

View file

@ -1788,6 +1788,26 @@ quayApp.directive('quayShow', function($animate, Features, Config) {
});
quayApp.directive('quaySection', function($animate, $location, $rootScope) {
return {
priority: 590,
restrict: 'A',
link: function($scope, $element, $attr, ctrl, $transclude) {
var update = function() {
var result = $location.path().indexOf('/' + $attr.quaySection) == 0;
$animate[!result ? 'removeClass' : 'addClass']($element, 'active');
};
$scope.$watch(function(){
return $location.path();
}, update);
$scope.$watch($attr.quaySection, update);
}
};
});
quayApp.directive('quayClasses', function(Features, Config) {
return {
priority: 580,