Add wrapper for before/after code examples

This commit is contained in:
ines 2017-10-09 14:36:20 +02:00
parent ca6769fd48
commit 2ac8b5c622
2 changed files with 10 additions and 0 deletions

View File

@ -149,6 +149,10 @@ mixin code(label, language, prompt, height, icon, wrap)
//- Code blocks to display old/new versions //- Code blocks to display old/new versions
mixin code-compare()
span.u-inline-block.u-padding-top.u-width-full
block
mixin code-old() mixin code-old()
+code(false, false, false, false, "reject").o-block-small +code(false, false, false, false, "reject").o-block-small
block block

View File

@ -143,6 +143,9 @@
//- Layout //- Layout
.u-width-full
width: 100%
.u-float-left .u-float-left
float: left float: left
margin-right: 1rem margin-right: 1rem
@ -166,6 +169,9 @@
.u-padding-medium .u-padding-medium
padding: 1.8rem padding: 1.8rem
.u-padding-top
padding-top: 2rem
.u-inline-block .u-inline-block
display: inline-block display: inline-block