Commit 20f51473 authored by iliia@google.com's avatar iliia@google.com

DevTools: [Documentation] fix css styles for renderer

BUG=391593

Review URL: https://codereview.chromium.org/554243002

git-svn-id: svn://svn.chromium.org/blink/trunk@181639 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 2edf134b
...@@ -217,7 +217,8 @@ WebInspector.DocumentationView.Renderer.prototype = { ...@@ -217,7 +217,8 @@ WebInspector.DocumentationView.Renderer.prototype = {
liveUrl.href = examples[i].liveUrl; liveUrl.href = examples[i].liveUrl;
liveUrl.textContent = WebInspector.UIString("Example"); liveUrl.textContent = WebInspector.UIString("Example");
} }
exampleDescription.appendChild(this._renderBlock(examples[i].description)); if (examples[i].description)
exampleDescription.appendChild(this._renderBlock(examples[i].description));
var code = example.createChild("div", "documentation-code"); var code = example.createChild("div", "documentation-code");
code.classList.add("source-code"); code.classList.add("source-code");
code.textContent = examples[i].code; code.textContent = examples[i].code;
......
...@@ -62,11 +62,12 @@ ...@@ -62,11 +62,12 @@
} }
.documentation-example-description-section { .documentation-example-description-section {
margin-bottom: 10px; margin-bottom: 20px;
} }
.documentation-example-link { .documentation-example-link {
float: right; float: right;
background-color: rgb(241, 246, 251);
} }
.documentation-box { .documentation-box {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment