Changeset 13711

Show
Ignore:
Timestamp:
05/12/08 23:02:30 (6 months ago)
Author:
bill
Message:

Make TextBox/TextArea? based widgets use sans-serif out-of-the-box, rather than inheriting the font from <body>. Developer can still adjust the font by overriding the CSS. Refs #6307.

Location:
dijit/trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/tests/form/test_ComboBox.html

    r13661 r13711  
    88                @import "../../../dojo/resources/dojo.css"; 
    99                @import "../css/dijitTests.css"; 
    10                 .dj_ie INPUT#setvaluetest { font-family: Courier; } /* help IE with font inheritance */ 
    1110        </style> 
    1211 
  • dijit/trunk/tests/form/test_Spinner.html

    r13661 r13711  
    88                        @import "../../../dojo/resources/dojo.css"; 
    99                        @import "../css/dijitTests.css"; 
    10                         .dj_ie INPUT#integerspinner2 { font-family: Courier; } /* help IE with font inheritance */ 
    1110                </style> 
    1211 
  • dijit/trunk/themes/dijit.css

    r13623 r13711  
    4242.dj_ie .dijitInputField INPUT { 
    4343        font-size: 100%; 
    44         font-family: inherit; /* trigger pseudo font-family inheritance */ 
    45         behavior: expression( /* if the font-family = inherit, then get the parent's font-family */ 
    46                 function(self){ 
    47                         var cs, e;  
    48                         try{ 
    49                                 if(self.currentStyle.fontFamily=='inherit'){ 
    50                                         cs = self.parentNode.currentStyle || document.documentElement.currentStyle; 
    51                                         self.style.fontFamily = cs.fontFamily; 
    52                                 } 
    53                                 self.style.behavior = null; /* #5562: prevent re-eval of css expression */ 
    54                         }catch(e){} /* #6024: random exceptions thrown during init */ 
    55                 }(this) 
    56         ); 
    5744} 
    5845 
  • dijit/trunk/themes/tundra/form/Common.css

    r13433 r13711  
    1616.tundra .dijitSpinner { 
    1717        margin: 0em 0.1em; 
     18} 
     19 
     20.tundra .dijitTextBox, 
     21.tundra .dijitComboBox, 
     22.tundra .dijitSpinner, 
     23.tundra .dijitTextArea { 
     24        font-family: sans-serif; 
     25        font-size: 100%; 
    1826} 
    1927