From 416e928ba127fff3f191e4cbd81a79734c489a77 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Mon, 13 May 2019 20:27:55 -0700 Subject: [PATCH] Fix print styles --- assets/css/devportal.css | 41 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/assets/css/devportal.css b/assets/css/devportal.css index 5c1626e24a..d3cde76a12 100644 --- a/assets/css/devportal.css +++ b/assets/css/devportal.css @@ -1401,16 +1401,7 @@ a.current { /* Print styles ------------------------------------------------------------- */ @media print { - { /* undo code tabs */ - /* wrap code, not scroll */ - /* Source URLs are too big to float */ - /* Show URLs after links - even for anchors */ - /* Drop header, footer, google translate */ - /* table of contents can't scroll */ - /* better margins on main content */ - /* crazy print-section-numbering idea */ - } .multicode > div { display: block !important; } @@ -1425,6 +1416,7 @@ a.current { .multicode > p { display: block !important; } + /* wrap code, not scroll */ pre { white-space: pre-wrap; max-height: none !important; @@ -1438,23 +1430,30 @@ a.current { .content a[title="Source"] { float: none; } + /* Drop header, footer, sidebars */ header, - footer { + footer, + aside { display: none; } - #goog-gt-tt { + /* Full-width content body */ + .content, #main_content_body { + position: static; + display: block; + width: auto; + height: auto; + max-width: 100%; + } + #main_content_wrapper { + margin-top: 0; + } + #main_content_body::before { display: none; } - h1 { - page-break-before: always; + .xrp-ledger-dev-portal.sidebar-primary .main { + border: 0; } - .main { - float: none !important; - width: 85% !important; - border-left: 0 !important; - padding: 0 !important; - margin: 0 !important; - display: block !important; - overflow: visible !important; + .sidebar-primary .row { + display: block; } }