diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2015-01-03 12:58:19 +0100 |
---|---|---|
committer | Robin Dupret <robin.dupret@gmail.com> | 2015-01-03 12:58:19 +0100 |
commit | d0703280c7c4a3d958fe5c5743def7808383ad75 (patch) | |
tree | d53a2adb5e7e8274dc8a81a3f3e56539be7e9ada /guides/assets/stylesheets | |
parent | 0aa18c7d18ac5cf72345b79a223149f8ff9d4ae8 (diff) | |
download | rails-d0703280c7c4a3d958fe5c5743def7808383ad75.tar.gz rails-d0703280c7c4a3d958fe5c5743def7808383ad75.tar.bz2 rails-d0703280c7c4a3d958fe5c5743def7808383ad75.zip |
Avoid displaying new lines inside note paragraphs
Commit 65a2977 added a `pre-wrap` style for white spaces on `.note`
paragraphs. However, this is first inconsistent as other notes like
warnings don't have this style applied. Furthermore, it seems to be
unneeded for mobile devices.
Also revert changes made in #18147 since they aren't needed anymore.
Cross-refs #18138.
[ci skip]
Diffstat (limited to 'guides/assets/stylesheets')
-rw-r--r-- | guides/assets/stylesheets/main.css | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/assets/stylesheets/main.css b/guides/assets/stylesheets/main.css index 318a1ef1c7..ed558e4793 100644 --- a/guides/assets/stylesheets/main.css +++ b/guides/assets/stylesheets/main.css @@ -34,7 +34,7 @@ pre, code { overflow: auto; color: #222; } -pre,tt,code,.note>p { +pre, tt, code { white-space: pre-wrap; /* css-3 */ white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */ white-space: -pre-wrap; /* Opera 4-6 */ |