You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2015/09/14 20:30:38 UTC

[04/13] allura git commit: [#7955] make code sections more apparent; links go blue

[#7955] make code sections more apparent; links go blue

We can't style backgrounds because the CSS classes only cover part of a line.
Even if we added our own CSS classes to cover the whole line (via addLineClass)
blank lines would be difficult to detect since they aren't "code"


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

Branch: refs/heads/db/7955
Commit: b1e4c9d2951be06e65256822ea59e13c88d292e6
Parents: 407a0c0
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Wed Sep 2 16:03:20 2015 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Mon Sep 14 18:27:27 2015 +0000

----------------------------------------------------------------------
 Allura/allura/lib/widgets/resources/css/markitup_sf.css | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/b1e4c9d2/Allura/allura/lib/widgets/resources/css/markitup_sf.css
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/widgets/resources/css/markitup_sf.css b/Allura/allura/lib/widgets/resources/css/markitup_sf.css
index c8b388f..5682ffd 100644
--- a/Allura/allura/lib/widgets/resources/css/markitup_sf.css
+++ b/Allura/allura/lib/widgets/resources/css/markitup_sf.css
@@ -71,3 +71,15 @@ span.arw.preview-active {
 .markdown_edit.preview-active .editor-toolbar.disabled-for-preview a {
   background-color: transparent;
 }
+
+.CodeMirror .CodeMirror-code .cm-comment {
+  font-family: monospace;
+  background: inherit;
+  color: #888;
+}
+.CodeMirror .CodeMirror-code .cm-link {
+  color: #33a;
+}
+.CodeMirror .CodeMirror-code .cm-url {
+  color: #33d;
+}
\ No newline at end of file