<?php
/**
 * @package			No Boss Extensions
 * @subpackage  	No Boss Calendar
 * @author			No Boss Technology <contact@nobosstechnology.com>
 * @copyright		Copyright (C) 2020 No Boss Technology. All rights reserved.
 * @license			GNU Lesser General Public License version 3 or later; see <https://www.gnu.org/licenses/lgpl-3.0.en.html>
 */

defined('_JEXEC') or die();

if (!empty($modalCustomization)){
    $s = "";

    $s .= ".{$moduleName} .{$moduleName}-title{
        {$modalCustomization->titleStyle}
    }
    .{$moduleName} .{$moduleName}-details *{
        {$modalCustomization->detailsStyle}
    }
    .{$moduleName} .{$moduleName}-category{
        {$modalCustomization->categoryStyle}
    }
    "; 

    $s .=
    "@media screen and (max-width: 767px){
    .{$moduleName} .{$moduleName}-title{
        {$modalCustomization->titleStyleMobile}
    }
    .{$moduleName} .{$moduleName}-details *{
        {$modalCustomization->detailsStyleMobile}
    }
    .{$moduleName} .{$moduleName}-category{
        {$modalCustomization->categoryStyleMobile}
    }
    }";

    // chama função que adiciona prefixo em todo o estilo que foi concatenado na variável $s 
    $assetsObject->addStyleWithPrefix($s);
}

