Skip to content

Commit 7b99feb

Browse files
committed
floatingContainer added and CSS class & pseudo set
DOM elem has an ID as a hook so we can target later Class sets a 55px square block for a 11x11 grid of 5px squares, hidden to begin with, also with border for contrast and image-rendering value of pixelated, so we get sharp pixels squares at our 5x zoom Pseudo class added, 3px square as it has a 1px border, positioned to sit over the 6th square (centre) in our 11px square grid
1 parent fe04367 commit 7b99feb

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
<div class="popupVCenter">
122122
<div class="popup" id="mediaContainer"></div>
123123
</div>
124+
<div class="floatingContainer" id="floatingContainer"></div>
124125
</div>
125126

126127
<div id="loadingMask" class="blackMask" style="visibility: visible" onContextMenu="return false">

lib/ice-coder.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ h2 {font-size: 18px; font-weight: normal; color: #fff}
3131
.blackMask {position: fixed; display: table; width: 100%; height: 100%; top: 0; left: 0; visibility: hidden; background-color: rgba(0,0,0,0.8); text-align: center; z-index: 100}
3232
.blackMask .popupVCenter {#position: absolute; display: table-cell; #top: 50%; vertical-align: middle; text-align: center}
3333
.popupVCenter .popup {#position: relative; #top: -50%; text-align: center; color: #fff; font-size: 10px}
34+
.floatingContainer {position: absolute; top: 0; left: 0; width: 55px; height: 55px; visibility: hidden; border: solid 1px #444; image-rendering: pixelated}
35+
.floatingContainer:before {position: absolute; display: inline-block; width: 3px; height: 3px; left: 25px; top: 25px; content: ''; border: solid 1px #b00}
3436
.whiteGlow {box-shadow: 0 0 8px 2px rgba(255,255,255,0.6)}
3537

3638
.spinner {width: 50px; height: 50px; margin: 20px auto; background: #fff;

0 commit comments

Comments
 (0)