Commit 24e23ed2 authored by Dries's avatar Dries

- Patch #1645494 by effulgentsia: Allow core themes to display single-column...

- Patch #1645494 by effulgentsia: Allow core themes to display single-column on IE8: do not compensate for lack of media query support.
parent d67ed98e
/**
* @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;
}
/**
* @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%;
}
<?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));
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment