1
cschloeg
Agenda-X Color/CSS problem
  • 2004/3/16 19:22

  • cschloeg

  • Just popping in

  • Posts: 7

  • Since: 2004/1/13


I'm trying to customize the color of the Navbar at the top of the Agenda-X module. I've tried several ways but I can't seem to get it to ignore the default a: settings in the theme css. I tried editing the theme css and agenda-x's css as follows:

Agenda-X CSS:
Original:
Quote:
div.axNavbar {background-color : #000000}

To:
Quote:

div.axNavbar {
background-color : #000000;
a.axNavbar:link : color: #FFFFFF;
a.axNavbar:visited : color: #FFFFFF;
a.axNavbar:active : text-transform: capitalize; color: #FF0000;
a.axNavbar:hover : text-transform: capitalize; color: #00CC00;
}
I've also tried "a.div.axNavbar" in all places.

In my theme CSS I put:

Quote:

a.div.axNavbar:link {color: #FFFFFF}
a.div.axNavbar:visited {color: #FFFFFF}
a.div.axNavbar:active {text-transform: capitalize; color: #FF0000}
a.div.axNavbar:hover {text-transform: capitalize; color: #00CC00}

However XOOPS still shows the links with the default colors, is there any way to change these links without affecting the rest of the site?

Chris

2
cschloeg
Re: Agenda-X Color/CSS problem
  • 2004/3/16 19:38

  • cschloeg

  • Just popping in

  • Posts: 7

  • Since: 2004/1/13


Hey guys,

Figured this one out on my own, in case anyone else wants to know:

Added a new class to Agenda-X CSS:
Quote:

a.Navbar2:link {color: #FFFFFF}
a.Navbar2:visited {color: #FFFFFF}
a.Navbar2:active {text-transform: capitalize; color: #FF0000}
a.Navbar2:hover {text-transform: capitalize; color: #00CC00}

Then, you have to edit agendax_header.inc.php

Find (Around line 79):
Quote:
echo "<a href=$agendax_url/index.php?op=eventform>"._("Add Event")."</a>";

Change to:
Quote:
echo "<a href=$agendax_url/index.php?op=eventform class=Navbar2>"._("Add Event")."</a>";

You have to add the class tag to all of the following menu items which I'm sure you can figure out from there.

Peace,
Chris