Shape 5

Joomla Templates => Oasis - Club => : ccvid May 20, 2014, 10:08:31 AM



: Changing a little code on template.css
: ccvid May 20, 2014, 10:08:31 AM
I erased some of the empty space in between sections and modules on the Oasis template.  The changes look good, I just want to see if there is any reason I should not do what I did...

in the template.css I changed line 1481 from
:
.module_round_box_outer, #s5_pos_custom_2 .moduletable {
margin-right:35px;
margin-left:35px;
margin-bottom:60px;
font-size:1.1em;
}

to
:
#s5_pos_custom_2 .moduletable {
margin-right:35px;
margin-left:35px;
margin-bottom:60px;
font-size:1.1em;
}


.module_round_box_outer {
margin-right:35px;
margin-left:35px;
margin-bottom:30px;
font-size:1.1em;
}

I had changed the margin-bottom to 30px on both of those module locations, but it totally screwed up the custom1 module.  So I separated them out...  Does this look good?


: Re: Changing a little code on template.css
: mikenicoll May 21, 2014, 10:22:06 PM
Hello,

I wouldn't reccomend modifiying core files like that as:

a) It can effect other areas of the site
b) When you update the Template the changes will be erased

What I would do is find the area where you want to modify the values (using Firebug) and override them with !important calls in the custom.css file. This file is not replaced during a Template update.

#s5_pos_custom_2 .moduletable {
margin-right: 10px !important;}

Using !important overrides any existing Template calls and sets your added CSS as the priority.

-Mike


: Re: Changing a little code on template.css
: ccvid August 14, 2014, 11:36:49 AM
I know this is getting away from your service, but I'm helping a plugin to show up properly on this template and the plugin author told me to add the following code to my stylesheet.  So I put it in the template.css with the "!important" label on the back as you suggested.  Do you think I'm doing this right?

labels_googleMaps {
     color: black !important;
     background-color: white !important;
     font-family: "Lucida Grande", "Arial", sans-serif !important;
     font-size: 10px !important;
     font-weight: bold !important;
     text-align: center !important;
     width: 60px !important;
     border: 2px solid black !important;
     white-space: nowrap !important;
   }


: Re: Changing a little code on template.css
: mikenicoll August 14, 2014, 09:09:33 PM
Hello,

That should be fine. I would suggest putting that code in the custom.css file though, not the template.css.

Regards,