Skip to content

Commit 48b2971

Browse files
committed
Fixed bug the position of servo is incorrect
1 parent fe68dc8 commit 48b2971

2 files changed

Lines changed: 13 additions & 18 deletions

File tree

css/stages.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ table.nav{
116116
}
117117

118118
#simulator-area {
119-
display: none;
120-
z-index: 999;
119+
z-index: -1;
121120
position: absolute;
122121
right: 32%;
123122
top: 125px;
@@ -134,7 +133,6 @@ table.nav{
134133

135134
#simulator-area.init {
136135
opacity: 0;
137-
display: block;
138136
}
139137

140138
#simulator-area.full {
@@ -148,7 +146,7 @@ table.nav{
148146
}
149147

150148
#simulator-area.show {
151-
display: block;
149+
z-index: 999;
152150
}
153151

154152
.resize-area {

css/style.css

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -616,8 +616,7 @@ td#copyCode div {
616616
/* demo area */
617617

618618
#demo-area {
619-
display: none;
620-
z-index: 101;
619+
z-index: -1;
621620
position: absolute;
622621
right: 30px;
623622
top: 125px;
@@ -632,12 +631,12 @@ td#copyCode div {
632631
cursor: move;
633632
}
634633

635-
#demo-area.topArea {
636-
z-index: 102;
634+
#demo-area.show {
635+
z-index: 101;
637636
}
638637

639-
#demo-area.show {
640-
display: block;
638+
#demo-area.show.topArea {
639+
z-index: 102;
641640
}
642641

643642
#demo-area.resize {
@@ -1028,8 +1027,7 @@ td#copyCode div {
10281027
/* simulation area */
10291028

10301029
#simulator-area {
1031-
display: none;
1032-
z-index: 101;
1030+
z-index: -1;
10331031
position: absolute;
10341032
right: 30px;
10351033
top: 125px;
@@ -1044,13 +1042,16 @@ td#copyCode div {
10441042
cursor: move;
10451043
}
10461044

1047-
#simulation-area.topArea {
1045+
#simulator-area.show {
1046+
z-index: 101;
1047+
}
1048+
1049+
#simulation-area.show.topArea {
10481050
z-index: 102;
10491051
}
10501052

10511053
#simulator-area.init {
10521054
opacity: 0;
1053-
display: block;
10541055
}
10551056

10561057
#simulator-area.full {
@@ -1065,10 +1066,6 @@ td#copyCode div {
10651066
z-index: 200;
10661067
}
10671068

1068-
#simulator-area.show {
1069-
display: block;
1070-
}
1071-
10721069
.resize-area {
10731070
position: absolute;
10741071
width: 10px;

0 commit comments

Comments
 (0)