Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 437b26f

Browse files
committed
add new fixed angular-strip
1 parent 851b394 commit 437b26f

File tree

3 files changed

+34
-222
lines changed

3 files changed

+34
-222
lines changed

docs/app/assets/css/angular-topnav.css

+1-212
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/app/assets/css/docs.css

+18-8
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ iframe.example {
302302
}
303303

304304
.search-results-container {
305+
position: relative;
305306
padding-bottom: 1em;
306307
border-top: 1px solid #111;
307308
background: #181818;
@@ -440,17 +441,17 @@ iframe.example {
440441
background: #f1f1f1;
441442
}
442443

443-
.sup-header {
444+
#navbar-sub {
444445
padding-top: 10px;
445446
padding-bottom: 5px;
446447
background: rgba(245,245,245,0.88);
447448
box-shadow: 0 0 2px #999;
448-
z-index: 1029;
449-
top: 56px;
449+
z-index: 1028;
450+
top: 83px;
450451
}
451452

452453
.main-body-grid {
453-
margin-top: 120px;
454+
margin-top: 144px;
454455
position: relative;
455456
}
456457

@@ -461,7 +462,7 @@ iframe.example {
461462

462463
.main-body-grid > .grid-left {
463464
position: fixed;
464-
top: 120px;
465+
top: 144px;
465466
bottom: 0;
466467
overflow: auto;
467468
}
@@ -858,7 +859,7 @@ iframe[name="example-anchoringExample"] {
858859
line-height: 48px;
859860
}
860861

861-
.navbar .navbar-inner {
862+
#navbar-main .navbar-inner, #navbar-notice .navbar-inner {
862863
box-shadow: none;
863864
}
864865

@@ -876,6 +877,7 @@ iframe[name="example-anchoringExample"] {
876877
overflow: auto;
877878
max-height: 85vh;
878879
padding-bottom: 0;
880+
position: static;
879881
}
880882

881883
.search-close {
@@ -895,9 +897,17 @@ iframe[name="example-anchoringExample"] {
895897
padding: 0 8px;
896898
}
897899

898-
.sup-header {
900+
.homepage #navbar-notice {
901+
top: 72px;
902+
}
903+
904+
#navbar-notice .navbar-inner {
905+
box-shadow: 0 0 3px rgba(0, 0, 0, .12), 0 3px 3px rgba(0, 0, 0, .24)
906+
}
907+
908+
#navbar-sub {
899909
position: relative;
900-
top: 0;
910+
top: 17px;
901911
margin-top: 80px;
902912
padding-bottom: 0;
903913
margin-bottom: 0;

docs/config/templates/app/indexPage.template.html

+15-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<body class="homepage">
7272
<div id="wrapper">
7373
<header class="header" scroll-y-offset-element>
74-
<nav class="navbar navbar-fixed-top">
74+
<nav id="navbar-main" class="navbar navbar-fixed-top">
7575
<div class="navbar-inner" ng-controller="DocsSearchCtrl">
7676
<div class="container">
7777
<h1 class="brand"><a href="http://angularjs.org"><img width="117" height="30" src="img/angularjs-for-header-only.svg" alt="AngularJS"></a></h1>
@@ -142,7 +142,20 @@ <h4 class="search-results-group-heading">{{ key }}</h4>
142142
</div>
143143
</div>
144144
</nav>
145-
<nav class="sup-header navbar navbar-fixed-top">
145+
<nav id="navbar-notice" class="navbar navbar-fixed-top">
146+
<div class="navbar-inner">
147+
<div class="container">
148+
<p class="site-notice visible-phone">
149+
This site refers to AngularJS (v1.x). <a href="https://angular.io/">Go to the latest Angular</a>.
150+
</p>
151+
<p class="site-notice visible-desktop">
152+
This site and all of its contents are referring to AngularJS (version 1.x),
153+
if you are looking for the latest Angular, please visit <a href="https://angular.io/">angular.io</a>.
154+
</p>
155+
</div>
156+
</div>
157+
</nav>
158+
<nav id="navbar-sub" class="sup-header navbar navbar-fixed-top">
146159
<div class="container main-grid main-header-grid">
147160
<div class="grid-left">
148161
<version-picker></version-picker>

0 commit comments

Comments
 (0)