Decore code
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
fe613b7d2b
commit
b0267d5554
25
_scss/components/theme/_code.scss
Normal file
25
_scss/components/theme/_code.scss
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
@import 'utilities/borderradius';
|
||||||
|
|
||||||
|
code {
|
||||||
|
background: $color-tertiary;
|
||||||
|
font-size: 86%;
|
||||||
|
margin: 0 .2rem;
|
||||||
|
padding: .2rem .5rem;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
|
@include borderradius(.4rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
background: $color-tertiary;
|
||||||
|
border-left: .3rem solid $color-primary;
|
||||||
|
overflow-x: auto;
|
||||||
|
|
||||||
|
& > code {
|
||||||
|
display: block;
|
||||||
|
padding: 1rem 1.5rem;
|
||||||
|
white-space: pre;
|
||||||
|
|
||||||
|
@include borderradius(0);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user