1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- .switchbutton {
- text-decoration: none;
- display: inline-block;
- overflow: hidden;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- cursor: pointer;
- background: #dfdfdf;
- border: 1px solid #dfdfdf;
- -moz-border-radius: 4px 4px 4px 4px;
- -webkit-border-radius: 4px 4px 4px 4px;
- border-radius: 4px 4px 4px 4px;
- }
- .switchbutton-inner {
- display: inline-block;
- overflow: hidden;
- position: relative;
- top: -1px;
- left: -1px;
- }
- .switchbutton-on,
- .switchbutton-off,
- .switchbutton-handle {
- display: inline-block;
- text-align: center;
- height: 100%;
- float: left;
- font-size: 14px;
- -moz-border-radius: 4px 4px 4px 4px;
- -webkit-border-radius: 4px 4px 4px 4px;
- border-radius: 4px 4px 4px 4px;
- }
- .switchbutton-on {
- background: #eee;
- color: #39c;
- }
- .switchbutton-off {
- background-color: #ffffff;
- color: #404040;
- }
- .switchbutton-on,
- .switchbutton-reversed .switchbutton-off {
- -moz-border-radius: 4px 0 0 4px;
- -webkit-border-radius: 4px 0 0 4px;
- border-radius: 4px 0 0 4px;
- }
- .switchbutton-off,
- .switchbutton-reversed .switchbutton-on {
- -moz-border-radius: 0 4px 4px 0;
- -webkit-border-radius: 0 4px 4px 0;
- border-radius: 0 4px 4px 0;
- }
- .switchbutton-handle {
- position: absolute;
- top: 0;
- left: 50%;
- background-color: #ffffff;
- color: #404040;
- border: 1px solid #dfdfdf;
- -moz-box-shadow: 0 0 3px 0 #dfdfdf;
- -webkit-box-shadow: 0 0 3px 0 #dfdfdf;
- box-shadow: 0 0 3px 0 #dfdfdf;
- }
- .switchbutton-value {
- position: absolute;
- top: 0;
- left: -5000px;
- }
- .switchbutton-disabled {
- opacity: 0.5;
- filter: alpha(opacity=50);
- }
- .switchbutton-disabled,
- .switchbutton-readonly {
- cursor: default;
- }
|