Переглянути джерело

Merge pull request #4728 from grafana/code-style-improvements

Code style improvements
Torkel Ödegaard 9 роки тому
батько
коміт
822bf13b7a

+ 1 - 1
public/app/features/plugins/partials/update_instructions.html

@@ -16,6 +16,6 @@
 			<pre><code>grafana-cli plugins update {{plugin.id}}</code></pre>
 			<pre><code>grafana-cli plugins update {{plugin.id}}</code></pre>
 			<span class="small">Check out {{plugin.name}} on <a href="http://grafana/net/plugins/{{plugin.id}}">Grafana.net</a> for README and changelog. If you do not have access to the command line, ask your Grafana administator.</span>
 			<span class="small">Check out {{plugin.name}} on <a href="http://grafana/net/plugins/{{plugin.id}}">Grafana.net</a> for README and changelog. If you do not have access to the command line, ask your Grafana administator.</span>
 		</div>
 		</div>
-		<p class="pluginlist-none-installed code--line"><img class="pluginlist-inline-logo" src="public/img/grafana_icon.svg"><strong>Pro tip</strong>: To update all plugins at once, type <code class="code--small">grafana-cli plugins update-all</code> on the command line.</div>
+		<p class="pluginlist-none-installed"><img class="pluginlist-inline-logo" src="public/img/grafana_icon.svg"><strong>Pro tip</strong>: To update all plugins at once, type <code class="code--small">grafana-cli plugins update-all</code> on the command line.</div>
 	</div>
 	</div>
 </div>
 </div>

+ 2 - 4
public/sass/base/_code.scss

@@ -21,6 +21,8 @@ code {
   background-color: $code-tag-bg;
   background-color: $code-tag-bg;
   border: 1px solid darken($code-tag-bg, 15%);
   border: 1px solid darken($code-tag-bg, 15%);
   white-space: nowrap;
   white-space: nowrap;
+  padding: 2px 5px;
+  margin: 0 2px;
 }
 }
 
 
 code.code--small {
 code.code--small {
@@ -29,10 +31,6 @@ code.code--small {
   margin: 0 2px;
   margin: 0 2px;
 }
 }
 
 
-p.code--line {
-  line-height: 1.8;
-}
-
 // Blocks of code
 // Blocks of code
 pre {
 pre {
   display: block;
   display: block;

+ 1 - 0
public/sass/components/_panel_text.scss

@@ -3,4 +3,5 @@
   ul {
   ul {
     margin: 0 0 $spacer $spacer * 1.5;
     margin: 0 0 $spacer $spacer * 1.5;
   }
   }
+  li {line-height: 2;}
 }
 }