From dd734bd65bafada81ccba5b1badc0b36b403c872 Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Fri, 7 Aug 2015 01:01:07 +0200 Subject: [PATCH] fixed code block in lists --- assets/scss/modules/_global.scss | 12 +++++------- assets/scss/modules/_mixins.scss | 10 ++++++++++ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/assets/scss/modules/_global.scss b/assets/scss/modules/_global.scss index 6d7eb3ea..3a63de7e 100755 --- a/assets/scss/modules/_global.scss +++ b/assets/scss/modules/_global.scss @@ -79,13 +79,7 @@ p { line-height: 1.7rem; > code { - border: 1px solid #D9D9D9; - border-radius: 3px; - padding: 0.09rem 0.2rem; - font-family: $code-font; - font-weight: $font-weight-normal; - font-size: .85rem; - color: $gray-dark; + @include inline-code-style } } strong { @@ -131,6 +125,10 @@ ul { list-style-type: disc; } +li > code { + @include inline-code-style +} + pre { padding: 1rem 2.5%; margin-bottom: 1.3rem; diff --git a/assets/scss/modules/_mixins.scss b/assets/scss/modules/_mixins.scss index 5ab2326d..252e3c4d 100755 --- a/assets/scss/modules/_mixins.scss +++ b/assets/scss/modules/_mixins.scss @@ -1,3 +1,13 @@ +@mixin inline-code-style { + border: 1px solid #D9D9D9; + border-radius: 3px; + padding: 0.09rem 0.2rem; + font-family: $code-font; + font-weight: $font-weight-normal; + font-size: .85rem; + color: $gray-dark; +} + @mixin background-filter { background: linear-gradient(150deg, $cover-secondary 30%, $cover-primary 70%) 0 0/cover fixed,url(/assets/img/cover.jpg) center/cover no-repeat fixed;