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

Commit 0ae7ade

Browse files
author
Eric Jimenez
committed
feat(shorter lines): encapsulate all doc guides within a 10 sized column, including banners. Use showcase. Adjust for mobile
1 parent ba47da0 commit 0ae7ade

File tree

6 files changed

+30
-10
lines changed

6 files changed

+30
-10
lines changed

public/docs/_layout.jade

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,17 @@ html(lang="en" ng-app="angularIOApp" itemscope itemtype="http://schema.org/Frame
1919
else if current.path.indexOf('cheatsheet') > 0
2020
!= yield
2121
else
22-
article(class="l-content-small grid-fluid docs-content")
23-
!= yield
24-
25-
if (current.path[3] == 'guide' || current.path[3] == 'tutorial') && current.path[4]
26-
!= partial("../_includes/_next-item")
22+
if current.path[3] == 'index' || current.path[3] == 'styleguide'
23+
article(class="l-content-small grid-fluid docs-content")
24+
!= yield
25+
else
26+
article(class="l-content-small grid-fluid docs-content")
27+
div(class="c10")
28+
.showcase.shadow-1
29+
.showcase-content
30+
!= yield
31+
if (current.path[3] == 'guide' || current.path[3] == 'tutorial') && current.path[4]
32+
!= partial("../_includes/_next-item")
2733

2834
!= partial("../_includes/_footer")
2935
!= partial("../_includes/_scripts-include")

public/docs/dart/latest/cheatsheet.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
- var base = current.path[4] ? '.' : './guide';
2-
.banner
3-
p.text-body This cheat sheet is provisional and may change. Angular 2 is currently in Beta.
2+
.banner.grid-fluid
3+
p.text-body.c10 This cheat sheet is provisional and may change. Angular 2 is currently in Beta.
44

55
article(class="l-content-small grid-fluid docs-content")
66
.cheatsheet

public/docs/js/latest/cheatsheet.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
- var base = current.path[4] ? '.' : './guide';
2-
.banner
3-
p.text-body This cheat sheet is provisional and may change. Angular 2 is currently in Beta.
2+
.banner.grid-fluid
3+
p.text-body.c10 This cheat sheet is provisional and may change. Angular 2 is currently in Beta.
44

55
article(class="l-content-small grid-fluid docs-content")
66
.cheatsheet

public/resources/css/layout/_grids.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,18 @@ limitations under the License.
389389
width: auto;
390390
}
391391
}
392+
393+
@media handheld and (max-width: 480px), screen and (max-width: 480px), screen and (max-width: 480px) {
394+
/* line 22, ../scss/_responsive.scss */
395+
.grid-fixed .c1, .grid-fixed .c2, .grid-fixed .c3, .grid-fixed .c4, .grid-fixed .c5, .grid-fixed .c6, .grid-fixed .c7, .grid-fixed .c8, .grid-fixed .c9, .grid-fixed .c10, .grid-fixed .c11, .grid-fixed .c12, .grid-fluid .c1, .grid-fluid .c2, .grid-fluid .c3, .grid-fluid .c4, .grid-fluid .c5, .grid-fluid .c6, .grid-fluid .c7, .grid-fluid .c8, .grid-fluid .c9, .grid-fluid .c10, .grid-fluid .c11, .grid-fluid .c12 {
396+
margin-left: 0px;
397+
margin-right: 0px;
398+
float: none;
399+
display: block;
400+
width: auto;
401+
}
402+
}
403+
392404
@media handheld and (max-width: 900px), screen and (max-width: 900px) {
393405
/* line 6, ../scss/_responsive.scss */
394406
.grid-fixed, .grid-fluid {

public/resources/css/layout/_layout.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@
103103
@media handheld and (max-width: $phone-breakpoint),
104104
screen and (max-device-width: $phone-breakpoint),
105105
screen and (max-width: $tablet-breakpoint) {
106-
padding: ($unit * 3) ($unit * 2);
106+
padding: 0;
107+
padding-top: ($unit * 3);
107108
}
108109
}
109110

public/resources/css/module/_showcase.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.showcase {
22
margin-bottom: $unit * 6;
3+
border-radius: 4px;
34

45
.showcase-header {
56
padding: $unit * 4;

0 commit comments

Comments
 (0)