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

Commit dd734bd

Browse files
committed
fixed code block in lists
1 parent 325b602 commit dd734bd

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

assets/scss/modules/_global.scss

+5-7
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,7 @@ p {
7979
line-height: 1.7rem;
8080

8181
> code {
82-
border: 1px solid #D9D9D9;
83-
border-radius: 3px;
84-
padding: 0.09rem 0.2rem;
85-
font-family: $code-font;
86-
font-weight: $font-weight-normal;
87-
font-size: .85rem;
88-
color: $gray-dark;
82+
@include inline-code-style
8983
}
9084
}
9185
strong {
@@ -131,6 +125,10 @@ ul {
131125
list-style-type: disc;
132126
}
133127

128+
li > code {
129+
@include inline-code-style
130+
}
131+
134132
pre {
135133
padding: 1rem 2.5%;
136134
margin-bottom: 1.3rem;

assets/scss/modules/_mixins.scss

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
@mixin inline-code-style {
2+
border: 1px solid #D9D9D9;
3+
border-radius: 3px;
4+
padding: 0.09rem 0.2rem;
5+
font-family: $code-font;
6+
font-weight: $font-weight-normal;
7+
font-size: .85rem;
8+
color: $gray-dark;
9+
}
10+
111
@mixin background-filter {
212
background: linear-gradient(150deg, $cover-secondary 30%, $cover-primary 70%)
313
0 0/cover fixed,url(/assets/img/cover.jpg) center/cover no-repeat fixed;

0 commit comments

Comments
 (0)