Templates

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
6/5/2008 8:38:59 AM
Gravatar
Total Posts 180
Thomas F. Heringer

Templates

Joe, this might sound a little dumb, but what happens to the origional template when you create a skin? I ask that because nothing in the folders for each skin look like what is there when you use it. I am just putting the pieces together in my mind.

6/6/2008 7:19:41 AM
Gravatar
Total Posts 18439

Re: Templates

The template does not become part of the skin so nothing happens to it. It is used as a reference for creating a skin.

CSS boils down to selectors and rules, rules are the part within the {} and the selector is the part before {} which determines which elements the rules are applied to.

.foo { font-weight:bold;}

means all elements with the css class named foo will be bold

div table a { color:blue; }

means all a elements inside a table that is inside a div will be blue

This is just 2 examples, understanding the different kinds of selctors is crucial which is why I recommend you read a book on CSS.

You cannot use the selectors from the templates, only the rules, so usually its a process of harvesting the rules from the template and putting them in appropriate selectors for mojoPortal. mojoPortal uses its own specific class names and there is no way to integrate arbitrary ones from the template so the selectors for a mojoportal skin are never going to be the same as the ones in the templates.

By using existing skins as a starting point, many useful selectors are already defined and you just need to replace the rules appropriately in the right places and in some cases you need to add or refine selectors.

Hope it helps,

Joe

6/6/2008 7:27:25 AM
Gravatar
Total Posts 180
Thomas F. Heringer

Re: Templates

Joe, thanks for your time. This clears up a couple questions I have. The template is really just a starting point and we are just using the css styles to create a skin. I have one that I have started and I think I am going to give up on it. I will zip it to you and you can do anything you like with it. I have already worked a little on one of my sites using your suggestions, I picked a skin that had the plumbing I liked and started changing colors, header width and the like.

You must sign in to post in the forums. This thread is closed to new posts.