diff --git a/src/_app-theme.scss b/src/_app-theme.scss
index c8bc89c127c1..96c208664b0c 100644
--- a/src/_app-theme.scss
+++ b/src/_app-theme.scss
@@ -2,6 +2,9 @@
@import './app/pages/homepage/homepage-theme';
@import './app/pages/component-sidenav/component-sidenav-theme';
@import './app/pages/component-viewer/component-viewer-theme';
+@import './app/pages/component-list/component-list-theme';
+@import './app/pages/component-category-list/component-category-list-theme';
+
@import './app/shared/navbar/navbar-theme';
@import './app/shared/example-viewer/example-viewer-theme';
@@ -21,6 +24,8 @@
@include component-viewer-sidenav-theme($theme);
@include home-page-theme($theme);
@include component-viewer-theme($theme);
+ @include component-list-theme($theme);
+ @include component-category-list-theme($theme);
@include nav-bar-theme($theme);
@include example-viewer-theme($theme);
}
diff --git a/src/app/material-docs-app.html b/src/app/material-docs-app.html
index 6659729a0e03..8e664bd4ff99 100644
--- a/src/app/material-docs-app.html
+++ b/src/app/material-docs-app.html
@@ -1,2 +1,2 @@
-
+
diff --git a/src/app/material-docs-app.scss b/src/app/material-docs-app.scss
index e69de29bb2d1..9947a7ca81f0 100644
--- a/src/app/material-docs-app.scss
+++ b/src/app/material-docs-app.scss
@@ -0,0 +1,18 @@
+material-docs-app {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ display: flex;
+ flex-direction: column;
+}
+
+material-docs-app > app-component-sidenav {
+ flex: 1 1 auto;
+}
+
+app-navbar {
+ position: relative;
+ z-index: 10;
+}
diff --git a/src/app/material-docs-app.ts b/src/app/material-docs-app.ts
index ab9c90e30920..0f836554b0d0 100644
--- a/src/app/material-docs-app.ts
+++ b/src/app/material-docs-app.ts
@@ -1,4 +1,5 @@
-import {Component} from '@angular/core';
+import {Component, ViewEncapsulation} from '@angular/core';
+import {Router} from '@angular/router';
@Component({
@@ -7,8 +8,16 @@ import {Component} from '@angular/core';
styleUrls: ['./material-docs-app.scss'],
host: {
'[class.docs-dark-theme]': 'isDarkTheme',
- }
+ },
+ encapsulation: ViewEncapsulation.None,
})
export class MaterialDocsApp {
- isDarkTheme: boolean = false;
+ isDarkTheme = false;
+ showShadow = false;
+
+ constructor(router: Router) {
+ router.events.subscribe(data => {
+ this.showShadow = data.url.startsWith('/components');
+ });
+ }
}
diff --git a/src/app/pages/component-category-list/_component-category-list-theme.scss b/src/app/pages/component-category-list/_component-category-list-theme.scss
new file mode 100644
index 000000000000..3bdaffbf1640
--- /dev/null
+++ b/src/app/pages/component-category-list/_component-category-list-theme.scss
@@ -0,0 +1,19 @@
+@mixin component-category-list-theme($theme) {
+ $primary: map-get($theme, primary);
+ $accent: map-get($theme, accent);
+ $warn: map-get($theme, warn);
+ $background: map-get($theme, background);
+ $foreground: map-get($theme, foreground);
+
+ .docs-component-category-list-header {
+ background: md-color($primary);
+
+ h1 {
+ color: md-color($primary, default-contrast);
+ }
+ }
+
+ .docs-component-category-list-card-summary {
+ color: md-color($foreground, secondary-text);
+ }
+}
diff --git a/src/app/pages/component-category-list/component-category-list.html b/src/app/pages/component-category-list/component-category-list.html
index d728868fcf4d..51192a89ddeb 100644
--- a/src/app/pages/component-category-list/component-category-list.html
+++ b/src/app/pages/component-category-list/component-category-list.html
@@ -1,8 +1,16 @@
-
- {{category.name}}
- {{category.summary}}
-
-
+
+
+
+
+ {{category.name}}
+ {{category.summary}}
+
+
+
+
diff --git a/src/app/pages/component-category-list/component-category-list.scss b/src/app/pages/component-category-list/component-category-list.scss
index 09396e2602b8..bb03eb58bd7b 100644
--- a/src/app/pages/component-category-list/component-category-list.scss
+++ b/src/app/pages/component-category-list/component-category-list.scss
@@ -1,4 +1,34 @@
-.docs-component-category-list-category {
+.docs-component-category-list {
+ padding: 20px;
+}
+
+.docs-component-category-list-card {
display: inline-block;
- width: 300px;
+ width: 260px;
+ margin: 20px;
+ vertical-align: top;
+ cursor: pointer;
+}
+
+.docs-component-category-list-card-image {
+ width: 100%;
+ height: 160px;
+ background-size: contain;
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.docs-component-category-list-card-summary {
+ height: 2.4em;
+}
+
+.docs-component-category-list-header {
+ padding-left: 20px;
+
+ h1 {
+ font-size: 30px;
+ font-weight: 300;
+ margin: 0;
+ padding: 50px;
+ }
}
diff --git a/src/app/pages/component-category-list/component-category-list.ts b/src/app/pages/component-category-list/component-category-list.ts
index 6ef3cb61b457..ab72310f5032 100644
--- a/src/app/pages/component-category-list/component-category-list.ts
+++ b/src/app/pages/component-category-list/component-category-list.ts
@@ -1,7 +1,5 @@
import {Component} from '@angular/core';
-import {
- DocumentationItems
-} from '../../shared/documentation-items/documentation-items';
+import {DocumentationItems} from '../../shared/documentation-items/documentation-items';
@Component({
diff --git a/src/app/pages/component-list/_component-list-theme.scss b/src/app/pages/component-list/_component-list-theme.scss
new file mode 100644
index 000000000000..0b0f5a9041bb
--- /dev/null
+++ b/src/app/pages/component-list/_component-list-theme.scss
@@ -0,0 +1,19 @@
+@mixin component-list-theme($theme) {
+ $primary: map-get($theme, primary);
+ $accent: map-get($theme, accent);
+ $warn: map-get($theme, warn);
+ $background: map-get($theme, background);
+ $foreground: map-get($theme, foreground);
+
+ .docs-component-list-header {
+ background: md-color($primary);
+
+ h1 {
+ color: md-color($primary, default-contrast);
+ }
+ }
+
+ .docs-component-list-item {
+ color: md-color($foreground, secondary-text);
+ }
+}
diff --git a/src/app/pages/component-list/component-list.html b/src/app/pages/component-list/component-list.html
index 8e390e704ef5..bbc54d1d6bb3 100644
--- a/src/app/pages/component-list/component-list.html
+++ b/src/app/pages/component-list/component-list.html
@@ -1,11 +1,15 @@
+
+
diff --git a/src/app/pages/component-list/component-list.scss b/src/app/pages/component-list/component-list.scss
index c1a34475cf0c..1bc1cfd7536a 100644
--- a/src/app/pages/component-list/component-list.scss
+++ b/src/app/pages/component-list/component-list.scss
@@ -2,16 +2,33 @@
.docs-component-list-category {
- margin: 50px;
+ margin: 20px;
}
.docs-component-list-item {
display: inline-flex;
flex-direction: column;
align-items: center;
- margin: 16px;
+ margin: 30px;
+ text-decoration: none;
}
.docs-component-list-item-icon {
- margin-bottom: 8px;
+ margin-bottom: 20px;
+ width: 100px;
+ height: 100px;
+ background-size: contain;
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.docs-component-list-header {
+ padding-left: 20px;
+
+ h1 {
+ font-size: 30px;
+ font-weight: 300;
+ margin: 0;
+ padding: 50px;
+ }
}
diff --git a/src/app/pages/component-sidenav/component-sidenav.html b/src/app/pages/component-sidenav/component-sidenav.html
index a08f89602f09..a265554e92ed 100644
--- a/src/app/pages/component-sidenav/component-sidenav.html
+++ b/src/app/pages/component-sidenav/component-sidenav.html
@@ -1,4 +1,4 @@
-
+