mui.dtpicker.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. .mui-dtpicker {
  2. position: fixed;
  3. left: 0px;
  4. width: 100%;
  5. z-index: 999999;
  6. background-color: #eee;
  7. border-top: solid 1px #ccc;
  8. box-shadow: 0px -5px 7px 0px rgba(0, 0, 0, 0.1);
  9. -webkit-transition: .3s;
  10. bottom: 0px;
  11. -webkit-transform: translateY(300px);
  12. }
  13. .mui-dtpicker.mui-active {
  14. -webkit-transform: translateY(0px);
  15. }
  16. /*用于将 html body 禁止滚动条*/
  17. .mui-dtpicker-active-for-page {
  18. overflow: hidden !important;
  19. }
  20. .mui-android-5-1 .mui-dtpicker {
  21. bottom: -300px;
  22. -webkit-transition-property: bottom;
  23. -webkit-transform: none;
  24. }
  25. .mui-android-5-1 .mui-dtpicker.mui-active {
  26. bottom: 0px;
  27. -webkit-transition-property: bottom;
  28. -webkit-transform: none;
  29. }
  30. .mui-dtpicker-header {
  31. padding: 6px;
  32. font-size: 14px;
  33. color: #888;
  34. }
  35. .mui-dtpicker-header button {
  36. font-size: 12px;
  37. padding: 5px 10px;
  38. }
  39. .mui-dtpicker-header button:last-child {
  40. float: right;
  41. }
  42. .mui-dtpicker-body {
  43. position: relative;
  44. width: 100%;
  45. height: 200px;
  46. /*border-top: solid 1px #eee;
  47. background-color: #fff;*/
  48. }
  49. .mui-ios .mui-dtpicker-body {
  50. -webkit-perspective: 1200px;
  51. perspective: 1200px;
  52. -webkit-transform-style: preserve-3d;
  53. transform-style: preserve-3d;
  54. }
  55. .mui-dtpicker-title h5 {
  56. display: inline-block;
  57. width: 20%;
  58. margin: 0px;
  59. padding: 8px;
  60. text-align: center;
  61. border-top: solid 1px #ddd;
  62. background-color: #f0f0f0;
  63. border-bottom: solid 1px #ccc;
  64. }
  65. .mui-dtpicker .mui-picker {
  66. width: 20%;
  67. height: 100%;
  68. margin: 0px;
  69. float: left;
  70. border: none;
  71. }
  72. /*年月日时分*/
  73. [data-type="datetime"] .mui-picker,
  74. [data-type="time"] .mui-dtpicker-title h5 {
  75. width: 20%;
  76. }
  77. [data-type="datetime"] [data-id="picker-h"],
  78. [data-type="datetime"] [data-id="title-h"] {
  79. border-left: dotted 1px #ccc;
  80. }
  81. /*年月日*/
  82. [data-type="date"] .mui-picker,
  83. [data-type="date"] .mui-dtpicker-title h5 {
  84. width: 33.3%;
  85. }
  86. [data-type="date"] [data-id="picker-h"],
  87. [data-type="date"] [data-id="picker-i"],
  88. [data-type="date"] [data-id="title-h"],
  89. [data-type="date"] [data-id="title-i"] {
  90. display: none;
  91. }
  92. /*年月日时*/
  93. [data-type="hour"] .mui-picker,
  94. [data-type="hour"] .mui-dtpicker-title h5 {
  95. width: 25%;
  96. }
  97. [data-type="hour"] [data-id="picker-i"],
  98. [data-type="hour"] [data-id="title-i"] {
  99. display: none;
  100. }
  101. [data-type="hour"] [data-id="picker-h"],
  102. [data-type="hour"] [data-id="title-h"] {
  103. border-left: dotted 1px #ccc;
  104. }
  105. /*时分*/
  106. [data-type="time"] .mui-picker,
  107. [data-type="time"] .mui-dtpicker-title h5 {
  108. width: 50%;
  109. }
  110. [data-type="time"] [data-id="picker-y"],
  111. [data-type="time"] [data-id="picker-m"],
  112. [data-type="time"] [data-id="picker-d"],
  113. [data-type="time"] [data-id="title-y"],
  114. [data-type="time"] [data-id="title-m"],
  115. [data-type="time"] [data-id="title-d"] {
  116. display: none;
  117. }
  118. /*年月*/
  119. [data-type="month"] .mui-picker,
  120. [data-type="month"] .mui-dtpicker-title h5 {
  121. width: 50%;
  122. }
  123. [data-type="month"] [data-id="picker-d"],
  124. [data-type="month"] [data-id="picker-h"],
  125. [data-type="month"] [data-id="picker-i"],
  126. [data-type="month"] [data-id="title-d"],
  127. [data-type="month"] [data-id="title-h"],
  128. [data-type="month"] [data-id="title-i"] {
  129. display: none;
  130. }