Prepared template CSS files to be parsed by PHP compiler and minor modifications

This commit is contained in:
Christian Wolf 2017-11-08 15:06:11 +01:00
parent fc0267b590
commit 55e0ca91fd
3 changed files with 61 additions and 7 deletions

View File

@ -4,4 +4,4 @@
@import "desktop.css" ( min-width: 1000px );
@import "desktop-narrow.css" ( min-width: 1000px) and ( max-width: 1200px );
@import "visual.css";
@import "visual.css.php";

View File

@ -1,5 +1,24 @@
<?php
define( '_JEXEC', 1 );
define('JPATH_BASE',
// '../../..'
'/home/christian/public_html/joomla'
);
require_once ( JPATH_BASE .'/includes/defines.php' );
require_once ( JPATH_BASE .'/includes/framework.php' );
/* Create the Application */
$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();
$params = JFactory::getApplication()->getTemplate(true)->params;
header("content-type: text/css");
?>
body {
font-size: 12px;
font-family: Arial, Verdana, Helvetica, Geneva, sans-serif;
line-height: 175%;
}
a {
@ -10,6 +29,26 @@ p {
text-align: justify;
}
h3
{
font-size: 16pt;
}
h2
{
font-size: 19pt;
}
h1
{
font-size: 22pt;
}
h1,h2,h3,h4
{
line-height: 150%;
}
.centered {
text-align: center;
}
@ -34,6 +73,12 @@ li.row-fluid {
display: block;
}
.page-header
{
border-bottom-color: var(--fgcolor4);
padding-bottom: 0px;
}
#page {
background-color: var(--bgcolor4);
color: var(--fgcolor4);

View File

@ -4,6 +4,21 @@ defined('_JEXEC') or die;
JHTML::_('behavior.framework', true);
$app = JFactory::getApplication();
// Add JavaScript Frameworks
JHtml::_('bootstrap.framework');
JHtml::_('bootstrap.loadCss', true, $this->direction);
// Add template js
//JHtml::_('script', 'template.js', array('version' => 'auto', 'relative' => true));
// Add html5 shiv
//JHtml::_('script', 'jui/html5.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9'));
// Add Stylesheets
JHtml::_('stylesheet', 'templates/system/css/system.css', array('version' => 'auto', 'relative' => false));
JHtml::_('stylesheet', 'main.css', array('version' => 'auto', 'relative' => true));
?>
<?php echo '<!DOCTYPE html>'; ?>
@ -12,12 +27,6 @@ $app = JFactory::getApplication();
<head>
<jdoc:include type="head" />
<?php JHtml::_('bootstrap.loadCss'); ?>
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/css/main.css" type="text/css" />
<!-- <meta content=""> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>