Advertisement:

Copyright font-family restriction

Aloittaja Kirby, joulukuu 08, 2004, 06:14:35 IP

« edellinen - seuraava »

Kirby

Can the font-family restriction in the copyright please be removed? ex.) when using theme_copyright(); I always get <span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> when I want a different font. Is it possible to remove the class and font-family?

Thanks.

Elijah Bliss

Why is everyone so hell bent on changing and in some cases removing the copyright from the SMF forum? Is it really that serious?

Kirby

It's not about changing - its just about the fonts. It doesn't bug me THAT much, it'd just look neater on a theme I'm making. I'd never want to remove or temper with the text of the copyright.

Jerry

I don't see a problem with changing the font it uses. . . I did it myself on my site. I don't see why there would be a problem as long as it is 100% visible and an acceptable font size (and ligible) but thats up to [Unknown] and lewis media to decide :-\


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

Amacythe

I think that the problem with this is that they don't want to allow any changes.  If they let one person change the font, and another to change it to one like (I had asked for this) and someone else to change whatever other little minor change... suddenly they have no control.  I now support the decision to say NO CHANGING the copyright PERIOD.

Kirby


Grudge

It should be possible to  use the CSS "copyright" class in updated templates, assuming you are on RC2 default templates I think that should work
I'm only a half geek really...

idigital

RC2 defines the copyright css hardcoded into a span in Subs.php like this:

<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;">

This overrides any attempts to change the font family in a stylesheet, although it is possible to change the font size and such. There's also the footerarea ID around the copyright in the template, but this is still no good against the hardcoded style it seems.

There are many instances of hardcoded styles in SMF and the default template, which it would be nice to have the option of handling from the stylesheet.

I dunno, I had a go at changing the font family on the copyright, nothing seemed to affect it, yet it is possible to override the display to none using the footerarea ID. This doesn't seem to work for font-family.

Setting footerarea to display:none is bad btw, don't do it. Bad.

But it would be nice to have full control over everything else from the stylesheet.

Cheers,

Damian

HEB XI 1

Lainaus käyttäjältä: Elijah Bliss - joulukuu 09, 2004, 08:09:23 IP
Why is everyone so hell bent on changing and in some cases removing the copyright from the SMF forum? Is it really that serious?

It's not about changing the copyright itself ... it's about changing the way it is formatted.  For those making themes or for those trying to integrate their forums with the rest of their site, it could be a small detail that makes a large difference.

For example, on my own site (www.raven-flight.com), being able to change the class of the copyright would actually make it visible.  Right now the class tells it to be black, which is invisible on a black background.  The links are a dark red, which shows, but barely.  So while I'm technically in compliance, since the copyright has not been changed AT ALL (I changed the css but none of the hardcode), I'm realistically not showing the copyright, just due to the inherent restrictions.

I could understand not allowing the formatting to be changed if it were a matter of branding, where the colors and font should be a certain way to match a logo.  But in this case, just the language and text itself is enough I believe, and the formatting should be allowed to be altered to fit the theme of the board.  Isn't that one of the advantages of SMF?  To be able to customize the look and appearance to fit your own style?

idigital

#9
You can change the colour, size etc of the copyright, that's not hardcoded into the span that surrounds the copyright, unlike the font-family.

All you need to do is this:

#footerarea .smalltext { color: white; }

Like I posted above, the copyright itself is surrounded by the #footerarea ID and the .smalltext class. The problem with font-family is that it is a hardcoded style.

You can change just about anything in the copyright area with #footerarea and .smalltext, or #footerarea a for links etc.

The issue here was the font-family, the addition of CSS IDs does make it a lot easier to style SMF apart from that. Mambo doesn't use *any* css IDs, which makes things tricky in Mambo sometimes.

The only issue I have with SMF is the use of some inline styles hardcoded into tags, otherwise it's very nifty with xhtml compliance and stylability.

Cheers,

Damian

p.s. oh yeah, I've found the Firefox web developer extension to be invaluable when working out CSS stuff like this, I'd highly recommend that any web dev/designer get Firefox 1.0 and install this extension. Not only can you enable a feature to show what CSS is being used just by moving your mouse over the page, you can edit the CSS of any site *live*. Has loads of other cool stuff as well ;)

Kirby

Hmm.. never thought about that.
Thanks :)

schipleon

Hello,

Where do I need to put that? #footerarea .smalltext { color: white; } (in the script of course and in which one)

Thank you in advance.

Advertisement: