Skip to content

Commit 6346eda

Browse files
fix(aio): remove unwanted code styling from styleguide doc
Closes #16514
1 parent 9e661e5 commit 6346eda

2 files changed

Lines changed: 34 additions & 23 deletions

File tree

‎aio/content/guide/styleguide.md‎

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ and reference assets of different types.
577577

578578
<td>
579579

580-
<code-example hideCopy>
580+
<code-example hideCopy class="no-box">
581581
@Component({ ... })
582582
export class AppComponent { }
583583
</code-example>
@@ -596,7 +596,7 @@ and reference assets of different types.
596596

597597
<td>
598598

599-
<code-example hideCopy>
599+
<code-example hideCopy class="no-box">
600600
@Component({ ... })
601601
export class HeroesComponent { }
602602
</code-example>
@@ -615,7 +615,7 @@ and reference assets of different types.
615615

616616
<td>
617617

618-
<code-example hideCopy>
618+
<code-example hideCopy class="no-box">
619619
@Component({ ... })
620620
export class HeroListComponent { }
621621
</code-example>
@@ -634,7 +634,7 @@ and reference assets of different types.
634634

635635
<td>
636636

637-
<code-example hideCopy>
637+
<code-example hideCopy class="no-box">
638638
@Component({ ... })
639639
export class HeroDetailComponent { }
640640
</code-example>
@@ -653,7 +653,7 @@ and reference assets of different types.
653653

654654
<td>
655655

656-
<code-example hideCopy>
656+
<code-example hideCopy class="no-box">
657657
@Directive({ ... })
658658
export class ValidationDirective { }
659659
</code-example>
@@ -672,7 +672,7 @@ and reference assets of different types.
672672

673673
<td>
674674

675-
<code-example hideCopy>
675+
<code-example hideCopy class="no-box">
676676
@NgModule({ ... })
677677
export class AppModule
678678
</code-example>
@@ -691,7 +691,7 @@ and reference assets of different types.
691691

692692
<td>
693693

694-
<code-example hideCopy>
694+
<code-example hideCopy class="no-box">
695695
@Pipe({ name: 'initCaps' })
696696
export class InitCapsPipe implements PipeTransform { }
697697
</code-example>
@@ -710,7 +710,7 @@ and reference assets of different types.
710710

711711
<td>
712712

713-
<code-example hideCopy>
713+
<code-example hideCopy class="no-box">
714714
@Injectable()
715715
export class UserProfileService { }
716716
</code-example>
@@ -827,7 +827,7 @@ As always, strive for consistency.
827827

828828
<td>
829829

830-
<code-example hideCopy>
830+
<code-example hideCopy class="no-box">
831831
@Injectable()
832832
export class HeroDataService { }
833833
</code-example>
@@ -846,7 +846,7 @@ As always, strive for consistency.
846846

847847
<td>
848848

849-
<code-example hideCopy>
849+
<code-example hideCopy class="no-box">
850850
@Injectable()
851851
export class CreditService { }
852852
</code-example>
@@ -865,7 +865,7 @@ As always, strive for consistency.
865865

866866
<td>
867867

868-
<code-example hideCopy>
868+
<code-example hideCopy class="no-box">
869869
@Injectable()
870870
export class Logger { }
871871
</code-example>
@@ -1225,7 +1225,7 @@ For example, the prefix `toh` represents from **T**our **o**f **H**eroes and the
12251225

12261226
<td>
12271227

1228-
<code-example hideCopy>
1228+
<code-example hideCopy class="no-box">
12291229
@Pipe({ name: 'ellipsis' })
12301230
export class EllipsisPipe implements PipeTransform { }
12311231
</code-example>
@@ -1244,7 +1244,7 @@ For example, the prefix `toh` represents from **T**our **o**f **H**eroes and the
12441244

12451245
<td>
12461246

1247-
<code-example hideCopy>
1247+
<code-example hideCopy class="no-box">
12481248
@Pipe({ name: 'initCaps' })
12491249
export class InitCapsPipe implements PipeTransform { }
12501250
</code-example>
@@ -1331,11 +1331,11 @@ For example, the prefix `toh` represents from **T**our **o**f **H**eroes and the
13311331
<tr>
13321332

13331333
<th>
1334-
Symbol Name
1334+
Test Type
13351335
</th>
13361336

13371337
<th>
1338-
File Name
1338+
File Names
13391339
</th>
13401340

13411341
</tr>
@@ -1461,11 +1461,11 @@ For example, the prefix `toh` represents from **T**our **o**f **H**eroes and the
14611461
<tr>
14621462

14631463
<th>
1464-
Symbol Name
1464+
Test Type
14651465
</th>
14661466

14671467
<th>
1468-
File Name
1468+
File Names
14691469
</th>
14701470

14711471
</tr>
@@ -1626,7 +1626,7 @@ A consistent class and file name convention make these modules easy to spot and
16261626

16271627
<td>
16281628

1629-
<code-example hideCopy>
1629+
<code-example hideCopy class="no-box">
16301630
@NgModule({ ... })
16311631
export class AppModule { }
16321632
</code-example>
@@ -1645,7 +1645,7 @@ A consistent class and file name convention make these modules easy to spot and
16451645

16461646
<td>
16471647

1648-
<code-example hideCopy>
1648+
<code-example hideCopy class="no-box">
16491649
@NgModule({ ... })
16501650
export class HeroesModule { }
16511651
</code-example>
@@ -1664,7 +1664,7 @@ A consistent class and file name convention make these modules easy to spot and
16641664

16651665
<td>
16661666

1667-
<code-example hideCopy>
1667+
<code-example hideCopy class="no-box">
16681668
@NgModule({ ... })
16691669
export class VillainsModule { }
16701670
</code-example>
@@ -1683,7 +1683,7 @@ A consistent class and file name convention make these modules easy to spot and
16831683

16841684
<td>
16851685

1686-
<code-example hideCopy>
1686+
<code-example hideCopy class="no-box">
16871687
@NgModule({ ... })
16881688
export class AppRoutingModule { }
16891689
</code-example>
@@ -1702,7 +1702,7 @@ A consistent class and file name convention make these modules easy to spot and
17021702

17031703
<td>
17041704

1705-
<code-example hideCopy>
1705+
<code-example hideCopy class="no-box">
17061706
@NgModule({ ... })
17071707
export class HeroesRoutingModule { }
17081708
</code-example>

‎aio/src/styles/2-modules/_code.scss‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,26 @@ code-example, code-tabs {
55

66
code-example,
77
code-tabs md-tab-body {
8+
&:not(.no-box) {
89
background-color: rgba($backgroundgray, 0.2);
910
border: 0.5px solid $lightgray;
1011
border-radius: 5px;
1112
color: $darkgray;
1213
margin: 16px auto;
14+
}
1315

16+
&.no-box {
17+
pre {
18+
margin: 0;
19+
}
1420
code {
15-
overflow: auto;
21+
background-color: transparent;
1622
}
23+
}
24+
25+
code {
26+
overflow: auto;
27+
}
1728
}
1829

1930
// TERMINAL / SHELL TEXT STYLES

0 commit comments

Comments
 (0)