iehacks.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  1. /**
  2. * "Yet Another Multicolumn Layout" - YAML CSS Framework
  3. *
  4. * (en) YAML core stylesheet - structure-independent bugfixes of IE/Win CSS-bugs
  5. * (de) YAML Basis-Stylesheet - Strukturunabhängige Bugfixes von CSS-Bugs des IE/Win
  6. *
  7. * Don't make any changes in this file!
  8. *
  9. * @copyright Copyright 2005-2012, Dirk Jesse
  10. * @license CC-BY 2.0 (http://creativecommons.org/licenses/by/2.0/),
  11. * YAML-CDL (http://www.yaml.de/license.html)
  12. * @link http://www.yaml.de
  13. * @package yaml
  14. * @version v4.0.1
  15. * @revision $Revision: 724 $
  16. * @lastmodified $Date: 2012-03-03 11:45:41 +0100 (Sa, 03 Mrz 2012) $
  17. * @appdef yaml
  18. */
  19. @media all {
  20. /**
  21. * (en) Debugging:When you see a green background, IE is getting this stylesheet
  22. * (de) Fehlersuche:Hintergrund leuchtet grün, wenn das Stylesheet korrekt geladen wurde
  23. *
  24. * @debug
  25. * @app-yaml-default disabled
  26. */
  27. /* body { background:#0f0; background-image:none; } */
  28. /**
  29. * Correct inline positioning for unknown HTML5 elements in IE 6 & 7
  30. *
  31. * @workaround
  32. * @affected IE6, IE7
  33. * @css-for IE6, IE7
  34. * @valid no
  35. */
  36. /*------------------------------------------------------------------------------------------------------*/
  37. /**
  38. * (en) No need to force scrollbars in older IE's - it even makes problems in IE6 when set
  39. * (de) Scrollbar-Fix wird in alten IE's nicht benötigt, zudem verursacht der Fix Probleme im IE6
  40. *
  41. * @workaround
  42. * @affected IE6, IE7
  43. * @css-for IE6, IE7
  44. * @valid no
  45. */
  46. body { o\verflow:visible; }
  47. /**
  48. * (en) HTML5 - default media element styles
  49. * (de) HTML5 - Standard Eigenschaften für Media-Elemente
  50. */
  51. article,aside,details,figcaption,figure,
  52. footer,header,hgroup,nav,section {
  53. zoom:1;
  54. }
  55. audio,
  56. canvas,
  57. video {
  58. *display: inline;
  59. *zoom: 1;
  60. }
  61. /**
  62. * (en) enable bicubic interpolation of images on scaling
  63. * (de) aktiviert bikubische Interpolation beim Skalieren von Bildern
  64. */
  65. img {
  66. -ms-interpolation-mode: bicubic;
  67. zoom: 1;
  68. }
  69. /*------------------------------------------------------------------------------------------------------*/
  70. /**
  71. * (en) Fixes IE5.x and IE6 overflow behavior of textarea and input elements elements
  72. * (de) Korrigiert das fehlerhafte overflow-Verhalten von textarea und input-Elementen
  73. *
  74. * @workaround
  75. * @affected IE 5.x/Win, IE6
  76. * @css-for IE 5.x/Win, IE6
  77. * @valid no
  78. */
  79. * html iframe,
  80. * html frame { overflow:auto; }
  81. * html input,
  82. * html frameset { overflow:hidden; }
  83. * html textarea { overflow:scroll; overflow-x:hidden; }
  84. /*------------------------------------------------------------------------------------------------------*/
  85. /**
  86. * (en) Stability fixes with 'position:relative'
  87. * (de) Stabilitätsverbesserungen durch 'position:relative'
  88. *
  89. * Essential for correct scaling in IE7 (body). IE5 must get static positioned body instead.
  90. * Helpful to fix several possible problems in older IE versions (#main).
  91. *
  92. * @bugfix
  93. * @affected IE 5.x/Win, IE6, IE7
  94. * @css-for IE 5.x/Win, IE6, IE7
  95. * @valid yes
  96. */
  97. body, #main { position:relative; }
  98. * html body { position:static; }
  99. /*------------------------------------------------------------------------------------------------------*/
  100. /**
  101. * (en) Clearfix adjustents for containing floats in IE
  102. * (de) Clearfix-Anpassung für diverse IE-Versionen
  103. *
  104. * @workaround
  105. * @see http://perishablepress.com/press/2009/12/06/new-clearfix-hack/
  106. * @affected IE 5.x/Win, IE6, IE7
  107. * @css-for IE 5.x/Win, IE6, IE7
  108. * @valid yes
  109. */
  110. .ym-clearfix { zoom:1; } /* hasLayout aktivieren */
  111. /*------------------------------------------------------------------------------------------------------*/
  112. /**
  113. * (en) Bugfix for partially displayed column separators
  114. * (de) Bugfix für unvollständige Darstellung der Spalteninhalte / Spaltentrenner
  115. *
  116. * @bugfix
  117. * @affected IE 5.x/Win, IE6
  118. * @css-for IE 5.x/Win, IE6
  119. * @valid yes
  120. */
  121. * html .ym-col1,
  122. * html .ym-col2,
  123. * html .ym-col3 { position:relative; }
  124. /*------------------------------------------------------------------------------------------------------*/
  125. /**
  126. * (en) Preventing several css bugs by forcing "hasLayout"
  127. * (de) Vermeidung verschiedenster Bugs durch Erzwingen von "hasLayout"
  128. *
  129. * @workaround
  130. * @affected IE 5.x/Win, IE6, IE7
  131. * @css-for IE 5.x/Win, IE6, IE7
  132. * @valid no
  133. */
  134. body { height:1%; }
  135. .ym-wrapper, .ym-wbox, #header, #nav, #main, #footer { zoom:1; } /* IE6 & IE7 */
  136. * html .ym-wrapper, * html .ym-wbox { height:1%; hei\ght:auto; } /* IE 5.x & IE6 | IE6 only */
  137. * html #header, * html #nav, * html #main, * html #footer { width:100%; wid\th:auto; } /* IE 5.x & IE6 | IE6 only */
  138. /* trigger hasLayout to force containing content */
  139. .ym-gbox, .ym-gbox-left, .ym-gbox-right { height:1%; }
  140. /*------------------------------------------------------------------------------------------------------*/
  141. /**
  142. * Disappearing List-Background Bug
  143. * @see http://www.positioniseverything.net/explorer/ie-listbug.html
  144. *
  145. * @bugfix
  146. * @affected IE 5.x/Win, IE6
  147. * @css-for IE 5.x/Win, IE6
  148. * @valid yes
  149. */
  150. * html ul, * html ol, * html dl { position:relative; }
  151. /*------------------------------------------------------------------------------------------------------*/
  152. /**
  153. * List-Numbering Bug
  154. *
  155. * @bugfix
  156. * @affected IE 5.x/Win, IE6, IE7
  157. * @css-for IE 5.x/Win, IE6, IE7
  158. * @valid yes
  159. */
  160. body ol li { display:list-item; }
  161. /*------------------------------------------------------------------------------------------------------*/
  162. /**
  163. * Browser-based image scaling (not)
  164. *
  165. * @workaround
  166. * @affected IE 5.x/Win, IE6
  167. * @css-for IE 5.x/Win, IE6
  168. * @valid yes
  169. */
  170. * html .flexible {
  171. zoom: 1;
  172. }
  173. /**
  174. * Form related bugfixes
  175. *
  176. * @bugfix
  177. * @affected IE 5.x/Win, IE6, IE7
  178. * @css-for IE 5.x/Win, IE6, IE7
  179. * @valid no
  180. */
  181. button, input { *overflow: visible; }
  182. table button, table input { *overflow: auto; }
  183. fieldset, legend { position:relative; }
  184. /*------------------------------------------------------------------------------------------------------*/
  185. /**
  186. * Global adjustments/fixes for YAML's form construction kit
  187. *
  188. * @workaround
  189. * @affected IE 5.x/Win, IE6, IE7
  190. * @css-for IE 5.x/Win, IE6, IE7
  191. * @valid no
  192. */
  193. .ym-form,
  194. .ym-form div,
  195. .ym-form div * { zoom:1; }
  196. /*------------------------------------------------------------------------------------------------------*/
  197. /**
  198. * (en) Workaround for 'collapsing margin at #col3' when using CSS-property clear
  199. * Left margin of #col3 collapses when using clear:both in 1-3-2 (or 2-3-1) layout and right column is the
  200. * longest and left column is the shortest one. For IE6 and IE7 a special workaround was developed
  201. * in YAML.
  202. *
  203. * (de) Workaround für 'kollabierenden Margin an #col3' bei Verwendung der CSS-Eigenschaft clear
  204. * Der linke Margin von #col3 kollabiert bei der Verwendung von clear:both im 1-3-2 (oder 2-3-1) Layout
  205. * wenn gleichzeitig die linke Spalte die kürzeste und die rechte die längste ist. Im IE6 und IE7 lässt
  206. * sich der Bug durch eine speziell für YAML entwickelten Workaround umgehen.
  207. *
  208. * @workaround
  209. * @affected IE 5.x/Win, IE6, IE7
  210. * @css-for IE 5.x/Win, IE6, IE7
  211. * @valid no
  212. */
  213. html .ym-ie-clearing {
  214. /* (en) Only a small help for debugging */
  215. /* (de) Nur eine kleine Hilfe zur Fehlersuche */
  216. position:static;
  217. /* (en) Make container visible in IE */
  218. /* (de) Container sichtbar machen im IE */
  219. display:block;
  220. /* (en) No fix possible in IE5.x, normal clearing used instead */
  221. /* (de) Kein Fix im IE5.x möglich, daher normales Clearing */
  222. \clear:both;
  223. /* (en) forcing clearing-like behavior with a simple oversized container in IE6 & IE7*/
  224. /* (de) IE-Clearing mit 100%-DIV für IE6 bzw. übergroßem Container im IE7 */
  225. width:100%;
  226. line-height: 0;
  227. font-size:0px;
  228. margin:-2px 0 -1em 1px;
  229. }
  230. * html .ym-ie-clearing { margin:-2px 0 -1em 0; }
  231. .ym-cbox { margin-bottom:-2px; }
  232. /* (en) avoid horizontal scrollbars in IE7 in borderless layouts because of negative margins */
  233. /* (de) Vermeidung horizontaler Scrollbalken bei randabfallenden Layouts im IE7 */
  234. html { margin-right:1px; }
  235. * html { margin-right:0; }
  236. /* (en) Bugfix:Essential for IE7 */
  237. /* (de) Bugfix:Notwendig im IE7 */
  238. .ym-col3 { position:relative; }
  239. /*------------------------------------------------------------------------------------------------------*/
  240. /**
  241. * IE/Win Guillotine Bug
  242. * @see http://www.positioniseverything.net/explorer/guillotine.html
  243. *
  244. * @workaround
  245. * @affected IE 5.x/Win, IE6
  246. * @css-for IE 5.x/Win, IE6
  247. * @valid yes
  248. */
  249. }
  250. @media screen, projection {
  251. /**
  252. * (en) IE-Adjustments for content columns and subtemplates
  253. * (de) IE-Anpassung für Spaltencontainer und Subtemplates
  254. *
  255. * Doubled Float-Margin Bug
  256. * @see http://positioniseverything.net/explorer/doubled-margin.html
  257. *
  258. * @bugfix
  259. * @affected IE 5.x/Win, IE6
  260. * @css-for IE 5.x/Win, IE6, IE7
  261. * @valid yes
  262. */
  263. .ym-col1, .ym-col2 { display:inline; }
  264. /* Fix for:"Linking to anchors in elements within the containing block" Problem in IE5.x & IE 6.0 */
  265. .ym-grid { overflow:hidden; display:block; }
  266. * html .ym-grid { overflow:visible; }
  267. .ym-gl,
  268. .ym-gr { display: inline; }
  269. /* transform CSS tables back into floats */
  270. .ym-equalize .ym-gl {
  271. float:left; display:inline;
  272. padding-bottom:32767px;
  273. margin-bottom:-32767px;
  274. }
  275. .ym-equalize .ym-gr {
  276. float:right; margin-left:-5px; display:inline;
  277. padding-bottom:32767px;
  278. margin-bottom:-32767px;
  279. }
  280. .no-ie-padding .ym-gl,
  281. .no-ie-padding .ym-gr {
  282. padding-bottom:0;
  283. margin-bottom:0;
  284. }
  285. /*------------------------------------------------------------------------------------------------------*/
  286. /**
  287. * Internet Explorer and the Expanding Box Problem
  288. * @see http://www.positioniseverything.net/explorer/expandingboxbug.html
  289. *
  290. * @workaround
  291. * @affected IE 5.x/Win, IE6
  292. * @css-for IE 5.x/Win, IE6
  293. * @valid yes
  294. */
  295. * html .ym-cbox-left,
  296. * html .ym-cbox-right,
  297. * html .ym-cbox { word-wrap:break-word; }
  298. /* avoid growing widths */
  299. * html .ym-gbox,
  300. * html .ym-gbox-left,
  301. * html .ym-gbox-right { word-wrap:break-word; o\verflow:hidden; }
  302. }
  303. @media print {
  304. /**
  305. * (en) Avoid unneeded page breaks of .ym-col3 content in print layout and containing floats.
  306. * (de) Vermeiden von unnötigen Seitenumbrüchen beim Ausdruck der Spalte .ym-col3 und Einschluss von Floats.
  307. *
  308. * @bugfix
  309. * @affected IE7
  310. * @css-for IE 5.x/Win, IE6, IE7
  311. * @valid yes
  312. */
  313. .ym-gbox,
  314. .ym-gbox-left,
  315. .ym-gbox-right,
  316. .ym-col3 { height:1%; }
  317. }