Committer: mchervonniy
LJSUP-7492: Updates of ToS and Privacy policyA trunk/htdocs/stc/legal-text.css
Added: trunk/htdocs/stc/legal-text.css =================================================================== --- trunk/htdocs/stc/legal-text.css (rev 0) +++ trunk/htdocs/stc/legal-text.css 2010-12-03 10:36:42 UTC (rev 9794) @@ -0,0 +1,74 @@ +/* Some reset for text styles */ +.b-legaltext H3 { + display: inline-block; + font-style: normal; + } +.b-legaltext H4 { + margin: 0; + } +.b-legaltext OL, +.b-legaltext UL { + margin: 0.75em 0; + } + .b-legaltext LI { + margin: 0.75em 0; + } + +/* the global list */ +.b-legaltext Ol.list-roman { + margin: 0 0 0 3em; + list-style: outside upper-roman; + } + .b-legaltext Ol.list-roman OL, + .b-legaltext Ol.list-roman UL { + margin: 0.75em 0 0.75 3em; + } +/* the lists in the text */ +.b-legaltext OL.list-letters { + list-style: outside lower-alpha; + } +.b-legaltext OL.list-numbers { + list-style: outside decimal; + } +.b-legaltext UL.list-rings { + list-style: outside circle; + } +.b-legaltext UL.list-nomarkers { + list-style: none !important; + } + +/* Target for text */ +.b-legaltext *:target, +.b-legaltext .target { + background: #FFF1C6; + margin: -0.2em -1em; + padding: 0.2em 1em; + } + +/* :target for all IE in the legal texts +LJSUP-7492: Updates of ToS and Privacy policy +should be removed into ie.css! */ +.b-legaltext LI { + behavior: expression( + function(t, targetClass){ + if (t.id) { + var hash = window.location.hash; + if (!t.targetClass) { + t.targetClass = targetClass || t.className ? t.className.replace(/([^\s]+)/g,'target') : 'target'; + } + if (t.lastHash != hash) { + t.lastHash = hash; + if ("#"+t.id == hash) { + t.className += (' ' + t.targetClass); + } else { + t.className = t.className.replace(new RegExp(' ' + t.targetClass,'g'), ''); + } + } + } else { + t.runtimeStyle.behavior = 'none'; + } + }(this) + ); + } + +