My initial thought was - mark up all pure content elements with some naming convention. For example ab_q_title would be class name for question title, or ab_query_id id of search query input element. Postfix _id would make id's distinct from classes.
The question is - should we also have some mandatory structural blocks? I.e. container types that would group elements like question title, question toolbar (with delete, edit, etc. links), etc.
Originally I though that we shouldn't because structure items like that enforce layout which will make building alternative layouts harder.
What do you think?
Yes, wrappers would be a great thing! I've already come across a few bumps while customizing the default template where a wrapper DIV would have come in very handy.
I think it's possible to make those wrappers "layout neutral" - if necessary, by forcing a "display: inline" on them while customizing. It will require changing two classes instead of just one in case of deeper customizations, but that is an okay price to pay IMO.
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.
create your Q&A siteAsked: 2010-05-06 20:37:11 -0500
Seen: 605 times
Last updated: May 07 '10
Feature request: Add classes to body in default skin
How to make application more easily skinnable?
Question about creating a custom skin
Does the skin setting in /settings work?
Are there skins/templates for askbot?
What to improve in the askbot theme?
How to fix "UndefinedError: 'settings' is undefined" in git branch
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.