input.scss 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  1. /**Variable**/
  2. @import './helpers/mixin.scss';
  3. $iconWidth: 1.6em;
  4. .vxe-input--inner {
  5. width: 100%;
  6. height: 100%;
  7. border-radius: $vxe-border-radius;
  8. outline: 0;
  9. margin: 0;
  10. font-size: inherit;
  11. font-family: inherit;
  12. line-height: inherit;
  13. padding: 0 0.6em;
  14. color: $vxe-font-color;
  15. border: 1px solid $vxe-input-border-color;
  16. background-color: $vxe-input-background-color;
  17. box-shadow: none;
  18. &::placeholder {
  19. color: $vxe-input-placeholder-color;
  20. }
  21. &[type="number"] {
  22. appearance: none;
  23. -moz-appearance: textfield;
  24. }
  25. &[type="search"],
  26. &[type="search"]::-webkit-search-cancel-button,
  27. &[type="number"]::-webkit-outer-spin-button,
  28. &[type="number"]::-webkit-inner-spin-button {
  29. appearance: none;
  30. }
  31. &[disabled] {
  32. cursor: not-allowed;
  33. color: $vxe-disabled-color;
  34. background-color: $vxe-input-disabled-background-color;
  35. }
  36. }
  37. .vxe-input {
  38. display: inline-block;
  39. position: relative;
  40. width: 180px;
  41. &.is--disabled {
  42. .vxe-input--date-picker-suffix,
  43. .vxe-input--search-suffix,
  44. .vxe-input--suffix,
  45. .vxe-input--password-suffix,
  46. .vxe-input--number-suffix {
  47. cursor: no-drop;
  48. }
  49. }
  50. &:not(.is--disabled) {
  51. .vxe-input--date-picker-suffix,
  52. .vxe-input--search-suffix,
  53. .vxe-input--clear-icon,
  54. .vxe-input--password-suffix,
  55. .vxe-input--number-suffix {
  56. cursor: pointer;
  57. }
  58. &.is--active {
  59. .vxe-input--inner {
  60. border: 1px solid $vxe-primary-color;
  61. }
  62. }
  63. }
  64. }
  65. .vxe-input--prefix,
  66. .vxe-input--suffix,
  67. .vxe-input--extra-suffix {
  68. display: flex;
  69. position: absolute;
  70. top: 0;
  71. width: $iconWidth;
  72. height: 100%;
  73. user-select: none;
  74. align-items: center;
  75. justify-content: center;
  76. color: $vxe-table-column-icon-border-color;
  77. }
  78. // 前缀图标
  79. .vxe-input {
  80. .vxe-input--prefix {
  81. left: 0.2em;
  82. }
  83. &.is--prefix {
  84. .vxe-input--inner {
  85. padding-left: #{$iconWidth + 0.2em};
  86. }
  87. }
  88. }
  89. // 后缀图标
  90. .vxe-input {
  91. .vxe-input--clear-icon {
  92. display: none;
  93. }
  94. .vxe-input--suffix,
  95. .vxe-input--extra-suffix {
  96. right: 0.2em;
  97. }
  98. &.is--suffix {
  99. .vxe-input--inner {
  100. padding-right: #{$iconWidth + 0.2em};
  101. }
  102. }
  103. &.is--left {
  104. .vxe-input--inner {
  105. text-align: left;
  106. }
  107. }
  108. &.is--center {
  109. .vxe-input--inner {
  110. text-align: center;
  111. }
  112. }
  113. &.is--right {
  114. .vxe-input--inner {
  115. text-align: right;
  116. }
  117. }
  118. &.is--controls {
  119. &.type--search,
  120. &.type--password,
  121. &.type--number,
  122. &.type--integer,
  123. &.type--float,
  124. &.type--date,
  125. &.type--datetime,
  126. &.type--week,
  127. &.type--month,
  128. &.type--year {
  129. .vxe-input--inner {
  130. padding-right: #{$iconWidth + 0.2em};
  131. }
  132. .vxe-input--suffix {
  133. right: $iconWidth;
  134. }
  135. }
  136. }
  137. &.is--suffix {
  138. &.is--controls {
  139. &.type--search,
  140. &.type--password,
  141. &.type--number,
  142. &.type--integer,
  143. &.type--float,
  144. &.type--date,
  145. &.type--datetime,
  146. &.type--week,
  147. &.type--month,
  148. &.type--year {
  149. .vxe-input--inner {
  150. padding-right: #{$iconWidth * 2};
  151. }
  152. }
  153. }
  154. }
  155. &.is--suffix {
  156. &:hover {
  157. .vxe-input--suffix {
  158. &.is--clear {
  159. .vxe-input--suffix-icon {
  160. display: none;
  161. }
  162. .vxe-input--clear-icon {
  163. display: inline;
  164. }
  165. }
  166. }
  167. }
  168. }
  169. &:not(.is--disabled) {
  170. &:not(.is--readonly) {
  171. .vxe-input--suffix {
  172. &:hover {
  173. .vxe-input--clear-icon {
  174. color: $vxe-font-color;
  175. }
  176. }
  177. }
  178. .vxe-input--extra-suffix {
  179. &:hover {
  180. .vxe-input--password-suffix {
  181. color: $vxe-font-color;
  182. }
  183. }
  184. }
  185. .vxe-input--number-prev,
  186. .vxe-input--number-next {
  187. &:hover {
  188. color: $vxe-font-color;
  189. }
  190. &:active {
  191. color: $vxe-primary-color;
  192. }
  193. }
  194. }
  195. }
  196. }
  197. .vxe-input--password-suffix,
  198. .vxe-input--number-suffix,
  199. .vxe-input--date-picker-suffix,
  200. .vxe-input--search-suffix {
  201. position: relative;
  202. width: 100%;
  203. height: 100%;
  204. }
  205. .vxe-input--date-picker-icon,
  206. .vxe-input--search-icon,
  207. .vxe-input--password-icon {
  208. position: absolute;
  209. left: 50%;
  210. top: 50%;
  211. transform: translate(-50%, -50%);
  212. }
  213. .vxe-input--date-picker-suffix {
  214. display: flex;
  215. align-items: center;
  216. justify-content: center;
  217. .vxe-input--panel-icon {
  218. @include animatTransition(transform, .2s);
  219. }
  220. }
  221. .vxe-input--number-prev,
  222. .vxe-input--number-next {
  223. position: relative;
  224. display: block;
  225. height: 50%;
  226. width: 100%;
  227. text-align: center;
  228. }
  229. .vxe-input--number-prev-icon,
  230. .vxe-input--number-next-icon {
  231. position: absolute;
  232. left: 50%;
  233. transform: translateX(-50%);
  234. }
  235. .vxe-input--number-prev-icon {
  236. bottom: 0;
  237. }
  238. .vxe-input--number-next-icon {
  239. top: 0;
  240. }
  241. .vxe-input--panel {
  242. display: none;
  243. position: absolute;
  244. left: 0;
  245. padding: 4px 0;
  246. color: $vxe-font-color;
  247. font-size: $vxe-font-size;
  248. text-align: left;
  249. &:not(.is--transfer) {
  250. min-width: 100%;
  251. }
  252. &.is--transfer {
  253. position: fixed;
  254. }
  255. &.animat--leave {
  256. display: block;
  257. opacity: 0;
  258. transform: scaleY(0.5);
  259. transition: transform .3s cubic-bezier(.23,1,.32,1), opacity .3s cubic-bezier(.23,1,.32,1);
  260. transform-origin: center top;
  261. backface-visibility: hidden;
  262. transform-style: preserve-3d;
  263. &[placement="top"] {
  264. transform-origin: center bottom;
  265. }
  266. }
  267. &.animat--enter {
  268. opacity: 1;
  269. transform: scaleY(1);
  270. }
  271. }
  272. .vxe-input--panel-wrapper,
  273. .vxe-input--panel-layout-wrapper {
  274. background-color: $vxe-input-panel-background-color;
  275. border: 1px solid $vxe-table-popup-border-color;
  276. box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
  277. border-radius: $vxe-border-radius;
  278. }
  279. .vxe-input--panel-wrapper {
  280. overflow-x: hidden;
  281. overflow-y: auto;
  282. }
  283. .vxe-input--panel-layout-wrapper {
  284. display: flex;
  285. flex-direction: row;
  286. }
  287. .vxe-input--panel {
  288. &.type--date,
  289. &.type--week,
  290. &.type--month,
  291. &.type--year {
  292. user-select: none;
  293. }
  294. &.type--datetime {
  295. .vxe-input--panel-right-wrapper {
  296. display: flex;
  297. flex-direction: column;
  298. border-left: 1px solid $vxe-input-border-color;
  299. }
  300. }
  301. &.type--date,
  302. &.type--datetime {
  303. .vxe-input--date-picker-body {
  304. th {
  305. width: 14.28571%;
  306. }
  307. }
  308. }
  309. &.type--week {
  310. .vxe-input--date-picker-body {
  311. table {
  312. th {
  313. width: 12%;
  314. &:first-child {
  315. width: 14%;
  316. }
  317. }
  318. }
  319. }
  320. }
  321. &.type--month,
  322. &.type--year {
  323. .vxe-input--date-picker-body {
  324. td {
  325. width: 25%;
  326. }
  327. }
  328. }
  329. }
  330. .vxe-input--time-picker-title {
  331. display: inline-block;
  332. text-align: center;
  333. border: 1px solid $vxe-input-border-color;
  334. border-radius: $vxe-border-radius;
  335. }
  336. .vxe-input--time-picker-confirm {
  337. position: absolute;
  338. right: 0;
  339. top: 0;
  340. outline: 0;
  341. border: 1px solid $vxe-input-border-color;
  342. border-radius: $vxe-border-radius;
  343. cursor: pointer;
  344. color: $vxe-input-date-time-confirm-button-color;
  345. border-color: $vxe-primary-color;
  346. background-color: $vxe-primary-color;
  347. &:hover {
  348. background-color: lighten($vxe-primary-color, 6%);
  349. border-color: lighten($vxe-primary-color, 6%);
  350. }
  351. &:active {
  352. background-color: darken($vxe-primary-color, 3%);
  353. border-color: darken($vxe-primary-color, 3%);
  354. }
  355. }
  356. .vxe-input--time-picker-header {
  357. display: flex;
  358. position: relative;
  359. flex-shrink: 0;
  360. }
  361. .vxe-input--date-picker-header {
  362. display: flex;
  363. flex-direction: row;
  364. user-select: none;
  365. .vxe-input--date-picker-type-wrapper {
  366. flex-grow: 1;
  367. }
  368. .vxe-input--date-picker-btn-wrapper {
  369. flex-shrink: 0;
  370. text-align: center;
  371. }
  372. }
  373. .vxe-input--date-picker-type-wrapper {
  374. .vxe-input--date-picker-label,
  375. .vxe-input--date-picker-btn {
  376. display: inline-block;
  377. }
  378. }
  379. .vxe-input--date-picker-btn-wrapper {
  380. display: flex;
  381. flex-direction: row;
  382. }
  383. .vxe-input--date-picker-label,
  384. .vxe-input--date-picker-btn {
  385. display: inline-block;
  386. display: flex;
  387. border-radius: $vxe-border-radius;
  388. border: 1px solid $vxe-input-border-color;
  389. align-items: center;
  390. justify-content: center;
  391. background-color: $vxe-button-default-background-color;
  392. }
  393. .vxe-input--date-picker-btn {
  394. &.is--disabled {
  395. color: $vxe-disabled-color;
  396. cursor: no-drop;
  397. }
  398. &:not(.is--disabled) {
  399. cursor: pointer;
  400. &:hover {
  401. background-color: lighten($vxe-button-default-background-color, 6%);
  402. }
  403. &:active {
  404. background-color: darken($vxe-button-default-background-color, 3%);
  405. }
  406. }
  407. }
  408. .vxe-input--date-picker-body {
  409. border-radius: $vxe-border-radius;
  410. border: 1px solid $vxe-table-popup-border-color;
  411. user-select: none;
  412. table {
  413. border: 0;
  414. width: 100%;
  415. border-spacing: 0;
  416. border-collapse: separate;
  417. text-align: center;
  418. table-layout: fixed
  419. }
  420. th,
  421. td {
  422. font-weight: normal;
  423. }
  424. th {
  425. box-shadow: inset 0 -1px 0 0 $vxe-table-popup-border-color;
  426. }
  427. td {
  428. &.is--prev,
  429. &.is--next {
  430. color: $vxe-disabled-color;
  431. .vxe-input--date-label,
  432. .vxe-input--date-festival {
  433. color: $vxe-disabled-color;
  434. }
  435. }
  436. &.is--now {
  437. box-shadow: inset 0 0 0 1px $vxe-table-popup-border-color;
  438. &:not(.is--selected) {
  439. &.is--current {
  440. color: $vxe-primary-color;
  441. .vxe-input--date-label,
  442. .vxe-input--date-festival {
  443. color: $vxe-primary-color;
  444. }
  445. }
  446. }
  447. }
  448. &.is--hover {
  449. background-color: $vxe-input-date-picker-hover-background-color;
  450. }
  451. &.is--selected {
  452. color: $vxe-input-date-picker-selected-color;
  453. background-color: $vxe-primary-color;
  454. .vxe-input--date-label,
  455. .vxe-input--date-festival {
  456. color: $vxe-input-date-picker-festival-selected-color;
  457. }
  458. .vxe-input--date-label {
  459. &.is-notice {
  460. &:before {
  461. background-color: $vxe-input-date-picker-notice-selected-background-color;
  462. }
  463. }
  464. }
  465. }
  466. &:not(.is--disabled) {
  467. cursor: pointer;
  468. }
  469. &.is--disabled {
  470. cursor: no-drop;
  471. color: $vxe-input-disabled-color;
  472. background-color: $vxe-input-disabled-background-color;
  473. .vxe-input--date-label,
  474. .vxe-input--date-festival {
  475. color: $vxe-input-disabled-color;
  476. }
  477. }
  478. }
  479. }
  480. .vxe-input--date-week-view {
  481. th {
  482. &:first-child {
  483. box-shadow: inset -1px -1px 0 0 $vxe-table-popup-border-color;
  484. }
  485. }
  486. td {
  487. &:first-child {
  488. box-shadow: inset -1px 0 0 0 $vxe-table-popup-border-color;
  489. }
  490. }
  491. }
  492. .vxe-input--date-label,
  493. .vxe-input--date-festival {
  494. display: block;
  495. overflow: hidden;
  496. }
  497. .vxe-input--date-label {
  498. position: relative;
  499. padding-top: 8%;
  500. &.is-notice {
  501. &:before {
  502. content: "";
  503. position: absolute;
  504. width: 4px;
  505. height: 4px;
  506. left: 0.8em;
  507. top: 0.3em;
  508. transform: translateX(-50%);
  509. border-radius: 100%;
  510. background-color: $vxe-input-date-notice-background-color;
  511. }
  512. }
  513. }
  514. .vxe-input--date-label--extra {
  515. position: absolute;
  516. right: 0.1em;
  517. top: 0;
  518. font-size: 12px;
  519. line-height: 12px;
  520. transform: scale(0.7);
  521. color: $vxe-input-date-extra-color;
  522. &.is-important {
  523. color: $vxe-input-date-extra-important-color;
  524. }
  525. }
  526. .vxe-input--date-festival {
  527. color: $vxe-input-date-festival-color;
  528. height: 14px;
  529. line-height: 1;
  530. overflow: hidden;
  531. &.is-important {
  532. color: $vxe-input-date-festival-important-color;
  533. }
  534. }
  535. .vxe-input--date-festival--label {
  536. display: block;
  537. font-size: 12px;
  538. transform: scale(0.9);
  539. }
  540. @keyframes festivalOverlap2 {
  541. 0%, 45%, 100% {
  542. transform: translateY(0);
  543. }
  544. 50%, 95% {
  545. transform: translateY(-14px);
  546. }
  547. }
  548. @keyframes festivalOverlap3 {
  549. 0%, 20%, 100% {
  550. transform: translateY(0);
  551. }
  552. 25%, 45%, 75%, 95% {
  553. transform: translateY(-14px);
  554. }
  555. 50%, 70% {
  556. transform: translateY(-28px);
  557. }
  558. }
  559. .vxe-input--date-festival--overlap {
  560. display: block;
  561. font-size: 12px;
  562. &.overlap--2 {
  563. animation: festivalOverlap2 6s infinite ease-in-out;
  564. }
  565. &.overlap--3 {
  566. animation: festivalOverlap3 9s infinite ease-in-out;
  567. }
  568. & > span {
  569. height: 14px;
  570. display: block;
  571. transform: scale(0.9);
  572. }
  573. }
  574. .vxe-input--time-picker-body {
  575. position: relative;
  576. display: flex;
  577. flex-direction: row;
  578. border: 1px solid $vxe-table-popup-border-color;
  579. flex-grow: 1;
  580. border-radius: $vxe-border-radius;
  581. user-select: none;
  582. & > ul {
  583. height: 100%;
  584. overflow: hidden;
  585. margin: 0;
  586. padding: 0;
  587. &:before,
  588. &:after {
  589. content: " ";
  590. display: block;
  591. }
  592. &:hover {
  593. overflow-y: auto;
  594. }
  595. & > li {
  596. display: block;
  597. &:hover {
  598. background-color: $vxe-input-date-picker-hover-background-color;
  599. cursor: pointer;
  600. }
  601. &.is--selected {
  602. font-weight: 700;
  603. color: $vxe-primary-color;
  604. }
  605. }
  606. }
  607. .vxe-input--time-picker-minute-list {
  608. border-left: 1px solid $vxe-table-popup-border-color;
  609. }
  610. .vxe-input--time-picker-second-list {
  611. border-left: 1px solid $vxe-table-popup-border-color;
  612. }
  613. }
  614. .vxe-input {
  615. font-size: $vxe-font-size;
  616. height: $vxe-input-height-default;
  617. .vxe-input--inner {
  618. &[type="date"]::-webkit-inner-spin-button,
  619. &[type="month"]::-webkit-inner-spin-button,
  620. &[type="week"]::-webkit-inner-spin-button {
  621. margin-top: 6px;
  622. }
  623. &[type="date"]::-webkit-inner-spin-button,
  624. &[type="month"]::-webkit-inner-spin-button,
  625. &[type="week"]::-webkit-inner-spin-button,
  626. &[type="number"]::-webkit-inner-spin-button {
  627. height: 24px;
  628. }
  629. }
  630. &.size--medium {
  631. font-size: $vxe-font-size-medium;
  632. height: $vxe-input-height-medium;
  633. .vxe-input--inner {
  634. &[type="date"]::-webkit-inner-spin-button,
  635. &[type="month"]::-webkit-inner-spin-button,
  636. &[type="week"]::-webkit-inner-spin-button {
  637. margin-top: 4px;
  638. }
  639. }
  640. }
  641. &.size--small {
  642. font-size: $vxe-font-size-small;
  643. height: $vxe-input-height-small;
  644. .vxe-input--inner {
  645. &[type="date"]::-webkit-inner-spin-button,
  646. &[type="month"]::-webkit-inner-spin-button,
  647. &[type="week"]::-webkit-inner-spin-button {
  648. margin-top: 2px;
  649. }
  650. }
  651. }
  652. &.size--mini {
  653. font-size: $vxe-font-size-mini;
  654. height: $vxe-input-height-mini;
  655. .vxe-input--inner {
  656. &[type="date"]::-webkit-inner-spin-button,
  657. &[type="month"]::-webkit-inner-spin-button,
  658. &[type="week"]::-webkit-inner-spin-button {
  659. margin-top: 0;
  660. }
  661. }
  662. }
  663. }
  664. @mixin getPanelStyle ($sizeIndex) {
  665. $fontSizeList: $vxe-font-size, $vxe-font-size-medium, $vxe-font-size-small, $vxe-font-size-mini;
  666. $timeWeekRowHeightList: $vxe-input-date-time-week-row-height-default, $vxe-input-date-time-week-row-height-medium, $vxe-input-date-time-week-row-height-small, $vxe-input-date-time-week-row-height-mini;
  667. $monthYearRowHeightList: $vxe-input-date-month-year-row-height-default, $vxe-input-date-month-year-row-height-medium, $vxe-input-date-month-year-row-height-small, $vxe-input-date-month-year-row-height-mini;
  668. $titleRowHeightList: $vxe-input-date-title-height-default, $vxe-input-date-title-height-medium, $vxe-input-date-title-height-small, $vxe-input-date-title-height-mini;
  669. font-size: nth($fontSizeList, $sizeIndex);
  670. .vxe-input--panel-wrapper {
  671. max-height: 400px - $sizeIndex * 20;
  672. }
  673. &.type--date,
  674. &.type--time,
  675. &.type--week,
  676. &.type--month,
  677. &.type--year {
  678. .vxe-input--panel-wrapper {
  679. padding: 12px - $sizeIndex;
  680. }
  681. }
  682. &.type--date,
  683. &.type--month,
  684. &.type--year {
  685. .vxe-input--panel-wrapper {
  686. $widthList: 336px, 336px, 312px, 288px;
  687. width: nth($widthList, $sizeIndex);
  688. }
  689. }
  690. &.type--week {
  691. .vxe-input--panel-wrapper {
  692. $widthList: 380px, 380px, 354px, 326px;
  693. width: nth($widthList, $sizeIndex);
  694. }
  695. }
  696. &.type--time {
  697. .vxe-input--panel-wrapper {
  698. $widthList: 170px, 168px, 154px, 146px;
  699. width: nth($widthList, $sizeIndex);
  700. }
  701. }
  702. &.type--datetime {
  703. .vxe-input--panel-left-wrapper {
  704. $widthList: 336px, 336px, 312px, 288px;
  705. width: nth($widthList, $sizeIndex);
  706. }
  707. .vxe-input--panel-left-wrapper,
  708. .vxe-input--panel-right-wrapper {
  709. padding: 12px - $sizeIndex;
  710. }
  711. }
  712. .vxe-input--time-picker-title {
  713. height: 31px - $sizeIndex;
  714. line-height: 31px - $sizeIndex;
  715. padding: 0 12px - $sizeIndex;
  716. }
  717. .vxe-input--date-picker-label,
  718. .vxe-input--date-picker-btn {
  719. height: 31px - $sizeIndex;
  720. line-height: 31px - $sizeIndex;
  721. }
  722. .vxe-input--date-picker-btn-wrapper {
  723. .vxe-input--date-picker-btn {
  724. width: 31px - $sizeIndex;
  725. margin-left: 9px - $sizeIndex;
  726. }
  727. }
  728. .vxe-input--date-picker-type-wrapper {
  729. .vxe-input--date-picker-label,
  730. .vxe-input--date-picker-btn {
  731. padding: 0 10px - $sizeIndex;
  732. }
  733. }
  734. .vxe-input--time-picker-header,
  735. .vxe-input--date-picker-header {
  736. $paddingBottomList: 8px, 7px, 6px, 5px;
  737. padding-bottom: nth($paddingBottomList, $sizeIndex);
  738. }
  739. .vxe-input--date-picker-body table,
  740. .vxe-input--time-picker-body {
  741. height: nth($timeWeekRowHeightList, $sizeIndex) * 6 + nth($titleRowHeightList, $sizeIndex);
  742. }
  743. .vxe-input--time-picker-body {
  744. $ulWidthList: 48px, 48px, 44px, 42px;
  745. & > ul {
  746. width: nth($ulWidthList, $sizeIndex);
  747. &:before,
  748. &:after {
  749. $heightList: 120px, 120px, 110px, 100px;
  750. height: nth($heightList, $sizeIndex);
  751. }
  752. & > li {
  753. height: 26px;
  754. padding-left: 10px - $sizeIndex;
  755. }
  756. }
  757. .vxe-input--time-picker-minute-list {
  758. left: nth($ulWidthList, $sizeIndex);
  759. }
  760. .vxe-input--time-picker-second-list {
  761. left: nth($ulWidthList, $sizeIndex) * 2;
  762. }
  763. }
  764. .vxe-input--date-day-view,
  765. .vxe-input--date-week-view {
  766. td {
  767. height: nth($timeWeekRowHeightList, $sizeIndex);
  768. }
  769. }
  770. .vxe-input--date-month-view,
  771. .vxe-input--date-year-view {
  772. td {
  773. height: nth($monthYearRowHeightList, $sizeIndex);
  774. }
  775. }
  776. .vxe-input--date-picker-body {
  777. th {
  778. height: nth($titleRowHeightList, $sizeIndex);
  779. }
  780. }
  781. .vxe-input--time-picker-confirm {
  782. height: 31px - $sizeIndex;
  783. padding: 0 10px - $sizeIndex;
  784. }
  785. .vxe-input--date-label {
  786. line-height: nth($fontSizeList, $sizeIndex) + 1;
  787. }
  788. }
  789. .vxe-input--panel {
  790. @include getPanelStyle(1);
  791. &.size--medium {
  792. @include getPanelStyle(2);
  793. }
  794. &.size--small {
  795. @include getPanelStyle(3);
  796. }
  797. &.size--mini {
  798. @include getPanelStyle(4);
  799. }
  800. }