diff --git a/aio/content/guide/styleguide.md b/aio/content/guide/styleguide.md
index a0d8ddc311..84d0d28653 100644
--- a/aio/content/guide/styleguide.md
+++ b/aio/content/guide/styleguide.md
@@ -577,7 +577,7 @@ and reference assets of different types.
-
+
@Component({ ... })
export class AppComponent { }
@@ -596,7 +596,7 @@ and reference assets of different types.
-
+
@Component({ ... })
export class HeroesComponent { }
@@ -615,7 +615,7 @@ and reference assets of different types.
-
+
@Component({ ... })
export class HeroListComponent { }
@@ -634,7 +634,7 @@ and reference assets of different types.
-
+
@Component({ ... })
export class HeroDetailComponent { }
@@ -653,7 +653,7 @@ and reference assets of different types.
-
+
@Directive({ ... })
export class ValidationDirective { }
@@ -672,7 +672,7 @@ and reference assets of different types.
-
+
@NgModule({ ... })
export class AppModule
@@ -691,7 +691,7 @@ and reference assets of different types.
-
+
@Pipe({ name: 'initCaps' })
export class InitCapsPipe implements PipeTransform { }
@@ -710,7 +710,7 @@ and reference assets of different types.
-
+
@Injectable()
export class UserProfileService { }
@@ -827,7 +827,7 @@ As always, strive for consistency.
-
+
@Injectable()
export class HeroDataService { }
@@ -846,7 +846,7 @@ As always, strive for consistency.
-
+
@Injectable()
export class CreditService { }
@@ -865,7 +865,7 @@ As always, strive for consistency.
-
+
@Injectable()
export class Logger { }
@@ -1225,7 +1225,7 @@ For example, the prefix `toh` represents from **T**our **o**f **H**eroes and the
-
+
@Pipe({ name: 'ellipsis' })
export class EllipsisPipe implements PipeTransform { }
@@ -1244,7 +1244,7 @@ For example, the prefix `toh` represents from **T**our **o**f **H**eroes and the
-
+
@Pipe({ name: 'initCaps' })
export class InitCapsPipe implements PipeTransform { }
@@ -1331,11 +1331,11 @@ For example, the prefix `toh` represents from **T**our **o**f **H**eroes and the
- Symbol Name
+ Test Type
|
- File Name
+ File Names
|
@@ -1461,11 +1461,11 @@ For example, the prefix `toh` represents from **T**our **o**f **H**eroes and the
- Symbol Name
+ Test Type
|
- File Name
+ File Names
|
@@ -1626,7 +1626,7 @@ A consistent class and file name convention make these modules easy to spot and
-
+
@NgModule({ ... })
export class AppModule { }
@@ -1645,7 +1645,7 @@ A consistent class and file name convention make these modules easy to spot and
-
+
@NgModule({ ... })
export class HeroesModule { }
@@ -1664,7 +1664,7 @@ A consistent class and file name convention make these modules easy to spot and
-
+
@NgModule({ ... })
export class VillainsModule { }
@@ -1683,7 +1683,7 @@ A consistent class and file name convention make these modules easy to spot and
-
+
@NgModule({ ... })
export class AppRoutingModule { }
@@ -1702,7 +1702,7 @@ A consistent class and file name convention make these modules easy to spot and
-
+
@NgModule({ ... })
export class HeroesRoutingModule { }
diff --git a/aio/src/styles/2-modules/_code.scss b/aio/src/styles/2-modules/_code.scss
index 4012098868..0fa10ce522 100644
--- a/aio/src/styles/2-modules/_code.scss
+++ b/aio/src/styles/2-modules/_code.scss
@@ -5,15 +5,26 @@ code-example, code-tabs {
code-example,
code-tabs md-tab-body {
+ &:not(.no-box) {
background-color: rgba($backgroundgray, 0.2);
border: 0.5px solid $lightgray;
border-radius: 5px;
color: $darkgray;
margin: 16px auto;
+ }
- code {
- overflow: auto;
+ &.no-box {
+ pre {
+ margin: 0;
}
+ code {
+ background-color: transparent;
+ }
+ }
+
+ code {
+ overflow: auto;
+ }
}
// TERMINAL / SHELL TEXT STYLES
| | | | | | | | | | | | | | | | | |