Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: GK061490 on March 08, 2012, 10:28:12 PM

Title: Change Post/Reply Box font size
Post by: GK061490 on March 08, 2012, 10:28:12 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fy8ak9l.png&hash=b6408cf11504434ac7c30d3340b9d9182535a369)

Hello there. I'm having trouble changing the font size used in my forum's reply box. I just can't seem to pinpoint which code in the CSS controls it.

I've included my CSS with this post. I hope someone can help me out with this. X'D

Advanced Thanks!
Title: Re: Change Post/Reply Box font size
Post by: Killer Possum on March 09, 2012, 12:51:07 PM
Hi GK061490, open editor.css in your theme and a font-size to the .editor class. But note, this does not work with the rich text editor as it displays actual font sizes to be used in the post.
Title: Re: Change Post/Reply Box font size
Post by: GK061490 on March 09, 2012, 06:59:14 PM
The theme I got doesn't have an editor.css

It only has index.css and rtl.css
Title: Re: Change Post/Reply Box font size
Post by: Killer Possum on March 10, 2012, 05:02:26 AM
If that index.css is all your theme calls, you can still add my suggestion. Just instead of editor.css put it in the index.css.
Title: Re: Change Post/Reply Box font size
Post by: GK061490 on March 15, 2012, 11:53:58 PM
unfortunately, it doesn't seem to work. T_T
Title: Re: Change Post/Reply Box font size
Post by: Killer Possum on March 16, 2012, 01:03:02 AM
Have you taken a look at the entire index.css file? It could be setting the size elsewhere. Also are you sure you're not looking at the rich text editor?
Title: Re: Change Post/Reply Box font size
Post by: GK061490 on March 16, 2012, 01:34:31 AM
Yes I have.

I believe this line is what's controlling the input size:

input, button, select, textarea
{
   font: 95%/115% verdana, Helvetica, sans-serif;
   color: #000000;
   background: #FFFFFF;
   border: 1px solid #4D423C;
   padding: 2px;
}

I'm thinking it's the textarea but whenever I try to change it, I don't see any difference.
Title: Re: Change Post/Reply Box font size
Post by: Marcus Forsberg on April 04, 2012, 08:28:22 AM
.editor
{
font-size: 20pt;
}


That worked for me. But as KP noted, if a user switches to WYSIWYG, this change will have no effect whatsoever.
Title: Re: Change Post/Reply Box font size
Post by: Killer Possum on April 04, 2012, 10:43:35 AM
You'll have to turn off the WYSIWYG if you want to always have the increased font size. The WYSIWYG is just that, it shows the font size your post will be in.