From 088779b6e9151e4c97287c0c19b53d9c5877c825 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Thu, 28 Nov 2013 12:12:00 -0600 Subject: [PATCH] Removed more fixed stuff for tabs, etc. --- dist/css/ionic.css | 5 ---- dist/js/ionic-angular.js | 21 +++------------- js/ext/angular/src/directive/ionicContent.js | 21 +++------------- js/ext/angular/test/content.html | 25 ++++++++++++++++++-- scss/_tabs.scss | 6 ----- 5 files changed, 29 insertions(+), 49 deletions(-) diff --git a/dist/css/ionic.css b/dist/css/ionic.css index 4a5fbaf4a1..48acc5fd5b 100644 --- a/dist/css/ionic.css +++ b/dist/css/ionic.css @@ -3051,8 +3051,6 @@ a.subdued { background-image: linear-gradient(0deg, #b2b2b2, #b2b2b2 50%, transparent 50%); border-color: #b2b2b2; color: #444444; - position: absolute; - bottom: 0; z-index: 5; width: 100%; height: 49px; @@ -3114,9 +3112,6 @@ a.subdued { background-size: 100% 1px; background-repeat: no-repeat; } } -.tabs-top { - top: 44px; } - .tab-item { -webkit-box-flex: 1; -webkit-flex: 1; diff --git a/dist/js/ionic-angular.js b/dist/js/ionic-angular.js index 8bd9ae37e2..4bd47d427d 100644 --- a/dist/js/ionic-angular.js +++ b/dist/js/ionic-angular.js @@ -656,25 +656,10 @@ angular.module('ionic.ui.content', []) }, compile: function(element, attr, transclude) { return function($scope, $element, $attr) { - var - c = $element.eq(0), - clone, - sc, - sv, - addedPadding = false; + var clone, sc, sv; - if(attr.hasHeader == "true") { - c.addClass('has-header'); - } - if(attr.hasSubheader == "true") { - c.addClass('has-subheader'); - } - if(attr.hasFooter == "true") { - c.addClass('has-footer'); - } - if(attr.hasTabs == "true") { - c.addClass('has-tabs'); - } + var addedPadding = false; + var c = $element.eq(0); if(attr.refreshComplete) { $scope.refreshComplete = function() { diff --git a/js/ext/angular/src/directive/ionicContent.js b/js/ext/angular/src/directive/ionicContent.js index e9f9a8fa39..fb0db2b440 100644 --- a/js/ext/angular/src/directive/ionicContent.js +++ b/js/ext/angular/src/directive/ionicContent.js @@ -32,25 +32,10 @@ angular.module('ionic.ui.content', []) }, compile: function(element, attr, transclude) { return function($scope, $element, $attr) { - var - c = $element.eq(0), - clone, - sc, - sv, - addedPadding = false; + var clone, sc, sv; - if(attr.hasHeader == "true") { - c.addClass('has-header'); - } - if(attr.hasSubheader == "true") { - c.addClass('has-subheader'); - } - if(attr.hasFooter == "true") { - c.addClass('has-footer'); - } - if(attr.hasTabs == "true") { - c.addClass('has-tabs'); - } + var addedPadding = false; + var c = $element.eq(0); if(attr.refreshComplete) { $scope.refreshComplete = function() { diff --git a/js/ext/angular/test/content.html b/js/ext/angular/test/content.html index 46c16838be..b2012ff948 100644 --- a/js/ext/angular/test/content.html +++ b/js/ext/angular/test/content.html @@ -69,8 +69,6 @@ on-refresh="onRefresh()" on-refresh-opening="onRefreshOpening(amount)" refresh-complete="refreshComplete" - has-header="true" - has-footer="true" >