kizu (ki_zu) wrote in changelog,
kizu
ki_zu
changelog

[livejournal] r15600: LJSUP-4703: adding Blocker element

Committer: rkomarov
LJSUP-4703: adding Blocker element

U   trunk/htdocs/stc/lj_base-ie.css
U   trunk/htdocs/stc/lj_base.css
Modified: trunk/htdocs/stc/lj_base-ie.css
===================================================================
--- trunk/htdocs/stc/lj_base-ie.css	2009-08-12 16:49:19 UTC (rev 15599)
+++ trunk/htdocs/stc/lj_base-ie.css	2009-08-13 09:02:18 UTC (rev 15600)
@@ -32,4 +32,54 @@
 }
 *HTML .sg-content LI {
 		height: 220px;
-}
\ No newline at end of file
+}
+
+/* Disabled block
+--------------------------- */
+/* Must be removed after implementation of Framework! */
+.st-disabled {
+    zoom:1;
+    }
+.b-blocker {
+    zoom:expression(
+        function(t){
+            t.runtimeStyle.zoom = 1;
+            t.insertAdjacentHTML('beforeBegin','<iframe class="b-blocker-iframe" src="about:blank"></iframe>')
+        }(this)
+    );
+    stretch:expression(
+        function(t){
+            var h = t.parentNode.offsetHeight;
+            if (t.h != h) {
+                t.style.height = t.h = h;
+            }           
+        }(this)
+    );
+    }
+.b-blocker-iframe {
+    position:absolute;
+    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
+    filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
+    display:none;
+    padding:0;
+    margin:0;
+    border:0;
+    opacity:0;
+    expression:expression(
+        function(t){
+            var L = t.nextSibling.offsetLeft;
+            var T = t.nextSibling.offsetTop;
+            var W = t.nextSibling.offsetWidth;
+            var H = t.nextSibling.offsetHeight;
+            if (t.L != L || t.T != T || t.W != W || t.H != H) {
+                t.runtimeStyle.left = t.L = L;
+                t.runtimeStyle.top = t.T = T;
+                t.runtimeStyle.width = t.W = W;
+                t.runtimeStyle.height = t.H = H;
+            }
+        }(this)
+    );
+    }
+    .st-disabled .b-blocker-iframe {
+        display:block;
+        }

Modified: trunk/htdocs/stc/lj_base.css
===================================================================
--- trunk/htdocs/stc/lj_base.css	2009-08-12 16:49:19 UTC (rev 15599)
+++ trunk/htdocs/stc/lj_base.css	2009-08-13 09:02:18 UTC (rev 15600)
@@ -286,3 +286,37 @@
     border: 1px solid #FF8E44;
     } 
 
+/* Disabled block
+--------------------------- */
+/* Must be removed after implementation of Framework! */
+.st-disabled {
+    position:relative;
+    }
+
+/* Blocking layer */
+.b-blocker {
+    position:absolute;
+    top:0;
+    left:0;
+    display:none;
+    width:100%;
+    height:100%;
+    }
+    .st-disabled .b-blocker {
+        display:block;
+        }
+    .b-blocker-over {
+        z-index:1000000000;
+        }
+    .b-blocker-white {
+        background:#FFF;
+        }
+    .b-blocker-gray {
+        background:#808080;
+        }
+    .b-blocker-gray,
+    .b-blocker-white {
+        -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
+        filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
+        opacity:.5;
+        }

Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments