Drop external CSS file for sake of faster development
This commit is contained in:
parent
f1d29cb4bb
commit
c2357284cc
168
slt/index.php
168
slt/index.php
@ -28,7 +28,7 @@ JHtml::_('stylesheet', 'style.css', array('version' => 'auto', 'relative' => tru
|
|||||||
|
|
||||||
$doc->addStyleSheet($this->baseurl.'/media/jui/css/icomoon.css');
|
$doc->addStyleSheet($this->baseurl.'/media/jui/css/icomoon.css');
|
||||||
$doc->addStyleSheet($this->baseurl.'/media/system/css/joomla-fontawesome.css');
|
$doc->addStyleSheet($this->baseurl.'/media/system/css/joomla-fontawesome.css');
|
||||||
$doc->addStyleSheet($this->baseurl.'/templates/slt/css/dynamic-styles.css.php?Itemid=' . $app->input->getInt('Itemid'));
|
// $doc->addStyleSheet($this->baseurl.'/templates/slt/css/dynamic-styles.css.php?Itemid=' . $app->input->getInt('Itemid'));
|
||||||
|
|
||||||
// Add Javascript for mobile menu
|
// Add Javascript for mobile menu
|
||||||
JHtml::_('script', 'mobile.js', array('version' => 'auto', 'relative' => true));
|
JHtml::_('script', 'mobile.js', array('version' => 'auto', 'relative' => true));
|
||||||
@ -39,6 +39,11 @@ JHtml::_('stylesheet', 'user.css', array('version' => 'auto', 'relative' => true
|
|||||||
// Check for a custom js file
|
// Check for a custom js file
|
||||||
JHtml::_('script', 'user.js', array('version' => 'auto', 'relative' => true));
|
JHtml::_('script', 'user.js', array('version' => 'auto', 'relative' => true));
|
||||||
|
|
||||||
|
$params = JFactory::getApplication()->getTemplate(true)->params;
|
||||||
|
|
||||||
|
$leftImageValue = (empty($params['imgleft']) ? "none" : "url(\"" . JPATH_BASE. "/" . $params['imgleft'] . "\")") ;
|
||||||
|
$rightImageValue = (empty($params['imgright']) ? "none" : "url(\"" . JPATH_BASE . "/" . $params['imgright'] . "\")")
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php echo '<!DOCTYPE html>'; ?>
|
<?php echo '<!DOCTYPE html>'; ?>
|
||||||
@ -49,6 +54,167 @@ JHtml::_('script', 'user.js', array('version' => 'auto', 'relative' => true));
|
|||||||
<jdoc:include type="head" />
|
<jdoc:include type="head" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if($params['titlepage'] === '1')
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
#left-menu
|
||||||
|
{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
body
|
||||||
|
{
|
||||||
|
background-color: <?php echo $params['bgcolorside']; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
a, a:hover, a:active, a:visited
|
||||||
|
{
|
||||||
|
color: <?php echo $params['mainlicolor']; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
#page-bg
|
||||||
|
{
|
||||||
|
background-image: linear-gradient(to bottom, <?php echo $params['mainbgcolortop'] . ',' . $params['mainbgcolorbot']; ?>);
|
||||||
|
color: <?php echo $params['mainfgcolor']; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mobile-menu li > a {
|
||||||
|
background-color: <?php echo $params['bgcolor2']; ?>;
|
||||||
|
color: <?php echo $params['licolor2']; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mobile-menu li.current > a {
|
||||||
|
background-color: <?php echo $params['bgcolor3']; ?>;
|
||||||
|
color: <?php echo $params['licolor3']; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.mod-menu {
|
||||||
|
background-color: <?php echo $params['bgcolor1']; ?>;
|
||||||
|
color: <?php echo $params['fgcolor1']; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mobile-menu {
|
||||||
|
background-color: <?php echo $params['bgcolor1']; ?>;
|
||||||
|
color: <?php echo $params['fgcolor1']; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.mod-menu li.current > a,
|
||||||
|
ul.mod-menu li.current:hover > a
|
||||||
|
{
|
||||||
|
background-color: <?php echo $params['bgcolor2']; ?>;
|
||||||
|
color: <?php echo $params['licolor2']; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.nav > li > a:hover,
|
||||||
|
ul.nav > li > a:focus,
|
||||||
|
ul.mod-menu__sub > li > a:hover,
|
||||||
|
ul.mod-menu__sub > li > a:focus
|
||||||
|
{
|
||||||
|
background-color: <?php echo $params['bgcolor3']; ?>;
|
||||||
|
color: <?php echo $params['licolor3']; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
#topmenu,
|
||||||
|
#topmenu > ul.mod-menu {
|
||||||
|
background-color: <?php echo $params['topbgcolor1']; ?>;
|
||||||
|
color: <?php echo $params['topfgcolor1']; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
#topmenu .mod-menu__sub > li.current
|
||||||
|
|
||||||
|
{
|
||||||
|
background-color: <?php echo $params['topbgcolor2']; ?>;
|
||||||
|
color: <?php echo $params['topfgcolor2']; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
#topmenu .mod-menu__sub {
|
||||||
|
background-color: <?php echo $params['topbgcolor3']; ?>;
|
||||||
|
color: <?php echo $params['topfgcolor3']; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
#topmenu .nav > li:hover,
|
||||||
|
#topmenu .nav > li:focus,
|
||||||
|
#topmenu .nav > li.active,
|
||||||
|
#topmenu .mod-menu__sub > li:hover,
|
||||||
|
#topmenu .mod-menu__sub > li:focus
|
||||||
|
{
|
||||||
|
background-color: <?php echo $params['topbgcolor2']; ?>;
|
||||||
|
color: <?php echo $params['topfgcolor2']; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
#left-side-image
|
||||||
|
{
|
||||||
|
background-image: <?php echo $leftImageValue; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
#right-side-image
|
||||||
|
{
|
||||||
|
background-image: <?php echo $rightImageValue; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-striped li:nth-child(odd),
|
||||||
|
.row-striped .row-fluid:nth-child(odd),
|
||||||
|
.table-striped > tbody > tr:nth-child(odd)
|
||||||
|
{
|
||||||
|
background-color: <?php echo $params['bgcolor2']; ?>;
|
||||||
|
color: <?php echo $params['fgcolor2']; ?>;
|
||||||
|
}
|
||||||
|
.row-striped .row-fluid:nth-child(odd) a,
|
||||||
|
.table-striped > tbody > tr:nth-child(odd) a
|
||||||
|
{
|
||||||
|
color: <?php echo $params['licolor2']; ?>;
|
||||||
|
}
|
||||||
|
.list-striped li:hover,
|
||||||
|
.row-striped .row-fluid:hover,
|
||||||
|
.table-striped > tbody > tr:hover
|
||||||
|
{
|
||||||
|
background-color: <?php echo $params['bgcolor3']; ?>;
|
||||||
|
color: <?php echo $params['fgcolor3']; ?>;
|
||||||
|
}
|
||||||
|
.row-striped .row-fluid:hover a,
|
||||||
|
.table-striped > tbody > tr:hover a
|
||||||
|
{
|
||||||
|
color: <?php echo $params['licolor3']; ?>;
|
||||||
|
}
|
||||||
|
.table-striped > thead > tr
|
||||||
|
{
|
||||||
|
background-color: <?php echo $params['bgcolor3']; ?>;
|
||||||
|
color: <?php echo $params['fgcolor3']; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.alternating tr:nth-child(even) {
|
||||||
|
background-color: <?php echo $params['bgcolor2']; ?>;
|
||||||
|
color: <?php echo $params['fgcolor2']; ?>;
|
||||||
|
}
|
||||||
|
table.alternating tr:nth-child(even) a
|
||||||
|
{
|
||||||
|
color: <?php echo $params['licolor2']; ?>;
|
||||||
|
}
|
||||||
|
table.alternating tr:nth-child(1) {
|
||||||
|
background-color: <?php echo $params['bgcolor3']; ?>;
|
||||||
|
color: <?php echo $params['fgcolor3']; ?>;
|
||||||
|
}
|
||||||
|
table.alternating tr:nth-child(1) a {
|
||||||
|
color: <?php echo $params['licolor3']; ?>;
|
||||||
|
}
|
||||||
|
.readmore > .btn
|
||||||
|
{
|
||||||
|
color: <?php echo $params['fgcolor1'];?>;
|
||||||
|
background-color: <?php echo $params['bgcolor1']; ?>;
|
||||||
|
}
|
||||||
|
.readmore > .btn:hover
|
||||||
|
{
|
||||||
|
color: <?php echo $params['fgcolor3'];?>;
|
||||||
|
background-color: <?php echo $params['bgcolor3']; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user