Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of https://github.com/bastianallgeier/gantti

  • Loading branch information...
commit 98a35250c14e6759262e2853f5a2c6aba300b109 2 parents 4fc4111 + 36314fc
@bastianallgeier authored
View
4 .gitignore
@@ -1,2 +1,6 @@
.sass-cache/b82a4c54823406b2e3fa108ceb67bf31fad36534/
sass.sh
+
+styles/css/.DS_Store
+
+lib/.DS_Store
View
2  lib/gantti.php
@@ -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>';
}
View
9 styles/css/gantti.css
@@ -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 {
@@ -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; }
@@ -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; }
View
7 styles/scss/gantti.scss
@@ -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 */
@@ -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;
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.