Skip to content

Commit 927857c

Browse files
committed
Position: Cleanup up position demo CSS and add it to the within-visual-test
1 parent bfbb9e3 commit 927857c

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

demos/position/default.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
<script src="../../ui/jquery.ui.position.js"></script>
1313
<link rel="stylesheet" href="../demos.css">
1414
<style>
15-
div#parent {
15+
#parent {
1616
width: 60%;
1717
margin: 10px auto;
1818
padding: 5px;
1919
border: 1px solid #777;
2020
background-color: #fbca93;
2121
text-align: center;
2222
}
23-
div.positionable {
23+
.positionable {
2424
width: 75px;
2525
height: 75px;
2626
position: absolute;
@@ -30,16 +30,16 @@
3030
background-color: #bcd5e6;
3131
text-align: center;
3232
}
33-
div.ui-flipped-top {
33+
.ui-flipped-top {
3434
border-top: 3px solid #000000;
3535
}
36-
div.ui-flipped-bottom {
36+
.ui-flipped-bottom {
3737
border-bottom: 3px solid #000000;
3838
}
39-
div.ui-flipped-left {
39+
.ui-flipped-left {
4040
border-left: 3px solid #000000;
4141
}
42-
div.ui-flipped-right {
42+
.ui-flipped-right {
4343
border-right: 3px solid #000000;
4444
}
4545
select, input {
@@ -113,7 +113,7 @@
113113
<option value="left">left</option>
114114
<option value="center">center</option>
115115
<option value="right">right</option>
116-
</select>
116+
</select>
117117
<select id="my_vertical">
118118
<option value="top">top</option>
119119
<option value="middle">center</option>

tests/visual/position/position_within.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,20 @@
6666
bottom: 0;
6767
background-color: #bcd5e6;
6868
text-align: center;
69-
border:solid 2px #555;
7069
cursor:move;
7170
}
71+
.ui-flipped-top {
72+
border-top: 3px solid #000000;
73+
}
74+
.ui-flipped-bottom {
75+
border-bottom: 3px solid #000000;
76+
}
77+
.ui-flipped-left {
78+
border-left: 3px solid #000000;
79+
}
80+
.ui-flipped-right {
81+
border-right: 3px solid #000000;
82+
}
7283
select, input {
7384
margin-left: 15px;
7485
}

0 commit comments

Comments
 (0)