summaryrefslogtreecommitdiff
path: root/nn.css
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2020-01-26 22:54:00 -0800
committerGarrett D'Amore <garrett@damore.org>2020-01-26 22:54:00 -0800
commitd165c10ed7b4886b728e43af7cac29be2083b3f8 (patch)
tree72e6fa9199a7eed1359e2788a10c81b0bb91b863 /nn.css
parentaa971594ed016134f07db2a2523feaa3d0c109db (diff)
downloadnng-d165c10ed7b4886b728e43af7cac29be2083b3f8.tar.gz
nng-d165c10ed7b4886b728e43af7cac29be2083b3f8.tar.bz2
nng-d165c10ed7b4886b728e43af7cac29be2083b3f8.zip
Style fixups for scrollbars.
Diffstat (limited to 'nn.css')
-rw-r--r--nn.css61
1 files changed, 46 insertions, 15 deletions
diff --git a/nn.css b/nn.css
index 1ae98ce5..e8eb3181 100644
--- a/nn.css
+++ b/nn.css
@@ -55,6 +55,16 @@ a.nn-nav-link {
background: #e0e0e0;
}
+.nn-header {
+ position: fixed;
+ top: 0;
+ left: 0;
+}
+
+.nn-footer {
+ clear: both;
+}
+
.nn-footer-inner {
text-align: right;
font-family: 'Roboto', 'Trebuchet MS', sans-serif;
@@ -64,15 +74,12 @@ a.nn-nav-link {
}
.nn-header-inner, .nn-footer-inner {
- max-width: 62.5em;
- padding: 1em;
- width: 100%;
+ padding: 0em 4em 0em 2em;
}
.nn-header-inner {
display: flex;
align-items: center;
- margin: auto;
}
.nn-nav-menu {
@@ -448,22 +455,34 @@ video {
/* table of Contents sidebar */
-.toc2 .toc2 {
- top: 6em;
- left: 0;
+.toc2 {
padding: 1.25em 1em;
- position: fixed;
display: flex;
flex-direction: column;
+ bottom: 0;
+}
+
+nav.toc2 {
+ overflow-y: auto;
+ display:inline-block;
+ vertical-align:top;
+ z-index:10;
+ position:fixed;
+ top:5em;
+ bottom:6em;
}
@media screen and (maxwidth: 768px) {
- .toc2 {
- visibility: hidden;
- }
- #toc.toc2 ul {
+ nav.toc2 {
visibility: hidden;
+ overflow: hidden;
}
+ nav.toc2::-webkit-scrollbar {
+ display: none;
+ }
+ nav.toc2 {
+ -ms-overflow-style: none;
+ }
}
#toc.toc2 ul {
@@ -484,11 +503,23 @@ video {
/* only show the table of contents on screens wide enough to have room */
-@media all and (max-width: 92em) {
+main {
+ padding-left: 20em;
+ display:inline-block;
+ max-width:62.5em;
+ overflow-y:auto
+}
+
+@media all and (max-width: 90em) {
#toctitle {
- visibility: hidden;
+ display: none;
+ overflow: visible;
}
#toc.toc2 ul {
- visibility: hidden;
+ display: none;
+ overflow: visible;
}
+ main {
+ padding-left: 2em;
+ }
}