DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • May 20, 2013, 03:38:33 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Changing a color.  (Read 422 times)
0 Members and 1 Guest are viewing this topic.
Isom
Militia
**
Offline Offline

Posts: 55


Don't be a gooey chocolate chip cookie.


View Profile WWW
« on: October 24, 2011, 09:43:33 PM »

I know this question is going to laughable and its understandable if you do, but I'm having the hardest time with something that I'm sure is the simplest thing I'm going to do while trying to create my own game.

I'm new to PHP, I've tried learning it in the past and I've given up loads of times, but this time is different. I've actually gotten all kinds of ebooks and tutorials saved to my ipod for reading when I have the free time at school and when I'm home, I'm constantly testing scripts and things. I think I'm good enough now to try my hand at making a game. But this has turned into something totally different, onto my actual question.

Because I'm so focused on actually scripting modules and such, I can't be bothered with putting forth the effort to make a template from scratch. I want to edit the Jade template to my likings, which is replacing some logos and changing the colors. I like the style of it, I just want to change the background color. I cannot for the life of me figure out how to do. I've downloaded every CSS editor I can find and nothing has helped. Replacing images and stuff isn't a problem, I simply want to change the background color and maintain that color throughout every page.

Any advice?


*edit - And yes, I have checked out the Skins Made Easy, couldn't seem to find what I'm looking for.
« Last Edit: October 24, 2011, 09:45:19 PM by isom » Logged

staticobj
Militia
**
Offline Offline

Posts: 90

Keep it Simple Stupid


View Profile WWW
« Reply #1 on: October 24, 2011, 10:10:04 PM »

I am not familiar with what is described in the Skins Made Easy and Jade is not a very good template to familiarize yourself with HTML or CSS.

CSS stands for Cascading Style Sheet.
CSS is made up of classes, properties, and values.
Every element in a HTML document, such as a div, span, table, or even the body tag of the document has a set of properties that can be changed using CSS.
These standards or even guidelines if you will are set by the World Wide Web Consortium(W3.org).

Most elements have padding, margins, background or color.
If you were going to change the padding,  margins, or background of every table on every page the template is used you would have a set of properties as seen below:
Code: (CSS)
table {
padding:2px;
margin:0;
background-color:#000000;
}

This tells the browser that every table element in the page should have a padding of 2px, a margin of 0, and a background-color of black(hexadecimal color).

The reason Jade will be difficult to learn from is because Jade declares background properties for many of the table cells in the document itself instead of the CSS like it should. Jade also uses tables for layout of the page(tables are better suited for tubular data).

FYI

To change the colors of the Jade template check the body tag, and table cells, and then there are a few background-color properties in the CSS.

There are about 3-4 different shades of green used.
« Last Edit: October 24, 2011, 10:12:05 PM by staticobj » Logged

Want a custom template? Private Message me for a quote.
Click here for web hosting offer. I'm willing to work with you. Please send a Private Message for further details.
www.legacyofdragon.com
Isom
Militia
**
Offline Offline

Posts: 55


Don't be a gooey chocolate chip cookie.


View Profile WWW
« Reply #2 on: October 24, 2011, 10:17:50 PM »

Ah, thank you for that. Wasn't expecting that I would need to change more than one color. Maybe I'll just do a bit of searching and find a less complicated theme to modify, but thanks anyway.
Logged

staticobj
Militia
**
Offline Offline

Posts: 90

Keep it Simple Stupid


View Profile WWW
« Reply #3 on: October 24, 2011, 10:25:21 PM »

Ah, thank you for that. Wasn't expecting that I would need to change more than one color. Maybe I'll just do a bit of searching and find a less complicated theme to modify, but thanks anyway.

If you have text editor or IDE that supports Search & Replace.
Open jade.htm
Search for #003800 and replace it with the new color.
Then do the same for jade.css
That is the primary color used but there are also a few for borders and backgrounds in the jade.css.
Logged

Want a custom template? Private Message me for a quote.
Click here for web hosting offer. I'm willing to work with you. Please send a Private Message for further details.
www.legacyofdragon.com
ArthuruhtrA
Mod God
*****
Offline Offline

Posts: 553


chown -R us ./base


View Profile WWW
« Reply #4 on: October 24, 2011, 10:35:26 PM »

Basically, when it comes to changing the colors, all you need to do is edit the lines at the end of the script to use the hexadecimal valued you want. The values correspond to RGB values, so if you know the decimal values of red, green, and blue for the color, you can convert it to hex easily enough. Many charts exist for this as well, like this one: http://tntluoma.com/sidebars/triplecolors/. The class names correspond to different appo codes.

For a line reading:
.colLtOrange  { color: #FF9900; }
The first part, .colLtOrange, is the color name. It's the appo code `Q, I believe.
The value #FF9900 is the hexadecimal value of the color. Simply change each of those to values using something like that chart I linked, and you chould be all set.

I hope that helped and wasn't too confusing.
Logged

Dragons of MythMy Modules | Tynastera!
BOWTIES ARE COOL
Isom
Militia
**
Offline Offline

Posts: 55


Don't be a gooey chocolate chip cookie.


View Profile WWW
« Reply #5 on: October 24, 2011, 10:57:55 PM »

Ah, thank you for that. Wasn't expecting that I would need to change more than one color. Maybe I'll just do a bit of searching and find a less complicated theme to modify, but thanks anyway.

If you have text editor or IDE that supports Search & Replace.
Open jade.htm
Search for #003800 and replace it with the new color.
Then do the same for jade.css
That is the primary color used but there are also a few for borders and backgrounds in the jade.css.



Exactly what I needed! I also just searched for the inputs and things and changed their colors to my liking, and of course I've got to recolor the border images. Thanks for this, big help.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
26 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search