Skip to content

Commit 4f5b302

Browse files
committed
project
1 parent 3518a7c commit 4f5b302

13 files changed

+1982
-16
lines changed

app/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
'context_processors': [
6565
'django.template.context_processors.debug',
6666
'django.template.context_processors.request',
67+
'django.template.context_processors.media',
6768
'django.contrib.auth.context_processors.auth',
6869
'django.contrib.messages.context_processors.messages',
6970
],

app/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77

88
urlpatterns = [
99
url(r'^admin/', admin.site.urls),
10-
url(r'', TaskView.as_view()),
10+
url(r'^$', TaskView.as_view()),
1111
]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + staticfiles_urlpatterns()

media/frappe-gantt.css

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
.gantt .grid-background {
2+
fill: none; }
3+
4+
.gantt .grid-header {
5+
fill: #ffffff;
6+
stroke: #e0e0e0;
7+
stroke-width: 1.4; }
8+
9+
.gantt .grid-row {
10+
fill: #ffffff; }
11+
12+
.gantt .grid-row:nth-child(even) {
13+
fill: #f5f5f5; }
14+
15+
.gantt .row-line {
16+
stroke: #ebeff2; }
17+
18+
.gantt .tick {
19+
stroke: #e0e0e0;
20+
stroke-width: 0.2; }
21+
.gantt .tick.thick {
22+
stroke-width: 0.4; }
23+
24+
.gantt .today-highlight {
25+
fill: #fcf8e3;
26+
opacity: 0.5; }
27+
28+
.gantt .arrow {
29+
fill: none;
30+
stroke: #666;
31+
stroke-width: 1.4; }
32+
33+
.gantt .bar {
34+
fill: #b8c2cc;
35+
stroke: #8D99A6;
36+
stroke-width: 0;
37+
transition: stroke-width .3s ease;
38+
user-select: none; }
39+
40+
.gantt .bar-progress {
41+
fill: #a3a3ff; }
42+
43+
.gantt .bar-invalid {
44+
fill: transparent;
45+
stroke: #8D99A6;
46+
stroke-width: 1;
47+
stroke-dasharray: 5; }
48+
.gantt .bar-invalid ~ .bar-label {
49+
fill: #555; }
50+
51+
.gantt .bar-label {
52+
fill: #fff;
53+
dominant-baseline: central;
54+
text-anchor: middle;
55+
font-size: 12px;
56+
font-weight: lighter; }
57+
.gantt .bar-label.big {
58+
fill: #555;
59+
text-anchor: start; }
60+
61+
.gantt .handle {
62+
fill: #ddd;
63+
cursor: ew-resize;
64+
opacity: 0;
65+
visibility: hidden;
66+
transition: opacity .3s ease; }
67+
68+
.gantt .bar-wrapper {
69+
cursor: pointer; }
70+
.gantt .bar-wrapper:hover .bar {
71+
fill: #a9b5c1; }
72+
.gantt .bar-wrapper:hover .bar-progress {
73+
fill: #8a8aff; }
74+
.gantt .bar-wrapper:hover .handle {
75+
visibility: visible;
76+
opacity: 1; }
77+
.gantt .bar-wrapper.active .bar {
78+
fill: #a9b5c1; }
79+
.gantt .bar-wrapper.active .bar-progress {
80+
fill: #8a8aff; }
81+
82+
.gantt .lower-text, .gantt .upper-text {
83+
font-size: 12px;
84+
text-anchor: middle; }
85+
86+
.gantt .upper-text {
87+
fill: #555; }
88+
89+
.gantt .lower-text {
90+
fill: #333; }
91+
92+
.gantt .hide {
93+
display: none; }
94+
95+
.gantt-container {
96+
position: relative;
97+
overflow: auto;
98+
font-size: 12px; }
99+
.gantt-container .popup-wrapper {
100+
position: absolute;
101+
top: 0;
102+
left: 0;
103+
background: rgba(0, 0, 0, 0.8);
104+
padding: 0;
105+
color: #959da5;
106+
border-radius: 3px; }
107+
.gantt-container .popup-wrapper .title {
108+
border-bottom: 3px solid #a3a3ff;
109+
padding: 10px; }
110+
.gantt-container .popup-wrapper .subtitle {
111+
padding: 10px;
112+
color: #dfe2e5; }
113+
.gantt-container .popup-wrapper .pointer {
114+
position: absolute;
115+
height: 5px;
116+
margin: 0 0 0 -5px;
117+
border: 5px solid transparent;
118+
border-top-color: rgba(0, 0, 0, 0.8); }

0 commit comments

Comments
 (0)