浏览代码

Merge pull request #3424 from grafana/code-tag

add variable for codeTagBackground to control look for both themes.
Torkel Ödegaard 10 年之前
父节点
当前提交
654d1f939e
共有 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
 // -------------------------