Skip to content

Commit

Permalink
Move respec-complement.css to custom and shadow (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
plehegar committed May 17, 2016
1 parent 0f1b31b commit 0df5824
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 19 deletions.
1 change: 1 addition & 0 deletions spec/custom/W3CTRMANIFEST
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
index.html?specStatus=WD;shortName=custom-elements;useExperimentalStyles=false respec
custom-element-reactions.svg
respec-complement.css

2 changes: 1 addition & 1 deletion spec/custom/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</script>
<script src="https://resources.whatwg.org/dfn.js" defer class="remove">
</script>
<link rel="stylesheet" href="../../assets/styles/respec-complement.css">
<link rel="stylesheet" href="respec-complement.css">
<script class="remove">
function resolveBacklink() {
// For dfn.js
Expand Down
44 changes: 44 additions & 0 deletions spec/custom/respec-complement.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* From https://resources.whatwg.org/standard.css
* Styles used in https://resources.whatwg.org/dfn.js
*/
body.dfnEnabled dfn { cursor: pointer; }
.dfnPanel {
display: inline;
position: absolute;
z-index: 35;
height: auto;
width: auto;
padding: 0.5em 0.75em;
font: small Helvetica Neue, sans-serif, Droid Sans Fallback;
background: #DDDDDD;
color: black;
border: outset 0.2em;
}
.dfnPanel * { margin: 0; padding: 0; font: inherit; text-indent: 0; }
.dfnPanel :link, .dfnPanel :visited { color: black; }
.dfnPanel p:not(.spec-link) { font-weight: bolder; }
.dfnPanel * + p { margin-top: 0.25em; }
.dfnPanel li { list-style-position: inside; }

/* Additional fixes */
.dfnPanel a[href] { border-bottom: none; }
.dfnPanel a[href]:hover { border-bottom: 1px solid #707070; }

/*
* From https://resources.whatwg.org/standard.css
*/
.brief { margin-top: 1em; margin-bottom: 1em; line-height: 1.1; }
.brief > li { margin: 0; padding: 0; }
.brief > li > p, .brief > li > ol, .brief > li > ul, .brief > li > dl {
margin-top: 0;
margin-bottom: 0;
padding-top: 0;
padding-bottom: 0;
}

/*
* From https://resources.whatwg.org/standard.css
*/
.element { background: #EEFFEE; color: black; margin: 0 0 1em -0.15em; padding: 0 1em 0.25em 1em; }
.element:not(:hover) > dt > :link, .element:not(:hover) > dt > :visited { color: inherit; text-decoration: none; }
1 change: 1 addition & 0 deletions spec/shadow/W3CTRMANIFEST
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
index.html?specStatus=WD;shortName=shadow-dom respec
respec-complement.css
2 changes: 1 addition & 1 deletion spec/shadow/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Shadow DOM</title>
<script src='./autolink-config.js' class='remove'></script>
<script src='../../assets/scripts/autolink.js' class='remove'></script>
<link rel="stylesheet" href="../../assets/styles/respec-complement.css" type="text/css" />
<link rel="stylesheet" href="respec-complement.css" type="text/css" />
<script src='//www.w3.org/Tools/respec/respec-w3c-common' async class='remove'></script>
<script src='//resources.whatwg.org/dfn.js' defer class='remove'></script>
<script class='remove'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,3 @@ body.dfnEnabled dfn { cursor: pointer; }
.dfnPanel a[href] { border-bottom: none; }
.dfnPanel a[href]:hover { border-bottom: 1px solid #707070; }

/*
* From https://resources.whatwg.org/standard.css
*/
.brief { margin-top: 1em; margin-bottom: 1em; line-height: 1.1; }
.brief > li { margin: 0; padding: 0; }
.brief > li > p, .brief > li > ol, .brief > li > ul, .brief > li > dl {
margin-top: 0;
margin-bottom: 0;
padding-top: 0;
padding-bottom: 0;
}

/*
* From https://resources.whatwg.org/standard.css
*/
.element { background: #EEFFEE; color: black; margin: 0 0 1em -0.15em; padding: 0 1em 0.25em 1em; }
.element:not(:hover) > dt > :link, .element:not(:hover) > dt > :visited { color: inherit; text-decoration: none; }

0 comments on commit 0df5824

Please sign in to comment.