KNACSS/less/_11-ie.less

112 lines
2 KiB
Text
Raw Permalink Normal View History

2014-05-03 14:03:41 +02:00
/* ----------------------------- */
/* ==IE6, IE7, IE8 support */
/* ----------------------------- */
2014-05-03 10:46:54 +02:00
// IE6, 7, 8 support boolean
2014-05-04 14:54:52 +02:00
& when (@enable-ie678 = true) {
2014-05-07 21:32:09 +02:00
/* Active box-sizing for IE6/IE7 */
/* @source https://github.com/Schepp/box-sizing-polyfill */
.ie67 * {
behavior: url(/js/boxsizing.htc);
}
2014-05-03 10:46:54 +02:00
.ie678 h1, .ie678 .h1-like {
2014-05-04 15:30:21 +02:00
@em: @h1-size * 10 / @base-font-size;
2014-05-03 14:20:00 +02:00
font-size: unit(round(@em,2), em);
2014-05-03 10:46:54 +02:00
}
2014-05-07 10:45:47 +02:00
2014-05-03 10:46:54 +02:00
.ie678 h2, .ie678 .h2-like {
2014-05-04 15:30:21 +02:00
@em: @h2-size * 10 / @base-font-size;
2014-05-03 14:20:00 +02:00
font-size: unit(round(@em,2), em);
2014-05-03 10:46:54 +02:00
}
2014-05-07 10:45:47 +02:00
2014-05-03 10:46:54 +02:00
.ie678 h3, .ie678 .h3-like {
2014-05-04 15:30:21 +02:00
@em: @h3-size * 10 / @base-font-size;
2014-05-03 14:20:00 +02:00
font-size: unit(round(@em,2), em);
2014-05-03 10:46:54 +02:00
}
2014-05-07 10:45:47 +02:00
2014-05-03 10:46:54 +02:00
.ie678 h4, .ie678 .h4-like {
2014-05-04 15:30:21 +02:00
@em: @h4-size * 10 / @base-font-size;
2014-05-03 14:20:00 +02:00
font-size: unit(round(@em,2), em);
2014-05-03 10:46:54 +02:00
}
2014-05-07 10:45:47 +02:00
2014-05-03 10:46:54 +02:00
.ie678 h5, .ie678 .h5-like {
2014-05-04 15:30:21 +02:00
@em: @h5-size * 10 / @base-font-size;
2014-05-03 14:20:00 +02:00
font-size: unit(round(@em,2), em);
2014-05-03 10:46:54 +02:00
}
2014-05-07 10:45:47 +02:00
2014-05-03 10:46:54 +02:00
.ie678 h6, .ie678 .h6-like {
2014-05-04 15:30:21 +02:00
@em: @h6-size * 10 / @base-font-size;
2014-05-03 14:20:00 +02:00
font-size: unit(round(@em,2), em);
2014-05-03 10:46:54 +02:00
}
2014-05-07 10:45:47 +02:00
2014-05-07 21:32:09 +02:00
/* @bugfix for IE8 */
2014-05-03 10:46:54 +02:00
.ie678 img {
2014-05-07 21:32:09 +02:00
width: auto;
2014-05-03 10:46:54 +02:00
}
2014-05-07 10:45:47 +02:00
2014-05-03 10:46:54 +02:00
.ie678 .gm-style img {
height: 100%;
}
/* hasLayout for IE6/IE7 */
.clearfix,
.line,
.mod,
.row,
.col {
*zoom: 1;
}
2014-05-07 10:45:47 +02:00
2014-05-07 21:32:09 +02:00
/*! inline-block and table-cell for IE6/IE7 */
/*! warning: .col needs width on IE6/IE7 */
2014-05-03 10:46:54 +02:00
.btn,
.col,
.inbl {
*display: inline;
*zoom: 1;
}
2014-05-07 10:45:47 +02:00
2014-06-28 12:59:02 +02:00
/* old syntax of clip for IE6/IE7 */
2014-05-03 10:46:54 +02:00
.visually-hidden {
*clip: rect(1px 1px 1px 1px);
}
2014-05-03 11:08:29 +02:00
/* IE8 grid hack */
.ie8 .grid > *,
.ie8 [class*="autogrid"] > * {
letter-spacing: -0.31em;
text-rendering: optimizespeed;
}
2014-05-07 10:45:47 +02:00
2014-05-03 11:08:29 +02:00
.ie8 .grid > * > *,
.ie8 [class*="autogrid"] > * > *{
letter-spacing: normal;
word-spacing: normal;
text-rendering: auto;
}
/* IE7 grid hack */
.grid > * > *,
[class*="autogrid"] > * > *{
*display: inline;
*zoom: 1;
}
2014-05-03 14:23:39 +02:00
/* forms */
2014-05-07 10:45:47 +02:00
/* Corrects excess space around these inputs in IE8/9 */
2014-05-21 18:42:47 +02:00
.ie678 input[type="checkbox"],
.ie678 input[type="radio"] {
2014-05-07 10:45:47 +02:00
padding: 0;
2014-05-03 14:23:39 +02:00
}
2014-05-07 10:45:47 +02:00
/* Removes default vertical scrollbar on empty textarea in IE6/7/8/9 */
2014-05-21 18:42:47 +02:00
.ie678 textarea {
2014-05-07 10:45:47 +02:00
overflow: auto;
2014-05-03 14:23:39 +02:00
}
2014-05-07 21:32:09 +02:00
2014-05-07 10:45:47 +02:00
}
2014-05-07 21:32:09 +02:00