mobiscroll.css 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. /* Datewheel overlay */
  2. .dw {
  3. position: absolute;
  4. top: 5%;
  5. left: 0;
  6. z-index: 1001;
  7. color: #000;
  8. font-family: arial, verdana, sans-serif;
  9. font-size: 12px;
  10. text-shadow: none;
  11. box-sizing: border-box;
  12. -webkit-box-sizing: border-box;
  13. -moz-box-sizing: border-box;
  14. -webkit-user-select: none;
  15. -moz-user-select: none;
  16. -ms-user-select: none;
  17. -ms-touch-action: none;
  18. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  19. }
  20. .dwi {
  21. position: static;
  22. margin: 5px;
  23. display: inline-block;
  24. }
  25. .dwwr {
  26. min-width: 170px;
  27. zoom: 1;
  28. padding: 0 10px;
  29. text-align: center;
  30. }
  31. /* Datewheel overlay background */
  32. .dw-persp, .dwo {
  33. width: 100%;
  34. height: 100%;
  35. position: absolute;
  36. top: 0;
  37. left: 0;
  38. z-index: 1001;
  39. }
  40. .dwo {
  41. background:#626262;
  42. opacity: .7;
  43. filter: Alpha(Opacity=70);
  44. }
  45. /* Bubble positionings */
  46. .dw-bubble .dw {
  47. margin: 20px 0;
  48. }
  49. .dw-bubble .dw-arrw {
  50. position: absolute;
  51. left: 0;
  52. width: 100%;
  53. }
  54. .dw-bubble-top .dw-arrw {
  55. bottom: -36px;
  56. }
  57. .dw-bubble-bottom .dw-arrw {
  58. top: -36px;
  59. }
  60. .dw-bubble .dw-arrw-i {
  61. margin: 0 30px;
  62. position: relative;
  63. height: 36px;
  64. }
  65. .dw-bubble .dw-arr {
  66. display: block;
  67. }
  68. .dw-arr {
  69. display: none;
  70. position: absolute;
  71. left: 0;
  72. width: 0;
  73. height: 0;
  74. border-width: 18px 18px;
  75. border-style: solid;
  76. margin-left: -18px;
  77. }
  78. .dw-bubble-bottom .dw-arr {
  79. top: 0;
  80. border-color: transparent transparent #fff transparent;
  81. }
  82. .dw-bubble-top .dw-arr {
  83. bottom: 0;
  84. border-color: #fff transparent transparent transparent;
  85. }
  86. /* Datewheel wheel container wrapper */
  87. .dwc {
  88. float: none;
  89. margin: 0 2px 5px 2px;
  90. padding-top: 30px;
  91. display: inline-block;
  92. }
  93. .dwcc {
  94. clear: both;
  95. }
  96. /* Datewheel label */
  97. .dwl {
  98. text-align: center;
  99. line-height: 30px;
  100. height: 30px;
  101. white-space: nowrap;
  102. position: absolute;
  103. top: -30px;
  104. width: 100%;
  105. }
  106. /* Datewheel value */
  107. .dwv {
  108. padding: 10px 0;
  109. border-bottom: 1px solid #000;
  110. }
  111. /* Datewheel wheel container */
  112. .dwrc {
  113. -webkit-border-radius: 3px;
  114. border-radius: 3px;
  115. }
  116. .dwwc {
  117. margin: 0;
  118. padding: 0 2px;
  119. position: relative;
  120. background: #000;
  121. zoom: 1;
  122. }
  123. /* Datewheel wheels */
  124. .dwwl {
  125. margin: 4px 2px;
  126. position: relative;
  127. z-index: 5;
  128. }
  129. .dww {
  130. margin: 0 2px;
  131. overflow: hidden;
  132. position: relative;
  133. }
  134. .dwsc .dwwl {
  135. background: #888;
  136. background: linear-gradient(#000 0%,#333 35%, #888 50%,#333 65%,#000 100%);
  137. background: -webkit-gradient(linear,left bottom,left top,from(#000),color-stop(0.35, #333),color-stop(0.50, #888),color-stop(0.65, #333),to(#000));
  138. background: -moz-linear-gradient(#000 0%,#333 35%, #888 50%,#333 65%,#000 100%);
  139. background: -o-linear-gradient(#000 0%,#333 35%, #888 50%,#333 65%,#000 100%);
  140. }
  141. .dwsc .dww {
  142. color: #fff;
  143. background: #444;
  144. background: linear-gradient(#000 0%,#444 45%, #444 55%, #000 100%);
  145. background: -webkit-gradient(linear,left bottom,left top,from(#000),color-stop(0.45, #444),color-stop(0.55, #444),to(#000));
  146. background: -moz-linear-gradient(#000 0%,#444 45%, #444 55%, #000 100%);
  147. background: -o-linear-gradient(#000 0%,#444 45%, #444 55%, #000 100%);
  148. }
  149. .dw-bf {
  150. -webkit-perspective: 1000;
  151. -webkit-backface-visibility: hidden;
  152. }
  153. .dw-ul {
  154. position: relative;
  155. z-index: 2;
  156. }
  157. .dw-li {
  158. padding: 0 5px;
  159. display: block;
  160. text-align: center;
  161. line-height: 40px;
  162. font-size: 26px;
  163. white-space: nowrap;
  164. text-shadow: 0 1px 1px #000;
  165. vertical-align: bottom;
  166. opacity: .3;
  167. filter: Alpha(Opacity=30);
  168. }
  169. /* Higlighted */
  170. .dw-li.dw-hl {
  171. background: #fff;
  172. background: rgba(255,255,255,.3);
  173. }
  174. /* Valid entry */
  175. .dw-li.dw-v {
  176. opacity: 1;
  177. filter: Alpha(Opacity=100);
  178. }
  179. /* Hidden entry */
  180. .dw-li.dw-h {
  181. visibility: hidden;
  182. }
  183. .dw-i {
  184. position: relative;
  185. height: 100%;
  186. }
  187. /* Wheel +/- buttons */
  188. .dwwb {
  189. position: absolute;
  190. z-index: 4;
  191. left: 0;
  192. cursor: pointer;
  193. width: 100%;
  194. height: 40px;
  195. text-align: center;
  196. opacity: 1;
  197. transition: opacity .2s linear;
  198. -webkit-transition: opacity .2s linear;
  199. }
  200. .dwa .dwwb {
  201. opacity: 0;
  202. }
  203. .dwwbp {
  204. top: 0;
  205. -webkit-border-radius: 3px 3px 0 0;
  206. border-radius: 3px 3px 0 0;
  207. font-size: 40px;
  208. }
  209. .dwwbm {
  210. bottom: 0;
  211. -webkit-border-radius: 0 0 3px 3px;
  212. border-radius: 0 0 3px 3px;
  213. font-size: 32px;
  214. font-weight: bold;
  215. }
  216. .dwpm .dwwc {
  217. background: transparent;
  218. }
  219. .dwpm .dww {
  220. margin: 0;
  221. }
  222. .dwpm .dw-li {
  223. text-shadow: none;
  224. }
  225. .dwpm .dwwol {
  226. display: none;
  227. }
  228. /* Datewheel wheel overlay */
  229. .dwwo {
  230. position: absolute;
  231. z-index: 3;
  232. top: 0;
  233. left: 0;
  234. width: 100%;
  235. height: 100%;
  236. background: linear-gradient(#000 0%,rgba(44,44,44,0) 52%, rgba(44,44,44,0) 48%, #000 100%);
  237. background: -webkit-gradient(linear,left bottom,left top,from(#000),color-stop(0.52, rgba(44,44,44,0)),color-stop(0.48, rgba(44,44,44,0)),to(#000));
  238. background: -moz-linear-gradient(#000 0%,rgba(44,44,44,0) 52%, rgba(44,44,44,0) 48%, #000 100%);
  239. background: -o-linear-gradient(#000 0%,rgba(44,44,44,0) 52%, rgba(44,44,44,0) 48%, #000 100%);
  240. }
  241. /* Background line */
  242. .dwwol {
  243. position: absolute;
  244. z-index: 1;
  245. top: 50%;
  246. left: 0;
  247. width: 100%;
  248. height: 0;
  249. margin-top: -1px;
  250. border-top: 1px solid #333;
  251. border-bottom: 1px solid #555;
  252. }
  253. /* Datewheel button */
  254. .dwbg .dwb {
  255. cursor: pointer;
  256. overflow: hidden;
  257. display: block;
  258. height: 40px;
  259. line-height: 40px;
  260. padding: 0 15px;
  261. margin: 0 2px;
  262. font-size: 14px;
  263. font-weight: bold;
  264. text-decoration: none;
  265. text-shadow: 0 -1px 1px #000;
  266. border-radius: 5px;
  267. box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  268. color: #fff;
  269. background: #000;
  270. background: linear-gradient(#6e6e6e 50%,#000 50%);
  271. background: -webkit-gradient(linear,left bottom,left top,color-stop(0.5, #000),color-stop(0.5, #6e6e6e));
  272. background: -moz-linear-gradient(#6e6e6e 50%,#000 50%);
  273. background: -o-linear-gradient(#6e6e6e 50%,#000 50%);
  274. white-space: nowrap;
  275. text-overflow: ellipsis;
  276. -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  277. -webkit-border-radius: 5px;
  278. }
  279. /* Datewheel button container */
  280. .dwbc {
  281. padding: 5px 0;
  282. text-align: center;
  283. clear: both;
  284. }
  285. .dwbc:after {
  286. content: '';
  287. display: block;
  288. clear: both;
  289. }
  290. /* Datewheel button wrapper */
  291. .dwbw {
  292. display: inline-block;
  293. float: left;
  294. width: 50%;
  295. position: relative;
  296. z-index: 5;
  297. }
  298. .dwbc-p .dwbw {
  299. width: 33.33%;
  300. }
  301. /* Hidden label */
  302. .dwhl {
  303. padding-top: 10px;
  304. }
  305. .dwhl .dwl {
  306. display: none;
  307. }
  308. /* Multiple selection */
  309. .dwms .dwwms .dw-li {
  310. padding: 0 40px;
  311. position: relative;
  312. }
  313. .dwms .dw-msel:after {
  314. width: 40px;
  315. text-align: center;
  316. position: absolute;
  317. top: 0;
  318. left: 0;
  319. content: '✔';
  320. }
  321. /* Backgrounds */
  322. .dwbg {
  323. background: #fff;
  324. border-radius: 3px;
  325. -webkit-border-radius: 3px;
  326. }
  327. .dwbg .dwpm .dwwl {
  328. border: 1px solid #aaa;
  329. }
  330. .dwbg .dwpm .dww {
  331. color: #000;
  332. background: #fff;
  333. -webkit-border-radius: 3px;
  334. }
  335. .dwbg .dwwb {
  336. background: #ccc;
  337. color: #888;
  338. text-shadow: 0 -1px 1px #333;
  339. box-shadow: 0 0 5px #333;
  340. -webkit-box-shadow: 0 0 5px #333;
  341. }
  342. .dwbg .dwwbp {
  343. background: linear-gradient(#f7f7f7,#bdbdbd);
  344. background: -webkit-gradient(linear,left bottom,left top,from(#bdbdbd),to(#f7f7f7));
  345. background: -moz-linear-gradient(#f7f7f7,#bdbdbd);
  346. background: -o-linear-gradient(#f7f7f7,#bdbdbd);
  347. }
  348. .dwbg .dwwbm {
  349. background: linear-gradient(#bdbdbd,#f7f7f7);
  350. background: -webkit-gradient(linear,left bottom,left top,from(#f7f7f7),to(#bdbdbd));
  351. background: -moz-linear-gradient(#bdbdbd,#f7f7f7);
  352. background: -o-linear-gradient(#bdbdbd,#f7f7f7);
  353. }
  354. .dwbg .dwb-a {
  355. background: #3c7500;
  356. background: linear-gradient(#94c840 50%,#3c7500 50%);
  357. background: -webkit-gradient(linear,left bottom,left top,color-stop(0.5, #3c7500),color-stop(0.5, #94c840));
  358. background: -moz-linear-gradient(#94c840 50%,#3c7500 50%);
  359. background: -o-linear-gradient(#94c840 50%,#3c7500 50%);
  360. }
  361. .dwbg .dwwl .dwb-a {
  362. background: #3c7500;
  363. background: linear-gradient(#94c840,#3c7500);
  364. background: -webkit-gradient(linear,left bottom,left top,from(#3c7500),to(#94c840));
  365. background: -moz-linear-gradient(#94c840,#3c7500);
  366. background: -o-linear-gradient(#94c840,#3c7500);
  367. }