diff options
author | Valentin Popov <info@valentineus.link> | 2018-04-24 16:01:09 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-04-24 16:01:09 +0300 |
commit | b0267d55541d3f2e624865b9e81bda0a36b39880 (patch) | |
tree | e4d55432cd45ad1a45a6d07aecd271a6e68358dc /_scss/components/theme | |
parent | fe613b7d2b6b12ca2eaa6157e078ad5a44057ede (diff) | |
download | popov.link-b0267d55541d3f2e624865b9e81bda0a36b39880.tar.xz popov.link-b0267d55541d3f2e624865b9e81bda0a36b39880.zip |
Decore code
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_scss/components/theme')
-rw-r--r-- | _scss/components/theme/_code.scss | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/_scss/components/theme/_code.scss b/_scss/components/theme/_code.scss new file mode 100644 index 0000000..8146739 --- /dev/null +++ b/_scss/components/theme/_code.scss @@ -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); + } +} |