| Current Path : /home/pteabiscqq/www/plugins/system/lab5_cookie_commander/cookie_commander/ |
| Current File : /home/pteabiscqq/www/plugins/system/lab5_cookie_commander/cookie_commander/cookie_commander.CSS.php |
<?php defined('_JEXEC') or die();
/////////////////////////////////////////////////////////////////////////////////////////////
/**
* Cookie Commander
*
* @author : Lab5 - Dennis Riegelsberger
* @authorUrl : https://lab5.ch
* @copyright : Copyright (C) 2018+ Lab5 - Dennis Riegelsberger. All rights reserved.
* @license : GNU/GPL General Public License version 2 or later
* @project : https://lab5.ch/cookie-commander
* @on JED : https://extensions.joomla.org/extensions/extension/site-management/cookie-control/lab5-cookie-commander/
*
* Built with <3
* Lab5
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/**
* @CHANGELOG :
* * 2019.06.08 :
*/
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
$o = self::$xstor->cooco ;
$CSS = '';
// $CSS .= "\n"." #".$o->idCookieBar.".fixed {position:fixed; top:0; left:0; width:100%;} ";
// $CSS .= "\n"." #".$o->idCookieBar.".fixed.bottom {bottom:0; top:auto;} ";
//////////////////////////////////////////////
// COLORS
//////////////////////////////////////////////
if($o->colorTXTBar) $CSS .= "\n"." #".$o->idCookieBar." { color:".$o->colorTXTBar."; } ";
// $CSS .= "\n"." #".$o->idCookieBar." p { color:#eeeeee; } ";
if($o->colorTXTLinks) $CSS .= "\n"." #".$o->idCookieBar." a { color:".$o->colorTXTLinks."; } ";
// $CSS .= "\n"." #".$o->idCookieBar." a { color:#ffffff; } ";
if($o->colorBGBar) $CSS .= "\n"." #".$o->idCookieBar." {background:".$o->colorBGBar."; } ";
// $CSS .= "\n"." #".$o->idCookieBar." {background:#111111; } ";
////////////////////
// BUTTONS
////////////////////
// if($o->colorTXTBtn) $CSS .= "\n"." #".$o->idCookieBar." a.cb-btn { color:".$o->colorTXTBtn."; } ";
if($o->colorTXTAccept) $CSS .= "\n"." #".$o->idCookieBar." .".$o->classBTNAccept." { color:".$o->colorTXTAccept.";}";
if($o->colorBGAccept) $CSS .= "\n"." #".$o->idCookieBar." .".$o->classBTNAccept." { background:".$o->colorBGAccept.";}";
// if($o->colorBGAccept) $CSS .= "\n"." #".$o->idCookieBar." .".$o->classBTNAccept.":hover { background:".$o->colorBGAccept.";}";
if($o->colorTXTDecline) $CSS .= "\n"." #".$o->idCookieBar." .".$o->classBTNDecline." { color:".$o->colorTXTDecline.";}";
if($o->colorBGDecline) $CSS .= "\n"." #".$o->idCookieBar." .".$o->classBTNDecline." { background:".$o->colorBGDecline.";}";
// if($o->colorBGDecline) $CSS .= "\n"." #".$o->idCookieBar." .".$o->classBTNDecline.":hover { background:".$o->colorBGDecline.";}";
if($o->colorTXTPolicy) $CSS .= "\n"." #".$o->idCookieBar." .".$o->classBTNPolicy." { color:".$o->colorTXTPolicy.";}";
if($o->colorBGPolicy) $CSS .= "\n"." #".$o->idCookieBar." .".$o->classBTNPolicy." { background:".$o->colorBGPolicy.";}";
// if($o->colorBGPolicy) $CSS .= "\n"." #".$o->idCookieBar." .".$o->classBTNPolicy.":hover { background:".$o->colorBGPolicy.";}";
if($o->colorTXTControls) $CSS .= "\n"." #".$o->idCookieBar." .".$o->classBTNControls." { color:".$o->colorTXTControls.";}";
if($o->colorBGControls) $CSS .= "\n"." #".$o->idCookieBar." .".$o->classBTNControls." { background:".$o->colorBGControls.";}";
// if($o->colorBGControls) $CSS .= "\n"." #".$o->idCookieBar." .".$o->classBTNControls.":hover { background:".$o->colorBGControls.";}";
//////////////////////////////////////////////
//////////////////////////////////////////////
$CSS .= "\n"." #".$o->idPopup." { background:".$o->popup_bg."; } ";
$CSS .= "\n"." #".$o->idPopup." { padding:".$o->popup_padding."px; } ";
// MODAL VARIANT :
$CSS .= "\n"."
#".$o->idPopup.".popup_content ,
#".$o->idPopup.".modal {
z-index: ".$o->zindex." ;
background:".$o->popup_bg."66;
}
#".$o->idPopup.".modal > div ,
#".$o->idPopup.".popup_content > form > div
{
background:".$o->popup_bg.";
padding:".$o->popup_padding."px;
box-sizing: border-box;
width:100%;
margin:0 auto;
}
";
//////////////////////////////////////////////
$doc->addStyleDeclaration( $CSS );
/////////////////////////////////////////////////////////////////////////////////////////////
unset( $CSS, $o );
/////////////////////////////////////////////////////////////////////////////////////////////