diff --git a/assets/styles/respec-complement.css b/assets/styles/respec-complement.css index abb24626..98855adb 100644 --- a/assets/styles/respec-complement.css +++ b/assets/styles/respec-complement.css @@ -49,3 +49,26 @@ var { color: #005A9C; font-style: normal; } + +/* + * 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; } diff --git a/spec/shadow/index.html b/spec/shadow/index.html index 90168ed9..55571147 100644 --- a/spec/shadow/index.html +++ b/spec/shadow/index.html @@ -7,7 +7,14 @@ +