lib/rdoc/generator/template/darkfish/css/rdoc.css in rdoc-6.5.1.1 vs lib/rdoc/generator/template/darkfish/css/rdoc.css in rdoc-6.6.0

- old
+ new

@@ -15,12 +15,20 @@ body { background: #fafafa; font-family: Lato, sans-serif; font-weight: 300; + + /* Layout */ + display: grid; + grid-template-columns: auto 1fr; } +body > :last-child { + grid-column: 1 / 3; +} + h1 span, h2 span, h3 span, h4 span, h5 span, @@ -179,25 +187,29 @@ /* @end */ /* @group Top-Level Structure */ nav { - float: left; - width: 260px; font-family: Helvetica, sans-serif; font-size: 14px; border-right: 1px solid #ccc; position: sticky; top: 0; overflow: auto; + + /* Layout */ + width: 260px; /* fallback */ + width: max(50px, 20vw); + min-width: 50px; + max-width: 80vw; height: calc(100vh - 100px); /* reduce the footer height */ + resize: horizontal; } main { display: block; - margin: 0 2em 5em 260px; - padding-left: 20px; + margin: 1em; min-width: 340px; font-size: 16px; } main h1, @@ -212,11 +224,10 @@ .table-of-contents main { margin-left: 2em; } #validator-badges { - clear: both; margin: 1em 1em 2em; font-size: smaller; } /* @end */ @@ -307,27 +318,30 @@ .calls-super { background: url(../images/arrow_up.png) no-repeat right center; } -.nav-section details summary { +.nav-section details > summary { display: block; } -.nav-section details summary::-webkit-details-marker { +.nav-section details > summary::-webkit-details-marker { display: none; } -.nav-section details summary:before { +.nav-section details > summary::before { content: ""; } -.nav-section details summary:after { - content: " \25B6"; /* BLACK RIGHT-POINTING TRIANGLE */ +.nav-section details > summary::after { + content: "\25B6"; /* BLACK RIGHT-POINTING TRIANGLE */ + font-size: 0.8em; + margin-left: 0.4em; } -.nav-section details[open] > summary:after { - content: " \25BD"; /* WHITE DOWN-POINTING TRIANGLE */ + +.nav-section details[open] > summary::after { + content: "\25BD"; /* WHITE DOWN-POINTING TRIANGLE */ } /* @end */ /* @group Documentation Section */ @@ -551,10 +565,10 @@ visibility: hidden; padding-right: 20px; line-height: 20px; background: url(../images/zoom.png) no-repeat right top; } -main .method-heading:hover .method-click-advice { +main .method-header:hover .method-click-advice { visibility: visible; } main .method-alias .method-heading { color: #666;