diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index 5a6bd971fb..d13686ea7c 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -681,6 +681,7 @@ form.well { } .jumbotron p { margin-right: 0; + margin-left: 0; font-size: 18px; line-height: 24px; } @@ -695,6 +696,10 @@ form.well { .quick-links { margin: 40px 0 0; } + .quick-links li { + margin-top: 5px; + margin-bottom: 5px; + } /* hide the bullets on mobile since our horizontal space is limited */ .quick-links .divider { display: none; @@ -744,7 +749,7 @@ form.well { .subnav .nav > li { float: none; } - .subnav .nav a { + .subnav .nav > li > a { border: 0; } .subnav .nav li + li a { diff --git a/docs/base-css.html b/docs/base-css.html index 167cb5e694..222b5c81da 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -71,6 +71,7 @@ + - - -

Code Inline and block

- - - - - - - - - - - - - - - - - - - - - -
ElementResult
<code>In a line of text like this, your wrapped code will look like this <html> element.
<pre> -
<div>
-  <h1>Heading</h1>
-  <p>Something right here…</p>
-</div>
-

Note: Be sure to keep code within <pre> tags as close to the left as possible; it will render all tabs.

-
<pre class="prettyprint"> -

Using the google-code-prettify library, your blocks of code get a slightly different visual style and automatic syntax highlighting. You can also add an additional class to add line numbers.

-
<div>
-  <h1>Heading</h1>
-  <p>Something right here…</p>
-</div>
-
<div>
-  <h1>Heading</h1>
-  <p>Something right here…</p>
-</div>
-

Download google-code-prettify and view the readme for how to use.

-
+ +
+ +
+
+

Inline

+

Wrap inline snippets of code with <code>.

+
+For example, <code>section</code> should be wrapped as inline.
+
+
+
+

Basic block

+

Use <pre> for multiple lines of code. Be sure to turn any carets into their unicode characters for proper rendering.

+
+<pre>
+  &lt;p&gt;Sample text here...&lt;/p&gt;
+</pre>
+
+

Note: Be sure to keep code within <pre> tags as close to the left as possible; it will render all tabs.

+
+
+

Google Prettify

+

Take the same <pre> element and add two optional classes for enhanced rendering.

+
+<pre class="prettyprint
+     linenums">
+  &lt;p&gt;Sample text here...&lt;/p&gt;
+</pre>
+
+

Download google-code-prettify and view the readme for how to use.

+
+
diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index ad27d2be88..f235d9b05e 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -6,6 +6,7 @@ + - - -

{{_i}}Code Inline and block{{/i}}

- - - - - - - - - - - - - - - - - - - - - -
{{_i}}Element{{/i}}{{_i}}Result{{/i}}
<code>{{_i}}In a line of text like this, your wrapped code will look like this <html> element.{{/i}}
<pre> -
<div>
-  <h1>{{_i}}Heading{{/i}}</h1>
-  <p>{{_i}}Something right here…{{/i}}</p>
-</div>
-

{{_i}}Note: Be sure to keep code within <pre> tags as close to the left as possible; it will render all tabs.{{/i}}

-
<pre class="prettyprint"> -

{{_i}}Using the google-code-prettify library, your blocks of code get a slightly different visual style and automatic syntax highlighting. You can also add an additional class to add line numbers.{{/i}}

-
<div>
-  <h1>{{_i}}Heading{{/i}}</h1>
-  <p>{{_i}}Something right here…{{/i}}</p>
-</div>
-
<div>
-  <h1>{{_i}}Heading{{/i}}</h1>
-  <p>{{_i}}Something right here…{{/i}}</p>
-</div>
-

{{_i}}Download google-code-prettify and view the readme for how to use.{{/i}}

-
+ +
+ +
+
+

Inline

+

Wrap inline snippets of code with <code>.

+
+{{_i}}For example, <code>section</code> should be wrapped as inline.{{/i}}
+
+
+
+

Basic block

+

{{_i}}Use <pre> for multiple lines of code. Be sure to turn any carets into their unicode characters for proper rendering.{{/i}}

+
+<pre>
+  &lt;p&gt;{{_i}}Sample text here...{{/i}}&lt;/p&gt;
+</pre>
+
+

{{_i}}Note: Be sure to keep code within <pre> tags as close to the left as possible; it will render all tabs.{{/i}}

+
+
+

Google Prettify

+

Take the same <pre> element and add two optional classes for enhanced rendering.

+
+<pre class="prettyprint
+     linenums">
+  &lt;p&gt;{{_i}}Sample text here...{{/i}}&lt;/p&gt;
+</pre>
+
+

{{_i}}Download google-code-prettify and view the readme for how to use.{{/i}}

+
+