Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f38e6e7

Browse files
Robert Messerlenaomiblack
authored andcommitted
cleans up various alignment and layout issues
1 parent cc93456 commit f38e6e7

File tree

12 files changed

+96
-77
lines changed

12 files changed

+96
-77
lines changed

public/api-builder/angular.io-package/templates/module.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
if slug != 'index'
1111
- var url = "/docs/" + current.path[1] + "/" + current.path[2] + "/" + current.path[3] + "/" + current.path[4] + "/" + slug + ".html"
1212

13-
li.c8
13+
li
1414
!= partial("../../../../../_includes/_hover-card", {name: page.title, url: url })
1515

1616
{% endblock %}

public/docs/dart/latest/guide/index.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- var number = 1;
2-
ul.is-plain.l-offset-page-header
2+
ul.is-plain
33
for page, slug in public.docs[current.path[1]][current.path[2]].guide._data
44

55
if slug != '_listtype' && slug != 'index'

public/docs/dart/latest/index.jade

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1+
div.card-row(layout='row')
2+
div(flex)
3+
md-card.card
4+
md-card-content
5+
h3.text-headline.text-uppercase <span class="icon-query-builder"></span> Quickstart
6+
p.text-body Learn in 5 minutes
17

2-
div.c4
3-
md-card.card
4-
md-card-content
5-
h3.text-headline.text-uppercase <span class="icon-query-builder"></span> Quickstart
6-
p.text-body Learn in 5 minutes
8+
footer
9+
a(href="/docs/#{current.path[1]}/#{current.path[2]}/quickstart.html" class="button" md-button) View Quickstart
710

8-
footer
9-
a(href="/docs/#{current.path[1]}/#{current.path[2]}/quickstart.html" class="button" md-button) View Quickstart
1011

12+
div(flex)
13+
md-card.card
14+
md-card-content
15+
h3.text-headline.text-uppercase <span class="icon-list"></span> Guide
16+
p.text-body Step by Step Guide
1117

12-
div.c4
13-
md-card.card
14-
md-card-content
15-
h3.text-headline.text-uppercase <span class="icon-list"></span> Guide
16-
p.text-body Step by Step Guide
18+
footer
19+
a(href="/docs/#{current.path[1]}/#{current.path[2]}/guide/" class="button button-primary" md-button) View Guide
1720

18-
footer
19-
a(href="/docs/#{current.path[1]}/#{current.path[2]}/guide/" class="button button-primary" md-button) View Guide
2021

22+
div(flex)
23+
md-card.card
24+
md-card-content
25+
h3.text-headline.text-uppercase <span class="icon-book"></span> API
26+
p.text-body API 2.0 Preview
2127

22-
div.c4
23-
md-card.card
24-
md-card-content
25-
h3.text-headline.text-uppercase <span class="icon-book"></span> API
26-
p.text-body API 2.0 Preview
27-
28-
footer
29-
a(href="/docs/#{current.path[1]}/#{current.path[2]}/api/" class="button" md-button) View API
28+
footer
29+
a(href="/docs/#{current.path[1]}/#{current.path[2]}/api/" class="button" md-button) View API
3030

public/docs/js/latest/api/index.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.callout.is-helpful.l-offset-page-header
1+
.callout.is-helpful
22
header Developer Preview
33

44
p.
@@ -7,7 +7,7 @@
77
in the development community. If you're building a production app today, please
88
<a href="https://docs.angularjs.org/api">use Angular 1.X</a>.
99

10-
ul.is-plain.l-offset-page-header
10+
ul.is-plain
1111
for page, slug in public.docs[current.path[1]][current.path[2]].api
1212
if slug != 'index' && slug != '_contents' && slug != '_data'
1313

public/docs/js/latest/guide/index.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- var number = 1;
2-
ul.is-plain.l-offset-page-header
2+
ul.is-plain
33
for page, slug in public.docs[current.path[1]][current.path[2]].guide._data
44

55
if slug != '_listtype' && slug != 'index'

public/docs/js/latest/index.jade

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1+
div.card-row(layout='row')
2+
div(flex)
3+
md-card.card
4+
md-card-content
5+
h3.text-headline.text-uppercase <span class="icon-query-builder"></span> Quickstart
6+
p.text-body Learn in 5 minutes
17

2-
div.c4
3-
md-card.card
4-
md-card-content
5-
h3.text-headline.text-uppercase <span class="icon-query-builder"></span> Quickstart
6-
p.text-body Learn in 5 minutes
8+
footer
9+
a(href="/docs/#{current.path[1]}/#{current.path[2]}/quickstart.html" class="button" md-button) View Quickstart
710

8-
footer
9-
a(href="/docs/#{current.path[1]}/#{current.path[2]}/quickstart.html" class="button" md-button) View Quickstart
1011

12+
div(flex)
13+
md-card.card
14+
md-card-content
15+
h3.text-headline.text-uppercase <span class="icon-list"></span> Guide
16+
p.text-body Step by Step Guide
1117

12-
div.c4
13-
md-card.card
14-
md-card-content
15-
h3.text-headline.text-uppercase <span class="icon-list"></span> Guide
16-
p.text-body Step by Step Guide
18+
footer
19+
a(href="/docs/#{current.path[1]}/#{current.path[2]}/guide/" class="button button-primary" md-button) View Guide
1720

18-
footer
19-
a(href="/docs/#{current.path[1]}/#{current.path[2]}/guide/" class="button button-primary" md-button) View Guide
2021

22+
div(flex)
23+
md-card.card
24+
md-card-content
25+
h3.text-headline.text-uppercase <span class="icon-book"></span> API Preview
26+
p.text-body API 2.0 Preview
2127

