33 Posts
Marco Heinski
11 years ago
Topic
Why in this file

...media\cck\css.site.css (line 11 - form div (margin:...........!important)

marked as important since it generates layout problem in modules that do not belong to seblod?
Saudações
Marco Heinski

Get a Book for SEBLOD
11 years ago
0
Level 1

Hi Marco,

You are right. Thank you.

Alex will answer you.

Best Regards.

11 years ago
0
Level 1

Hi Marco,

You'r right.

This file has not been changed for over 2 years.

We must rebuild all css files, simplify, do not use important, not use overflow hidden, use some display table ...and other css. There is a big work to do, i need to do that in the coming weeks.

Best

11 years ago
0
Level 1

I think that users will not be difficult to make corrections themselves in styles, offer assistance in this matter, as the amount of work you have huge

11 years ago
0
Level 1

Hi Wicked Rus, thank you it's nice. But php developers do not like css, so ...I have to do the work.

11 years ago
0
Level 1

Hi all,

You can clone, copy files from "\libraries\cck\rendering\assets\css" directory and put them in the "CSS" folder of your template content type, for example "templates/seb_one/css" and change what you want :

sites.css

search.css

list.css

content.css

item.css

content.css


These files will be used and not those of the libraries folder. If you do an update, your css files will be stored.

Best

33 Posts
Marco Heinski
11 years ago
0
Level 1

Thanks Alex,

important information!

Saudações

Marco Heinski



11 years ago
0
Level 1

Hello all,

Maybe someone knows the answer to this. I prefer (in this case) not to load any of the seblod css files, is there an easy way not to load any seblod css files? This will make styling less frustrating when starting from scratch and reduce the amount of files in my header?

Thanks for all, Joris

I dont seem to get rid of these, and those mentioned above:

<link rel="/marisol/newsite/media/cck/css/cck.css" type="text/css" />
<link rel="/marisol/newsite/media/cck/css/cck.content.css" type="text/css" />
<link rel="/marisol/newsite/media/cck/css/cck.search.css" type="text/css" />
<link rel="/marisol/newsite/media/cck/css/cck.list.css" type="text/css" />

11 years ago
0
Level 1

Hi Joris,

You can use something like that inside your template :

$remove_client_css   =   $this->getStyleParam( 'remove_client_css', 1 );
     $remove_cck_css     =   $this->getStyleParam( 'remove_cck_css', 1 );
     $add_custum_css     =   $this->getStyleParam( 'add_custum_css', 0 );         
     $doc         =   JFactory::getDocument();
     $headData       =   $doc->getHeadData();
     
     if ( $remove_client_css ) {
       unset($headData['styleSheets'][JURI::root( true ).'/media/cck/css/cck.'.$this->client.'.css']);
     }
     if ( $remove_cck_css ) {
       unset($headData['styleSheets'][JURI::root( true ).'/media/cck/css/cck.css']);
     }
     if(!count($headData['styleSheets']))
       $headData['styleSheets'] = array('data:text/css,'=>array('mime'=>'text/css'));
     $doc->setHeadData($headData);
     
     if ( $add_custum_css ) {
       $css_override   =   $this->path.'/css/custum.css';
       if ( $this->isFile( $css_override ) ) {
         $doc->addStyleSheet( JURI::root( true ).'/templates/'.$this->name. '/css/custum.css' );
       }
     }

Best regards.

Get a Book for SEBLOD