Normal lists
diff --git a/src/demo-app/list/list-demo.scss b/src/demo-app/list/list-demo.scss
index 950dc9869007..bcf8a770c381 100644
--- a/src/demo-app/list/list-demo.scss
+++ b/src/demo-app/list/list-demo.scss
@@ -1,4 +1,5 @@
-.list-demo {
+
+.demo {
display: flex;
flex-flow: row wrap;
@@ -8,32 +9,20 @@
margin: 20px 20px 0 0;
}
-
h2 {
margin-top: 20px;
}
-}
-
-/* Theme for the list-item demo elements. */
-@mixin demo-list-item-theme($dark: false) {
- $base-color: if($dark, white, black);
- .list-demo .mat-icon {
- color: rgba($base-color, 0.12);
+ .mat-icon {
+ color: rgba(0, 0, 0, 0.12);
}
- .list-demo .mat-list-icon {
+ .mat-list-icon {
color: white;
- background: rgba($base-color, 0.3);
- }
-
- .list-demo .demo-secondary-text {
- color: rgba($base-color, 0.54);
+ background: rgba(0, 0, 0, 0.3);
}
}
-@include demo-list-item-theme(false);
-
-.demo-dark-theme {
- @include demo-list-item-theme(true);
+.demo-secondary-text {
+ color: rgba(0, 0, 0, 0.54);
}
diff --git a/src/demo-app/list/list-demo.ts b/src/demo-app/list/list-demo.ts
index be402e9c5ec6..73ed3ceee7b6 100644
--- a/src/demo-app/list/list-demo.ts
+++ b/src/demo-app/list/list-demo.ts
@@ -1,4 +1,4 @@
-import {Component, ViewEncapsulation} from '@angular/core';
+import {Component} from '@angular/core';
@Component({
@@ -6,7 +6,6 @@ import {Component, ViewEncapsulation} from '@angular/core';
selector: 'list-demo',
templateUrl: 'list-demo.html',
styleUrls: ['list-demo.css'],
- encapsulation: ViewEncapsulation.None
})
export class ListDemo {
items: string[] = [
diff --git a/src/demo-app/radio/radio-demo.scss b/src/demo-app/radio/radio-demo.scss
index ee738628af6a..9a37d4da430a 100644
--- a/src/demo-app/radio/radio-demo.scss
+++ b/src/demo-app/radio/radio-demo.scss
@@ -4,6 +4,7 @@
}
.demo-section {
+ background-color: #f7f7f7;
margin: 8px;
padding: 16px;
diff --git a/src/demo-app/tabs/tabs-demo.scss b/src/demo-app/tabs/tabs-demo.scss
index f1ade3b04fcd..d10e259e7e5e 100644
--- a/src/demo-app/tabs/tabs-demo.scss
+++ b/src/demo-app/tabs/tabs-demo.scss
@@ -1,6 +1,9 @@
.demo-nav-bar {
border: 1px solid #e0e0e0;
margin-bottom: 40px;
+ .mat-tab-nav-bar {
+ background: #f9f9f9;
+ }
sunny-routed-content,
rainy-routed-content,
foggy-routed-content {
@@ -12,6 +15,9 @@
.demo-tab-group {
border: 1px solid #e0e0e0;
margin-bottom: 40px;
+ .mat-tab-header {
+ background: #f9f9f9;
+ }
.mat-tab-body-content {
padding: 12px;
}
diff --git a/tools/gulp/constants.ts b/tools/gulp/constants.ts
index 925a17e9a033..b2811415da31 100644
--- a/tools/gulp/constants.ts
+++ b/tools/gulp/constants.ts
@@ -17,10 +17,6 @@ export const SASS_AUTOPREFIXER_OPTIONS = {
cascade: false,
};
-export const SASS_PREPROCESSOR_OPTIONS = {
- includePaths: [DIST_ROOT]
-};
-
export const HTML_MINIFIER_OPTIONS = {
collapseWhitespace: true,
removeComments: true,
diff --git a/tools/gulp/task_helpers.ts b/tools/gulp/task_helpers.ts
index d4a46412ed71..68f9f8e24b79 100644
--- a/tools/gulp/task_helpers.ts
+++ b/tools/gulp/task_helpers.ts
@@ -2,10 +2,7 @@ import * as child_process from 'child_process';
import * as fs from 'fs';
import * as gulp from 'gulp';
import * as path from 'path';
-import {
- NPM_VENDOR_FILES, PROJECT_ROOT, DIST_ROOT, SASS_AUTOPREFIXER_OPTIONS,
- SASS_PREPROCESSOR_OPTIONS
-} from './constants';
+import {NPM_VENDOR_FILES, PROJECT_ROOT, DIST_ROOT, SASS_AUTOPREFIXER_OPTIONS} from './constants';
/** Those imports lack typings. */
@@ -47,7 +44,7 @@ export function sassBuildTask(dest: string, root: string) {
return () => {
return gulp.src(_globify(root, '**/*.scss'))
.pipe(gulpSourcemaps.init())
- .pipe(gulpSass(SASS_PREPROCESSOR_OPTIONS).on('error', gulpSass.logError))
+ .pipe(gulpSass().on('error', gulpSass.logError))
.pipe(gulpAutoprefixer(SASS_AUTOPREFIXER_OPTIONS))
.pipe(gulpSourcemaps.write('.'))
.pipe(gulp.dest(dest));
diff --git a/tools/gulp/tasks/aot.ts b/tools/gulp/tasks/aot.ts
index 334524eac4b8..073535532435 100644
--- a/tools/gulp/tasks/aot.ts
+++ b/tools/gulp/tasks/aot.ts
@@ -12,7 +12,7 @@ task('aot:copy', [':build:devapp:scss', ':build:devapp:assets']);
*/
task('aot:prepare', sequenceTask(
'clean',
- ['build:components:release', 'aot:copy', ':build:components:ngc'])
+ ['aot:copy', 'build:components:release', ':build:components:ngc'])
);
/** Builds the demo-app with the Angular compiler to verify that all components work. */
diff --git a/tools/gulp/tasks/development.ts b/tools/gulp/tasks/development.ts
index 2da68e739b4a..846d4eecd257 100644
--- a/tools/gulp/tasks/development.ts
+++ b/tools/gulp/tasks/development.ts
@@ -20,7 +20,7 @@ task(':watch:devapp', () => {
task(':build:devapp:vendor', vendorTask());
task(':build:devapp:ts', tsBuildTask(appDir));
-task(':build:devapp:scss', [':build:components:scss'], sassBuildTask(outDir, appDir));
+task(':build:devapp:scss', sassBuildTask(outDir, appDir));
task(':build:devapp:assets', copyTask(appDir, outDir));
task('build:devapp', buildAppTask('devapp'));