From 4835182ad5021036f7bd19ddd2d9860fc2796ab6 Mon Sep 17 00:00:00 2001 From: Jan Piotrowski <piotrowski@gmail.com> Date: Fri, 5 May 2017 13:38:58 +0200 Subject: [PATCH] Replace inline styles with style block --- scripts/docs/templates/common.template.html | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/scripts/docs/templates/common.template.html b/scripts/docs/templates/common.template.html index ed789105..14a5c187 100644 --- a/scripts/docs/templates/common.template.html +++ b/scripts/docs/templates/common.template.html @@ -175,9 +175,18 @@ docType: "<$ doc.docType $>" <# --- Install commands --- #> <h2>Installation</h2> -<ol> - <li style="font-size:15px; margin-bottom:10px;">Install the Cordova and Ionic Native plugins:<br> - <pre style="margin-top:10px;"><code class="nohighlight">$ <@ if prop.install @><$ prop.install $><@ else @>ionic plugin add --save <$ prop.plugin $><@ endif @> +<style> + .installation li { + font-size:15px; + margin-bottom:10px; + } + .installation li pre { + margin-top:10px; + } +</style> +<ol class="installation"> + <li>Install the Cordova and Ionic Native plugins:<br> + <pre><code class="nohighlight">$ <@ if prop.install @><$ prop.install $><@ else @>ionic plugin add --save <$ prop.plugin $><@ endif @> $ npm install --save @ionic-native/<$ doc.npmId $> </code></pre> </li>