diff options
author | lanzhiheng <lanzhihengrj@gmail.com> | 2018-07-16 20:13:59 +0800 |
---|---|---|
committer | lanzhiheng <lanzhihengrj@gmail.com> | 2018-07-19 09:49:35 +0800 |
commit | 6ad58676ec9be0af298d2a5e00efdb68ed92b578 (patch) | |
tree | 0cc4b53f0ebb25ccad0db7b9fcf7221d8e214718 /guides/assets | |
parent | 08813dd62a0ae4061774511dfc8a7fc0384d6528 (diff) | |
download | rails-6ad58676ec9be0af298d2a5e00efdb68ed92b578.tar.gz rails-6ad58676ec9be0af298d2a5e00efdb68ed92b578.tar.bz2 rails-6ad58676ec9be0af298d2a5e00efdb68ed92b578.zip |
Change the background color which wrapped by code tag. [ci skip]
Diffstat (limited to 'guides/assets')
-rw-r--r-- | guides/assets/stylesheets/main.css | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/guides/assets/stylesheets/main.css b/guides/assets/stylesheets/main.css index 00d4bcb21e..cd355b1d1a 100644 --- a/guides/assets/stylesheets/main.css +++ b/guides/assets/stylesheets/main.css @@ -33,6 +33,13 @@ pre, code { overflow: auto; color: #222; } + +p code { + background: #eee; + border-radius: 2px; + padding: 1px 3px; +} + pre, tt, code { white-space: pre-wrap; /* css-3 */ white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */ @@ -632,7 +639,9 @@ div.code_container { margin: 0.25em 0 1.5em 0; } -.note code, .info code, .todo code {border:none; background: none; padding: 0;} +.note code, .info code, .todo code { + background: #fff; +} #mainCol ul li { list-style:none; |