@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
88 lines (76 loc) • 1.76 kB
text/less
/*!
* Copyright 2018 Telerik EAD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@import "../common/switch.less";
@import "base.less";
// Switch
.km-ios7 .km-switch
{
width: 3.6rem;
height: 2.2rem;
overflow: visible;
}
.km-ios7 .km-switch-wrapper
{
overflow: hidden;
}
.km-ios7 .km-switch-background,
.km-ios7 .k-slider-selection
{
background-position: 4.25em 0;
background-repeat: no-repeat;
background-color: currentcolor;
margin-left: -3.4rem;
}
.km-ios7 .km-switch-container
{
overflow: visible;
border-width: 0;
padding: 0 0 0 1px;
}
.km-ios7 .km-switch-handle
{
width: 2.2em;
.transition(width .2s linear);
margin: 0 3px 0 0;
}
.km-ios7 .km-switch-handle.km-state-active
{
width: 2.6em;
}
.km-ios7 .km-switch-label-on,
.km-ios7 .km-switch-label-off
{
display: none;
}
.km-ios7 .km-switch-handle,
.km-ios7 .km-switch-wrapper,
.km-ios7 .km-switch-container,
.km-ios7 .km-switch-background
{
border-radius: 3em;
}
.km-ios7 .km-switch-container,
.km-ios7 .km-switch-wrapper
{
.box-sizing(border-box);
border-width: 1px;
border-style: solid;
background-clip: content-box;
}
.km-ios7 .km-switch-on .km-switch-container
{
border-color: currentcolor;
}