add code CSS
This commit is contained in:
parent
b3eb4ebba0
commit
4950205a91
24
src/css/_code.css
Normal file
24
src/css/_code.css
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
pre, .pre {
|
||||||
|
overflow-x: auto;
|
||||||
|
overflow-y: hidden;
|
||||||
|
overflow: scroll;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
pre code {
|
||||||
|
display: block;
|
||||||
|
padding: 1.5em 1.5em;
|
||||||
|
white-space: normal;
|
||||||
|
font-size: .875rem;
|
||||||
|
line-height: 2;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
background-color: #222;
|
||||||
|
color: #ddd;
|
||||||
|
white-space: pre;
|
||||||
|
|
||||||
|
hyphens: none;
|
||||||
|
position: relative;
|
||||||
|
}
|
|
@ -1,4 +1,5 @@
|
||||||
@import '_tachyons';
|
@import '_tachyons';
|
||||||
|
@import '_code';
|
||||||
@import '_hugo-internal-templates';
|
@import '_hugo-internal-templates';
|
||||||
@import '_social-icons';
|
@import '_social-icons';
|
||||||
@import '_styles';
|
@import '_styles';
|
||||||
|
|
Loading…
Reference in a new issue