refactor(docs-infra): remove unnecessary wrapper <div> from the "Cheat sheet" guide (#41051)

This commit removes an unnecessary wrapper `<div>` from the
"Cheat sheet" guide. The CSS styles that referenced the element's ID
(`#cheatsheet`) have been updated to use `.page-guide-cheatsheet`
instead.

PR Close #41051
This commit is contained in:
George Kalpakas 2021-03-09 14:15:46 +02:00 committed by Andrew Kushnir
parent f85a178a49
commit 76daca800e
3 changed files with 2 additions and 4 deletions

View File

@ -1,6 +1,5 @@
<h1 class="no-toc">Cheat Sheet</h1> <h1 class="no-toc">Cheat Sheet</h1>
<div id="cheatsheet">
<table class="is-full-width is-fixed-layout"> <table class="is-full-width is-fixed-layout">
<tbody><tr> <tbody><tr>
<th>Bootstrapping</th> <th>Bootstrapping</th>
@ -391,4 +390,3 @@ so the <code>@Directive</code> configuration applies to components as well</p>
</td> </td>
</tr> </tr>
</tbody></table> </tbody></table>
</div>

View File

@ -176,7 +176,7 @@ aio-code {
padding: 4px; padding: 4px;
} }
#cheatsheet { .page-guide-cheatsheet & {
td:first-of-type, td:first-of-type,
th { th {
code { code {

View File

@ -81,7 +81,7 @@ table {
} }
} }
#cheatsheet { .page-guide-cheatsheet {
table tbody td { table tbody td {
overflow: auto; overflow: auto;