diff --git a/_stylesheets/docs.css b/_stylesheets/docs.css index 7eafeca332..478d89b6cc 100644 --- a/_stylesheets/docs.css +++ b/_stylesheets/docs.css @@ -904,13 +904,15 @@ table > tbody > tr > td > div > div > p > code { .exampleblock > .content > :last-child > :last-child, .exampleblock > .content .olist > ol > li:last-child > :last-child, .exampleblock > .content .ulist > ul > li:last-child > :last-child, .exampleblock > .content .qlist > ol > li:last-child > :last-child, .sidebarblock > .content > :last-child > :last-child, .sidebarblock > .content .olist > ol > li:last-child > :last-child, .sidebarblock > .content .ulist > ul > li:last-child > :last-child, .sidebarblock > .content .qlist > ol > li:last-child > :last-child { margin-bottom: 0; } +/* For this only we do not want padding */ +.listingblock pre.rouge, .listingblock pre.rouge code { + padding: 0; +} /* source code appears in pre blocks */ .literalblock pre, .literalblock pre[class], .listingblock pre, .listingblock pre[class] { - border: 0px; background-color: #f9f9f9; - -webkit-border-radius: 1px; border: 1px #aab7b8 solid; - padding: 1.75em 2em; + padding: 0 0.5em; word-wrap: break-word; color: #404040; font-family: "Roboto Mono", monospace; @@ -923,13 +925,9 @@ table > tbody > tr > td > div > div > p > code { .literalblock pre > code, .literalblock pre[class] > code, .listingblock pre > code, .listingblock pre[class] > code { display: block; } -/* For this only we do not want padding */ -.listingblock pre.rouge { - padding: 1em 0 0 0; -} /* this adds overflow for code blocks */ .listingblock pre.rouge code { - padding-bottom: 1em; + padding: 22px; white-space: pre; overflow-x: auto; } @@ -1317,7 +1315,6 @@ table > tbody > tr > td > div > div > p > code { } .replaceable { font-style: italic; - font-color: inherit; font-family: inherit; } .parameter {