Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2078)

Unified Diff: Source/devtools/front_end/documentation/DocumentationView.js

Issue 548213004: DevTools: [Documentation] fix css styles for renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/documentationView.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/documentation/DocumentationView.js
diff --git a/Source/devtools/front_end/documentation/DocumentationView.js b/Source/devtools/front_end/documentation/DocumentationView.js
index 042f0a243dfb3d91978eae87abf3857b071e2a0b..5960b4bb7b2e2d5d425c81cecca02aabd396782e 100644
--- a/Source/devtools/front_end/documentation/DocumentationView.js
+++ b/Source/devtools/front_end/documentation/DocumentationView.js
@@ -168,9 +168,11 @@ WebInspector.DocumentationView.Renderer.prototype = {
var name = header.createChild("span", "documentation-parameter-name");
name.textContent = parameters[i].name;
var dataTypeValue = header.createChild("span", "documentation-parameter-data-type-value");
+ dataTypeValue.classList.add("documentation-box");
dataTypeValue.textContent = parameters[i].dataType;
if (parameters[i].optional) {
var optional = header.createChild("span", "documentation-parameter-optional");
+ optional.classList.add("documentation-box");
optional.textContent = WebInspector.UIString("Optional");
}
parameter.appendChild(this._renderBlock(parameters[i].description));
@@ -211,11 +213,12 @@ WebInspector.DocumentationView.Renderer.prototype = {
var exampleDescription = example.createChild("div", "documentation-example-description-section");
if (examples[i].liveUrl) {
var liveUrl = exampleDescription.createChild("a", "documentation-example-link");
+ liveUrl.classList.add("documentation-box");
liveUrl.href = examples[i].liveUrl;
liveUrl.textContent = WebInspector.UIString("Example");
}
exampleDescription.appendChild(this._renderBlock(examples[i].description));
- var code = example.createChild("div", "documentation-example-code");
+ var code = example.createChild("div", "documentation-code");
code.classList.add("source-code");
code.textContent = examples[i].code;
if (!examples[i].language)
« no previous file with comments | « no previous file | Source/devtools/front_end/documentationView.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698