| Issue 2134: | [v2] CSS for print overrides on-screen styles | |
| 1 person starred this issue and may be notified of changes. | Back to list |
While testing v2 I noticed that if I create an event using fullCalendar('renderEvent',myJSONObject), background and text color (set via 'backgroundColor' and 'textColor') are overridden by stiles defined into fullcalendar.print.css.
Inside the header of my PHP page that includes the calendar I imported both "fullcalendar.css" and "fullcalendar.print.css" (in that order) since the user of my application is allowed to print the calendar.
Inside "fullcalendar.print.css" the following rules:
.fc-event {
background: #fff !important;
color: #000 !important;
}
overrides any other color that could be assigned to text and background using the "textColor" and "backgroundColor" properties of the Event Source Object.
The problem could be solved by putting all the styles of "fullcalendar.print.css" inside a media query that targets printed content.
May 1, 2014
Project Member
#1
adamrs...@gmail.com
Status:
Done
|
|
| ► Sign in to add a comment |