浏览代码

changed light-theme tool-tip to be a bit lighter, trying different paddings

ijin08 7 年之前
父节点
当前提交
30f27a966b
共有 3 个文件被更改,包括 6 次插入5 次删除
  1. 2 2
      public/sass/_variables.dark.scss
  2. 2 2
      public/sass/_variables.light.scss
  3. 2 1
      public/sass/components/_tooltip.scss

+ 2 - 2
public/sass/_variables.dark.scss

@@ -307,8 +307,8 @@ $tooltipArrowWidth: 5px;
 $tooltipLinkColor: $link-color;
 $graph-tooltip-bg: $dark-1;
 
-$tooltipBackground: $black;
-$tooltipColor: $text-color;
+$tooltipBackground: $dark-1;
+$tooltipColor: white;
 $tooltipArrowColor: $tooltipBackground;
 $tooltipBackgroundError: $brand-danger;
 $tooltipBackgroundBrand: $brand-primary;

+ 2 - 2
public/sass/_variables.light.scss

@@ -312,8 +312,8 @@ $tooltipLinkColor: lighten($popover-help-color, 5%);
 $graph-tooltip-bg: $gray-5;
 
 $tooltipBackground: $popover-help-bg;
-$tooltipBackground: #09090b;
-$tooltipColor: #ececec;
+$tooltipBackground: $gray-1;
+$tooltipColor: $gray-7;
 $tooltipArrowColor: $tooltipBackground; // Used by Angular tooltip
 $tooltipBackgroundError: $brand-danger;
 $tooltipBackgroundBrand: $brand-primary;

+ 2 - 1
public/sass/components/_tooltip.scss

@@ -40,7 +40,8 @@
 // Wrapper for the tooltip content
 .tooltip-inner {
   max-width: 400px;
-  padding: 8px;
+  padding: 8px 16px;
+  padding: 4px 8px;
   color: $tooltipColor;
   text-align: center;
   text-decoration: none;