Commit 298210db authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#940 - Interface is squished in Google Chrome

parent c5e09542
@charset "UTF-8"; @charset "UTF-8";
/** /**
* "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework
* *
* (en) Screen layout for YAML - ISPConfig 3: default theme * (en) Screen layout for YAML - ISPConfig 3: default theme
* (de) Bildschirmlayout fr YAML - ISPConfig 3: default theme * (de) Bildschirmlayout fr YAML - ISPConfig 3: default theme
* *
* @copyright Copyright 2005-2008, Dirk Jesse * @copyright Copyright 2005-2008, Dirk Jesse
* @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/),
* YAML-C (http://www.yaml.de/en/license/license-conditions.html) * YAML-C (http://www.yaml.de/en/license/license-conditions.html)
* @link http://www.yaml.de * @link http://www.yaml.de
* @package yaml * @package yaml
* @version 3.0.6 * @version 3.0.6
* @revision $Revision: 202 $ * @revision $Revision: 202 $
* @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $
*/ */
@media screen, projection @media screen, projection
{ {
/*------------------------------------------------------------------------------------------------------*/ /*------------------------------------------------------------------------------------------------------*/
/** /**
* (en) Formatting YAML's basic layout elements * (en) Formatting YAML's basic layout elements
* (de) Gestaltung des YAML Basis-Layouts * (de) Gestaltung des YAML Basis-Layouts
*/ */
/* (en) Marginal areas & page background */ /* (en) Marginal areas & page background */
/* (de) Randbereiche & Seitenhintergrund */ /* (de) Randbereiche & Seitenhintergrund */
body { background: #EEEEEE url("../../images/screen_bg.png") repeat-x top left fixed; padding: 10px 0; } body { background: #EEEEEE url("../../images/screen_bg.png") repeat-x top left fixed; padding: 10px 0; }
/* (en) Centering layout in old IE-versions */ /* (en) Centering layout in old IE-versions */
/* (de) Zentrierung des Layouts in alten IE-versionen */ /* (de) Zentrierung des Layouts in alten IE-versionen */
body { text-align: center; } body { text-align: center; }
#page_margins { text-align:left; margin: 0 auto; } #page_margins { text-align:left; margin: 0 auto; }
/* (en) Layout: width, background, borders */ /* (en) Layout: width, background, borders */
/* (de) Layout: Breite, Hintergrund, Rahmen */ /* (de) Layout: Breite, Hintergrund, Rahmen */
/*WARNING: ADded a overrode for this setting in main.tpl with javascript to target non chrome browsers, /*#page_margins { min-width: 980px; max-width: 80%; background: #fff;}*/
This has to be changed too in case that page_margins get changed. Reason: Chrome does not support the #page_margins { min-width: 980px; max-width: 80%; background: #fff; display: inline-block;}
display: table; attribute correctly*/ #page{ padding: 10px; }
#page_margins { min-width: 980px; max-width: 80%; background: #fff;}
#page{ padding: 10px; } /* (en) Designing main layout elements */
/* (de) Gestaltung der Hauptelemente des Layouts */
/* (en) Designing main layout elements */ #header {
/* (de) Gestaltung der Hauptelemente des Layouts */ color: #faf0e6;
#header { padding: 15px 2em 1em 20px;
color: #faf0e6; background: #9a9a9a url(../../images/header_bg.png) repeat-x top left;
padding: 15px 2em 1em 20px; }
background: #9a9a9a url(../../images/header_bg.png) repeat-x top left;
} /* (en) Text Alignment for #topnav content */
/* (de) Textausrichtung für #topnav Inhalte */
/* (en) Text Alignment for #topnav content */ #topnav { text-align: left; }
/* (de) Textausrichtung für #topnav Inhalte */
#topnav { text-align: left; } /* (en) Absolute positioning only within #header */
/* (de) Absolute Positionierung erfolgt nur innerhalb von #header */
/* (en) Absolute positioning only within #header */ #header #topnav {
/* (de) Absolute Positionierung erfolgt nur innerhalb von #header */ position: absolute;
#header #topnav { top: 0px;
position: absolute; left: 0px;
top: 0px; }
left: 0px;
} /* (en) Text Alignment for #topnav content */
/* (de) Textausrichtung für #topnav Inhalte */
/* (en) Text Alignment for #topnav content */ #topsubnav { text-align: right; }
/* (de) Textausrichtung für #topnav Inhalte */
#topsubnav { text-align: right; } /* (en) Absolute positioning only within #header */
/* (de) Absolute Positionierung erfolgt nur innerhalb von #header */
/* (en) Absolute positioning only within #header */ #header #topsubnav {
/* (de) Absolute Positionierung erfolgt nur innerhalb von #header */ position:absolute;
#header #topsubnav { top: 10px;
position:absolute; right: 10px;
top: 10px; }
right: 10px;
} /* (en) adjustment of main navigation */
/* (de) Anpassung der Hauptnavigation */
/* (en) adjustment of main navigation */ #nav ul { margin-left: 200px; }
/* (de) Anpassung der Hauptnavigation */ #nav_main { background: #9a9a9a repeat-x top left; }
#nav ul { margin-left: 200px; }
#nav_main { background: #9a9a9a repeat-x top left; } #main { background: #fff;padding:10px 0; }
#main { background: #fff;padding:10px 0; } #footer {
color:#666;
#footer { background: #f9f9f9;
color:#666; padding: 10px 20px;
background: #f9f9f9; border-top: 5px #efefef solid;
padding: 10px 20px; font-size: 0.8em;
border-top: 5px #efefef solid; text-align: center;
font-size: 0.8em; }
text-align: center;
} /*------------------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------*/ /**
* (en) Formatting content container
/** * (de) Formatierung der Inhalts-Container
* (en) Formatting content container *
* (de) Formatierung der Inhalts-Container * |-------------------------------|
* * | #header |
* |-------------------------------| * |-------------------------------|
* | #header | * | #col1 | #col3 | #col2 |
* |-------------------------------| * | 25% | flexible | 25% |
* | #col1 | #col3 | #col2 | * |-------------------------------|
* | 25% | flexible | 25% | * | #footer |
* |-------------------------------| * |-------------------------------|
* | #footer | */
* |-------------------------------|
*/
#col1 { width: 25%; }
#col1_content { padding: 10px 10px 10px 20px; }
#col1 { width: 25%; }
#col1_content { padding: 10px 10px 10px 20px; } #col2 { width: 25%; }
#col2_content { padding: 10px 20px 10px 10px; }
#col2 { width: 25%; }
#col2_content { padding: 10px 20px 10px 10px; } #col3 { margin: 0 25%; }
#col3_content { padding: 10px; }
#col3 { margin: 0 25%; }
#col3_content { padding: 10px; } /*------------------------------------------------------------------------------------------------------*/
}
/*------------------------------------------------------------------------------------------------------*/
}
...@@ -58,14 +58,6 @@ ...@@ -58,14 +58,6 @@
<script type="text/javascript" src="js/scrigo.js.php"></script> <script type="text/javascript" src="js/scrigo.js.php"></script>
<script type="text/javascript" src="js/uni-form/jquery.js"></script> <script type="text/javascript" src="js/uni-form/jquery.js"></script>
<script type="text/javascript" src="js/uni-form/uni-form.jquery.js"></script> <script type="text/javascript" src="js/uni-form/uni-form.jquery.js"></script>
<script language="JavaScript" type="text/javascript">
var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
if(!is_chrome) {
var style = document.createElement('style');
style.innerHTML = '#page_margins { min-width: 980px; max-width: 80%; background: #fff; display: table;}';
document.getElementsByTagName("head")[0].appendChild(style);
}
</script>
</head> </head>
<body onload="loadInitContent()"> <body onload="loadInitContent()">
<div id="page_margins"> <div id="page_margins">
......
Supports Markdown
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