src/pyams_skin/resources/less/slider.less
changeset 0 bb4aabe07487
child 66 7a2d69fe8f6c
equal deleted inserted replaced
-1:000000000000 0:bb4aabe07487
       
     1 /*
       
     2  * Bootstrap slider
       
     3  */
       
     4 
       
     5 .slider {
       
     6 	display: inline-block;
       
     7 	vertical-align: middle;
       
     8 	position: relative;
       
     9 
       
    10 	&.slider-horizontal {
       
    11 		width: 100%!important;
       
    12 		height: 20px;
       
    13 
       
    14 		.slider-track {
       
    15 			height: 10px;
       
    16 			width: 100%;
       
    17 			margin-top: -5px;
       
    18 			top: 50%;
       
    19 			left: 0;
       
    20 		}
       
    21 
       
    22 		.slider-selection {
       
    23 			height: 100%;
       
    24 			top: 0;
       
    25 			bottom: 0;
       
    26 
       
    27 			&+.slider-handle.triangle+.slider-handle.triangle:before {
       
    28 				content: "\f0d9";
       
    29 			}
       
    30 		}
       
    31 
       
    32 		.slider-handle {
       
    33 			margin-left: -10px;
       
    34 			margin-top: -5px;
       
    35 
       
    36 			&.triangle {
       
    37 				width: 20px;
       
    38 				height: 20px;
       
    39 				filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
       
    40 				-webkit-transform: rotate(0deg);
       
    41 				-ms-transform: rotate(0deg);
       
    42 				transform: rotate(0deg);
       
    43 				border: 0;
       
    44 				line-height: 21px;
       
    45 				color: #797777;
       
    46 				text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
       
    47 
       
    48 				&:before {
       
    49 					content: "\f0da";
       
    50 					font-size: 34px;
       
    51 				}
       
    52 			}
       
    53 		}
       
    54 	}
       
    55 
       
    56 	&.slider-vertical {
       
    57 		height: 210px;
       
    58 		width: 20px;
       
    59 
       
    60 		.slider-track {
       
    61 			width: 10px;
       
    62 			height: 100%;
       
    63 			margin-left: -5px;
       
    64 			left: 50%;
       
    65 			top: 0;
       
    66 		}
       
    67 
       
    68 		.slider-selection {
       
    69 			width: 100%;
       
    70 			left: 0;
       
    71 			top: 0;
       
    72 			bottom: 0;
       
    73 
       
    74 			&+.slider-handle.triangle+.slider-handle.triangle:before {
       
    75 				content: "\f0d8";
       
    76 				text-shadow: 0 -1px 0 rgba(255, 255, 255, .8);
       
    77 			}
       
    78 		}
       
    79 
       
    80 		.slider-handle {
       
    81 			margin-left: -5px;
       
    82 			margin-top: -10px;
       
    83 
       
    84 			&.triangle {
       
    85 				width: 20px;
       
    86 				height: 20px;
       
    87 				filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
       
    88 				-webkit-transform: rotate(0deg);
       
    89 				-ms-transform: rotate(0deg);
       
    90 				transform: rotate(0deg);
       
    91 				border: 0;
       
    92 				line-height: 21px;
       
    93 				color: #797777;
       
    94 				text-shadow: 0 -1px 0 rgba(255, 255, 255, .8);
       
    95 
       
    96 				&:before {
       
    97 					content: "\f0d7";
       
    98 					font-size: 32px;
       
    99 					text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
       
   100 				}
       
   101 			}
       
   102 		}
       
   103 	}
       
   104 
       
   105 	input {
       
   106 		display: none;
       
   107 	}
       
   108 
       
   109 	.tooltip-inner {
       
   110 		white-space: nowrap;
       
   111 	}
       
   112 }
       
   113 
       
   114 .slider-track {
       
   115 	position: absolute;
       
   116 	cursor: pointer;
       
   117 	background: #E5E5E5;
       
   118 
       
   119 	.slider-danger + & >.slider-selection {
       
   120 		background: #a90329;
       
   121 	}
       
   122 
       
   123 	.slider-warning+ & >.slider-selection {
       
   124 		background: #c79121;
       
   125 	}
       
   126 
       
   127 	.slider-info+ & >.slider-selection {
       
   128 		background: #57889c;
       
   129 	}
       
   130 
       
   131 	.slider-success+ & >.slider-selection {
       
   132 		background: #739e73;
       
   133 	}
       
   134 }
       
   135 
       
   136 .slider-selection {
       
   137 	position: absolute;
       
   138 	background: #3276b1;
       
   139 }
       
   140 
       
   141 .slider-handle {
       
   142 	position: absolute;
       
   143 	width: 20px;
       
   144 	height: 20px;
       
   145 	border: 1px solid #FFF;
       
   146 	background: #858585;
       
   147 	display: inline-block;
       
   148 	font-family: FontAwesome;
       
   149 	font-style: normal;
       
   150 	font-weight: 400;
       
   151 	-webkit-font-smoothing: antialiased;
       
   152 	-moz-osx-font-smoothing: grayscale;
       
   153 	text-align: center;
       
   154 	line-height: 18px;
       
   155 	font-size: 10px;
       
   156 	color: #BDBDBD;
       
   157 	text-shadow: 0 1px 0 rgba(77, 77, 77, .5);
       
   158 	filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
       
   159 	-webkit-transform: rotate(90deg);
       
   160 	-ms-transform: rotate(90deg);
       
   161 	transform: rotate(90deg);
       
   162 
       
   163 	&:before {
       
   164 		content: "\f0c9";
       
   165 	}
       
   166 
       
   167 	&.round {
       
   168 		border-radius: 20px;
       
   169 		width: 20px;
       
   170 		height: 20px;
       
   171 	}
       
   172 	&.triangle {
       
   173 		background: transparent none;
       
   174 	}
       
   175 }
       
   176 
       
   177 
       
   178 /*
       
   179  * fd-slider widget
       
   180  */
       
   181 
       
   182 .fd-form-element-hidden {
       
   183 	display: none;
       
   184 }
       
   185 
       
   186 .fd-slider {
       
   187 	width: 100%;
       
   188 	height: 20px;
       
   189 	margin: 0;
       
   190 }
       
   191 
       
   192 .fd-slider-vertical {
       
   193 	width: 20px;
       
   194 	height: 100%;
       
   195 	margin: 0 10px 10px 0;
       
   196 }
       
   197 
       
   198 .fd-slider,
       
   199 .fd-slider-vertical {
       
   200 	display: block;
       
   201 	position: relative;
       
   202 	text-decoration: none;
       
   203 	border: 0 none;
       
   204 	-moz-user-select: none;
       
   205 	-khtml-user-select: none;
       
   206 	-webkit-touch-callout: none;
       
   207 	-webkit-user-select: none;
       
   208 	-ms-user-select: none;
       
   209 	user-select: none;
       
   210 }
       
   211 
       
   212 .fd-slider-inner {
       
   213 	display: none;
       
   214 }
       
   215 
       
   216 .fd-slider-bar {
       
   217 	position: absolute;
       
   218 	display: block;
       
   219 	z-index: 2;
       
   220 	height: 6px;
       
   221 	width: 100%;
       
   222 	border: 1px solid #bbb;
       
   223 	border-bottom: 1px solid #fff;
       
   224 	border-right: 1px solid #fff;
       
   225 	margin: 0;
       
   226 	padding: 0;
       
   227 	overflow: hidden;
       
   228 	line-height: 4px;
       
   229 	top: 8px;
       
   230 	border-radius: 4px;
       
   231 	-webkit-background-clip: padding-box;
       
   232 	background-clip: padding-box;
       
   233 	background-color: #333;
       
   234 }
       
   235 
       
   236 .fd-slider-range {
       
   237 	position: absolute;
       
   238 	display: block;
       
   239 	z-index: 3;
       
   240 	height: 6px;
       
   241 	margin: 0;
       
   242 	padding: 0 2px 0 0;
       
   243 	overflow: hidden;
       
   244 	top: 9px;
       
   245 	border-radius: 2px;
       
   246 	-webkit-background-clip: padding-box;
       
   247 	background-clip: padding-box;
       
   248 	background-color: #eee;
       
   249 }
       
   250 
       
   251 .fd-slider-handle {
       
   252 	position: absolute;
       
   253 	display: block;
       
   254 	padding: 0;
       
   255 	margin: 0 0 0 1px;
       
   256 	z-index: 3;
       
   257 	top: 5px;
       
   258 	left: 0;
       
   259 	width: 12px;
       
   260 	height: 12px;
       
   261 	line-height: 1px!important;
       
   262 	outline: 0 none;
       
   263 	background: #eee;
       
   264 	border: 1px solid #aaa;
       
   265 	border-radius: 12px;
       
   266 	-webkit-user-select: none;
       
   267 	-webkit-touch-callout: none;
       
   268 	-moz-user-select: none;
       
   269 	-moz-user-focus: none;
       
   270 	-moz-outline: 0 none;
       
   271 	-ms-user-select: none;
       
   272 	user-select: none;
       
   273 
       
   274 	&:focus {
       
   275 		outline: 0 none;
       
   276 		border: 0 none;
       
   277 		-moz-user-focus: normal;
       
   278 	}
       
   279 
       
   280 	&:before,
       
   281 	&:after {
       
   282 		opacity: 0;
       
   283 		-webkit-transition-property: opacity;
       
   284 		-webkit-transition-duration: 1s;
       
   285 		-webkit-transition-delay: 1s;
       
   286 		transition-property: opacity;
       
   287 		transition-duration: 1s;
       
   288 		transition-delay: 1s;
       
   289 	}
       
   290 
       
   291 	button&:focus::-moz-focus-inner {
       
   292 		border-color: transparent;
       
   293 	}
       
   294 
       
   295 	.oldie &:after,
       
   296 	.oldie &:before {
       
   297 		display: none;
       
   298 	}
       
   299 }
       
   300 
       
   301 body.fd-slider-drag-horizontal,
       
   302 body.fd-slider-drag-horizontal *,
       
   303 body.fd-slider-drag-vertical,
       
   304 body.fd-slider-drag-vertical * {
       
   305 	-moz-user-select: none;
       
   306 	-webkit-user-select: none;
       
   307 	-ms-user-select: none;
       
   308 	user-select: none;
       
   309 }
       
   310 
       
   311 .fd-slider-active,
       
   312 .fd-slider-focused,
       
   313 .fd-slider-hover {
       
   314 	.fd-slider-handle {
       
   315 		:before {
       
   316 			display: block;
       
   317 			position: absolute;
       
   318 			top: -21px;
       
   319 			left: -8px;
       
   320 			margin: 0;
       
   321 			width: 20px;
       
   322 			padding: 3px;
       
   323 			height: 14px;
       
   324 			line-height: 12px;
       
   325 			text-align: center;
       
   326 			font-size: 10px;
       
   327 			font-weight: 700;
       
   328 			color: #fff;
       
   329 			text-shadow: 1px 1px 1px #1a3a95;
       
   330 			background: #2f6ee0;
       
   331 			z-index: 1;
       
   332 			content: attr(aria-valuetext);
       
   333 			border-radius: 3px;
       
   334 			-webkit-background-clip: padding-box;
       
   335 			background-clip: padding-box;
       
   336 			-webkit-box-shadow: 0 0 4px #aaa;
       
   337 			box-shadow: 0 0 4px #999;
       
   338 			opacity: 1;
       
   339 		}
       
   340 
       
   341 		&:after {
       
   342 			outline: 0;
       
   343 			content: "";
       
   344 			display: block;
       
   345 			position: absolute;
       
   346 			top: -9px;
       
   347 			left: 50%;
       
   348 			margin: 0 0 0 -5px;
       
   349 			background: #2f6ee0;
       
   350 			z-index: 2;
       
   351 			width: 10px;
       
   352 			height: 10px;
       
   353 			overflow: hidden;
       
   354 			-webkit-transform: rotate(45deg);
       
   355 			-moz-transform: rotate(45deg);
       
   356 			-o-transform: rotate(45deg);
       
   357 			-webkit-box-shadow: 0 0 4px #aaa;
       
   358 			box-shadow: 0 0 4px #aaa;
       
   359 			clip: rect(4px, 14px, 14px, 4px);
       
   360 			opacity: 1;
       
   361 		}
       
   362 	}
       
   363 }
       
   364