- Patch #1645494 by effulgentsia: Allow core themes to display single-column on IE8: do not compensate for lack of media query support.
parent
d67ed98ec1
commit
24e23ed2db
|
@ -1,31 +0,0 @@
|
|||
|
||||
/**
|
||||
* @file
|
||||
* Right-to-left overrides for IE
|
||||
*/
|
||||
|
||||
#content {
|
||||
float: right;
|
||||
}
|
||||
body.sidebar-first #content {
|
||||
left: 0;
|
||||
right: 20%;
|
||||
}
|
||||
body.two-sidebars #content {
|
||||
left: 0;
|
||||
right: 20%;
|
||||
}
|
||||
|
||||
#sidebar-first {
|
||||
float: right;
|
||||
left: 0;
|
||||
right: -80%;
|
||||
}
|
||||
body.two-sidebars #sidebar-first {
|
||||
left: 0;
|
||||
right: -60%;
|
||||
}
|
||||
|
||||
#sidebar-second {
|
||||
float: left;
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
|
||||
/**
|
||||
* @file
|
||||
* Force IE 8 and lower to render in desktop layout.
|
||||
*/
|
||||
|
||||
#content {
|
||||
width: 100%;
|
||||
float: left; /* LTR */
|
||||
}
|
||||
body.sidebar-first #content {
|
||||
width: 80%;
|
||||
left: 20%; /* LTR */
|
||||
}
|
||||
body.sidebar-second #content {
|
||||
width: 80%;
|
||||
}
|
||||
body.two-sidebars #content {
|
||||
width: 60%;
|
||||
left: 20%; /* LTR */
|
||||
}
|
||||
|
||||
#sidebar-first {
|
||||
width: 20%;
|
||||
float: left; /* LTR */
|
||||
left: -80%; /* LTR */
|
||||
}
|
||||
body.two-sidebars #sidebar-first {
|
||||
left: -60%; /* LTR */
|
||||
}
|
||||
|
||||
#sidebar-second {
|
||||
float: right; /* LTR */
|
||||
width: 20%;
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Functions to support theming in the Stark theme.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_preprocess_HOOK() for html.tpl.php.
|
||||
*
|
||||
* @todo Based on outcome of http://drupal.org/node/1471382, revise this
|
||||
* technique to use conditional classes vs. conditional stylesheets.
|
||||
*/
|
||||
function stark_preprocess_html(&$variables) {
|
||||
// Add conditional CSS for IE8 and below.
|
||||
drupal_add_css(path_to_theme() . '/css/ie.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE), 'weight' => 999, 'preprocess' => FALSE));
|
||||
}
|
Loading…
Reference in New Issue