Changeset 7788

Show
Ignore:
Timestamp:
03/25/07 23:55:02 (22 months ago)
Author:
itorrey
Message:

updating the styling of the dijit buttons. Adding a span to wrap them so that we can do some advanced styling. Need to update the disabled style not to be active when clicked and moused over. Need to port the new styles to the final dijit classes. refs #2640

Location:
dijit/trunk/themes/tundra
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/themes/tundra/index.html

    r7260 r7788  
    44                <link href="tundra.css" rel="stylesheet" type="text/css" /> 
    55                <style type="text/css"> 
    6                         button { 
    7                                 margin:0 12px 0 0; 
     6                         
     7                        body { 
     8                                background:#cddde9; 
     9                                background:#fff; 
    810                        } 
    911                         
     
    1618                 
    1719                <h4>Button Widget Example</h4> 
    18                 <button class="dojoButton">Button</button> 
    19                 <button class="dojoButton">Button</button> 
     20                <span class="dojoButton dojoInlineBox"><button>Button</button></span> 
    2021                 
    21                 <button class="dojoButton dojoButtonDisabled" disabled="disabled">Disabled</button> 
     22                <span class="dojoButton dojoButtonDisabled dojoInlineBox"><button disabled="disabled">Disabled</button></span> 
    2223                 
    2324                <h4>Form Fields</h4> 
     
    2627                <input type="text" class="dojoInputField dojoInputFieldValidationError" value="Test" /><br /> 
    2728                <input type="password" class="dojoinputField" id="passwordField" /><br /> 
    28                 <button class="dojoButton">Login</button> 
     29                <span class="dojoButton dojoInlineBox"><button>Login</button></span> 
    2930                 
    3031        </body> 
  • dijit/trunk/themes/tundra/tundra.css

    r7786 r7788  
     1 
    12/* To inline block elements, surround them with <fieldset class="dojoInlineBox"> */ 
    23.dojoInlineBox { 
     4         
     5        display:inline-block; 
    36        display: -moz-inline-stack; 
    4         display:inline-block; 
    57        _display:inline; 
    68        border:0px; 
     
    1315 
    1416/*IE6 Hack */ 
    15 * html .dojoButton,  
     17* html .dojoButton button,  
    1618* html .dojoInputField, 
    1719* html .dojoMenu { 
     
    2022} 
    2123 
     24 
     25 
     26/*Dojo Button Rules*/ 
     27 
     28.dojoButton { 
     29        background:#fff; 
     30        border-top:1px solid #dadada; 
     31        border-right:1px solid #a9a9a9; 
     32        border-bottom:1px solid #a9a9a9; 
     33        border-left:1px solid #dadada; 
     34        padding:0 0 1px 1px; 
     35} 
     36 
     37.dojoButton button { 
     38        background:#e2e2e2 url("dojoTundraGradientBg.png") repeat-x 0 0; 
     39        border:0; 
     40        border-left:0; 
     41        font-family: Myriad, Arial, Helvetica; 
     42        font-size:13px; 
     43        font-weight:normal; 
     44        padding:2px 4px; 
     45} 
     46 
     47.dojoButtonDisabled { 
     48        background:#dadada; 
     49        border-top:1px solid #dadada; 
     50        border-right:1px solid #a9a9a9; 
     51        border-bottom:1px solid #a9a9a9; 
     52        border-left:1px solid #dadada; 
     53} 
     54 
     55.dojoButtonDisabled button { 
     56        color:#787878; 
     57        background-image: url("dojoTundraGradientBgActive.png"); 
     58} 
     59 
     60span.dojoButton:hover { 
     61        border-top:1px solid #80a5c2; 
     62        border-right:1px solid #42739a; 
     63        border-bottom:1px solid #42739a; 
     64        border-left:1px solid #80a5c2; 
     65} 
     66 
     67span.dojoButton:hover button { 
     68        color:#0e4978; 
     69} 
     70 
     71span.dojoButton:active { 
     72                border-top:1px solid #42739a; 
     73        border-right:1px solid #80a5c2; 
     74        border-bottom:1px solid #80a5c2; 
     75        border-left:1px solid #42739a; 
     76} 
     77 
     78span.dojoButton:active button { 
     79        background-image: url("dojoTundraGradientBgActive.png"); 
     80        background-position:bottom left; 
     81} 
     82 
     83 
    2284/* Base of Tundra default theme */ 
    23 .dojoButton,  
    2485.dojoInputField 
    2586{ 
     
    3495 
    3596 
    36 /* Default Hover Styles */ 
    37 .dojoButton:hover,  
     97/* Default Hover Styles */  
    3898.dojoInputField:hover, 
    3999.dojoMenuItemHover 
     
    44104 
    45105/* Default Active/Focus style*/ 
    46 .dojoButton:active,  
    47106.dojoInputField:focus, 
    48107.dojoInputFieldFocused 
     
    54113 
    55114/* Default Disabled Styles*/ 
    56 .dojoButton[disabled], 
    57115.dojoInputField[disabled], 
    58 .dojoButtonDisabled, 
    59116.dojoInputFieldDisabled, 
    60117.dojoMenuItemDisabled { 
     
    65122} 
    66123 
    67 .dojoButton[disabled]:active, 
    68124.dojoInputField[disabled]:active, 
    69 .dojoButtonDisabled:active, 
    70125.dojoInputFieldDisabled:active { 
    71126        background-image: url("dojoTundraGradientBg.png");