Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: MediaSVI - tammikuu 11, 2012, 10:57:02 IP

Otsikko: Change Font Color and more?
Kirjoitti: MediaSVI - tammikuu 11, 2012, 10:57:02 IP
I am having a hard time finding were the code is for the areas with the arrows pointing.

1. Is the thin line border or what ever it is called, I would really like to just make all the area white.
2. is the 2 arrows pointing to the Font that I would like to be white.

Thanks for your help!

Otsikko: Re: Change Font Color and more?
Kirjoitti: Sir Osis of Liver - tammikuu 11, 2012, 11:14:47 IP

The title bar backgrounds are from /images/theme/main_block.png and specified in /css/index.css.  You can hunt around in index.css for the current font color, or just format inline in BoardIndex.template.php.  Look for ', $txt['forum_stats'], ' and ', $txt['online_users'], '.

Otsikko: Re: Change Font Color and more?
Kirjoitti: Antechinus - tammikuu 11, 2012, 11:25:30 IP
1/ That's the roundframe class. It's called in other places in the default theme too. You seem to have removed the top and bottom spans already. How you go about removing the side borders depends on whether you want to remove the roundframe class everywhere, or just in the info centre.

2/ This, in index.css:

div.title_barIC
{
background: #dadfe6 url(../images/theme/main_block.png) no-repeat 0 -120px;
padding-left: 9px;
height: 31px;
overflow: hidden;
margin-bottom: 1px;
}
div.title_barIC h4.titlebg
{
background: url(../images/theme/main_block.png) no-repeat 100% -120px;
}


Change it to this:

div.title_barIC
{
background: #dadfe6 url(../images/theme/main_block.png) no-repeat 0 -120px;
padding-left: 9px;
height: 31px;
overflow: hidden;
margin-bottom: 1px;
}
div.title_barIC h4.titlebg
{
background: url(../images/theme/main_block.png) no-repeat 100% -120px;
color: #fff;
}
Otsikko: Re: Change Font Color and more?
Kirjoitti: MediaSVI - tammikuu 12, 2012, 12:05:02 AP
Thank you that fix the font problem. I would just to make the BG in the Info Center all white but keep the round edges, can this be done?
Otsikko: Re: Change Font Color and more?
Kirjoitti: Antechinus - tammikuu 12, 2012, 02:12:51 AP
Not difficult. If you only want to change the info centre, without changing the roundframe class on any other pages, the best way would be to modify the BoardIndex.template.php file.

Find:

// Here's where the "Info Center" starts...
echo '
<span class="clear upperframe"><span></span></span>
<div class="roundframe"><div class="innerframe">


Replace:

// Here's where the "Info Center" starts...
echo '
<div class="roundframe" id="infocentre"><div class="innerframe">


Find:

echo '
</div>
</div></div>
<span class="lowerframe"><span></span></span>';


Replace:

echo '
</div>
</div></div>';


And in index.css use something like:

#infocentre
{
padding: 10px;
background: #fff;
border: 1px solid #ccc;
border-radius: 6px;
}


Tweak colours and paddings to suit. :)
Otsikko: Re: Change Font Color and more?
Kirjoitti: MediaSVI - tammikuu 12, 2012, 09:41:31 AP
Thanks worked like a charm. Found 2 more things I can not figure out, I have looked and looked and read and read and I can not find the code! Thanks for your time.

1. Banner padding
2. Statistics Center Font Color



Lainaus käyttäjältä: Antechinus - tammikuu 12, 2012, 02:12:51 AP
Not difficult. If you only want to change the info centre, without changing the roundframe class on any other pages, the best way would be to modify the BoardIndex.template.php file.
Otsikko: Re: Change Font Color and more?
Kirjoitti: Antechinus - tammikuu 12, 2012, 02:16:14 IP
Which browser are you using? It should have some dev tools on it to enable you to get element names.
Otsikko: Re: Change Font Color and more?
Kirjoitti: MediaSVI - tammikuu 12, 2012, 03:27:44 IP
I use Chrome, FireFox, Safari... I am on a Mac.

I Just installed FireBug to simplify finding code, I just need a good FTP, I download the demo of Espresso because I love the way you can see everything, amazing,  but I can not get it to sync with Godaddy servers.

Lainaus käyttäjältä: Antechinus - tammikuu 12, 2012, 02:16:14 IP
Which browser are you using? It should have some dev tools on it to enable you to get element names.
Otsikko: Re: Change Font Color and more?
Kirjoitti: Antechinus - tammikuu 12, 2012, 03:39:27 IP
I prefer the FF Web Developer add-on (you can get it for Chrome too) but Firebug is pretty good. Anyway you should be able to pick element names off the screen and then use the search function in your code editor. Makes things a lot easier. :)

Re the stats page: it's looking like you'll be wanting to change the text for the titlebg class for all areas of the theme.

/* Generic, mostly color-related, classes.
------------------------------------------------------- */

.titlebg, .titlebg2, tr.titlebg th, tr.titlebg td, tr.titlebg2 td
{
color: #222;
font-family: arial, helvetica, sans-serif;
font-size: 1.1em;
font-weight: bold;
background: #e3e9ef url(../images/theme/main_block.png) no-repeat -10px -380px;
}


Banner positioning is taken care of here:

/* the main title, always stay at 45 pixels in height! */
h1.forumtitle
{
line-height: 45px;
font-size: 1.8em;
font-family: Geneva, verdana, sans-serif;
margin: 0;
padding: 0;
float: left;
}
Otsikko: Re: Change Font Color and more?
Kirjoitti: MediaSVI - tammikuu 12, 2012, 04:42:45 IP
Thank you for your help again, it really makes things easier and helps me learn.

Lainaus käyttäjältä: Antechinus - tammikuu 12, 2012, 03:39:27 IP
I prefer the FF Web Developer add-on (you can get it for Chrome too) but Firebug is pretty good. Anyway you should be able to pick element names off the screen and then use the search function in your code editor. Makes things a lot easier. :)

Re the stats page: it's looking like you'll be wanting to change the text for the titlebg class for all areas of the theme.

/* Generic, mostly color-related, classes.
------------------------------------------------------- */

.titlebg, .titlebg2, tr.titlebg th, tr.titlebg td, tr.titlebg2 td
{
color: #222;
font-family: arial, helvetica, sans-serif;
font-size: 1.1em;
font-weight: bold;
background: #e3e9ef url(../images/theme/main_block.png) no-repeat -10px -380px;
}


Banner positioning is taken care of here:

/* the main title, always stay at 45 pixels in height! */
h1.forumtitle
{
line-height: 45px;
font-size: 1.8em;
font-family: Geneva, verdana, sans-serif;
margin: 0;
padding: 0;
float: left;
}