1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

Adjust padding for code blocks

This commit is contained in:
Jason Boxman
2020-08-25 20:13:13 -04:00
parent fdf625f211
commit 8fbebddaf6

View File

@@ -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 {