Skip to content

Commit 02a67e8

Browse files
DeepSee theme & small fix that no one will see
1 parent f0eb36b commit 02a67e8

File tree

3 files changed

+22
-10
lines changed

3 files changed

+22
-10
lines changed

example/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
</style>
2323
</head>
2424
<body>
25-
<div id="pivot" style="position: fixed; left: 20%; top: 30%; width: 60%; height: 60%;">
25+
<div id="pivot" style="position: fixed; left: 20%; top: 30%; width: 60%; height: 60%;
26+
box-shadow: 0 0 20px rgb(135, 135, 135);">
2627

2728
</div>
2829
<div>Variants:

source/css/LightPivot.css

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
position: relative;
33
width: 100%;
44
height: 100%;
5-
box-shadow: 0 0 30px rgb(136, 160, 255);
65
border-radius: 5px;
76
background: white;
87
overflow: hidden;
@@ -159,11 +158,15 @@
159158
}
160159

161160
.lpt > .tableContainer tbody.fixedHeader th:last-child:hover {
162-
background: #e2c8ff;
161+
/*background: #e2c8ff;*/
162+
background: #FFEEAA;
163+
box-shadow: inset 0 0 15px #FFFFFF;
163164
}
164165

165166
.lpt th {
166-
background: #C0CDFF;
167+
/*background: #C0CDFF;*/
168+
background: #F0F0F0;
169+
box-shadow: inset 0 -5px 10px rgb(216, 216, 216);
167170
}
168171

169172
.lpt thead tr:last-child th {
@@ -175,23 +178,29 @@
175178
}
176179

177180
.lpt thead tr:last-child th:first-child ~ th:hover {
178-
background: #e2c8ff;
181+
/*background: #e2c8ff;*/
182+
background: #FFEEAA;
183+
box-shadow: inset 0 0 15px #FFFFFF;
179184
}
180185

181186
.lpt td {
182-
background: #E1E8FF;
187+
/*background: #E1E8FF;*/
188+
background: #FFFFFF;
189+
box-shadow: inset 0 0 2px rgb(216, 216, 216);
183190
-webkit-transition: all .3s ease;
184191
-moz-transition: all .3s ease;
185192
-o-transition: all .3s ease;
186193
transition: all .3s ease;
187194
}
188195

189196
.lpt tr:hover td {
190-
background: #ffe6cf;
197+
/*background: #ffe6cf;*/
198+
background: #FFF7D7;
191199
}
192200

193201
.lpt table td:hover {
194-
background: #e2c8ff;
202+
/*background: #e2c8ff;*/
203+
background: #FFEEAA;
195204
}
196205

197206
.lpt tbody > tr > th {

source/js/PivotView.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ PivotView.prototype._sizesChanged = function () {
6767
this.fixSizes(t[u].base, t[u].clone);
6868
}
6969
}
70-
t.v.clone.style.width = "";
71-
t.v.clone.style.zIndex = 1;
70+
if (t.v.clone) {
71+
t.v.clone.style.width = "";
72+
t.v.clone.style.zIndex = 1;
73+
}
7274
}
7375

7476
};

0 commit comments

Comments
 (0)