mui.picker.all.css 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. /**
  2. * 选择列表插件
  3. * varstion 2.0.0
  4. * by Houfeng
  5. * Houfeng@DCloud.io
  6. */
  7. .mui-picker {
  8. background-color: #ddd;
  9. position: relative;
  10. height: 200px;
  11. overflow: hidden;
  12. border: solid 1px rgba(0, 0, 0, 0.1);
  13. -webkit-user-select: none;
  14. user-select: none;
  15. box-sizing: border-box;
  16. }
  17. .mui-picker-inner {
  18. box-sizing: border-box;
  19. position: relative;
  20. width: 100%;
  21. height: 100%;
  22. overflow: hidden;
  23. -webkit-mask-box-image: -webkit-linear-gradient(bottom, transparent, transparent 5%, #fff 20%, #fff 80%, transparent 95%, transparent);
  24. -webkit-mask-box-image: linear-gradient(top, transparent, transparent 5%, #fff 20%, #fff 80%, transparent 95%, transparent);
  25. }
  26. .mui-pciker-list,
  27. .mui-pciker-rule {
  28. box-sizing: border-box;
  29. padding: 0px;
  30. margin: 0px;
  31. width: 100%;
  32. height: 36px;
  33. line-height: 36px;
  34. position: absolute;
  35. left: 0px;
  36. top: 50%;
  37. margin-top: -18px;
  38. }
  39. .mui-pciker-rule-bg {
  40. z-index: 0;
  41. /*background-color: #cfd5da;*/
  42. }
  43. .mui-pciker-rule-ft {
  44. z-index: 2;
  45. border-top: solid 1px rgba(0, 0, 0, 0.1);
  46. border-bottom: solid 1px rgba(0, 0, 0, 0.1);
  47. /*-webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);*/
  48. /*box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);*/
  49. }
  50. .mui-pciker-list {
  51. z-index: 1;
  52. -webkit-transform-style: preserve-3d;
  53. transform-style: preserve-3d;
  54. -webkit-transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  55. transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  56. }
  57. .mui-pciker-list li {
  58. width: 100%;
  59. height: 100%;
  60. position: absolute;
  61. text-align: center;
  62. vertical-align: middle;
  63. -webkit-backface-visibility: hidden;
  64. backface-visibility: hidden;
  65. overflow: hidden;
  66. box-sizing: border-box;
  67. font-size: 16px;
  68. font-family: "Helvetica Neue", "Helvetica", "Arial", "sans-serif";
  69. color: #888;
  70. padding: 0px 8px;
  71. white-space: nowrap;
  72. -webkit-text-overflow: ellipsis;
  73. text-overflow: ellipsis;
  74. overflow: hidden;
  75. cursor: default;
  76. visibility: hidden;
  77. }
  78. .mui-pciker-list li.highlight,
  79. .mui-pciker-list li.visible {
  80. visibility: visible;
  81. }
  82. .mui-pciker-list li.highlight {
  83. color: #222;
  84. }
  85. .mui-poppicker {
  86. position: fixed;
  87. left: 0px;
  88. width: 100%;
  89. z-index: 999;
  90. background-color: #eee;
  91. border-top: solid 1px #ccc;
  92. box-shadow: 0px -5px 7px 0px rgba(0, 0, 0, 0.1);
  93. -webkit-transition: .3s;
  94. bottom: 0px;
  95. -webkit-transform: translateY(300px);
  96. }
  97. .mui-poppicker.mui-active {
  98. -webkit-transform: translateY(0px);
  99. }
  100. .mui-android-5-1 .mui-poppicker {
  101. bottom: -300px;
  102. -webkit-transition-property: bottom;
  103. -webkit-transform: none;
  104. }
  105. .mui-android-5-1 .mui-poppicker.mui-active {
  106. bottom: 0px;
  107. -webkit-transition-property: bottom;
  108. -webkit-transform: none;
  109. }
  110. .mui-poppicker-header {
  111. padding: 6px;
  112. font-size: 14px;
  113. color: #888;
  114. }
  115. .mui-poppicker-header .mui-btn {
  116. font-size: 12px;
  117. padding: 5px 10px;
  118. }
  119. .mui-poppicker-btn-cancel {
  120. float: left;
  121. }
  122. .mui-poppicker-btn-ok {
  123. float: right;
  124. }
  125. .mui-poppicker-clear {
  126. clear: both;
  127. height: 0px;
  128. line-height: 0px;
  129. font-size: 0px;
  130. overflow: hidden;
  131. }
  132. .mui-poppicker-body {
  133. position: relative;
  134. width: 100%;
  135. height: 200px;
  136. border-top: solid 1px #ddd;
  137. /*-webkit-perspective: 1200px;
  138. perspective: 1200px;
  139. -webkit-transform-style: preserve-3d;
  140. transform-style: preserve-3d;*/
  141. }
  142. .mui-poppicker-body .mui-picker {
  143. width: 100%;
  144. height: 100%;
  145. margin: 0px;
  146. border: none;
  147. float: left;
  148. }
  149. .mui-dtpicker {
  150. position: fixed;
  151. left: 0px;
  152. width: 100%;
  153. z-index: 999999;
  154. background-color: #eee;
  155. border-top: solid 1px #ccc;
  156. box-shadow: 0px -5px 7px 0px rgba(0, 0, 0, 0.1);
  157. -webkit-transition: .3s;
  158. bottom: 0px;
  159. -webkit-transform: translateY(300px);
  160. }
  161. .mui-dtpicker.mui-active {
  162. -webkit-transform: translateY(0px);
  163. }
  164. /*用于将 html body 禁止滚动条*/
  165. .mui-dtpicker-active-for-page {
  166. overflow: hidden !important;
  167. }
  168. .mui-android-5-1 .mui-dtpicker {
  169. bottom: -300px;
  170. -webkit-transition-property: bottom;
  171. -webkit-transform: none;
  172. }
  173. .mui-android-5-1 .mui-dtpicker.mui-active {
  174. bottom: 0px;
  175. -webkit-transition-property: bottom;
  176. -webkit-transform: none;
  177. }
  178. .mui-dtpicker-header {
  179. padding: 6px;
  180. font-size: 14px;
  181. color: #888;
  182. }
  183. .mui-dtpicker-header button {
  184. font-size: 12px;
  185. padding: 5px 10px;
  186. }
  187. .mui-dtpicker-header button:last-child {
  188. float: right;
  189. }
  190. .mui-dtpicker-body {
  191. position: relative;
  192. width: 100%;
  193. height: 200px;
  194. /*border-top: solid 1px #eee;
  195. background-color: #fff;*/
  196. }
  197. .mui-ios .mui-dtpicker-body {
  198. -webkit-perspective: 1200px;
  199. perspective: 1200px;
  200. -webkit-transform-style: preserve-3d;
  201. transform-style: preserve-3d;
  202. }
  203. .mui-dtpicker-title h5 {
  204. display: inline-block;
  205. width: 20%;
  206. margin: 0px;
  207. padding: 8px;
  208. text-align: center;
  209. border-top: solid 1px #ddd;
  210. background-color: #f0f0f0;
  211. border-bottom: solid 1px #ccc;
  212. }
  213. .mui-dtpicker .mui-picker {
  214. width: 20%;
  215. height: 100%;
  216. margin: 0px;
  217. float: left;
  218. border: none;
  219. }
  220. /*年月日时分*/
  221. [data-type="datetime"] .mui-picker,
  222. [data-type="time"] .mui-dtpicker-title h5 {
  223. width: 20%;
  224. }
  225. [data-type="datetime"] [data-id="picker-h"],
  226. [data-type="datetime"] [data-id="title-h"] {
  227. border-left: dotted 1px #ccc;
  228. }
  229. /*年月日*/
  230. [data-type="date"] .mui-picker,
  231. [data-type="date"] .mui-dtpicker-title h5 {
  232. width: 33.3%;
  233. }
  234. [data-type="date"] [data-id="picker-h"],
  235. [data-type="date"] [data-id="picker-i"],
  236. [data-type="date"] [data-id="title-h"],
  237. [data-type="date"] [data-id="title-i"] {
  238. display: none;
  239. }
  240. /*年月日时*/
  241. [data-type="hour"] .mui-picker,
  242. [data-type="hour"] .mui-dtpicker-title h5 {
  243. width: 25%;
  244. }
  245. [data-type="hour"] [data-id="picker-i"],
  246. [data-type="hour"] [data-id="title-i"] {
  247. display: none;
  248. }
  249. [data-type="hour"] [data-id="picker-h"],
  250. [data-type="hour"] [data-id="title-h"] {
  251. border-left: dotted 1px #ccc;
  252. }
  253. /*时分*/
  254. [data-type="time"] .mui-picker,
  255. [data-type="time"] .mui-dtpicker-title h5 {
  256. width: 50%;
  257. }
  258. [data-type="time"] [data-id="picker-y"],
  259. [data-type="time"] [data-id="picker-m"],
  260. [data-type="time"] [data-id="picker-d"],
  261. [data-type="time"] [data-id="title-y"],
  262. [data-type="time"] [data-id="title-m"],
  263. [data-type="time"] [data-id="title-d"] {
  264. display: none;
  265. }
  266. /*年月*/
  267. [data-type="month"] .mui-picker,
  268. [data-type="month"] .mui-dtpicker-title h5 {
  269. width: 50%;
  270. }
  271. [data-type="month"] [data-id="picker-d"],
  272. [data-type="month"] [data-id="picker-h"],
  273. [data-type="month"] [data-id="picker-i"],
  274. [data-type="month"] [data-id="title-d"],
  275. [data-type="month"] [data-id="title-h"],
  276. [data-type="month"] [data-id="title-i"] {
  277. display: none;
  278. }