﻿/* Ширина слайдера */

#slider_timer {
	float:right;
}

.slider_large {
	width:320px;
	margin:10px;
	float:left;
}

.slider_time {
	width:300px;
	margin:5px;
	float:left;
}

.slider_small {
	width:100px;
	margin:10px;
	float:left;
}

.slider_clock {
	width:250px;
	margin:10px;
	margin-left:15px;
	float:left;
}

.slider_photo {
	width:300px;
	margin:15px 10px 0px 15px;
	float:left;
}

/* Контейнер слайдера */
.ui-slider {
	position: relative;
}

/* Ползунок */
.ui-slider .ui-slider-handle {
	position: absolute;
	z-index: 2;
	width: 10px;   /* Задаем нужную ширину */
	height: 18px;  /* и высоту */
	background: url(../images/slider.gif) no-repeat; /* картинка изображающая ползунок. Или можно залить цветом, задать бордюр и скругления */
	cursor: pointer;
}

.ui-slider .ui-slider-range {
	position: absolute;
	z-index: 1;
	font-size: .7em;
	display: block;
	overflow: hidden;
	border: 1px solid #a1a1a1;
	border-left:none;
	border-right:none;
}

/* горизонтальный слайдер (сама полоса по которой бегает ползунок) */
.ui-slider-horizontal {
	 height: 1px; /* задаем высоту согласно дизайна */
}

/* позиционируем ползунки */
.ui-slider-horizontal .ui-slider-handle { 
	top: -8px;
	margin-left: -6px;
}

.ui-slider-horizontal .ui-slider-range {
	top: -1px;
	height: 100%;
}

.ui-slider-horizontal .ui-slider-range-min { 
	left: 0;
}

.ui-slider-horizontal .ui-slider-range-max {
	right: 0;
}

/* оформление полосы, по которой ходит ползунок */
.ui-widget-content { 
	border: 1px solid white;
	background-color: #959595;
}


.slider_temperature {
	background: url(../images/temp.gif) center no-repeat !important;
}

/* оформление активного участка (между двумя ползунками) */
.ui-widget-header { 
	background: #a1a1a1;
}

/* скругление для полосы слайдера */
.ui-corner-all {
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	border-radius: 4px;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  //width: 60px;
  //height: 34px;
  width:20px;
  height:13px;
  margin: 9px 2px 0px 3px;
  float:left;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The toggle switcher */
.switch_slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #aaa;
  -webkit-transition: .4s;
  transition: .4s;
}

.switch_slider:before {
  position: absolute;
  content: "";
  //height: 26px;
  //width: 26px;
  height: 8px;
  width: 8px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .switch_slider {
  background-color: dimgray;
}

input:focus + .switch_slider {
  box-shadow: 0 0 1px dimgray;
}

input:checked + .switch_slider:before {
  //-webkit-transform: translateX(26px);
  //-ms-transform: translateX(26px);
  //transform: translateX(26px);
  -webkit-transform: translateX(5px);
  -ms-transform: translateX(5px);
  transform: translateX(5px);
}

/* Rounded sliders */
.switch_slider.round {
  border-radius: 20px;
}

.switch_slider.round:before {
  border-radius: 50%;
}