laydate.css 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  1. /*! laydate-v5.0.9 日期与时间组件 MIT License http://www.layui.com/laydate/ By 贤心 */
  2. .laydate-set-ym, .layui-laydate, .layui-laydate *, .layui-laydate-list {
  3. box-sizing: border-box
  4. }
  5. html #layuicss-laydate {
  6. display: none;
  7. position: absolute;
  8. width: 1989px
  9. }
  10. .layui-laydate * {
  11. margin: 0;
  12. padding: 0
  13. }
  14. .layui-laydate {
  15. position: absolute;
  16. z-index: 66666666;
  17. margin: 5px 0;
  18. border-radius: 2px;
  19. font-size: 14px;
  20. -webkit-animation-duration: .3s;
  21. animation-duration: .3s;
  22. -webkit-animation-fill-mode: both;
  23. animation-fill-mode: both;
  24. -webkit-animation-name: laydate-upbit;
  25. animation-name: laydate-upbit
  26. }
  27. .layui-laydate-main {
  28. width: 272px
  29. }
  30. .layui-laydate-content td, .layui-laydate-header *, .layui-laydate-list li {
  31. transition-duration: .3s;
  32. -webkit-transition-duration: .3s
  33. }
  34. @-webkit-keyframes laydate-upbit {
  35. from {
  36. -webkit-transform: translate3d(0, 20px, 0);
  37. opacity: .3
  38. }
  39. to {
  40. -webkit-transform: translate3d(0, 0, 0);
  41. opacity: 1
  42. }
  43. }
  44. @keyframes laydate-upbit {
  45. from {
  46. transform: translate3d(0, 20px, 0);
  47. opacity: .3
  48. }
  49. to {
  50. transform: translate3d(0, 0, 0);
  51. opacity: 1
  52. }
  53. }
  54. .layui-laydate-static {
  55. position: relative;
  56. z-index: 0;
  57. display: inline-block;
  58. margin: 0;
  59. -webkit-animation: none;
  60. animation: none
  61. }
  62. .laydate-ym-show .laydate-next-m, .laydate-ym-show .laydate-prev-m {
  63. display: none !important
  64. }
  65. .laydate-ym-show .laydate-next-y, .laydate-ym-show .laydate-prev-y {
  66. display: inline-block !important
  67. }
  68. .laydate-time-show .laydate-set-ym span[lay-type=month], .laydate-time-show .laydate-set-ym span[lay-type=year], .laydate-time-show .layui-laydate-header .layui-icon, .laydate-ym-show .laydate-set-ym span[lay-type=month] {
  69. display: none !important
  70. }
  71. .layui-laydate-header {
  72. position: relative;
  73. line-height: 30px;
  74. padding: 10px 70px 5px
  75. }
  76. .laydate-set-ym span, .layui-laydate-header i {
  77. padding: 0 5px;
  78. cursor: pointer
  79. }
  80. .layui-laydate-header * {
  81. display: inline-block;
  82. vertical-align: bottom
  83. }
  84. .layui-laydate-header i {
  85. position: absolute;
  86. top: 10px;
  87. color: #999;
  88. font-size: 12px
  89. }
  90. .layui-laydate-header i.laydate-prev-y {
  91. left: 15px
  92. }
  93. .layui-laydate-header i.laydate-prev-m {
  94. left: 45px
  95. }
  96. .layui-laydate-header i.laydate-next-y {
  97. right: 15px
  98. }
  99. .layui-laydate-header i.laydate-next-m {
  100. right: 45px
  101. }
  102. .laydate-set-ym {
  103. width: 100%;
  104. text-align: center;
  105. text-overflow: ellipsis;
  106. overflow: hidden;
  107. white-space: nowrap
  108. }
  109. .laydate-time-text {
  110. cursor: default !important
  111. }
  112. .layui-laydate-content {
  113. position: relative;
  114. padding: 10px;
  115. -moz-user-select: none;
  116. -webkit-user-select: none;
  117. -ms-user-select: none
  118. }
  119. .layui-laydate-content table {
  120. border-collapse: collapse;
  121. border-spacing: 0
  122. }
  123. .layui-laydate-content td, .layui-laydate-content th {
  124. width: 36px;
  125. height: 30px;
  126. padding: 5px;
  127. text-align: center
  128. }
  129. .layui-laydate-content td {
  130. position: relative;
  131. cursor: pointer
  132. }
  133. .laydate-day-mark {
  134. position: absolute;
  135. left: 0;
  136. top: 0;
  137. width: 100%;
  138. height: 100%;
  139. line-height: 30px;
  140. font-size: 12px;
  141. overflow: hidden
  142. }
  143. .laydate-day-mark::after {
  144. position: absolute;
  145. content: '';
  146. right: 2px;
  147. top: 2px;
  148. width: 5px;
  149. height: 5px;
  150. border-radius: 50%
  151. }
  152. .layui-laydate-footer {
  153. position: relative;
  154. height: 46px;
  155. line-height: 26px;
  156. padding: 10px 20px
  157. }
  158. .layui-laydate-footer span {
  159. margin-right: 15px;
  160. display: inline-block;
  161. cursor: pointer;
  162. font-size: 12px
  163. }
  164. .layui-laydate-footer span:hover {
  165. color: #5FB878
  166. }
  167. .laydate-footer-btns {
  168. position: absolute;
  169. right: 10px;
  170. top: 10px
  171. }
  172. .laydate-footer-btns span {
  173. height: 26px;
  174. line-height: 2;
  175. margin: 0 0 0 -1px;
  176. padding: 0 10px;
  177. border: 1px solid #C9C9C9;
  178. background-color: #fff;
  179. white-space: nowrap;
  180. vertical-align: top;
  181. border-radius: 2px
  182. }
  183. .layui-laydate-list > li, .layui-laydate-range .layui-laydate-main {
  184. display: inline-block;
  185. vertical-align: middle
  186. }
  187. .layui-laydate-list {
  188. position: absolute;
  189. left: 0;
  190. top: 0;
  191. width: 100%;
  192. height: 100%;
  193. padding: 10px;
  194. background-color: #fff
  195. }
  196. .layui-laydate-list > li {
  197. position: relative;
  198. width: 33.3%;
  199. height: 36px;
  200. line-height: 36px;
  201. margin: 3px 0;
  202. text-align: center;
  203. cursor: pointer
  204. }
  205. .laydate-month-list > li {
  206. width: 25%;
  207. margin: 17px 0
  208. }
  209. .laydate-time-list > li {
  210. height: 100%;
  211. margin: 0;
  212. line-height: normal;
  213. cursor: default
  214. }
  215. .laydate-time-list p {
  216. position: relative;
  217. top: -4px;
  218. line-height: 29px
  219. }
  220. .laydate-time-list ol {
  221. height: 181px;
  222. overflow: hidden
  223. }
  224. .laydate-time-list > li:hover ol {
  225. overflow-y: auto
  226. }
  227. .laydate-time-list ol li {
  228. width: 130%;
  229. padding-left: 33px;
  230. line-height: 30px;
  231. text-align: left;
  232. cursor: pointer
  233. }
  234. .layui-laydate-hint {
  235. position: absolute;
  236. top: 115px;
  237. left: 50%;
  238. width: 250px;
  239. margin-left: -125px;
  240. line-height: 20px;
  241. padding: 15px;
  242. text-align: center;
  243. font-size: 12px
  244. }
  245. .layui-laydate-range {
  246. width: 546px
  247. }
  248. .layui-laydate-range .laydate-main-list-0 .laydate-next-m, .layui-laydate-range .laydate-main-list-0 .laydate-next-y, .layui-laydate-range .laydate-main-list-1 .laydate-prev-m, .layui-laydate-range .laydate-main-list-1 .laydate-prev-y {
  249. display: none
  250. }
  251. .layui-laydate-range .laydate-main-list-1 .layui-laydate-content {
  252. border-left: 1px solid #e2e2e2
  253. }
  254. .layui-laydate, .layui-laydate-hint {
  255. border: 1px solid #d2d2d2;
  256. box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
  257. background-color: #fff;
  258. color: #666
  259. }
  260. .layui-laydate-header {
  261. border-bottom: 1px solid #e2e2e2
  262. }
  263. .layui-laydate-header i:hover, .layui-laydate-header span:hover {
  264. color: #5FB878
  265. }
  266. .layui-laydate-content {
  267. border-top: none 0;
  268. border-bottom: none 0
  269. }
  270. .layui-laydate-content th {
  271. font-weight: 400;
  272. color: #333
  273. }
  274. .layui-laydate-content td {
  275. color: #666
  276. }
  277. .layui-laydate-content td.laydate-selected {
  278. background-color: #caeaff;
  279. }
  280. .laydate-selected:hover {
  281. background-color: #00F7DE !important
  282. }
  283. .layui-laydate-content td:hover, .layui-laydate-list li:hover {
  284. background-color: #eaeaea;
  285. color: #333
  286. }
  287. .laydate-time-list li ol {
  288. margin: 0;
  289. padding: 0;
  290. border: 1px solid #e2e2e2;
  291. border-left-width: 0
  292. }
  293. .laydate-time-list li:first-child ol {
  294. border-left-width: 1px
  295. }
  296. .laydate-time-list > li:hover {
  297. background: 0 0
  298. }
  299. .layui-laydate-content .laydate-day-next, .layui-laydate-content .laydate-day-prev {
  300. color: #d2d2d2
  301. }
  302. .laydate-selected.laydate-day-next, .laydate-selected.laydate-day-prev {
  303. background-color: #f8f8f8 !important
  304. }
  305. .layui-laydate-footer {
  306. border-top: 1px solid #e2e2e2
  307. }
  308. .layui-laydate-hint {
  309. color: #FF5722
  310. }
  311. .laydate-day-mark::after {
  312. background-color: #5FB878
  313. }
  314. .layui-laydate-content td.layui-this .laydate-day-mark::after {
  315. display: none
  316. }
  317. .layui-laydate-footer span[lay-type=date] {
  318. color: #5FB878
  319. }
  320. .layui-laydate .layui-this {
  321. background-color: #48a5fd !important;
  322. color: #fff !important
  323. }
  324. .layui-laydate .laydate-disabled, .layui-laydate .laydate-disabled:hover {
  325. background: 0 0 !important;
  326. color: #d2d2d2 !important;
  327. cursor: not-allowed !important;
  328. -moz-user-select: none;
  329. -webkit-user-select: none;
  330. -ms-user-select: none
  331. }
  332. .laydate-theme-molv {
  333. border: none
  334. }
  335. .laydate-theme-molv.layui-laydate-range {
  336. width: 548px
  337. }
  338. .laydate-theme-molv .layui-laydate-main {
  339. width: 274px
  340. }
  341. .laydate-theme-molv .layui-laydate-header {
  342. border: none;
  343. background-color: #1686ef
  344. }
  345. .laydate-theme-molv .layui-laydate-header i, .laydate-theme-molv .layui-laydate-header span {
  346. color: #f6f6f6
  347. }
  348. .laydate-theme-molv .layui-laydate-header i:hover, .laydate-theme-molv .layui-laydate-header span:hover {
  349. color: #fff
  350. }
  351. .laydate-theme-molv .layui-laydate-content {
  352. border: 1px solid #e2e2e2;
  353. border-top: none;
  354. border-bottom: none
  355. }
  356. .laydate-theme-molv .laydate-main-list-1 .layui-laydate-content {
  357. border-left: none
  358. }
  359. .laydate-theme-grid .laydate-month-list > li, .laydate-theme-grid .laydate-year-list > li, .laydate-theme-grid .layui-laydate-content td, .laydate-theme-grid .layui-laydate-content thead, .laydate-theme-molv .layui-laydate-footer {
  360. border: 1px solid #e2e2e2
  361. }
  362. .laydate-theme-grid .laydate-selected, .laydate-theme-grid .laydate-selected:hover {
  363. background-color: #f2f2f2 !important;
  364. color: #1686ef !important
  365. }
  366. .laydate-theme-grid .laydate-selected.laydate-day-next, .laydate-theme-grid .laydate-selected.laydate-day-prev {
  367. color: #d2d2d2 !important
  368. }
  369. .laydate-theme-grid .laydate-month-list, .laydate-theme-grid .laydate-year-list {
  370. margin: 1px 0 0 1px
  371. }
  372. .laydate-theme-grid .laydate-month-list > li, .laydate-theme-grid .laydate-year-list > li {
  373. margin: 0 -1px -1px 0
  374. }
  375. .laydate-theme-grid .laydate-year-list > li {
  376. height: 43px;
  377. line-height: 43px
  378. }
  379. .laydate-theme-grid .laydate-month-list > li {
  380. height: 71px;
  381. line-height: 71px
  382. }
  383. @font-face {
  384. font-family: laydate-icon;
  385. src: url(font/iconfont.eot);
  386. src: url(font/iconfont.eot#iefix) format('embedded-opentype'), url(font/iconfont.svg#iconfont) format('svg'), url(font/iconfont.woff) format('woff'), url(font/iconfont.ttf) format('truetype')
  387. }
  388. .laydate-icon {
  389. font-family: laydate-icon !important;
  390. font-size: 16px;
  391. font-style: normal;
  392. -webkit-font-smoothing: antialiased;
  393. -moz-osx-font-smoothing: grayscale
  394. }