Skip to content

Commit

Permalink
refactor: reorganize the z-index of each control component
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyaoji committed Nov 17, 2021
1 parent 854e239 commit 403ea4f
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packages/theme-default/src/compass.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
text-align: center;
align-items: center;
justify-content: center;
z-index: $z-top;
z-index: $z-side;
pointer-events: auto;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/theme-default/src/core/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ $z-marginals: 2000 !default;
$z-fixed-drawer: 3000 !default;
$z-fullscreen: 6000 !default;
$z-menu: 6000 !default;
$z-top: 7000 !default;
$z-side: 7000 !default;
$z-tooltip: 9000 !default;
$z-notify: 9500 !default;
$z-max: 9998 !default;
Expand Down
2 changes: 1 addition & 1 deletion packages/theme-default/src/core/visibility.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
}

.z-top {
z-index: $z-top !important;
z-index: $z-side !important;
}

.z-max {
Expand Down
2 changes: 1 addition & 1 deletion packages/theme-default/src/distance-legend.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

.vc-distance-legend {
position: absolute;
z-index: $z-top;
z-index: $z-side;
margin-right: 5px;
box-sizing: border-box;
float: left;
Expand Down
2 changes: 1 addition & 1 deletion packages/theme-default/src/echart-overlay.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import './core/variables.scss';
.vc-echart-container {
z-index: $z-top;
z-index: $z-side;
}
2 changes: 1 addition & 1 deletion packages/theme-default/src/html-overlay.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
display: none;
position: absolute;
// pointer-events: none;
z-index: $z-top;
z-index: $z-side;
}
2 changes: 1 addition & 1 deletion packages/theme-default/src/my-location.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.vc-my-location {
cursor: pointer;
text-align: center;
z-index: $z-top;
z-index: $z-side;
pointer-events: auto;
}

Expand Down
4 changes: 2 additions & 2 deletions packages/theme-default/src/navigation-sm.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
box-sizing: content-box;
height: 300px;
width: 128px;
z-index: $z-top;
z-index: $z-side;
display: flex;
flex-direction: column;
justify-content: center;
Expand Down Expand Up @@ -92,7 +92,7 @@
height: 16px;
background-image: url('./images/vc-tiltbar-sm.png');
background-repeat: no-repeat;
z-index: $z-top;
z-index: $z-side;
}

.vc-arrows-e-sm {
Expand Down
2 changes: 1 addition & 1 deletion packages/theme-default/src/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// 导航控件
.vc-navigation {
position: absolute;
z-index: $z-top;
z-index: $z-side;
line-height: 1;
pointer-events: none;
.vc-navigation-controls {
Expand Down
4 changes: 2 additions & 2 deletions packages/theme-default/src/overview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

.vc-overview-map {
text-align: center;
z-index: $z-top;
z-index: $z-side;
background: #f8f8f9;
pointer-events: auto;
transition: all 0.6s;
Expand All @@ -12,7 +12,7 @@
}

.vc-btn {
z-index: $z-top;
z-index: $z-side;
transition: all 0.6s;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/theme-default/src/print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.vc-print {
cursor: pointer;
text-align: center;
z-index: $z-top;
z-index: $z-side;
pointer-events: auto;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/theme-default/src/selection-indicator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
.vc-selection-indicator {
pointer-events: none;
position: absolute;
z-index: $z-top;
z-index: $z-side;
}
2 changes: 1 addition & 1 deletion packages/theme-default/src/status-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.vc-status-bar {
cursor: pointer;
position: absolute;
z-index: $z-top;
z-index: $z-side;
margin-right: 5px;

box-sizing: border-box;
Expand Down
2 changes: 1 addition & 1 deletion packages/theme-default/src/zoom-control.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
text-align: center;
align-items: center;
justify-content: center;
z-index: $z-top;
z-index: $z-side;
pointer-events: auto;
}

Expand Down

0 comments on commit 403ea4f

Please sign in to comment.