enhanced the tweak to handle MSIE 11
This commit is contained in:
parent
cead914a34
commit
3832a12167
@ -308,7 +308,12 @@ if (FALSE) // don't want to delete code for the original diff view.
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$http_user_agent = $_SERVER['HTTP_USER_AGENT'];
|
$http_user_agent = $_SERVER['HTTP_USER_AGENT'];
|
||||||
$is_msie = (preg_match('/MSIE/i',$http_user_agent) && !preg_match('/Opera/i',$http_user_agent));
|
$is_msie = (stristr($http_user_agent, 'MSIE') != FALSE &&
|
||||||
|
stristr($http_user_agent, 'Opera') == FALSE);
|
||||||
|
if (!$is_msie)
|
||||||
|
{
|
||||||
|
$is_msie = (preg_match ("/^Mozilla.+\(Windows.+\) like Gecko$/", $http_user_agent) != FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
print '<div style="width: 100%; overflow: hidden;" id="code_diff_mainarea_result_fullview">';
|
print '<div style="width: 100%; overflow: hidden;" id="code_diff_mainarea_result_fullview">';
|
||||||
|
|
||||||
|
@ -226,7 +226,7 @@ body {
|
|||||||
|
|
||||||
.content .mainarea form textarea {
|
.content .mainarea form textarea {
|
||||||
border: 1px solid #BBCCDD;
|
border: 1px solid #BBCCDD;
|
||||||
font-family: monospace, consolas;
|
font-family: consolas, "Andale Mono", monospace;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -274,8 +274,9 @@ body {
|
|||||||
.content .mainarea pre.wiki {
|
.content .mainarea pre.wiki {
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
line-height: 1.5em;
|
line-height: 1.4em;
|
||||||
font-size: 1.1em;
|
//font-size: 1.1em;
|
||||||
|
font-family: consolas, "Andale Mono", monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content .mainarea tt {
|
.content .mainarea tt {
|
||||||
@ -369,8 +370,9 @@ body {
|
|||||||
/*border: 1px solid #ccc;*/
|
/*border: 1px solid #ccc;*/
|
||||||
background-color: #F8F8FA;
|
background-color: #F8F8FA;
|
||||||
border: none;
|
border: none;
|
||||||
font-size: 1.1em;
|
//font-size: 1.1em;
|
||||||
line-height: 1.5em;
|
font-family: consolas, "Andale Mono", monospace;
|
||||||
|
line-height: 1.4em;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
|
|
||||||
tab-size: 5;
|
tab-size: 5;
|
||||||
|
@ -107,7 +107,7 @@
|
|||||||
display: block;
|
display: block;
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
font-family: monospace, consolas;
|
font-family: consolas, "Andale Mono", monospace;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -179,7 +179,7 @@
|
|||||||
display: block;
|
display: block;
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
font-family: monospace, consolas;
|
font-family: consolas, "Andale Mono", monospace;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user