diff --git a/docs/app/assets/css/docs.css b/docs/app/assets/css/docs.css index ea7821d1c61e..e1b86fb79611 100644 --- a/docs/app/assets/css/docs.css +++ b/docs/app/assets/css/docs.css @@ -218,9 +218,8 @@ code.highlighted { .picker { position: relative; - width: auto; + width: 100%; display: inline-block; - margin: 0 0 2px 1.2%; overflow: hidden; border: 1px solid #e5e5e5; -webkit-border-radius: 4px; @@ -243,8 +242,7 @@ code.highlighted { display: block; min-width: 100%; width: 120%; - height: 34px; - padding: 6px 30px 6px 15px; + padding: 6px 30px 6px 25px; color: #555555; border: none; background: transparent; @@ -410,10 +408,6 @@ iframe.example { position:relative; } -.main-body-grid .side-navigation.ng-hide { - display:block!important; -} - .variables-matrix td { vertical-align:top; padding:5px; @@ -514,7 +508,6 @@ h4 { .btn { color:#428bca; position: relative; - width: auto; display: inline-block; margin: 0 0 2px; overflow: hidden; @@ -586,7 +579,7 @@ ul.events > li { @media only screen and (max-width : 768px) { .picker, .picker select { - width:auto; + width:100%; display:block; margin-bottom:10px; } @@ -621,12 +614,6 @@ ul.events > li { .main-body-grid > .grid-right { margin-left:0; } - .main-body-grid .side-navigation { - display:block!important; - } - .main-body-grid .side-navigation.ng-hide { - display:none!important; - } .nav-index-group .nav-index-listing { display:inline-block; padding:3px 0; diff --git a/docs/app/src/versions.js b/docs/app/src/versions.js index 701f41d38cb1..e9b071e671c2 100644 --- a/docs/app/src/versions.js +++ b/docs/app/src/versions.js @@ -4,11 +4,23 @@ angular.module('versions', []) $scope.docs_versions = NG_VERSIONS; $scope.docs_version = NG_VERSIONS[0]; + for (var i = 0; i < NG_VERSIONS.length; i++) { + if ( NG_VERSIONS[i].isStable ) { + $scope.docs_stable_version = NG_VERSIONS[i]; + break; + } + } + + $scope.getGroupName = function(v) { + return v.isStable ? 'Stable' : 'Unstable'; + }; + + $scope.jumpToDocsVersion = function(version) { var currentPagePath = $location.path(); // TODO: We need to do some munging of the path for different versions of the API... - + $window.location = version.docsUrl + currentPagePath; }; diff --git a/docs/config/templates/indexPage.template.html b/docs/config/templates/indexPage.template.html index b5ec7122e015..b67755407bd9 100644 --- a/docs/config/templates/indexPage.template.html +++ b/docs/config/templates/indexPage.template.html @@ -173,23 +173,12 @@