Skip to content

Commit 6ad5867

Browse files
committed
Change the background color which wrapped by code tag. [ci skip]
1 parent 08813dd commit 6ad5867

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

guides/assets/stylesheets/main.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ pre, code {
3333
overflow: auto;
3434
color: #222;
3535
}
36+
37+
p code {
38+
background: #eee;
39+
border-radius: 2px;
40+
padding: 1px 3px;
41+
}
42+
3643
pre, tt, code {
3744
white-space: pre-wrap; /* css-3 */
3845
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
@@ -632,7 +639,9 @@ div.code_container {
632639
margin: 0.25em 0 1.5em 0;
633640
}
634641

635-
.note code, .info code, .todo code {border:none; background: none; padding: 0;}
642+
.note code, .info code, .todo code {
643+
background: #fff;
644+
}
636645

637646
#mainCol ul li {
638647
list-style:none;

0 commit comments

Comments
 (0)