Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git] / resources / themes / stylesheets / ext4 / default / widgets / _datepicker.scss
index adcf3ee..d30dc9b 100644 (file)
@@ -53,6 +53,8 @@
             cursor: pointer;
             
             text-decoration: none !important;
+
+            @include opacity(.7);
             
             &:hover {
                 @include opacity(1);
@@ -64,7 +66,7 @@
         right: 5px;
 
         a {
-            background-image: theme-image($theme-name, $datepicker-next-image);
+            background-image: theme-background-image($theme-name, $datepicker-next-image);
         }
     }
 
@@ -72,7 +74,7 @@
         left: 5px;
 
         a {
-            background-image: theme-image($theme-name, $datepicker-prev-image);
+            background-image: theme-background-image($theme-name, $datepicker-prev-image);
         }
     }      
             
         }
         
         .#{$prefix}btn-split-right {
-            background: theme-image($theme-name, $datepicker-month-arrow-image) no-repeat right center !important;
+            background: no-repeat right center !important;
+            background-image: theme-background-image($theme-name, $datepicker-month-arrow-image);
             
             padding-right: 12px;
         }
     }
 
     // month picker
-    .#{$prefix}monthpicker {
+    .#{$prefix}datepicker .#{$prefix}monthpicker {
         position: absolute;
         left: 0;
         top: 0;
-        
+    }
+    
+    
+    .#{$prefix}monthpicker {        
         border: $datepicker-border;
-        //
-        
         background-color: $datepicker-background-color;
     }
 
             
             margin: 0 5px 0 5px;
             
+            text-decoration: none;
+            
+            color: $datepicker-monthpicker-item-color;
+            
             border: $datepicker-monthpicker-item-border;
             
             line-height: 17px;
         height: 28px;
         
         button {
-            background-image: theme-image($theme-name, $datepicker-tool-sprite-image);
+            background-image: theme-background-image($theme-name, $datepicker-tool-sprite-image);
             height: 15px;
             width: 15px;
             padding: 0;
             margin: 6px 12px 5px 15px;
-            border: none;
+            border: 0;
             outline: 0 none;
             &::-moz-focus-inner {
                 border: 0;
         background-position: -15px -105px;
     }
     
+    .#{$prefix}monthpicker-small {
+        .#{$prefix}monthpicker-item {
+            margin: 2px 0 2px 0;
+        }
+        
+        .#{$prefix}monthpicker-yearnav {
+            height: 23px;
+        }
+        
+        .#{$prefix}monthpicker-months, .#{$prefix}monthpicker-years {
+            height: 136px;
+        }
+    }
+    
     @if $include-ie {
         .#{$prefix}quirks {
             .#{$prefix}ie7,
                     }
                 }
             }
+            
+            .#{$prefix}monthpicker-small .#{$prefix}monthpicker-yearnav button {
+                margin-top: 3px;
+                margin-bottom: 3px;
+            }
+        }
+        
+        .#{$prefix}ie6 .#{$prefix}monthpicker-small .#{$prefix}monthpicker-yearnav button {
+            margin-top: 3px;
+            margin-bottom: 3px;
         }
     }
 
         .#{$prefix}nlg {
             @if $datepicker-header-background-gradient != null {
                 .#{$prefix}datepicker-header {
-                    background-image: theme-image($theme-name, 'datepicker/datepicker-header-bg.gif');
+                    background-image: theme-background-image($theme-name, 'datepicker/datepicker-header-bg.gif');
                     background-repeat: repeat-x;
                     background-position: top left;
                 }
             @if $datepicker-footer-background-gradient != null {
                 .#{$prefix}datepicker-footer,
                 .#{$prefix}monthpicker-buttons {
-                    background-image: theme-image($theme-name, 'datepicker/datepicker-footer-bg.gif');
+                    background-image: theme-background-image($theme-name, 'datepicker/datepicker-footer-bg.gif');
                     background-repeat: repeat-x;
                     background-position: top left;
                 }