docs(aio): fix cheatsheet layout for narrow screens

* Tell the app that this will have no Table of Contents, since we have no
h2 headings anyway.
* Remove all the `nbsp;` from the code since that doesn't help with layout
* Remove side padding from sidenav-content when screen is narrow
* Restyle the cheatsheet table when the screen is narrow
This commit is contained in:
Peter Bacon Darwin
2017-07-16 17:19:34 +01:00
committed by Pete Bacon Darwin
parent c453b7bcfa
commit cdb069ab0e
3 changed files with 99 additions and 69 deletions

View File

@ -17,6 +17,7 @@ aio-shell.page-docs {
.sidenav-content {
min-height: 450px;
padding: 80px 1rem 1rem;
}
}

View File

@ -60,7 +60,7 @@ table {
background-color: $lightgray;
}
}
}
th {
@ -80,6 +80,35 @@ table {
}
}
#cheatsheet table tbody td {
overflow: auto;
}
#cheatsheet {
table tbody td {
overflow: auto;
}
@media only screen and (max-width: 990px) {
/* Force table to not be like tables anymore */
table, thead, tbody, tfoot, tr, th, td {
display: block;
position: relative;
max-width: 100%;
code {
padding: 0;
background-color: inherit;
}
}
th {
border-right: none;
}
th, td {
&:not(:last-child) {
border-bottom: none;
padding-bottom: 0px;
}
}
}
}