Built files from Bizgaze WebServer
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

jquery-ui-slider-pips.css 9.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. /*! jQuery-ui-Slider-Pips - v1.11.4 - 2016-09-04
  2. * Copyright (c) 2016 Simon Goellner <simey.me@gmail.com>; Licensed MIT */
  3. /* HORIZONTAL */
  4. /* increase bottom margin to fit the pips */
  5. .ui-slider-horizontal.ui-slider-pips {
  6. margin-bottom: 1.4em;
  7. }
  8. /* default hide the labels and pips that arnt visible */
  9. /* we just use css to hide incase we want to show certain */
  10. /* labels/pips individually later */
  11. .ui-slider-pips .ui-slider-label,
  12. .ui-slider-pips .ui-slider-pip-hide {
  13. display: none;
  14. }
  15. /* now we show any labels that we've set to show in the options */
  16. .ui-slider-pips .ui-slider-pip-label .ui-slider-label {
  17. display: block;
  18. }
  19. /* PIP/LABEL WRAPPER */
  20. /* position each pip absolutely just below the default slider */
  21. /* and also prevent accidental selection */
  22. .ui-slider-pips .ui-slider-pip {
  23. width: 2em;
  24. height: 1em;
  25. line-height: 1em;
  26. position: absolute;
  27. font-size: 0.8em;
  28. color: #999;
  29. overflow: visible;
  30. text-align: center;
  31. top: 20px;
  32. left: 20px;
  33. margin-left: -1em;
  34. cursor: pointer;
  35. -webkit-touch-callout: none;
  36. -webkit-user-select: none;
  37. -moz-user-select: none;
  38. -ms-user-select: none;
  39. user-select: none;
  40. }
  41. .ui-state-disabled.ui-slider-pips .ui-slider-pip {
  42. cursor: default;
  43. }
  44. /* little pip/line position & size */
  45. .ui-slider-pips .ui-slider-line {
  46. background: #999;
  47. width: 1px;
  48. height: 3px;
  49. position: absolute;
  50. left: 50%;
  51. }
  52. /* the text label postion & size */
  53. /* it overflows so no need for width to be accurate */
  54. .ui-slider-pips .ui-slider-label {
  55. position: absolute;
  56. top: 5px;
  57. left: 50%;
  58. margin-left: -1em;
  59. width: 2em;
  60. }
  61. /* make it easy to see when we hover a label */
  62. .ui-slider-pips:not(.ui-slider-disabled) .ui-slider-pip:hover .ui-slider-label {
  63. color: black;
  64. font-weight: bold;
  65. }
  66. /* VERTICAL */
  67. /* vertical slider needs right-margin, not bottom */
  68. .ui-slider-vertical.ui-slider-pips {
  69. margin-bottom: 1em;
  70. margin-right: 2em;
  71. }
  72. /* align vertical pips left and to right of the slider */
  73. .ui-slider-vertical.ui-slider-pips .ui-slider-pip {
  74. text-align: left;
  75. top: auto;
  76. left: 20px;
  77. margin-left: 0;
  78. margin-bottom: -0.5em;
  79. }
  80. /* vertical line/pip should be horizontal instead */
  81. .ui-slider-vertical.ui-slider-pips .ui-slider-line {
  82. width: 3px;
  83. height: 1px;
  84. position: absolute;
  85. top: 50%;
  86. left: 0;
  87. }
  88. .ui-slider-vertical.ui-slider-pips .ui-slider-label {
  89. top: 50%;
  90. left: 0.5em;
  91. margin-left: 0;
  92. margin-top: -0.5em;
  93. width: 2em;
  94. }
  95. /* FLOATING HORIZTONAL TOOLTIPS */
  96. /* remove the godawful looking focus outline on handle and float */
  97. .ui-slider-float .ui-slider-handle:focus,
  98. .ui-slider-float .ui-slider-handle.ui-state-focus .ui-slider-tip-label,
  99. .ui-slider-float .ui-slider-handle:focus .ui-slider-tip,
  100. .ui-slider-float .ui-slider-handle.ui-state-focus .ui-slider-tip-label,
  101. .ui-slider-float .ui-slider-handle:focus .ui-slider-tip-label
  102. .ui-slider-float .ui-slider-handle.ui-state-focus .ui-slider-tip-label {
  103. outline: none;
  104. }
  105. /* style tooltips on handles and on labels */
  106. /* also has a nice transition */
  107. .ui-slider-float .ui-slider-tip,
  108. .ui-slider-float .ui-slider-tip-label {
  109. position: absolute;
  110. visibility: hidden;
  111. top: -40px;
  112. display: block;
  113. width: 34px;
  114. margin-left: -18px;
  115. left: 50%;
  116. height: 20px;
  117. line-height: 20px;
  118. background: white;
  119. border-radius: 3px;
  120. border: 1px solid #888;
  121. text-align: center;
  122. font-size: 12px;
  123. opacity: 0;
  124. color: #333;
  125. -webkit-transition-property: opacity, top, visibility;
  126. transition-property: opacity, top, visibility;
  127. -webkit-transition-timing-function: ease-in;
  128. transition-timing-function: ease-in;
  129. -webkit-transition-duration: 200ms, 200ms, 0ms;
  130. transition-duration: 200ms, 200ms, 0ms;
  131. -webkit-transition-delay: 0ms, 0ms, 200ms;
  132. transition-delay: 0ms, 0ms, 200ms;
  133. }
  134. /* show the tooltip on hover or focus */
  135. /* also switch transition delay around */
  136. .ui-slider-float .ui-slider-handle:hover .ui-slider-tip,
  137. .ui-slider-float .ui-slider-handle.ui-state-hover .ui-slider-tip,
  138. .ui-slider-float .ui-slider-handle:focus .ui-slider-tip,
  139. .ui-slider-float .ui-slider-handle.ui-state-focus .ui-slider-tip,
  140. .ui-slider-float .ui-slider-handle.ui-state-active .ui-slider-tip,
  141. .ui-slider-float .ui-slider-pip:hover .ui-slider-tip-label {
  142. opacity: 1;
  143. top: -30px;
  144. visibility: visible;
  145. -webkit-transition-timing-function: ease-out;
  146. transition-timing-function: ease-out;
  147. -webkit-transition-delay: 200ms, 200ms, 0ms;
  148. transition-delay: 200ms, 200ms, 0ms;
  149. }
  150. /* put label tooltips below slider */
  151. .ui-slider-float .ui-slider-pip .ui-slider-tip-label {
  152. top: 42px;
  153. }
  154. .ui-slider-float .ui-slider-pip:hover .ui-slider-tip-label {
  155. top: 32px;
  156. font-weight: normal;
  157. }
  158. /* give the tooltip a css triangle arrow */
  159. .ui-slider-float .ui-slider-tip:after,
  160. .ui-slider-float .ui-slider-pip .ui-slider-tip-label:after {
  161. content: " ";
  162. width: 0;
  163. height: 0;
  164. border: 5px solid rgba(255, 255, 255, 0);
  165. border-top-color: white;
  166. position: absolute;
  167. bottom: -10px;
  168. left: 50%;
  169. margin-left: -5px;
  170. }
  171. /* put a 1px border on the tooltip arrow to match tooltip border */
  172. .ui-slider-float .ui-slider-tip:before,
  173. .ui-slider-float .ui-slider-pip .ui-slider-tip-label:before {
  174. content: " ";
  175. width: 0;
  176. height: 0;
  177. border: 5px solid rgba(255, 255, 255, 0);
  178. border-top-color: #888;
  179. position: absolute;
  180. bottom: -11px;
  181. left: 50%;
  182. margin-left: -5px;
  183. }
  184. /* switch the arrow to top on labels */
  185. .ui-slider-float .ui-slider-pip .ui-slider-tip-label:after {
  186. border: 5px solid rgba(255, 255, 255, 0);
  187. border-bottom-color: white;
  188. top: -10px;
  189. }
  190. .ui-slider-float .ui-slider-pip .ui-slider-tip-label:before {
  191. border: 5px solid rgba(255, 255, 255, 0);
  192. border-bottom-color: #888;
  193. top: -11px;
  194. }
  195. /* FLOATING VERTICAL TOOLTIPS */
  196. /* tooltip floats to left of handle */
  197. .ui-slider-vertical.ui-slider-float .ui-slider-tip,
  198. .ui-slider-vertical.ui-slider-float .ui-slider-tip-label {
  199. top: 50%;
  200. margin-top: -11px;
  201. width: 34px;
  202. margin-left: 0px;
  203. left: -60px;
  204. color: #333;
  205. -webkit-transition-duration: 200ms, 200ms, 0;
  206. transition-duration: 200ms, 200ms, 0;
  207. -webkit-transition-property: opacity, left, visibility;
  208. transition-property: opacity, left, visibility;
  209. -webkit-transition-delay: 0, 0, 200ms;
  210. transition-delay: 0, 0, 200ms;
  211. }
  212. .ui-slider-vertical.ui-slider-float .ui-slider-handle:hover .ui-slider-tip,
  213. .ui-slider-vertical.ui-slider-float .ui-slider-handle.ui-state-hover .ui-slider-tip,
  214. .ui-slider-vertical.ui-slider-float .ui-slider-handle:focus .ui-slider-tip,
  215. .ui-slider-vertical.ui-slider-float .ui-slider-handle.ui-state-focus .ui-slider-tip,
  216. .ui-slider-vertical.ui-slider-float .ui-slider-handle.ui-state-active .ui-slider-tip,
  217. .ui-slider-vertical.ui-slider-float .ui-slider-pip:hover .ui-slider-tip-label {
  218. top: 50%;
  219. margin-top: -11px;
  220. left: -50px;
  221. }
  222. /* put label tooltips to right of slider */
  223. .ui-slider-vertical.ui-slider-float .ui-slider-pip .ui-slider-tip-label {
  224. left: 47px;
  225. }
  226. .ui-slider-vertical.ui-slider-float .ui-slider-pip:hover .ui-slider-tip-label {
  227. left: 37px;
  228. }
  229. /* give the tooltip a css triangle arrow */
  230. .ui-slider-vertical.ui-slider-float .ui-slider-tip:after,
  231. .ui-slider-vertical.ui-slider-float .ui-slider-pip .ui-slider-tip-label:after {
  232. border: 5px solid rgba(255, 255, 255, 0);
  233. border-left-color: white;
  234. border-top-color: transparent;
  235. position: absolute;
  236. bottom: 50%;
  237. margin-bottom: -5px;
  238. right: -10px;
  239. margin-left: 0;
  240. top: auto;
  241. left: auto;
  242. }
  243. .ui-slider-vertical.ui-slider-float .ui-slider-tip:before,
  244. .ui-slider-vertical.ui-slider-float .ui-slider-pip .ui-slider-tip-label:before {
  245. border: 5px solid rgba(255, 255, 255, 0);
  246. border-left-color: #888;
  247. border-top-color: transparent;
  248. position: absolute;
  249. bottom: 50%;
  250. margin-bottom: -5px;
  251. right: -11px;
  252. margin-left: 0;
  253. top: auto;
  254. left: auto;
  255. }
  256. .ui-slider-vertical.ui-slider-float .ui-slider-pip .ui-slider-tip-label:after {
  257. border: 5px solid rgba(255, 255, 255, 0);
  258. border-right-color: white;
  259. right: auto;
  260. left: -10px;
  261. }
  262. .ui-slider-vertical.ui-slider-float .ui-slider-pip .ui-slider-tip-label:before {
  263. border: 5px solid rgba(255, 255, 255, 0);
  264. border-right-color: #888;
  265. right: auto;
  266. left: -11px;
  267. }
  268. /* SELECTED STATES */
  269. /* Comment out this chuck of code if you don't want to have
  270. the new label colours shown */
  271. .ui-slider-pips [class*=ui-slider-pip-initial] {
  272. font-weight: bold;
  273. color: #14CA82;
  274. }
  275. .ui-slider-pips .ui-slider-pip-initial-2 {
  276. color: #1897C9;
  277. }
  278. .ui-slider-pips [class*=ui-slider-pip-selected] {
  279. font-weight: bold;
  280. color: #FF7A00;
  281. }
  282. .ui-slider-pips .ui-slider-pip-inrange {
  283. color: black;
  284. }
  285. .ui-slider-pips .ui-slider-pip-selected-2 {
  286. color: #E70081;
  287. }
  288. .ui-slider-pips [class*=ui-slider-pip-selected] .ui-slider-line,
  289. .ui-slider-pips .ui-slider-pip-inrange .ui-slider-line {
  290. background: black;
  291. }