Roo/grid/Calendar.js
authorAlan Knowles <alan@roojs.com>
Wed, 9 Apr 2014 12:31:15 +0000 (20:31 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 9 Apr 2014 12:31:15 +0000 (20:31 +0800)
Roo/grid/Calendar.js

index 387855a..41b88c9 100644 (file)
@@ -413,6 +413,50 @@ Roo.grid.Calendar = function(container, config){
 
     },this);
     
+    if (!Roo.grid.Calendar.style) {
+        Roo.grid.Calendar.style = Roo.util.CSS.createStyleSheet({
+            '.course-timesheet .x-grid-row' : {
+                height: '80px'
+            },
+            '.x-grid-row td' : {
+                'vertical-align' : 0
+            },
+            '.course-edit-link' : {
+                'color' : 'blue',
+                'text-overflow' : 'ellipsis',
+                'overflow' : 'hidden',
+                'white-space' : 'nowrap',
+                'cursor' : 'pointer'
+            },
+            '.sub-link' : {
+                'color' : 'green'
+            },
+            '.de-act-sup-link' : {
+                'color' : 'purple',
+                'text-decoration' : 'line-through'
+            },
+            '.de-act-link' : {
+                'color' : 'red',
+                'text-decoration' : 'line-through'
+            },
+            '.course-timesheet .course-highlight' : {
+                'border-top-style': 'dashed !important',
+                'border-bottom-bottom': 'dashed !important'
+            },
+            '.course-timesheet .course-item' : {
+                'font-family'   : 'tahoma, arial, helvetica',
+                'font-size'     : '11px',
+                'overflow'      : 'hidden',
+                'padding-left'  : '10px',
+                'padding-right' : '10px',
+                'padding-top' : '10px' 
+            }
+            
+        }, Roo.id());
+    }
+
+    
+    
 };
 Roo.extend(Roo.grid.Calendar, Roo.grid.Grid, {
     /**