Skip to content

Commit

Permalink
Use fixed not absolute positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
codefrau committed Aug 25, 2016
1 parent aea0e78 commit 81fd5ee
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion benchmark/benchmark.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ canvas.pixelated {
-ms-interpolation-mode: nearest-neighbor;
}
div#sqSpinner {
position: absolute;
position: fixed;
margin: auto; top: 0; left: 0; bottom: 0; right: 0;
width: 100px;
height: 100px;
Expand Down
8 changes: 4 additions & 4 deletions demo/simple.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ body {
font-family: sans-serif;
}
canvas {
position: absolute;
position: fixed;
background: #000;
cursor: default;
}
Expand All @@ -17,23 +17,23 @@ label {
padding-right: 3em;
}
div#sqHeader {
position: absolute;
position: fixed;
top: 0;
left: 0;
right: 0;
padding: 10px;
border-bottom: 6px double gray;
}
div#sqFooter {
position: absolute;
position: fixed;
left: 0;
right: 0;
bottom: 0;
padding: 10px;
border-top: 6px double gray;
}
div#sqSpinner {
position: absolute;
position: fixed;
margin: auto; top: 0; left: 0; bottom: 0; right: 0;
width: 100px;
height: 100px;
Expand Down
8 changes: 4 additions & 4 deletions etoys/etoys.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ body {
font-family: sans-serif;
}
canvas {
position: absolute;
position: fixed;
background: #000;
cursor: default;
}
Expand All @@ -14,23 +14,23 @@ canvas.pixelated {
-ms-interpolation-mode: nearest-neighbor;
}
div#sqHeader {
position: absolute;
position: fixed;
top: 0;
left: 0;
right: 0;
padding: 10px;
border-bottom: 6px double gray;
}
div#sqFooter {
position: absolute;
position: fixed;
left: 0;
right: 0;
bottom: 0;
padding: 10px;
border-top: 6px double gray;
}
div#sqSpinner {
position: absolute;
position: fixed;
margin: auto; top: 0; left: 0; bottom: 0; right: 0;
width: 100px;
height: 100px;
Expand Down
4 changes: 2 additions & 2 deletions run/squeakjs.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ body {
font-family: sans-serif;
}
canvas {
position: absolute;
position: fixed;
background: #000;
display: none;
}
Expand All @@ -22,7 +22,7 @@ h1 {
margin: 0 20px 0 5px;
}
div#sqSpinner {
position: absolute;
position: fixed;
margin: auto; top: 0; left: 0; bottom: 0; right: 0;
width: 100px;
height: 100px;
Expand Down
8 changes: 4 additions & 4 deletions scratch/scratch.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ body {
font-family: sans-serif;
}
canvas {
position: absolute;
position: fixed;
background: #000;
cursor: default;
}
Expand All @@ -14,23 +14,23 @@ canvas.pixelated {
-ms-interpolation-mode: nearest-neighbor;
}
div#sqHeader {
position: absolute;
position: fixed;
top: 0;
left: 0;
right: 0;
padding: 10px;
border-bottom: 6px double gray;
}
div#sqFooter {
position: absolute;
position: fixed;
left: 0;
right: 0;
bottom: 0;
padding: 10px;
border-top: 6px double gray;
}
div#sqSpinner {
position: absolute;
position: fixed;
margin: auto; top: 0; left: 0; bottom: 0; right: 0;
width: 100px;
height: 100px;
Expand Down

0 comments on commit 81fd5ee

Please sign in to comment.