1
0
mirror of https://github.com/oceanprotocol/ipfs synced 2024-06-29 00:57:48 +02:00
ipfs/src/styles/_code.css

41 lines
752 B
CSS
Raw Normal View History

2019-10-18 13:10:43 +02:00
@import '_variables.css';
code {
font-family: var(--font-family-monospace);
font-size: var(--font-size-small);
color: var(--brand-grey-light);
text-shadow: none;
}
:not(pre) > code {
display: inline-block;
padding-left: 0.3rem;
padding-right: 0.3rem;
}
pre {
display: block;
margin: calc(var(--spacer) / 2) 0;
padding: 0;
position: relative;
border: 1px solid var(--brand-grey-dark);
border-radius: var(--border-radius);
overflow: auto;
-webkit-overflow-scrolling: touch;
max-height: 800px;
width: 100%;
}
pre code {
background: none;
padding: calc(var(--spacer) / 1.5);
white-space: pre;
display: block;
overflow-wrap: normal;
word-wrap: normal;
word-break: normal;
float: left;
width: 100%;
}