|
21 | 21 | $( ".ui-collapsible-content" ).removeClass( "ui-body-a ui-body-b ui-body-c ui-body-d ui-body-e" ).addClass( "ui-body-" + themeClass ); |
22 | 22 | $( ".theme" ).text( themeClass ); |
23 | 23 | }); |
| 24 | + $( "#opt-navbars input" ).on( "change", function( event ) { |
| 25 | + if ( $( "#show" ).prop( "checked" ) ) { |
| 26 | + $( "#testpage .ui-navbar" ).show(); |
| 27 | + $( "#testpage .ui-footer h4" ).hide(); |
| 28 | + } else if ( $( "#hide" ).prop( "checked" ) ) { |
| 29 | + $( "#testpage .ui-navbar" ).hide(); |
| 30 | + $( "#testpage .ui-footer h4" ).show(); |
| 31 | + } |
| 32 | + }); |
24 | 33 | $( "#opt-shadow input" ).on( "change", function( event ) { |
25 | 34 | if ( $( "#on" ).prop( "checked" ) ) { |
26 | 35 | $( "#testpage" ).removeClass( "noshadow" ); |
|
35 | 44 | $( "#testpage" ).addClass( "ui-shadow-icon" ); |
36 | 45 | } |
37 | 46 | }); |
38 | | - $( "#opt-navbars input" ).on( "change", function( event ) { |
39 | | - if ( $( "#show" ).prop( "checked" ) ) { |
40 | | - $( "#testpage .ui-navbar" ).show(); |
41 | | - $( "#testpage .ui-footer h4" ).hide(); |
42 | | - } else if ( $( "#hide" ).prop( "checked" ) ) { |
43 | | - $( "#testpage .ui-navbar" ).hide(); |
44 | | - $( "#testpage .ui-footer h4" ).show(); |
| 47 | + $( "#opt-gradient input" ).on( "change", function( event ) { |
| 48 | + if ( $( "#off2" ).prop( "checked" ) ) { |
| 49 | + $( "#testpage" ).addClass( "nogradient" ); |
| 50 | + } else if ( $( "#on2" ).prop( "checked" ) ) { |
| 51 | + $( "#testpage" ).removeClass( "nogradient" ); |
| 52 | + } |
| 53 | + }); |
| 54 | + $( "#opt-highlight input" ).on( "change", function( event ) { |
| 55 | + if ( $( "#off3" ).prop( "checked" ) ) { |
| 56 | + $( "#testpage" ).addClass( "nohighlight" ); |
| 57 | + } else if ( $( "#on3" ).prop( "checked" ) ) { |
| 58 | + $( "#testpage" ).removeClass( "nohighlight" ); |
45 | 59 | } |
46 | 60 | }); |
47 | 61 | }); |
|
52 | 66 | -moz-box-shadow: none !important; |
53 | 67 | box-shadow: none !important; |
54 | 68 | } |
| 69 | + .nogradient, |
| 70 | + .nogradient * { |
| 71 | + background-image: none !important; |
| 72 | + } |
| 73 | + .nohighlight .ui-btn:before { |
| 74 | + display: none !important; |
| 75 | + } |
| 76 | + form.ui-mini .ui-field-contain fieldset.ui-controlgroup legend small { |
| 77 | + color: #666; |
| 78 | + } |
55 | 79 | </style> |
56 | 80 | </head> |
57 | 81 | <body> |
|
90 | 114 | <input type="radio" name="theme" id="e"> |
91 | 115 | </fieldset> |
92 | 116 | </div> |
| 117 | + <div class="ui-field-contain" id="opt-navbars"> |
| 118 | + <fieldset data-role="controlgroup" data-type="horizontal"> |
| 119 | + <legend>Navbars:</legend> |
| 120 | + <label for="show">Show</label> |
| 121 | + <input type="radio" name="navbars" id="show" checked> |
| 122 | + <label for="hide">Hide</label> |
| 123 | + <input type="radio" name="navbars" id="hide"> |
| 124 | + </fieldset> |
| 125 | + </div> |
93 | 126 | <div class="ui-field-contain" id="opt-shadow"> |
94 | 127 | <fieldset data-role="controlgroup" data-type="horizontal"> |
95 | | - <legend>Shadow:</legend> |
| 128 | + <legend>Shadow:<br><small>Off: set the widget option shadow to false (data-shadow="false")</small></legend> |
96 | 129 | <label for="on">On</label> |
97 | | - <input type="radio" name="shadow" id="on"> |
| 130 | + <input type="radio" name="shadow" id="on" checked> |
98 | 131 | <label for="off">Off</label> |
99 | | - <input type="radio" name="shadow" id="off" checked> |
| 132 | + <input type="radio" name="shadow" id="off"> |
100 | 133 | </fieldset> |
101 | 134 | </div> |
102 | 135 | <div class="ui-field-contain" id="opt-iconshadow"> |
103 | 136 | <fieldset data-role="controlgroup" data-type="horizontal"> |
104 | | - <legend>Icon shadow:</legend> |
| 137 | + <legend>Icon shadow:<br><small>On: add class ui-shadow-icon to the button or its container</small></legend> |
105 | 138 | <label for="on1">On</label> |
106 | 139 | <input type="radio" name="iconshadow" id="on1"> |
107 | 140 | <label for="off1">Off</label> |
108 | 141 | <input type="radio" name="iconshadow" id="off1" checked> |
109 | 142 | </fieldset> |
110 | 143 | </div> |
111 | | - <div class="ui-field-contain" id="opt-navbars"> |
| 144 | + <div class="ui-field-contain" id="opt-gradient"> |
112 | 145 | <fieldset data-role="controlgroup" data-type="horizontal"> |
113 | | - <legend>Navbars:</legend> |
114 | | - <label for="show">Show</label> |
115 | | - <input type="radio" name="navbars" id="show" checked> |
116 | | - <label for="hide">Hide</label> |
117 | | - <input type="radio" name="navbars" id="hide"> |
| 146 | + <legend>Gradient:<br><small>Off: remove background-image rules from classic theme CSS</small></legend> |
| 147 | + <label for="on2">On</label> |
| 148 | + <input type="radio" name="gradient" id="on2" checked> |
| 149 | + <label for="off2">Off</label> |
| 150 | + <input type="radio" name="gradient" id="off2"> |
| 151 | + </fieldset> |
| 152 | + </div> |
| 153 | + <div class="ui-field-contain" id="opt-highlight"> |
| 154 | + <fieldset data-role="controlgroup" data-type="horizontal"> |
| 155 | + <legend>Highlight:<br><small>Off: remove .ui-btn:before rule from classic theme CSS</small></legend> |
| 156 | + <label for="on3">On</label> |
| 157 | + <input type="radio" name="highlight" id="on3" checked> |
| 158 | + <label for="off3">Off</label> |
| 159 | + <input type="radio" name="highlight" id="off3"> |
118 | 160 | </fieldset> |
119 | 161 | </div> |
120 | 162 | </form> |
|
0 commit comments