Styling - CSS classes - your opinion

Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here.
Forum rules
Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here. Feature requests are closed.
Post Reply
User avatar
psoTFX
Registered User
Posts: 1984
Joined: Tue Jul 03, 2001 8:50 pm
Contact:

Styling - CSS classes - your opinion

Post by psoTFX »

Given the feedback received I've decided that the way to proceed (for now at least) is to implement a set of "default" classes. These classes can then be edited online via an interface of the form shown in the attachment.

What I'm looking for are your opinions on what basic classes are needed. They must cover all forseeable eventualities while not overlapping and being easily "describable" to the admin. A good basis IMO is this current subSilver ... however I'm sure this too can be simplified while retaining all of its current look and feel.

So please feel free to list out your ideas for classes, preferably grouped together (e.g. post classes, topic classes, general classes, etc.). Please do not fill out the classses with CSS, just note their description, e.g. "post details", "topic title", etc.
Attachments
Untitled-1.png
Theme editing panel mockup
(31.85 KiB) Downloaded 558 times
Last edited by psoTFX on Thu Jun 05, 2003 1:29 pm, edited 1 time in total.

Bertg
Registered User
Posts: 190
Joined: Wed Apr 30, 2003 1:02 pm
Location: Brugge, Belgium
Contact:

Re: Styling - CSS classes - your opinion

Post by Bertg »

I don't see the point in a lot of classes...
Keep it fairly simple...
cause the more classes you have the more size you use, the longer loadintimes will be.

so I say minimize classes

post(edit) - vieuwpost(post, stiky,poll,announcement) - vieuwtopic - vieuw forums - Vieuw user profile (maby a seperate class per type of users (like a nice white background for a newbie and a cool blue for admins) - Groups -Memberlist - FAQ - Search (user and post) - Login/out

-bert-
Portfolio | Proud to be phpBB user

User avatar
dhn
Registered User
Posts: 1518
Joined: Wed Jul 04, 2001 8:10 am
Location: Around the corner
Contact:

Re: Styling - CSS classes - your opinion

Post by dhn »

I like it. A LOT. The important thing will be to put a lot of work into the style sheet and the HTML structure. Will think about this further tonight.

Bertg, a user will download the style only once (if it is chached correctly) so size isn't really a matter.
Image

Graham
Registered User
Posts: 1304
Joined: Tue Mar 19, 2002 7:11 pm
Location: UK

Re: Styling - CSS classes - your opinion

Post by Graham »

Looking at say the viewtopic page, the main classes I see are:
  • Title
  • Table headers
  • Post Text
  • Poster Info (x)
  • Post Info (x)
  • Quotes
  • Code
  • Navigation and info text
(The two marked x could possible be combined)

Or have I misunderstood the question here?

User avatar
psoTFX
Registered User
Posts: 1984
Joined: Tue Jul 03, 2001 8:50 pm
Contact:

Re: Styling - CSS classes - your opinion

Post by psoTFX »

No, that's the idea ... I should add that I see BBCode as being seperate with each basic tag being stylable.

User avatar
Lugie
Registered User
Posts: 163
Joined: Sat Nov 16, 2002 9:56 pm
Location: Wisconsin
Contact:

Re: Styling - CSS classes - your opinion

Post by Lugie »

Looking good thus far. However - is there a way for those of us who enjoy developing styles to define our own classes so that admins who choose to use our styles may customize a little bit more than what is offered on the default template?
I can't see the meaning of this life I'm leading,
I try forget you as you forgot me...
This time there is nothing left for you to take -
this is goodbye...

User avatar
dhn
Registered User
Posts: 1518
Joined: Wed Jul 04, 2001 8:10 am
Location: Around the corner
Contact:

Re: Styling - CSS classes - your opinion

Post by dhn »

Ok, thought about it for a little longer. I'd try to keep this as basic as possible.

Basic css rules should be availble in the panel for:

header stuff:
  • h1 (the header of course, semantics :))
  • h2 (the subheader of course, semantics ;))
  • div#header (to define background, color, etc.)
3 basic text rules:
  • .textSmall
  • .textNormal
  • .textLarge
  • a
For bold text, <strong> should be used semantically in the template

body table stuff:
  • div#main table
  • th (the blue overall header)
  • th.cat (or td.cat for the category header)
  • td.cell1
  • td.cell2
It could however prove problematic to enable the ability to change text options for cells

else:
  • Input fields
  • Input buttons
  • viewtopic
    • userName
    • userData
    • postText
    • postTitle
...

hmm, my brain just turned itself on standby, I'll continue the list tomorrow. :)
Image

User avatar
libertate
Registered User
Posts: 20
Joined: Wed Jun 11, 2003 7:11 pm

Re: Styling - CSS classes - your opinion

Post by libertate »

Are these classes for color, font, size, i.e. look and feel, or will this set also include containers (DIV, SPAN, etc.) and their attribs like borders, width, height, position?

If you make them container classes, then this would allow the complete repositioning of every part within. For example, in a post while reading you have

Code: Select all

message_block
message_block.menu_panel
message_block.menu_panel.menu_item

message_block.author_panel
message_block.author_panel.title
message_block.author_panel.author_name
message_block.author_panel.author_karma
message_block.author_panel.author_avatar
message_block.author_panel.author_info

message_block.subject_panel
message_block.subject_panel.subject
message_block.subject_panel.menu_item

message_block.message_panel
message_block.message_panel.message
message_block.signature_panel
message_block.mod_panel
message_block.mod_panel.edit_change
And so on... Of course my naming isn't up to par, but you get the gist, right? This would allow someone to rearrange pretty much any part of the system, and still be completely transparent when it comes to style templates.
Libertate
P i s c e s _ M o r t u i s _ S o l i s _ Q u a e _ N a t a n t _ C u m _ F l u c t u m

Post Reply