22-
div.c4
23-
md-card.card
24-
md-card-content
25-
h3.text-headline.text-uppercase <span class="icon-book"></span> API Preview
26-
p.text-body API 2.0 Preview
27-
28-
footer
29-
a(href="/docs/#{current.path[1]}/#{current.path[2]}/api/" class="button" md-button) View API
28+
footer
29+
a(href="/docs/#{current.path[1]}/#{current.path[2]}/api/" class="button" md-button) View API
3030

public/docs/ts/latest/guide/index.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- var number = 1;
2-
ul.is-plain.l-offset-page-header
2+
ul.is-plain
33
for page, slug in public.docs[current.path[1]][current.path[2]].guide._data
44

55
if slug != '_listtype' && slug != 'index'

public/docs/ts/latest/index.jade

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1+
div.card-row(layout='row')
2+
div(flex)
3+
md-card.card
4+
md-card-content
5+
h3.text-headline.text-uppercase <span class="icon-query-builder"></span> Quickstart
6+
p.text-body Learn in 5 minutes
17

2-
div.c4
3-
md-card.card
4-
md-card-content
5-
h3.text-headline.text-uppercase <span class="icon-query-builder"></span> Quickstart
6-
p.text-body Learn in 5 minutes
8+
footer
9+
a(href="/docs/#{current.path[1]}/#{current.path[2]}/quickstart.html" class="button" md-button) View Quickstart
710

8-
footer
9-
a(href="/docs/#{current.path[1]}/#{current.path[2]}/quickstart.html" class="button" md-button) View Quickstart
1011

12+
div(flex)
13+
md-card.card
14+
md-card-content
15+
h3.text-headline.text-uppercase <span class="icon-list"></span> Guide
16+
p.text-body Step by Step Guide
1117

12-
div.c4
13-
md-card.card
14-
md-card-content
15-
h3.text-headline.text-uppercase <span class="icon-list"></span> Guide
16-
p.text-body Step by Step Guide
18+
footer
19+
a(href="/docs/#{current.path[1]}/#{current.path[2]}/guide/" class="button button-primary" md-button) View Guide
1720

18-
footer
19-
a(href="/docs/#{current.path[1]}/#{current.path[2]}/guide/" class="button button-primary" md-button) View Guide
2021

22+
div(flex)
23+
md-card.card
24+
md-card-content
25+
h3.text-headline.text-uppercase <span class="icon-book"></span> API Preview
26+
p.text-body API 2.0 Preview
2127

22-
div.c4
23-
md-card.card
24-
md-card-content
25-
h3.text-headline.text-uppercase <span class="icon-book"></span> API Preview
26-
p.text-body API 2.0 Preview
27-
28-
footer
29-
a(href="/docs/#{current.path[1]}/#{current.path[2]}/api/" class="button" md-button) View API
28+
footer
29+
a(href="/docs/#{current.path[1]}/#{current.path[2]}/api/" class="button" md-button) View API
3030

public/resources/css/base/_type.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,19 @@ table th,
105105
font-weight: 400;
106106
opacity: .87;
107107
line-height: 28px;
108+
padding: 0;
108109

109110
&.is-plain {
110111
list-style-type: none;
111112
padding: 0px;
112113
}
113114
}
114115

116+
.docs-content ul,
117+
.docs-content ol {
118+
padding-left: ($unit * 4);
119+
}
120+
115121
.l-sub-section p,
116122
table td {
117123
font-size: 14px;
@@ -161,3 +167,12 @@ table td {
161167
.docs-content .l-sub-section aside {
162168
background: $snow;
163169
}
170+
171+
.docs-content .card-row {
172+
> div:first-child > .card {
173+
margin-left: 0;
174+
}
175+
> div:last-child > .card {
176+
margin-right: 0;
177+
}
178+
}

public/resources/css/module/_banner.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
.banner {
88
background: $mist;
9-
padding: ($unit * 4) ($unit * 4) ($unit * 4) ($unit * 12);
9+
padding: ($unit * 4) ($unit * 6);
1010
min-height: $unit * 12;
1111

1212
@media handheld and (max-width: $phone-breakpoint),

public/resources/css/module/_dropdown.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
cursor: pointer;
1313
position: relative;
1414
z-index: $layer-1;
15+
opacity: 0.87;
1516

1617
.icon {
1718
position: absolute;
@@ -31,6 +32,8 @@
3132
left: 0px;
3233
z-index: $layer-5;
3334
display: none;
35+
border-radius: 3px;
36+
overflow: hidden;
3437

3538
ul {
3639
list-style-type: none;

public/resources/css/module/_hero.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$hero-padding: $unit * 2;
1+
$hero-padding: ($unit * 10) ($unit * 6) ($unit * 5);
22

33
.hero {
44
position: relative;
@@ -14,6 +14,7 @@ $hero-padding: $unit * 2;
1414

1515
&.is-large {
1616
height: 478px;
17+
padding-top: ($unit * 2);
1718
text-align: center;
1819

1920
@media handheld and (max-width: $phone-breakpoint),
@@ -25,7 +26,7 @@ $hero-padding: $unit * 2;
2526

2627
.hero-title {
2728
text-transform: uppercase;
28-
margin: ($unit * 9) 0px 0px ($unit * 10);
29+
margin: 0;
2930
opacity: .87;
3031

3132
&.is-standard-case {
@@ -40,8 +41,8 @@ $hero-padding: $unit * 2;
4041
}
4142

4243
.hero-subtitle {
43-
margin: 0px 0px 0px ($unit * 10);
44-
opacity: .87;
44+
margin: 0;
45+
opacity: 1;
4546

4647
@media handheld and (max-width: $phone-breakpoint),
4748
screen and (max-device-width: $phone-breakpoint),

0 commit comments

Comments
 (0)