瀏覽代碼

Merge branch 'master' of github.com:grafana/grafana

Torkel Ödegaard 10 年之前
父節點
當前提交
5aa90eb086
共有 3 個文件被更改,包括 6 次插入2 次删除
  1. 4 2
      public/less/overrides.less
  2. 1 0
      public/less/variables.dark.less
  3. 1 0
      public/less/variables.light.less

+ 4 - 2
public/less/overrides.less

@@ -61,7 +61,7 @@
 }
 
 code, pre {
-  background-color: @grayLighter;
+  background-color: @codeTagBackground;
 }
 
 div.editor-row {
@@ -578,8 +578,10 @@ div.flot-text {
 
 // pre
 code, pre {
-  background-color: @grafanaPanelBackground;
+  background-color: @codeTagBackground;
   color: @textColor;
+  border: 1px solid darken(@codeTagBackground, 15%);
+  padding: 2px;
 }
 
 .dropdown-menu {

+ 1 - 0
public/less/variables.dark.less

@@ -42,6 +42,7 @@
 @grafanaTargetFuncHightlight: #444;
 
 @modalBackground: @black;
+@codeTagBackground: #444;
 
 // Scaffolding
 // -------------------------

+ 1 - 0
public/less/variables.light.less

@@ -55,6 +55,7 @@
 @grafanaTargetFuncHightlight: darken(@grafanaTargetBackground, 10%);
 
 @modalBackground: @bodyBackground;
+@codeTagBackground: #ddd;
 
 // Scaffolding
 // -------------------------