input.scss 18 KB

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