Fix slideSwitch height

This commit is contained in:
Hadi Nategh 2016-01-12 14:45:07 +00:00
parent 8588e08692
commit f7ccce8975

View File

@ -1691,30 +1691,30 @@ span.et2_checkbox_slideSwitch {
vertical-align: middle; vertical-align: middle;
} }
span.et2_checkbox_slideSwitch > span.slideSwitch_container { span.et2_checkbox_slideSwitch > span.slideSwitch_container {
height: 18px; height: 16px;
border: none; border: 1px solid silver;
background-color: #FFFFFF; background-color: #FFF;
box-shadow: inset 0 2px 6px rgb(71, 71, 71), 0 1px 0 rgba(255, 255, 255, 0.2); box-shadow: inset 0 2px 6px rgb(71, 71, 71), 0 1px 0 rgba(255, 255, 255, 0.2);
margin: 0; margin: 0px;
min-width:44px; min-width: 44px;
display: block; display: block;
position: relative; position: relative;
border-radius: 3px; border-radius: 2px;
padding: 3px 0px 3px 0px; padding: 3px 0px 3px 0px;
font-size: 12 px; font-size: 12px;
} }
span.et2_checkbox_slideSwitch > span.slideSwitch_container > span:first-child { span.et2_checkbox_slideSwitch > span.slideSwitch_container > span:first-child {
width: 50%; width: 50%;
display: inline-block; display: inline-block;
text-align: center; text-align: center;
text-align: -webkit-center; text-align: -webkit-center;
text-align: -moz-center; text-align: -moz-center;
position: absolute; position: absolute;
left:0; left:0;
z-index: 6; z-index: 6;
font-weight: bold; font-weight: bold;
color:#C0C0C0; color:#C0C0C0;
top:5px; top: 5px;
} }
span.et2_checkbox_slideSwitch.switchOn > span.slideSwitch_container > span:first-child { span.et2_checkbox_slideSwitch.switchOn > span.slideSwitch_container > span:first-child {
color:#FAFAFA; color:#FAFAFA;
@ -1742,29 +1742,31 @@ span.et2_checkbox_slideSwitch > span.slideSwitch_container a {
z-index: 4; z-index: 4;
display: block; display: block;
width: 50%; width: 50%;
height: 95%; height: 100%;
padding-bottom: 0px; padding-bottom: 0px;
background-color: #7B7B7B; background-color: #7B7B7B;
border-radius: 3px; border-radius: 3px;
-webkit-transition: all 0.5s ease-out; -webkit-transition: all 0.5s ease-out;
-moz-transition: all 0.5s ease-out; -moz-transition: all 0.5s ease-out;
transition: all 0.5s ease-out; transition: all 0.5s ease-out;
box-shadow: grey -1px 0px 3px 0px;
} }
span.et2_checkbox_slideSwitch > input { span.et2_checkbox_slideSwitch > input {
opacity: 0; opacity: 0;
position: absolute; position: absolute;
z-index: 7; z-index: 7;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
span.et2_checkbox_slideSwitch.switchOn > span.slideSwitch_container a { span.et2_checkbox_slideSwitch.switchOn > span.slideSwitch_container a {
right:50%; right:50%;
} }
/* Slide switch in a toolbar */ /* Slide switch in a toolbar */
.et2_toolbar_actionlist span.et2_checkbox_slideSwitch { .et2_toolbar_actionlist span.et2_checkbox_slideSwitch {
padding-right: 3px;
padding-left: 1px;
vertical-align: bottom; vertical-align: bottom;
margin: 1px;
margin-right: 3px;
border-radius: 3px;
} }
.et2_toolbar_more span.et2_checkbox_slideSwitch { .et2_toolbar_more span.et2_checkbox_slideSwitch {
text-align: left; text-align: left;