Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 165f693

Browse files
alexwolfenaomiblack
authored andcommitted
Fixed shifting content on page load
Fixed shifting content when going from page to page in docs.
1 parent 9787a9f commit 165f693

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

public/_includes/_hero.jade

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,22 @@
33
- var headerTitle = title + (typeof varType !== 'undefined' ? (': ' + varType) : '');
44
- var capitalize = function capitalize(str) { return str.charAt(0).toUpperCase() + str.slice(1); }
55
- var useBadges = docType || stability;
6-
6+
77
if current.path[4] && current.path[3] == 'api'
88
- var textFormat = 'is-standard-case'
99

1010
header(class="hero background-sky")
11-
span(class="hero-title-with-badges" layout="row" layout-xs="column" layout-align="start center" layout-align-xs="start start")
12-
h1(class="hero-title text-display-1 #{textFormat}") #{headerTitle}
13-
if useBadges
14-
span(class="badges")
15-
if docType
16-
span(class="status-badge").
17-
#{capitalize(docType)}
18-
if stability
19-
span(layout="row" class="status-badge")
20-
// badge circle is filled based on stability by matching a css selector in _hero.scss
21-
span(class="status-circle status-#{stability}")
22-
span Stability: #{capitalize(stability)}
11+
h1(class="hero-title text-display-1 #{textFormat}") #{headerTitle}
12+
if useBadges
13+
span(class="badges")
14+
if docType
15+
span(class="status-badge").
16+
#{capitalize(docType)}
17+
if stability
18+
span(layout="row" class="status-badge")
19+
// badge circle is filled based on stability by matching a css selector in _hero.scss
20+
span(class="status-circle status-#{stability}")
21+
span Stability: #{capitalize(stability)}
2322

2423
if subtitle
2524
h2.hero-subtitle.text-subhead #{subtitle}

public/_includes/_version-dropdown.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ if language == 'dart'
6464

6565

6666
<!-- DROPDOWN BUTTON -->
67-
nav.hero-subtitle.text-subhead.dropdown
67+
nav.dropdown
6868
button(aria-label="Select a version of Angular" md-button class="dropdown-button" ng-click="appCtrl.toggleVersionMenu($event)") #{title} <span class="icon icon-arrow-drop-down"></span>
6969
div(class="overlay ng-hide" ng-click="appCtrl.toggleVersionMenu($event)" ng-show="appCtrl.showMenu")
7070

public/resources/css/module/_dropdown.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.dropdown {
22
position: relative;
33
z-index: $layer-1;
4+
margin: ($unit * 2) 0 0 0;
45

56
.dropdown-button {
67
background: rgba($snow, .1);

public/resources/css/module/_main-nav.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
width: 135px;
3535
overflow: hidden;
3636
text-indent: -3000px;
37-
margin-top: 0;
38-
margin-bottom: 0;
37+
margin:0;
38+
padding: 0;
3939

4040
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {
4141
background: url('/resources/images/logos/standard/[email protected]') 0px 8px no-repeat;
@@ -111,7 +111,9 @@
111111
background: none;
112112
border-radius: 0;
113113
position: relative;
114+
letter-spacing: 0.16px;
114115
margin: 0;
116+
min-width: auto;
115117

116118
&:hover {
117119
background: $ocean;

0 commit comments

Comments
 (0)