/*
		Copyright (c) 2017 Zey Vermögensverwaltung GmbH

    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.
*/
@CHARSET "UTF-8";

label > switch
{
	position: relative;
	top: 5px;
}

switch,
switch.form-control,
switch.form-control-static
{
	margin: 0 2px;
	padding: 0;
	font-size: initial;
	line-height: initial;
  display: inline-block;
  width: 34px;
  height: 14px;
  background-color: #FBB;
	box-shadow: 0px 0px 2px RGBA(255, 0, 0, 0.5) inset;
	border: 0;
  border-radius: 4px /*round=14px*/;
  -webkit-transition:background 250ms;
  -moz-transition:background 250ms;
  -o-transition:background 250ms;
  transition:background 250ms
}

switch[data-checked="true"],
switch[data-checked="true"].form-control,
switch[data-checked="true"].form-control-static
{
  box-shadow: 0px 0px 2px RGBA(0, 128, 0, 0.25) inset;
  background-color: #B5E49D;
  -webkit-transition:background 250ms;
  -moz-transition:background 250ms;
  -o-transition:background 250ms;
  transition:background 250ms
}

switch-needle
{
  display: inline-block;
  position: relative;
  width: 18px;
  height: 18px;
  background-color: #ddd;
  top: -2px;
  left: -2px;
  border-radius: 4px /*round=14px*/;
  box-shadow: 0px 0px 2px RGBA(0,0,0,0.15) inset;
}

switch > switch-needle
switch.form-control > switch-needle
{
  background-color: #999;
}

@media (max-width: 767px)
{
	label > switch
	{
		top: 8px;
	}

	switch,
	switch.form-control,
	switch.form-control-static
	{
		width: 22px;
		height: 9px;
		border-radius: 14px;
		margin: 4px;
		padding: 0;
	}

	switch-needle
	{
		width: 13px;
		height: 13px;
		top: -7px;
		border-radius: 14px;
	}

}
