Commit f69987e6 authored by l26yan's avatar l26yan
Browse files

fix individual ical error

parents
.view .event {border-bottom: solid 1px #ddd; margin-bottom: 1em;}
.view .event .event-title {border: none; font-size: 1.1em; font-weight: normal; margin-bottom: .2em;}
.view .event .event-title a {text-decoration: underline;}
.view .event .event-date {color: #555; margin-bottom: .5em;}
.view .event img {float: left; margin-right: 10px; margin-bottom: 1em;}
.page-events .view-footer {text-align: right;}
.event-content .field_event_date .field-data {font-size: 1.3em; color: #555; margin-bottom: 1em;}
.event-content .field_event_date .date-display-end {white-space: nowrap;}
.event-content .field_event_date .field-data.multiple {font-size: 1em;}
.event-content .field_event_location .address-content {margin-top: .5em; color: #333;}
.event-content .details {border-top: solid 1px #ddd; margin-top: .5em;}
.event-content .details .field {border-bottom: solid 1px #ddd; padding: .5em 0;}
.event-content .details .field .field-label {width: 8em; font-weight: normal; font-style: italic; color: #555;}
.event-content .details .field .field-data .location .adr {margin-left: 8em; margin-bottom: 0.5em;}
.front .block-events li {margin-bottom: 0;}
.front .block-events ol {margin-bottom: .5em; padding: 0;}
.front .event-date {display: inline-block; width: 110px; font-size: .85em; color: #444;}
.front .event-link-title {width: 380px; display: inline-block; vertical-align: top;}
.front .events-more-link {display: inline-block; margin-left: 110px; font-weight: bold;}
.block-events .feed-icon a {
background: url("images/ical-feed-icon-34x14.png") no-repeat scroll 0 0 transparent;
display: inline-block;
line-height: 16px;
margin-bottom: 10px;
padding-left: 40px;
}
.individual-event-ical a {margin-left: 0.5em;}
/*event calendar view*/
.view-events-with-calendar .attachment {margin-top: 1.5em;}
.view-content .views-row .event-title {
border: medium none;
font-size: 1.1em;
font-weight: normal;
margin-bottom: 0.2em;
}
.view-events-with-calendar .view-content .views-row {
border-bottom: 1px solid #DDDDDD;
margin-bottom: 1em;
}
.view-content .views-row .event-date {
color: #555555;
margin-bottom: 0.5em;
}
.calendar-calendar td .inner div.day a {color: #96172E;}
.calendar-calendar .month-view .full td.date-box.today {border-color: #757575;}
.calendar-calendar .month-view .full tr td.single-day.today {border-bottom: 2px solid #757575;}
.calendar-calendar .month-view .full tr td.today, .calendar-calendar .month-view .full tr.odd td.today, .calendar-calendar .month-view .full tr.even td.today {
border-left: 2px solid #757575;
border-right: 2px solid #757575;
}
.calendar-calendar td {color: #000000;}
.calendar-calendar th.days {color: #000000;}
.calendar-calendar td.empty {color: #999999;}
#block-views-events-with-calendar-block-1 .view .date-nav-wrapper .date-prev a, #block-views-events-with-calendar-block-1 .view .date-nav-wrapper .date-next a {
width: 1em;
padding: 0em;
}
#block-views-events-with-calendar-block-1 .view .date-nav-wrapper .date-heading {
text-align: center;
}
#block-views-events-with-calendar-block-1 .content h3 {
margin: 0.5em 0 0 0;
}
#block-views-events-with-calendar-block-1 .item-list ol {
list-style-type: none;
margin: 0;
padding-left: 1em;
}
#block-views-events-with-calendar-block-1 .item-list ol li .item-list ol {
list-style-type: square;
}
#block-views-events-with-calendar-block-1 .item-list ol li {
margin-bottom: -0.3em;
}
.view .date-nav-wrapper .date-heading h3 {
font-size: 1.2em;
color: #111;
line-height: 1.7em;
margin-bottom: -0.8em;
}
/* sidebar event calendar view */
#site-sidebar .view .date-nav-wrapper .date-nav {
margin-bottom: 0;
}
#site-sidebar .view .date-nav-wrapper .date-prev a, #site-sidebar .view .date-nav-wrapper .date-next a {
margin: 0;
padding: 0 2px;
line-height: 1.7em;
border-radius: 0;
}
#site-sidebar #block-views-events-with-calendar-block-1 .date-heading h3 {
margin-top: 0;
border-top: 1px solid #DDD;
font-size: 1em;
text-transform: uppercase;
}
#site-sidebar #block-views-events-with-calendar-block-1 .date-heading h3 a {
color: #000;
}
#site-sidebar table td.mini {
padding: 3px;
width: 14.285714285714%;
text-align: center;
}
#site-sidebar .calendar-calendar table.mini td.empty, #site-sidebar .calendar-calendar .mini {
border: 1px solid #DDD;
}
#site-sidebar .calendar-calendar table.mini td.empty {
background: #f4f4f4;
}
#site-sidebar .calendar-calendar tr td.today, #site-sidebar .calendar-calendar tr.odd td.today, #site-sidebar .calendar-calendar tr.even td.today {
background: none;
border: 2px solid #757575;
padding: 2px;
}
#site-sidebar .calendar-calendar tr td.has-events {
background: #757575;
}
#site-sidebar .calendar-calendar tr td.has-events.today {
background: #666666;
}
#site-sidebar .calendar-calendar td.has-events a {
color: #FFF;
font-weight: bold;
}
/* Full archive section */
#site-sidebar h3.full-archive {
margin: 0.75em 0 0 0;
text-decoration: underline;
font-size: 1.1em;
}
/* Events by date, Events by audience and Events by type*/
#site-sidebar .block-events h2, #block-views-event-type-block-events-by-type h2, #block-views-events-with-calendar-block-1 h2, #block-views-events-with-calendar-block-1 h3.full-archive {
/*background: url('images/menu-expanded.png') no-repeat 0px center;
padding-left: 10.5px;
cursor: pointer;*/
}
#site-sidebar h2.closed, #site-sidebar h3.full-archive.closed {
/*background: url('images/menu-collapsed.png') no-repeat 0px center;*/
}
#site-sidebar h3.full-archive.closed {
margin-bottom: 1em;
}
#site-sidebar .hidden {
display: none;
}
#edit-field-audience-tid {
max-width: 200px;
}
.view-id-events .event h3.event-title, .view-id-events .view-empty {
margin-top: 1.5em;
}
.view-display-id-page_3 .date-prev, .view-display-id-page_3 .date-next{
display: none;
}
/*events exposed filters*/
.view-id-events .views-exposed-form {
font-size: 80%;
position: relative;
border-bottom: 1px solid #DDD;
border-top: 1px solid #DDD;
}
.view-id-events .views-exposed-widgets > div {
width: 29%;
padding-right: 0.5em;
}
.view-id-events .views-exposed-widgets select {
width: 100%;
}
.view-id-events .views-exposed-widgets > div.views-submit-button {
width: auto;
padding-right: 0;
}
.view-id-events .views-exposed-widget.views-submit-button {
position: absolute;
bottom: 4px; /* maybe 0.5em instead of 4px? */
right: 0;
}
.view-id-events .views-exposed-form .views-exposed-widget .form-submit {
margin-top: 0;
width: 100%;
vertical-align: baseline;
}
.view-id-events_with_calendar .views-exposed-form {
font-size: 80%;
position: relative;
border-bottom: 1px solid #DDD;
border-top: 1px solid #DDD;
}
.view-id-events_with_calendar .views-exposed-widgets > div {
width: 44%;
padding-right: 0.5em;
}
.view-id-events_with_calendar .views-exposed-widgets select {
width: 100%;
}
.view-id-events_with_calendar .views-exposed-widgets > div.views-submit-button {
width: auto;
padding-right: 0;
}
.view-id-events_with_calendar .views-exposed-widget.views-submit-button {
position: absolute;
bottom: 4px; /* maybe 0.5em instead of 4px? */
right: 0;
}
.view-id-events_with_calendar .views-exposed-form .views-exposed-widget .form-submit {
margin-top: 0;
width: 100%;
vertical-align: baseline;
}
.view-display-id-page_1 .view-content, .view-display-id-page_3 .view-content {
padding-top: 1.5em;
}
/* Tags */
.field_uw_event_tag .field-item {
display: inline;
margin-right: 0.5em;
}
.return-current-month {
margin: 0 0 0 7em;
}
#edit-field-uw-event-type-und .form-item {
padding: 0;
}
#site-sidebar h2.closed button, #site-sidebar h3.full-archive.closed button {
background: url("images/menu-collapsed.png") no-repeat scroll 6px center;
border: medium none;
color: inherit;
cursor: pointer;
font-weight: inherit;
margin: -5px;
padding: 4px 4px 4px 16px;
text-align: left;
width: 100%;
}
#site-sidebar h2 button, #site-sidebar h3.full-archive button {
background: url("images/menu-expanded.png") no-repeat scroll 6px center;
border: medium none;
color: inherit;
cursor: pointer;
font-weight: inherit;
margin: -5px;
padding: 4px 4px 4px 16px;
text-align: left;
width: 100%;
}
/* Remove button outline for Google Chrome */
#site-sidebar h2.closed button:focus, #site-sidebar h3.full-archive.closed button:focus {
outline:none;
border:0;
}
#site-sidebar h2 button:focus, #site-sidebar h3.full-archive button:focus {
outline:none;
border:0;
}
/* area colours need to be set in the following documents:
* uw_ct_event/css/uw_ct_event.css
* uw_ct_home_page_banner/css/banner.css
* uw_ct_home_page_banner/css/uw_banner_slideshow.css
* uw_wysiwyg_ckeditor/css/uw_ckeditor.css
* uw_fdsu_theme/css/colors.css
*/
body.org_ahs .calendar-calendar td .inner div.day a {
color: #007F8A;
}
body.org_ahs .calendar-calendar .month-view .full td.date-box.today,
body.org_ahs .calendar-calendar .month-view .full tr td.single-day.today,
body.org_ahs .calendar-calendar .month-view .full tr td.today,
body.org_ahs .calendar-calendar .month-view .full tr.odd td.today,
body.org_ahs .calendar-calendar .month-view .full tr.even td.today,
body.org_ahs #site-sidebar .calendar-calendar tr td.today,
body.org_ahs #site-sidebar .calendar-calendar tr.odd td.today,
body.org_ahs #site-sidebar .calendar-calendar tr.even td.today {
border-color: #007F8A;
}
body.org_ahs #site-sidebar .calendar-calendar tr td.has-events {
background: #007F8A;
}
body.org_ahs #site-sidebar .calendar-calendar tr td.has-events.today {
background: #005E66;
}
body.org_art .calendar-calendar td .inner div.day a {
color: #AC6100;
}
body.org_art .calendar-calendar .month-view .full td.date-box.today,
body.org_art .calendar-calendar .month-view .full tr td.single-day.today,
body.org_art .calendar-calendar .month-view .full tr td.today,
body.org_art .calendar-calendar .month-view .full tr.odd td.today,
body.org_art .calendar-calendar .month-view .full tr.even td.today,
body.org_art #site-sidebar .calendar-calendar tr td.today,
body.org_art #site-sidebar .calendar-calendar tr.odd td.today,
body.org_art #site-sidebar .calendar-calendar tr.even td.today {
border-color: #AC6100;
}
body.org_art #site-sidebar .calendar-calendar tr td.has-events {
background: #AC6100;
}
body.org_art #site-sidebar .calendar-calendar tr td.has-events.today {
background: #8F5100;
}
body.org_eng .calendar-calendar td .inner div.day a {
color: #57068C;
}
body.org_eng .calendar-calendar .month-view .full td.date-box.today,
body.org_eng .calendar-calendar .month-view .full tr td.single-day.today,
body.org_eng .calendar-calendar .month-view .full tr td.today,
body.org_eng .calendar-calendar .month-view .full tr.odd td.today,
body.org_eng .calendar-calendar .month-view .full tr.even td.today,
body.org_eng #site-sidebar .calendar-calendar tr td.today,
body.org_eng #site-sidebar .calendar-calendar tr.odd td.today,
body.org_eng #site-sidebar .calendar-calendar tr.even td.today {
border-color: #57068C;
}
body.org_eng #site-sidebar .calendar-calendar tr td.has-events {
background: #57068C;
}
body.org_eng #site-sidebar .calendar-calendar tr td.has-events.today {
background: #3C0462;
}
body.org_env .calendar-calendar td .inner div.day a {
color: #747800;
}
body.org_env .calendar-calendar .month-view .full td.date-box.today,
body.org_env .calendar-calendar .month-view .full tr td.single-day.today,
body.org_env .calendar-calendar .month-view .full tr td.today,
body.org_env .calendar-calendar .month-view .full tr.odd td.today,
body.org_env .calendar-calendar .month-view .full tr.even td.today,
body.org_env #site-sidebar .calendar-calendar tr td.today,
body.org_env #site-sidebar .calendar-calendar tr.odd td.today,
body.org_env #site-sidebar .calendar-calendar tr.even td.today {
border-color: #747800;
}
body.org_env #site-sidebar .calendar-calendar tr td.has-events {
background: #747800;
}
body.org_env #site-sidebar .calendar-calendar tr td.has-events.today {
background: #4F5200;
}
body.org_mat .calendar-calendar td .inner div.day a {
color: #D42293;
}
body.org_mat .calendar-calendar .month-view .full td.date-box.today,
body.org_mat .calendar-calendar .month-view .full tr td.single-day.today,
body.org_mat .calendar-calendar .month-view .full tr td.today,
body.org_mat .calendar-calendar .month-view .full tr.odd td.today,
body.org_mat .calendar-calendar .month-view .full tr.even td.today,
body.org_mat #site-sidebar .calendar-calendar tr td.today,
body.org_mat #site-sidebar .calendar-calendar tr.odd td.today,
body.org_mat #site-sidebar .calendar-calendar tr.even td.today {
border-color: #D42293;
}
body.org_mat #site-sidebar .calendar-calendar tr td.has-events {
background: #D42293;
}
body.org_mat #site-sidebar .calendar-calendar tr td.has-events.today {
background: #AF1D7A;
}
body.org_sci .calendar-calendar td .inner div.day a {
color: #0073CF;
}
body.org_sci .calendar-calendar .month-view .full td.date-box.today,
body.org_sci .calendar-calendar .month-view .full tr td.single-day.today,
body.org_sci .calendar-calendar .month-view .full tr td.today,
body.org_sci .calendar-calendar .month-view .full tr.odd td.today,
body.org_sci .calendar-calendar .month-view .full tr.even td.today,
body.org_sci #site-sidebar .calendar-calendar tr td.today,
body.org_sci #site-sidebar .calendar-calendar tr.odd td.today,
body.org_sci #site-sidebar .calendar-calendar tr.even td.today {
border-color: #0073CF;
}
body.org_sci #site-sidebar .calendar-calendar tr td.has-events {
background: #0073CF;
}
body.org_sci #site-sidebar .calendar-calendar tr td.has-events.today {
background: #005AA3;
}
body.org_cgc .calendar-calendar td .inner div.day a {
color: #C4262E;
}
body.org_cgc .calendar-calendar .month-view .full td.date-box.today,
body.org_cgc .calendar-calendar .month-view .full tr td.single-day.today,
body.org_cgc .calendar-calendar .month-view .full tr td.today,
body.org_cgc .calendar-calendar .month-view .full tr.odd td.today,
body.org_cgc .calendar-calendar .month-view .full tr.even td.today,
body.org_cgc #site-sidebar .calendar-calendar tr td.today,
body.org_cgc #site-sidebar .calendar-calendar tr.odd td.today,
body.org_cgc #site-sidebar .calendar-calendar tr.even td.today {
border-color: #C4262E;
}
body.org_cgc #site-sidebar .calendar-calendar tr td.has-events {
background: #C4262E;
}
body.org_cgc #site-sidebar .calendar-calendar tr td.has-events.today {
background: #AB2128;
}
body.org_ren .calendar-calendar td .inner div.day a {
color: #00693C;
}
body.org_ren .calendar-calendar .month-view .full td.date-box.today,
body.org_ren .calendar-calendar .month-view .full tr td.single-day.today,
body.org_ren .calendar-calendar .month-view .full tr td.today,
body.org_ren .calendar-calendar .month-view .full tr.odd td.today,
body.org_ren .calendar-calendar .month-view .full tr.even td.today,
body.org_ren #site-sidebar .calendar-calendar tr td.today,
body.org_ren #site-sidebar .calendar-calendar tr.odd td.today,
body.org_ren #site-sidebar .calendar-calendar tr.even td.today {
border-color: #00693C;
}
body.org_ren #site-sidebar .calendar-calendar tr td.has-events {
background: #00693C;
}
body.org_ren #site-sidebar .calendar-calendar tr td.has-events.today {
background: #003D23;
}
body.org_stj .calendar-calendar td .inner div.day a {
color: #01573E;
}
body.org_stj .calendar-calendar .month-view .full td.date-box.today,
body.org_stj .calendar-calendar .month-view .full tr td.single-day.today,
body.org_stj .calendar-calendar .month-view .full tr td.today,
body.org_stj .calendar-calendar .month-view .full tr.odd td.today,
body.org_stj .calendar-calendar .month-view .full tr.even td.today,
body.org_stj #site-sidebar .calendar-calendar tr td.today,
body.org_stj #site-sidebar .calendar-calendar tr.odd td.today,
body.org_stj #site-sidebar .calendar-calendar tr.even td.today {
border-color: #01573E;
}
body.org_stj #site-sidebar .calendar-calendar tr td.has-events {
background: #01573E;
}
body.org_stj #site-sidebar .calendar-calendar tr td.has-events.today {
background: #00281D;
}
body.org_stp .calendar-calendar td .inner div.day a {
color: #727C2E;
}
body.org_stp .calendar-calendar .month-view .full td.date-box.today,
body.org_stp .calendar-calendar .month-view .full tr td.single-day.today,
body.org_stp .calendar-calendar .month-view .full tr td.today,
body.org_stp .calendar-calendar .month-view .full tr.odd td.today,
body.org_stp .calendar-calendar .month-view .full tr.even td.today,
body.org_stp #site-sidebar .calendar-calendar tr td.today,
body.org_stp #site-sidebar .calendar-calendar tr.odd td.today,
body.org_stp #site-sidebar .calendar-calendar tr.even td.today {
border-color: #727C2E;
}
body.org_stp #site-sidebar .calendar-calendar tr td.has-events {
background: #727C2E;
}
body.org_stp #site-sidebar .calendar-calendar tr td.has-events.today {
background: #525921;
}
This diff is collapsed.
/** Adds the ability to select a pre-existing location, making an AJAX call to populate the data from a central location
*/
(function ($) {
Drupal.behaviors.uw_ct_event = {
attach: function (context, settings) {
if($("#autofill-location-data").length === 0){
$locations = $('<select>').addClass('form-select').attr('id', settings.uw_ct_event.selectId);
// create the list of locations
if (settings.uw_ct_event.data) {
// add first location placeholder
$locations.append($('<option>').text(settings.uw_ct_event.custom).attr('value', 'custom'));
// add location selections
$.each(settings.uw_ct_event.data, function(key, value) {
$locations.append($('<option>').text(value.name).attr('value', key));
});
//add the list to the page
$locations.insertBefore('#' + settings.uw_ct_event.containerId, context)
$locations.wrap($('<div>').addClass('form-item'));
$locations.before($('<label>').text(settings.uw_ct_event.label).attr('for', settings.uw_ct_event.selectId));
$locations.after($('<div>').text(settings.uw_ct_event.description).addClass('description'));
//set location data when the list changes
$locations.change(function() {
if ($locations.val() != 'custom') {
_populate_location_data(settings.uw_ct_event.data[$locations.val()])
}
else {
_populate_location_data(
{
name: '',
additional: '',
street: '',
city: '',
province: '',
postal_code: '',
country: 'ca',
latitude: '',
longitude: ''
}
);
}
});
}
}
}
};
// TODO: use a variable setting from Drupal for the field name / language id selector
function _populate_location_data(data) {
$('#edit-field-event-location-und-0-name').val(data.name);
$('#edit-field-event-location-und-0-additional').val(data.additional);
$('#edit-field-event-location-und-0-street').val(data.street);
$('#edit-field-event-location-und-0-city').val(data.city);
$('#edit-field-event-location-und-0-province').val(data.province);
$('#edit-field-event-location-und-0-postal-code').val(data.postal_code);
$('#edit-field-event-location-und-0-country').val(data.country);
$('#edit-field-event-location-und-0-locpick-user-latitude').val(data.latitude);
$('#edit-field-event-location-und-0-locpick-user-longitude').val(data.longitude);
}
}(jQuery));
(function ($) {
$(function() {
//default state for "Full archive" is closed.
if (readCookie('Full archive') == null) {
createCookie('Full archive', 'closed', 30);
}
// Events by audience and Events by type
$('#site-sidebar .block-events h2, #block-views-event-type-block-events-by-type h2').click(function() {
if ($(this).hasClass('closed')) {
//expandable item is closed, open it
createCookie($(this).text(), 'open', 30);
$(this).removeClass('closed');
$(this).parent('div').find('.item-list').removeClass('hidden');
} else {
//expandable item is open, close it
createCookie($(this).text(), 'closed', 30);
$(this).addClass('closed');
$(this).parent('div').find('.item-list').addClass('hidden');
}
}).each(function() {
if (readCookie($(this).text()) == 'closed') {
$(this).click();
}
});
// Events by date
$('#block-views-events-with-calendar-block-1 h2').click(function() {
if ($(this).hasClass('closed')) {
//expandable item is closed, open it
createCookie($(this).text(), 'open', 30);
$(this).removeClass('closed');
$parent = $(this).parent('div');
$parent.find('.view-events-with-calendar, .full-archive').removeClass('hidden');
//restore state of full archive if not hidden
if (readCookie('Full archive') == 'open') {
$parent.find('.item-list').removeClass('hidden');
}
} else {
//expandable item is open, close it
createCookie($(this).text(), 'closed', 30);
$(this).addClass('closed');