Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: mozilla/kuma
base: 39d7db88dbdd074a6f295c2932734489a8973bc1
...
head fork: mozilla/kuma
compare: bc5313064c71419434bff0b49df5431a139fcb84
  • 6 commits
  • 3 files changed
  • 0 commit comments
  • 2 contributors
9 apps/wiki/templates/wiki/includes/highlighting_scripts.html
View
@@ -5,7 +5,7 @@
<link rel="stylesheet" href="{{ MEDIA_URL }}prism/plugins/line-highlight/prism-line-highlight.css" type="text/css" />
<link rel="stylesheet" href="{{ MEDIA_URL }}prism/plugins/ie8/prism-ie8.css" type="text/css" />
- <script type="text/javascript" src="{{ MEDIA_URL }}prism/prism.js"></script>
+ <script type="text/javascript" src="{{ MEDIA_URL }}prism/prism.js" data-manual></script>
<script type="text/javascript" src="{{ MEDIA_URL }}prism/plugins/ie8/prism-ie8.js"></script>
<script type="text/javascript">
(function($) {
@@ -36,8 +36,8 @@
semiSplit = klass.split(';'),
klassParts = semiSplit[0].split(':');
- // Default to HTML styling for all PRE's (and unsupported languages)
- $pre.attr('class', 'language-' + defaultBrush);
+ // Style all as HTML initially
+ $pre.addClass('language-' + defaultBrush);
// Format PRE content for Prism highlighting
if(klassParts[0] == 'brush') {
@@ -55,6 +55,9 @@
}
});
+ // Highlight elements now that they've been treated
+ Prism.highlightAll();
+
// Patch for IE8 so that Prism works
function patchIE8ForPrism() {
2  media/css/mdn-screen.css
View
@@ -233,7 +233,7 @@ p.notice { padding-bottom: 10px; top: 0; margin-bottom: 15px; }
/*** @Search *********/
#site-search { width: 280px; float: right; text-align: left; padding-left: 0; margin: -8px 140px 0 0; position: relative; }
#site-search p { margin: 0; }
-#site-search #q { width: 190px; padding: 3px 4px 3px 28px; margin: 0 0 0 4px; float: right; background: #555; background: rgba(80,80,80,.9) url("../img/search-icons.png") 6px -96px no-repeat; border: 1px solid #666; color: #aaa; font-size: .857em; -webkit-appearance: textfield; appearance: textfield; }
+#site-search #q { padding: 3px 4px 3px 28px; margin: 0 0 0 4px; float: right; background: #555; background: rgba(80,80,80,.9) url("../img/search-icons.png") 6px -96px no-repeat; border: 1px solid #666; color: #aaa; font-size: .857em; -webkit-appearance: textfield; appearance: textfield; }
#site-search #q:hover, #site-search #q:focus { border-color: #9c0d10; background-color: #fff; color: #333; }
#site-search button { font-size: 12px; width: 60px; position: absolute; right: -70px; }
#site-search-gg { width: 60px; height: 28px; font-size: .642em; float: right; text-align: right; position: relative; }
5 media/css/wiki-screen.css
View
@@ -552,7 +552,12 @@ td.diff_header {
/* Prism syntax highlighting */
pre[class*="language-"] { line-height: 1.5em; margin-bottom: 20px !important; }
+pre[class*="language-"] span.comment { display: inline-block; }
.error pre[class*="language-"] { margin: 10px 0 0 0 !important; background: none; }
+pre[class*="language-"].twopartsyntaxbox { margin-bottom: 0 !important; }
+pre[class*="language-"].twopartsyntaxbox, pre[class*="language-"].syntaxbox {
+ background: #ffffee;
+}
/* HTabs - Compatibility Tables */
.htab { margin: 0 auto 1em; display: inline-block; }

No commit comments for this range

Something went wrong with that request. Please try again.