Fix various Larry skin regressions after fullCalendar upgrade
This commit is contained in:
parent
3373fff6b3
commit
d45f3439b9
3 changed files with 45 additions and 34 deletions
|
@ -296,7 +296,6 @@ class calendar extends rcube_plugin
|
||||||
return $calendar ?: $first;
|
return $calendar ?: $first;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Render the main calendar view from skin template
|
* Render the main calendar view from skin template
|
||||||
*/
|
*/
|
||||||
|
@ -304,9 +303,6 @@ class calendar extends rcube_plugin
|
||||||
{
|
{
|
||||||
$this->rc->output->set_pagetitle($this->gettext('calendar'));
|
$this->rc->output->set_pagetitle($this->gettext('calendar'));
|
||||||
|
|
||||||
// Add CSS stylesheets to the page header
|
|
||||||
$this->ui->addCSS();
|
|
||||||
|
|
||||||
// Add JS files to the page header
|
// Add JS files to the page header
|
||||||
$this->ui->addJS();
|
$this->ui->addJS();
|
||||||
|
|
||||||
|
@ -2444,8 +2440,7 @@ class calendar extends rcube_plugin
|
||||||
$title .= ' "' . $search . '"';
|
$title .= ' "' . $search . '"';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add CSS and JS to the page
|
// Add JS to the page
|
||||||
$this->ui->addCSS();
|
|
||||||
$this->ui->addJS();
|
$this->ui->addJS();
|
||||||
|
|
||||||
$this->register_handler('plugin.calendar_css', array($this->ui, 'calendar_css'));
|
$this->register_handler('plugin.calendar_css', array($this->ui, 'calendar_css'));
|
||||||
|
|
|
@ -60,9 +60,8 @@ class calendar_ui
|
||||||
$this->cal->include_script('calendar_base.js');
|
$this->cal->include_script('calendar_base.js');
|
||||||
}
|
}
|
||||||
|
|
||||||
$skin_path = $this->cal->local_skin_path();
|
$this->addCSS();
|
||||||
$this->cal->include_stylesheet($skin_path . '/calendar.css');
|
|
||||||
|
|
||||||
$this->ready = true;
|
$this->ready = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,7 +108,13 @@ class calendar_ui
|
||||||
public function addCSS()
|
public function addCSS()
|
||||||
{
|
{
|
||||||
$skin_path = $this->cal->local_skin_path();
|
$skin_path = $this->cal->local_skin_path();
|
||||||
$this->cal->include_stylesheet($skin_path . '/fullcalendar.css');
|
|
||||||
|
if ($this->rc->task == 'calendar' && (!$this->rc->action || in_array($this->rc->action, array('index', 'print')))) {
|
||||||
|
// Include fullCalendar style before skin file for simpler style overriding
|
||||||
|
$this->cal->include_stylesheet($skin_path . '/fullcalendar.css');
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->cal->include_stylesheet($skin_path . '/calendar.css');
|
||||||
|
|
||||||
if ($this->rc->task == 'calendar' && $this->rc->action == 'print') {
|
if ($this->rc->task == 'calendar' && $this->rc->action == 'print') {
|
||||||
$this->cal->include_stylesheet($skin_path . '/print.css');
|
$this->cal->include_stylesheet($skin_path . '/print.css');
|
||||||
|
|
|
@ -1660,9 +1660,9 @@ a.dropdown-link:after {
|
||||||
.calendarmain #calendar .fc-button,
|
.calendarmain #calendar .fc-button,
|
||||||
.calendarmain #calendar .fc-button.fc-state-default,
|
.calendarmain #calendar .fc-button.fc-state-default,
|
||||||
.calendarmain #calendar .fc-button.fc-state-hover {
|
.calendarmain #calendar .fc-button.fc-state-hover {
|
||||||
margin: -2px 0 0 0;
|
margin-top: -2px;
|
||||||
height: 24px;
|
height: 26px;
|
||||||
line-height: 24px;
|
line-height: 26px;
|
||||||
color: #333;
|
color: #333;
|
||||||
border: 1px solid #ababab;
|
border: 1px solid #ababab;
|
||||||
background: #f1f1f1;
|
background: #f1f1f1;
|
||||||
|
@ -1793,8 +1793,8 @@ a.dropdown-link:after {
|
||||||
font-size: 1em !important;
|
font-size: 1em !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-event-hori.fc-type-freebusy,
|
.fc-event.fc-type-freebusy,
|
||||||
.fc-event-vert.fc-type-freebusy {
|
.fc-event.fc-type-freebusy {
|
||||||
opacity: 0.60;
|
opacity: 0.60;
|
||||||
-moz-box-shadow: inset 0px 1px 0 0px #888;
|
-moz-box-shadow: inset 0px 1px 0 0px #888;
|
||||||
-webkit-box-shadow: inset 0px 1px 0 0px #888;
|
-webkit-box-shadow: inset 0px 1px 0 0px #888;
|
||||||
|
@ -1806,29 +1806,29 @@ a.dropdown-link:after {
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-event-hori.fc-type-freebusy .fc-title,
|
.fc-event.fc-type-freebusy .fc-title,
|
||||||
.fc-event-vert.fc-type-freebusy .fc-title {
|
.fc-event.fc-type-freebusy .fc-title {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -5000px;
|
top: -5000px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-event-vert.fc-invitation-needs-action,
|
.fc-event.fc-invitation-needs-action,
|
||||||
.fc-event-hori.fc-invitation-needs-action {
|
.fc-event.fc-invitation-needs-action {
|
||||||
border: 1px dashed #5757c7 !important;
|
border: 1px dashed #5757c7 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-event-vert.fc-invitation-tentative,
|
.fc-event.fc-invitation-tentative,
|
||||||
.fc-event-hori.fc-invitation-tentative {
|
.fc-event.fc-invitation-tentative {
|
||||||
border: 1px dashed #eb8900 !important;
|
border: 1px dashed #eb8900 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-event-vert.fc-invitation-declined,
|
.fc-event.fc-invitation-declined,
|
||||||
.fc-event-hori.fc-invitation-declined {
|
.fc-event.fc-invitation-declined {
|
||||||
border: 1px dashed #c00 !important;
|
border: 1px dashed #c00 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-event-vert.fc-event-ns-other.fc-invitation-declined,
|
.fc-event.fc-event-ns-other.fc-invitation-declined,
|
||||||
.fc-event-hori.fc-event-ns-other.fc-invitation-declined {
|
.fc-event.fc-event-ns-other.fc-invitation-declined {
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1836,16 +1836,25 @@ a.dropdown-link:after {
|
||||||
text-decoration: line-through;
|
text-decoration: line-through;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-event-vert.fc-invitation-tentative .fc-bg {
|
.fc-event .fc-bg {
|
||||||
|
opacity: 1;
|
||||||
|
background: unset;
|
||||||
|
margin-top: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fc-event.fc-invitation-tentative .fc-bg {
|
||||||
background: url(data:image/gif;base64,R0lGODlhCAAIAPABAOuJAP///yH/C1hNUCBEYXRhWE1QAT8AIfkEBQAAAQAsAAAAAAgACAAAAg4Egmipx+ZaDPCtVPFNBQA7) 0 0 repeat #fff;
|
background: url(data:image/gif;base64,R0lGODlhCAAIAPABAOuJAP///yH/C1hNUCBEYXRhWE1QAT8AIfkEBQAAAQAsAAAAAAgACAAAAg4Egmipx+ZaDPCtVPFNBQA7) 0 0 repeat #fff;
|
||||||
|
opacity: .25;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-event-vert.fc-invitation-needs-action .fc-bg {
|
.fc-event.fc-invitation-needs-action .fc-bg {
|
||||||
background: url(data:image/gif;base64,R0lGODlhCAAIAPABAFdXx////yH/C1hNUCBEYXRhWE1QAT8AIfkEBQAAAQAsAAAAAAgACAAAAg4Egmipx+ZaDPCtVPFNBQA7) 0 0 repeat #fff;
|
background: url(data:image/gif;base64,R0lGODlhCAAIAPABAFdXx////yH/C1hNUCBEYXRhWE1QAT8AIfkEBQAAAQAsAAAAAAgACAAAAg4Egmipx+ZaDPCtVPFNBQA7) 0 0 repeat #fff;
|
||||||
|
opacity: .25;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-event-vert.fc-invitation-declined .fc-bg {
|
.fc-event.fc-invitation-declined .fc-bg {
|
||||||
background: url(data:image/gif;base64,R0lGODlhCAAIAPABAMwAAP///yH/C1hNUCBEYXRhWE1QAT8AIfkEBQAAAQAsAAAAAAgACAAAAg4Egmipx+ZaDPCtVPFNBQA7) 0 0 repeat #fff;
|
background: url(data:image/gif;base64,R0lGODlhCAAIAPABAMwAAP///yH/C1hNUCBEYXRhWE1QAT8AIfkEBQAAAQAsAAAAAAgACAAAAg4Egmipx+ZaDPCtVPFNBQA7) 0 0 repeat #fff;
|
||||||
|
opacity: .25;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-view-table tr.fc-invitation-tentative td,
|
.fc-view-table tr.fc-invitation-tentative td,
|
||||||
|
@ -1868,10 +1877,7 @@ a.dropdown-link:after {
|
||||||
|
|
||||||
.calendarmain .fc-event:focus {
|
.calendarmain .fc-event:focus {
|
||||||
outline: 1px solid rgba(71,135,177, 0.4);
|
outline: 1px solid rgba(71,135,177, 0.4);
|
||||||
-webkit-box-shadow: 0 0 2px 3px rgba(71,135,177, 0.6);
|
box-shadow: 0 0 2px 3px rgba(71,135,177, 0.6);
|
||||||
-moz-box-shadow: 0 0 2px 3px rgba(71,135,177, 0.6);
|
|
||||||
-o-box-shadow: 0 0 2px 3px rgba(71,135,177, 0.6);
|
|
||||||
box-shadow: 0 0 2px 3px rgba(71,135,177, 0.6);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-title {
|
.fc-title {
|
||||||
|
@ -1905,7 +1911,7 @@ a.dropdown-link:after {
|
||||||
padding-right: 0.3em;
|
padding-right: 0.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendarmain .fc-event-vert .fc-inner {
|
.calendarmain .fc-event .fc-inner {
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2049,7 +2055,12 @@ a.dropdown-link:after {
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-unthemed td.fc-today {
|
.fc-unthemed td.fc-today {
|
||||||
background: rgb(243, 226, 140, 0.2) !important;
|
background: rgb(243, 226, 140, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.fc-axis {
|
||||||
|
width: 35px !important;
|
||||||
|
padding: 0 3px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Settings section */
|
/* Settings section */
|
||||||
|
|
Loading…
Add table
Reference in a new issue