Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Oct 4, 2012
2 parents 4fc4111 + 36314fc commit 98a3525
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
.sass-cache/b82a4c54823406b2e3fa108ceb67bf31fad36534/
sass.sh

styles/css/.DS_Store

lib/.DS_Store
2 changes: 1 addition & 1 deletion lib/gantti.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function render() {
$offset = (($today->timestamp - $this->first->month()->timestamp) / $this->seconds);
$left = round($offset * $this->options['cellwidth']) + round(($this->options['cellwidth'] / 2) - 1);

if($today->timestamp > $this->first->timestamp && $today->timestamp < $this->last->timestamp) {
if($today->timestamp > $this->first->month()->firstDay()->timestamp && $today->timestamp < $this->last->month()->lastDay()->timestamp) {
$html[] = '<time style="top: ' . ($this->options['cellheight'] * 2) . 'px; left: ' . $left . 'px" datetime="' . $today->format('Y-m-d') . '">Today</time>';
}

Expand Down
9 changes: 6 additions & 3 deletions styles/css/gantti.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@
display: block;
padding: 0 20px;
color: #93a1a1;
border-bottom: 1px solid #001f27; }
border-bottom: 1px solid #001f27;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap; }

/* data section */
.gantt-data {
Expand Down Expand Up @@ -98,7 +101,7 @@
display: block;
border-right: 1px solid #001f27;
border-bottom: 1px solid #001f27;
text-indent: -6000px; }
text-indent: -12000px; }

.gantt-day.weekend span {
background: #073642; }
Expand Down Expand Up @@ -138,7 +141,7 @@
background: white;
bottom: 0;
z-index: 1000;
text-indent: -6000px;
text-indent: -12000px;
-webkit-box-shadow: rgba(0, 0, 0, 0.3) 0 0 10px;
-moz-box-shadow: rgba(0, 0, 0, 0.3) 0 0 10px;
box-shadow: rgba(0, 0, 0, 0.3) 0 0 10px; }
Expand Down
7 changes: 5 additions & 2 deletions styles/scss/gantti.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ $aside-width: 200px;
padding: 0 20px;
color: $color-text-label-aside;
border-bottom: 1px solid $color-lines;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

/* data section */
Expand Down Expand Up @@ -125,7 +128,7 @@ $aside-width: 200px;
display: block;
border-right: 1px solid $color-lines;
border-bottom: 1px solid $color-lines;
text-indent: -6000px;
text-indent: -12000px;
}
.gantt-day.weekend span {
background: $color-background-light;
Expand Down Expand Up @@ -168,7 +171,7 @@ $aside-width: 200px;
background: $color-today;
bottom: 0;
z-index: 1000;
text-indent: -6000px;
text-indent: -12000px;
-webkit-box-shadow: rgba(0,0,0, .3) 0 0 10px;
-moz-box-shadow: rgba(0,0,0, .3) 0 0 10px;
box-shadow: rgba(0,0,0, .3) 0 0 10px;
Expand Down

0 comments on commit 98a3525

Please sign in to comment.