Like the title says
.calendar-empty {}

I am not sure if this is a bug but without displaying none there is this small bottom gap between all dates. i only think this only effects if someone it trying to theme the calendar block and maybe its just i am not creating the css properly but ... I can theme dates without events with the class .has-no-events.

The calendar-empty class is also a level below the main classes, in the actual level with the number of the day. Again making it a bit tough to theme. I am for now just displaying none on it but it is bugging me trying to understand what this class is for.

To remove this i have to add

/*Removes bottom space on week of the current day*/
.calendar-calendar td {
background:#5e5e5e; /*matchs my background color
}
/*Removes other spaces*/
.calendar-empty{
display:none;
}

thanks.

Comments

defconjuan’s picture

Screen readers will still read display:none;. A better solution might be the following theme override. Say your theme's called facepalm:

function facepalm_calendar_empty_day($vars) {
  $curday = $vars['curday'];
  $view = $vars['view'];

  if ($view->date_info->calendar_type != 'day') { // this is line 920
    //return '<div class="calendar-empty">&nbsp;</div>' . "\n";
    //commented out previous line, added next line.
    return "\n";
  }
  else {
    return '<div class="calendar-dayview-empty">' . t('Empty day') . '</div>';
  }
}
apaderno’s picture

Version: 7.x-3.0-alpha2 » 7.x-3.x-dev
Issue summary: View changes
Neslee Canil Pinto’s picture

Status: Active » Closed (outdated)

Hi, there will be no more future development for 7.x branch. If you see this issue in 8.x, feel free to file an issue. Close this as Outdated.