2 * jQuery Mobile Framework
3 * Copyright (c) jQuery Project
4 * Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
8 .ui-checkbox .ui-btn-inner, .ui-radio .ui-btn-inner { white-space: normal; }
9 //.ui-checkbox .ui-btn-icon-left .ui-btn-inner,.ui-radio .ui-btn-icon-left .ui-btn-inner { padding-left: 2.313em; }
10 //.ui-checkbox .ui-btn-icon-right .ui-btn-inner, .ui-radio .ui-btn-icon-right .ui-btn-inner { padding-right: 2.313em; }
11 //.ui-checkbox .ui-btn-icon-left .ui-icon, .ui-radio .ui-btn-icon-left .ui-icon {left: 15px; }
12 //.ui-checkbox .ui-btn-icon-right .ui-icon, .ui-radio .ui-btn-icon-right .ui-icon {right: 15px; }
15 @checkbox-radio-all-height: (32*@unit_base); //the biggest height.
17 @checkbox-radio-size-width: (32*@unit_base);
18 @checkbox-radio-size-height: (32*@unit_base);
20 @favorite-size-width: (32*@unit_base);
21 @favorite-size-height: (32*@unit_base);
23 @checkbox-radio-icon-internal-bottom: (-@checkbox-radio-size-height/2); //-icon size/2
24 @favorite-icon-internal-bottom: (-@favorite-size-height/2); //-icon size/2
26 @icon-left-margin: (8*@unit_base);
27 @checkbox-radio-label-left: (@checkbox-radio-size-width/2 + @icon-left-margin);
28 @favorite-label-left: (@favorite-size-width/2 + @icon-left-margin);
30 .ui-checkbox, .ui-radio {
31 height: @checkbox-radio-all-height;
35 //clear btn basic setting
36 .LESSclear-btn-basic-setting();
41 outline: 0 !important;
48 .ui-btn.ui-btn-icon-left {
49 display: inline-block;
51 min-width: 40*@unit_base; // TODO: check this after layout done.
52 display: inline-block;
53 line-height: @checkbox-radio-all-height;
54 padding: 0 16*@unit_base 0 16*@unit_base;
56 display: inline-block;
57 vertical-align: middle;
58 min-height: @checkbox-radio-size-height;
60 /* TODO : after button fixed, recheck! */
61 .ui-btn-text.ui-btn-text-padding-left {
62 padding-left: @checkbox-radio-label-left; //for test
67 width: @checkbox-radio-size-width;
68 height: @checkbox-radio-size-height;
69 margin-top: @checkbox-radio-icon-internal-bottom;
74 .ui-checkbox.favorite {
79 outline: 0 !important;
82 .ui-btn.ui-btn-icon-left {
85 display: inline-block;
86 line-height: @checkbox-radio-all-height;
87 padding: 0 0 0 16*@unit_base;
89 display: inline-block;
90 vertical-align: middle;
91 //margin-left: @favorite-label-left;
93 /* TODO : after button fixed, recheck! */
94 .ui-btn-text.ui-btn-text-padding-left {
95 padding-left: @favorite-label-left;
100 width: @favorite-size-width;
101 height: @favorite-size-height;
102 margin-top: @favorite-icon-internal-bottom;
108 /* put img inside of checkbox(normal, favorite style) */
110 .ui-icon-checkbox-off, .ui-icon-checkbox-on,
111 .favorite .ui-icon-checkbox-off, .favorite .ui-icon-checkbox-on,
112 .ui-icon-checkbox-on-press, .ui-icon-checkbox-off-press,
113 .ui-icon-radio-off, .ui-icon-radio-on,
114 .ui-icon-radio-on-press, .ui-icon-radio-off-press {
115 background-size: 100% 100%;
116 background-color: transparent;
118 .ui-icon-checkbox-off {
119 width: @checkbox-radio-size-width;
120 height: @checkbox-radio-size-height;
121 background-image: url(images/00_check_bg.png);
123 .ui-icon-checkbox-on {
124 width: @checkbox-radio-size-width;
125 height: @checkbox-radio-size-height;
126 background-image: url(images/00_check_checking.png), url(images/00_check_bg.png);
127 background-repeat: no-repeat;
129 .ui-icon-checkbox-off-press {
130 width: @checkbox-radio-size-width;
131 height: @checkbox-radio-size-height;
132 background-image: url(images/00_check_bg_press.png);
134 .ui-icon-checkbox-on-press {
135 width: @checkbox-radio-size-width;
136 height: @checkbox-radio-size-height;
137 background-image: url(images/00_check_checking.png), url(images/00_check_bg_press.png);
138 background-repeat: no-repeat;
141 .ui-icon-checkbox-off,
142 .ui-icon-checkbox-off-press {
143 width: @favorite-size-width;
144 height: @favorite-size-height;
145 background-image: url(images/00_winset_icon_favorite_off.png);
147 .ui-icon-checkbox-on,
148 .ui-icon-checkbox-on-press {
149 width: @favorite-size-width;
150 height: @favorite-size-height;
151 background-image: url(images/00_winset_icon_favorite_on.png);
156 width: @checkbox-radio-size-width;
157 height: @checkbox-radio-size-height;
158 background-image: url(images/00_button_radio.png);
161 width: @checkbox-radio-size-width;
162 height: @checkbox-radio-size-height;
163 background-image: url(images/00_button_radio_select.png), url(images/00_button_radio.png);
165 .ui-icon-radio-on-press {
166 width: @checkbox-radio-size-width;
167 height: @checkbox-radio-size-height;
168 background-image: url(images/00_button_radio.png);
170 .ui-icon-radio-off-press {
171 width: @checkbox-radio-size-width;
172 height: @checkbox-radio-size-height;
173 background-image: url(images/00_button_radio.png);