Stylesheet problems - advice needed! Stylesheet problems - advice needed!
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Stylesheet problems - advice needed!

Started by scrappit, November 30, 2003, 07:02:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

scrappit

l'm hoping someone can help - l'm trying to customise my gallery appearance by changing the colour values in the stylesheet. However there are so many codes and tables, and l'm not sure what refers to what - is there an index or helpsheet somewhere that l can print out? Previously l tried the trial and error method, but then couldn't remember what l had altered/not altered and ended up wasting alot of time trying to change things :O)

Thanks in advance!

Scrappit :D

Joachim Müller

try looking into /themes/fruity/style.css:
I tried to use only a very limited number of colors and I have a comment at the beginning with all the colors
Quote/* Colors used:                                */
/* --------------------------------------------*/
/* #FFFFFF = RBG 255,255,255 = (white)         */
/* #000000 = RBG   0,  0,  0 = (black)         */
/* #FFA600 = RGB 255,166,  0 = (orange)        */
/* #6BBE10 = RGB 107,190, 16 = (green)         */
/* #FFFF00 = RGB 255,255,  0 = (yellow)        */
/* #D1D7DC = RGB 209,215,220 = (light grey)    */
/* #F7F37B = RGB 247,243,123 = (light yellow)  */
/* #5F5F5F = RGB  95, 95, 95 = (dark grey)     */
/* #E7F38C = RGB 239,243,140 = (light green)   */
/* if you don't like a color, just do a search */
/* and replace on the hex color...             */
Not excatly what you're looking for, but a place to start with...
Just use a lot of comments in your stylesheet while you're working on it and remove them only once you're done.

GauGau

scrappit

thanks heaps for that, will see how l go! :D

Casper

I had the same experience when trying to change the colours to match the rest of my site.

For someone like me, who is not a programmer, there was no way other  than trial and error, to find out which section of the style sheet belongs to which actual table/border/text colour etc.

The only way I could find out what each section controlled, was to change it one at a time, ftp it to the site, and see what happened.  This was very time consuming.

What I think scrappit was after, and what I would like to see, is a guide to the stylesheet, such as a description or screenshot of each display, labelled as to which table is which, i.e., 'tableh1_compact', or 'tableb', so users of coppermine who want to change the look, but who are not programmers, can see which value to change to achieve the look they want.

Am I right in thinking that there would only need to be one guide, as all themes use the same tables names etc, they just change the colours/background images and layout.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

you're right: all themes use the same class names - doing a tutorial on themes/styles has been on my list for quite a while, but as it's a time-consuming task I haven't started it yet. I'd really be very happy if you volunteered to do this, as I understand that this would be very helpfull for people starting with coppermine.

GauGau

Casper

OK, I'll try to do a basic guide to changing the colours within the packaged themes.  This is all I feel confident enough to do, and may take a little time.  I don't have enough knowledge to advise on how to change the actual layout.  
As I said before, I am not a programmer, and only know the basics of html, and virtually nothing of php.  But as this guide is for others like me, perhaps thats for the best.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

scrappit

l guess l could help, l ended up using the trial and error method, by changing each value individually to red, and then uploading after each change and seeing what happened. l did make some notes on my printout, but haven't covered all areas. l also found quite alot of it was customisable by editing the template.php in frontpage. Anyway, if you want to check out what l managed to do (l'm no expert BTW!) you can see here: www.scrappit.com.au/gallery
Still have a few probs, but it's good enough for me to use and just tweak every now and then when l get some spare time *g*