Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
fixed code block in lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Aug 6, 2015
1 parent 325b602 commit dd734bd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
12 changes: 5 additions & 7 deletions assets/scss/modules/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -131,6 +125,10 @@ ul {
list-style-type: disc;
}

li > code {
@include inline-code-style
}

pre {
padding: 1rem 2.5%;
margin-bottom: 1.3rem;
Expand Down
10 changes: 10 additions & 0 deletions assets/scss/modules/_mixins.scss
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit dd734bd

Please sign in to comment.