Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit d0bb9fa

Browse files
author
Marcel Gerber
committed
Update Web Platform Docs
1 parent 9d11035 commit d0bb9fa

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed

src/extensions/default/WebPlatformDocs/InlineDocsViewer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h1>{{propName}}</h1>
1010
<div class="scroller" tabIndex="0"> <!-- tabIndex needed: otherwise can't be focused on open or via click -->
1111
<dl>
1212
{{#propValues}}
13-
<dt>{{value}}</dt>
13+
<dt>{{{value}}}</dt>
1414
<dd>{{{description}}}</dd>
1515
{{/propValues}}
1616
</dl>

src/extensions/default/WebPlatformDocs/InlineDocsViewer.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,15 @@ define(function (require, exports, module) {
4949

5050
/**
5151
* @param {!string} cssPropName
52-
* @param {!{SUMMARY:string, URL:string, VALUES:Array.<{TITLE:string, DESCRIPTION:string}>}} cssPropDetails
52+
* @param {!{SUMMARY:string, URL:string, VALUES:?Array.<{value:string, description:string}>}} cssPropDetails
5353
*/
5454
function InlineDocsViewer(cssPropName, cssPropDetails) {
5555
InlineWidget.call(this);
5656

57-
var propValues = cssPropDetails.VALUES.map(function (valueInfo) {
58-
return { value: valueInfo.TITLE, description: valueInfo.DESCRIPTION };
59-
});
60-
6157
var templateVars = {
6258
propName : cssPropName,
6359
summary : cssPropDetails.SUMMARY,
64-
propValues : propValues,
60+
propValues : cssPropDetails.VALUES || [],
6561
url : cssPropDetails.URL,
6662
Strings : Strings
6763
};

src/extensions/default/WebPlatformDocs/WebPlatformDocs.less

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@
5757
b {
5858
font-weight: @font-weight-semibold;
5959
}
60+
61+
table {
62+
width: 100%;
63+
margin-bottom: 1em;
64+
th, td {
65+
border: 1px solid lighten(@bc-text-thin-quiet, 20%);
66+
padding: 0 .15em;
67+
}
68+
}
6069
}
6170

6271
/* Left-hand column */
@@ -207,5 +216,11 @@ a.more-info {
207216
color: @dark-bc-text;
208217
text-shadow: 0 1px 0 @dark-bc-highlight;
209218
}
219+
220+
table {
221+
th, td {
222+
border-color: darken(@dark-bc-text-thin-quiet, 35%);
223+
}
224+
}
210225
}
211226
}

src/extensions/default/WebPlatformDocs/css.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)