diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2018-07-23 15:14:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-23 15:14:28 -0400 |
commit | bd139a59405044c27bf367cde671e4bdbf7ccb57 (patch) | |
tree | 4808c4321ff972159d32ba494c4edb3fd28daab1 /guides/assets | |
parent | a4398e412c042b297039cc216f6536b0c048bd9c (diff) | |
parent | 6ad58676ec9be0af298d2a5e00efdb68ed92b578 (diff) | |
download | rails-bd139a59405044c27bf367cde671e4bdbf7ccb57.tar.gz rails-bd139a59405044c27bf367cde671e4bdbf7ccb57.tar.bz2 rails-bd139a59405044c27bf367cde671e4bdbf7ccb57.zip |
Merge pull request #33371 from lanzhiheng/change-the-text-color-which-wrapped-by-code-tag
[ci skip] Change the text color which wrapped by code tag.
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; |