浏览代码

Fix color cells going over the column name (#160) (#163)

Leonardo Jeanteur 4 年之前
父节点
当前提交
2821abe846
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 3 0
      bin/cdb.css
  2. 3 0
      bin/cdb.less

+ 3 - 0
bin/cdb.css

@@ -60,6 +60,7 @@
 }
 .cdb .cdb-sheet tr.separator td {
   position: sticky;
+  z-index: 1;
   top: 19px;
   border-left: none;
   padding-top: 6px;
@@ -127,6 +128,7 @@
 }
 .cdb .cdb-sheet:not(.cdb-sub-sheet) > thead.head > th {
   position: sticky;
+  z-index: 1;
   top: 0;
 }
 .cdb .cdb-sheet tr.head,
@@ -263,6 +265,7 @@
 }
 .cdb .cdb-sheet td.t_color {
   text-align: center;
+  position: relative;
 }
 .cdb .cdb-sheet td.t_color ._hide-modal {
   opacity: 0;

+ 3 - 0
bin/cdb.less

@@ -69,6 +69,7 @@
 			height : 10px;
 			td {
 				position: sticky;
+				z-index: 1;
 				top: 19px;
 				border-left: none;
 				padding-top: 6px;
@@ -140,6 +141,7 @@
 
 		&:not(.cdb-sub-sheet) > thead.head > th {
 			position: sticky;
+			z-index: 1;
 			top: 0;
 		}
 
@@ -293,6 +295,7 @@
 
 		td.t_color {
 			text-align : center;
+			position: relative;
 			._hide-modal {
 				opacity : 0;
 			}