My Subscriptions

No active or expired subscriptions. View Available Subscriptions

News Feed

Receive our Newsletter

Advanced Search

Pages: [1]
Print
Author Topic: SOLVED: Spartan weekday mouseovers  (Read 2595 times)
V-man
Administrator
Hero Member
*****

Karma: +15/-3
Posts: 2197


Ignorance is curable, stupid is forever.


View Profile
« on: March 13, 2007, 11:36:36 AM »

Some users has asked about issues where the mouseover/mouseout colors on weekday cells in the Spartan theme display different colors. I could not reproduce this ... until now.

The problem lies in the fact that theme.php the following on line 46 and 47:
Code:
$sundayclr = '#ffffff'; # color calendarsunday
$weekdayclr = '#ffffff'; # color calendarweekday

These determine the color of a cell (weekday and sunday) after you mouse over it (i.e. on mouseout). However, the color of the cells before mouseover is determined in the stylesheet style.css on line 49 (the background-color attribute):
Code:
#extcalendar .maintable {
border-top: 1px solid #708088;
border-right: 0px solid #708088;
border-bottom: 1px solid #708088;
border-left: 1px solid #708088;
margin-top: 0px;
margin-bottom: 0px;
text-align: left;
background-color: #FFFFFF;
}

Note that this is the same as the attributes in theme.php. To maintain the correct appearance, be sure to keep these three color attributes the same.
« Last Edit: March 19, 2007, 11:18:06 AM by V-man » Logged

*** Please read this post and the FAQs before posting in the forum. ***
*** Documentation links: JCal Pro | Advanced Search ***

Support questions via PM or e-mail will be ignored.
Sapient
Newbie
*

Karma: +0/-0
Posts: 1


View Profile Email
« Reply #1 on: April 04, 2007, 11:04:00 PM »



Thanks, answered a big one.  One question about the actual mouseover.  Where is that controlled?  It appears to be a light blue going in. 

I have searched everywhere; except the right place.

Thanks,
Brian

fyi

Leaves a specified color on mouseout for current day.
$todayclr = '#669999'; # color today

Logged
jerett
Newbie
*

Karma: +0/-0
Posts: 1


View Profile
« Reply #2 on: April 18, 2007, 09:23:45 AM »

I tend to be a bit confused on how to style the Spartan theme using the style sheet and the theme.php.  Does anyone have some good pointers on what they did to add some eye candy to their calendar?

Thanks,
Jerett
Logged
gema3321
Newbie
*

Karma: +0/-0
Posts: 3


View Profile
« Reply #3 on: April 18, 2007, 04:19:09 PM »



Thanks, answered a big one.  One question about the actual mouseover.  Where is that controlled?  It appears to be a light blue going in. 

I have searched everywhere; except the right place.

Thanks,
Brian

fyi

Leaves a specified color on mouseout for current day.
$todayclr = '#669999'; # color today




I have looked everywhere also and cannot find where this color is designated.

Thanks!
Logged
V-man
Administrator
Hero Member
*****

Karma: +15/-3
Posts: 2197


Ignorance is curable, stupid is forever.


View Profile
« Reply #4 on: April 18, 2007, 11:53:12 PM »

The file names and line #s are shown in my first post. The path to these files is:

<joomla_root>/components/com_jcalpro/themes/spartan/
Logged

*** Please read this post and the FAQs before posting in the forum. ***
*** Documentation links: JCal Pro | Advanced Search ***

Support questions via PM or e-mail will be ignored.
jmc
Newbie
*

Karma: +0/-0
Posts: 16


View Profile
« Reply #5 on: July 08, 2007, 07:32:46 PM »

If nobody minds, I'm gonna pop this into this old post (so I know it's recorded somewhere for future!  Grin).
As Van has already pointed out, the cell colour before and after rollover is controlled in the theme.php and in the css.
The actual colour displayed on rollover is a different matter. This is controlled in the jcal/includes/functions.inc.php file, utilising the colour settings from the above files.
Code:
function colorHighlight($hexColor) {
  // highlights a color by increasing it's luminosity
$temp = hexdec(substr($hexColor, 1)) - hexdec("140A04");
return "#".dechex($temp);
}
So, taking these defaults as a starting point, what this calculation effectively does is subtract the hex colour value #140A04 from #ffffff (white) to leave you with a blue-ish rollover effect. All you need to do to gain complete mastery over the calendar cell's rollover effects is a little bit of hex math! Or, use this handy little calculator I found at http://www.guycroft.clara.net/utils/coloropts.html. Just put your desired rollover colour in the top 3 boxes (split the hex into 3 chunks) and click the "Complementary" button. Enter the generated complementary hex code into the functions.inc "hexdec..." code quoted above (replacing 140A04) and Bingo!
John Mc
Logged
marijke
Newbie
*

Karma: +0/-0
Posts: 1


View Profile Email
« Reply #6 on: July 11, 2007, 07:09:48 AM »

Thanx jmc! Exactly what I was looking for. Your description is very helpful  Smiley
Logged
neimles
Newbie
*

Karma: +0/-0
Posts: 2


View Profile Email
« Reply #7 on: July 21, 2007, 10:31:34 AM »

thank you, i searched that for over an hour now. but how can i also change the litte "+" signs at the right top corner of the field?

i have the background changed, but the "+" stays in blue.
Logged
jmc
Newbie
*

Karma: +0/-0
Posts: 16


View Profile
« Reply #8 on: August 02, 2007, 06:46:50 PM »

Hi, neimles!
The "+" sign is an image which is actually called into the <td> in the theme. Look in the theme/images folder for "addsign" and "addsign_a". Re-create them in the colour you prefer and upload.
HTH,
John Mc
Logged
Pages: [1]
Print
Jump to:  

Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com

Original Joomla Template design by RocketTheme ( Conversion by Bloc)