move css code into new css method of class.Timeline.php

This commit is contained in:
Uwe Steinmann 2017-04-11 10:10:54 +02:00
parent 0fd0af5854
commit 71cc4da3a2
2 changed files with 33 additions and 28 deletions

View File

@ -140,34 +140,6 @@ div.help h3 {
margin-right: auto;
}
#timeline {
font-size: 12px;
line-height: 14px;
}
div.timeline-event-content {
margin: 3px 5px;
}
div.timeline-frame {
border-radius: 4px;
border-color: #e3e3e3;
}
div.status_change_2 {
background-color: #DAF6D5;
border-color: #AAF897;
}
div.status_change_-1 {
background-color: #F6D5D5;
border-color: #F89797;
}
div.timeline-event-selected {
background-color: #fff785;
border-color: #ffc200;
z-index: 999;
}
div.splash {
display: none;
}

View File

@ -163,6 +163,39 @@ $(document).ready(function () {
$this->printTimelineJs($timelineurl, 550, ''/*date('Y-m-d', $from)*/, ''/*date('Y-m-d', $to+1)*/, $skip);
} /* }}} */
function css() { /* {{{ */
?>
#timeline {
font-size: 12px;
line-height: 14px;
}
div.timeline-event-content {
margin: 3px 5px;
}
div.timeline-frame {
border-radius: 4px;
border-color: #e3e3e3;
}
div.status_change_2 {
background-color: #DAF6D5;
border-color: #AAF897;
}
div.status_change_-1 {
background-color: #F6D5D5;
border-color: #F89797;
}
div.timeline-event-selected {
background-color: #fff785;
border-color: #ffc200;
z-index: 999;
}
<?php
header('Content-Type: text/css');
} /* }}} */
function show() { /* {{{ */
$dms = $this->params['dms'];
$user = $this->params['user'];