Committer: rkomarov
LJSUP-4705: CSS-Framework development: Blocker elementA trunk/htdocs/stc/framework/ie.css U trunk/htdocs/stc/framework/modules.css
Added: trunk/htdocs/stc/framework/ie.css =================================================================== --- trunk/htdocs/stc/framework/ie.css (rev 0) +++ trunk/htdocs/stc/framework/ie.css 2009-08-13 07:38:26 UTC (rev 7565) @@ -0,0 +1,48 @@ +/* Disabled block +--------------------------- */ +.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/framework/modules.css =================================================================== --- trunk/htdocs/stc/framework/modules.css 2009-08-13 04:13:18 UTC (rev 7564) +++ trunk/htdocs/stc/framework/modules.css 2009-08-13 07:38:26 UTC (rev 7565) @@ -169,3 +169,30 @@ } +/* Disabled block +--------------------------- */ +.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 { /* class for moving blocker over other z-indexed elements */ + z-index:1000000000; + } + .b-blocker-gray { + -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=50); + opacity:.5; + background:#808080; + }