Item11487: CalendarPlugin is badly styled by JSCalendarContrib CSS

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: CalendarPlugin
Branches:
Reported By: MarcusLeonard
Waiting For:
Last Change By: ArthurClemens
Basically, the rendered calendars have always got right-aligned text, regardless of what CSS I put in, even into the page itself. Then I finally realised the css was coming from the jscal contrib, not cal plugin.

The relevant CSS is from /pub/System/JSCalendarContrib/calendar-blue.css
.calendar tbody .day {
  width: 2em;
  color: #456;
  text-align: right;
  padding: 2px 4px 2px 2px;
}
and, of course, CalendarPlugin's HTML has classes .calendar and .day. D'oh.

CalendarPlugin version: Feb 2009. Yeah, a bit old, but I checked both CalendarPlugin and JSCalendarContrib current pages on foswiki.org and the changes show nothing about updating CSS as far as I can see.

Suppose this could be a bug against the contrib instead, but I figured calendar's being re-vamped (right?) so might as well put it here. Should be an easy fix.

-- MarcusLeonard - 31 Jan 2012

This is css provided by the javascript library. I haven't seen the alignment before, perhaps I don't use calendar-blue. But yes, it should be an easy fix.

-- ArthurClemens - 31 Jan 2012

These are 2 variations, centered and right-aligned.

days-centered.png

days-right.png

Personally I prefer the right-aligned version, because the days are ligned up.

If you want to create a center-style skin, you can simply copy calendar-blue.css, call it calendar-blue-centered.css, and change System.JSCalendarContribInline to include that css file.

-- ArthurClemens - 25 Feb 2012

 

ItemTemplate edit

Summary CalendarPlugin is badly styled by JSCalendarContrib CSS
ReportedBy MarcusLeonard
Codebase 1.0.4
SVN Range
AppliesTo Extension
Component CalendarPlugin
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
I Attachment Action Size Date Who Comment
days-centered.pngpng days-centered.png manage 32 K 25 Feb 2012 - 23:45 ArthurClemens  
days-right.pngpng days-right.png manage 32 K 25 Feb 2012 - 23:45 ArthurClemens  
Topic revision: r3 - 25 Feb 2012, ArthurClemens
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy