Commit 7278c2f6 authored by iliia@google.com's avatar iliia@google.com

DevTools: [Documentation] Fix css style for renderer

Based on issue 519653002

BUG=391593

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181457 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent b25d7649
...@@ -252,7 +252,7 @@ WebInspector.DocumentationView.Renderer.prototype = { ...@@ -252,7 +252,7 @@ WebInspector.DocumentationView.Renderer.prototype = {
default: default:
console.error("Unknown ArticleElement type " + article.type()); console.error("Unknown ArticleElement type " + article.type());
case elementTypes.Block: case elementTypes.Block:
element = document.createElement("p"); element = document.createElement(article.hasBullet() ? "li" : "p");
break; break;
} }
......
...@@ -7,20 +7,20 @@ ...@@ -7,20 +7,20 @@
.documentation-example-code { .documentation-example-code {
border: 1px dotted black; border: 1px dotted black;
border-radius: 6px; border-radius: 6px;
padding: 1em; padding: 10px;
margin-bottom: 1em; margin-bottom: 10px;
} }
.documentation-code { .documentation-code {
border: 1px dotted black; border: 1px dotted black;
border-radius: 6px; border-radius: 6px;
padding:1em; padding: 10px;
margin-bottom: 1em; margin-bottom: 10px;
} }
.documentation-section-title { .documentation-section-title {
font-size: 120%; font-size: 120%;
padding-bottom: 0.4em; padding-bottom: 4px;
font-weight: bold; font-weight: bold;
} }
...@@ -33,11 +33,11 @@ ...@@ -33,11 +33,11 @@
} }
.documentation-parameter { .documentation-parameter {
margin-bottom: 1em; margin-left: 5px;
} }
.documentation-section { .documentation-section {
margin-bottom: 1.5em; margin-bottom: 15px;
} }
.documentation-code-tag { .documentation-code-tag {
...@@ -45,50 +45,50 @@ ...@@ -45,50 +45,50 @@
} }
.documentation-parameter-optional { .documentation-parameter-optional {
padding: 0.7ex; padding: 6px;
background-color: rgb(219, 234, 249); background-color: rgb(219, 234, 249);
text-decoration: none; text-decoration: none;
margin-left: 1ex; margin-left: 10px;
margin-top: -0.5ex; margin-top: -5px;
border-radius: 5px; border-radius: 5px;
} }
.documentation-parameter-data-type-value { .documentation-parameter-data-type-value {
margin-right: 0.5em; margin-right: 5px;
padding: 0.7ex; padding: 6px;
background-color: rgb(254, 254, 202); background-color: rgb(254, 254, 202);
text-decoration: none; text-decoration: none;
margin-left: 1ex; margin-left: 10px;
margin-top: -0.5ex; margin-top: 5px;
border-radius: 5px; border-radius: 5px;
} }
.documentation-parameter-name { .documentation-parameter-name {
font-size: 115%; font-size: 120%;
font-style: italic; font-style: italic;
} }
.documentation-page-title { .documentation-page-title {
font-size: 160%; font-size: 160%;
font-weight: bold; font-weight: bold;
padding-bottom: 0.7em; padding-bottom: 7px;
} }
.documentation-view { .documentation-view {
-webkit-user-select: text; -webkit-user-select: text;
padding: 1em; padding: 10px;
} }
.documentation-example-description-section { .documentation-example-description-section {
margin-bottom: 1em; margin-bottom: 10px;
} }
.documentation-example-link { .documentation-example-link {
float: right; float: right;
padding: 0.7ex; padding: 6px;
background-color: rgb(241, 246, 251); background-color: rgb(241, 246, 251);
text-decoration: none; text-decoration: none;
margin-left: 1ex; margin-left: 10px;
margin-top: -0.5ex; margin-top: 5px;
border-radius: 5px; border-radius: 5px;
} }
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