You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ti...@apache.org on 2015/12/17 06:18:32 UTC

[2/3] mesos git commit: [site] Forced horizontal scroll in docs code blocks.

[site] Forced horizontal scroll in docs code blocks.

Previously, we just wrapped the text and it was a mess. Now a horizontal
scroll bar will appear in code blocks instead of wrapping lines and
causing weirdness when trying to follow what's going on in the code.
It also makes it easier to copy and paste whole blocks of code.

Review: https://reviews.apache.org/r/41359/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d520dede
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/d520dede
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/d520dede

Branch: refs/heads/master
Commit: d520dede929c29a6297fc949e31973641878ec9b
Parents: a3562e6
Author: Kevin Klues <kl...@gmail.com>
Authored: Thu Dec 17 06:14:16 2015 +0100
Committer: Till Toenshoff <to...@me.com>
Committed: Thu Dec 17 06:14:16 2015 +0100

----------------------------------------------------------------------
 site/source/assets/css/main.css | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/d520dede/site/source/assets/css/main.css
----------------------------------------------------------------------
diff --git a/site/source/assets/css/main.css b/site/source/assets/css/main.css
index f5622cf..73ca894 100755
--- a/site/source/assets/css/main.css
+++ b/site/source/assets/css/main.css
@@ -11,6 +11,15 @@ ul.breadcrumb {
 	width: 940px;
 }
 
+pre {
+    overflow-x: auto;
+}
+
+pre code {
+    word-wrap: normal;
+    white-space: pre;
+}
+
 /* Custom container */
 .container > hr {
   margin: 20px 0;