Skip to content

Commit

Permalink
Merge pull request #400 from darobin/webspec-issues
Browse files Browse the repository at this point in the history
Webspec issues
  • Loading branch information
darobin committed Feb 12, 2015
2 parents 6ed9293 + 7416e9a commit 6886602
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
8 changes: 8 additions & 0 deletions js/core/css/examples-webspecs.css
@@ -0,0 +1,8 @@
/* --- EXAMPLES CONFLICTING WITH WEBSPECS --- */
aside.example:before, div.example:before, div.illegal-example:before, pre.example:before {
content: "" !important;
display: none;
}
div.example-title {
color: #ef0000;
}
5 changes: 3 additions & 2 deletions js/core/examples.js
Expand Up @@ -7,8 +7,8 @@
// be used by a containing shell to extract all examples.

define(
["text!core/css/examples.css"],
function (css) {
["text!core/css/examples.css", "text!core/css/examples-webspecs.css"],
function (css, cssKraken) {
var makeTitle = function ($el, num, report) {
var txt = (num > 0) ? " " + num : ""
, $tit = $("<div class='example-title'><span>Example" + txt + "</span></div>");
Expand All @@ -27,6 +27,7 @@ define(
, num = 0
;
if ($exes.length) {
if (conf.specStatus === "webspec") css += cssKraken;
$(doc).find("head link").first().before($("<style/>").text(css));
$exes.each(function (i, ex) {
var $ex = $(ex)
Expand Down
5 changes: 5 additions & 0 deletions js/w3c/headers.js
Expand Up @@ -263,6 +263,11 @@ define(
, short: "W3C"
, url: "http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231"
}
, "cc-by": {
name: "Creative Commons Attribution 4.0 International Public License"
, short: "CC-BY"
, url: "http://creativecommons.org/licenses/by/4.0/legalcode"
}
}
, run: function (conf, doc, cb, msg) {
msg.pub("start", "w3c/headers");
Expand Down

0 comments on commit 6886602

Please sign in to comment.