8679b302fab82d6edc51abc7f25f809849fb6c29f53d83ac04f205a5b43f2f6d435e22b0bb8477917d5c74fdcb4cd0f12c0984b6d71de49faa450d2f46a8d5 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. @use '../mixins/mixins' as *;
  2. @use '../common/var' as *;
  3. @use '../mixins/var' as *;
  4. @use './utils.scss' as *;
  5. @include b(date-range-picker) {
  6. @include set-component-css-var('datepicker', $datepicker);
  7. }
  8. @include b(date-range-picker) {
  9. width: 646px;
  10. &.has-sidebar {
  11. width: 756px;
  12. }
  13. &.has-time .#{$namespace}-picker-panel__body-wrapper {
  14. position: relative;
  15. }
  16. table {
  17. table-layout: fixed;
  18. width: 100%;
  19. }
  20. .#{$namespace}-picker-panel__body {
  21. min-width: 513px;
  22. }
  23. .#{$namespace}-picker-panel__content {
  24. margin: 0;
  25. }
  26. @include e(header) {
  27. position: relative;
  28. text-align: center;
  29. height: 28px;
  30. [class*='arrow-left'] {
  31. float: left;
  32. }
  33. [class*='arrow-right'] {
  34. float: right;
  35. }
  36. div {
  37. font-size: 16px;
  38. font-weight: 500;
  39. margin-right: 50px;
  40. }
  41. }
  42. @include e(header-label) {
  43. font-size: 16px;
  44. font-weight: 500;
  45. padding: 0 5px;
  46. line-height: 22px;
  47. text-align: center;
  48. cursor: pointer;
  49. color: getCssVar('text-color', 'regular');
  50. &:hover {
  51. color: getCssVar('datepicker-hover-text-color');
  52. }
  53. &:focus-visible {
  54. outline: none;
  55. color: getCssVar('datepicker-hover-text-color');
  56. }
  57. &.active {
  58. color: getCssVar('datepicker-active-color');
  59. }
  60. }
  61. @include e(content) {
  62. float: left;
  63. width: 50%;
  64. box-sizing: border-box;
  65. margin: 0;
  66. padding: 16px;
  67. @include when(left) {
  68. border-right: 1px solid getCssVar('datepicker-inner-border-color');
  69. }
  70. .#{$namespace}-date-range-picker__header {
  71. div {
  72. margin-left: 50px;
  73. margin-right: 50px;
  74. }
  75. }
  76. }
  77. @include e(editors-wrap) {
  78. box-sizing: border-box;
  79. display: table-cell;
  80. @include when(right) {
  81. text-align: right;
  82. }
  83. }
  84. @include e(time-header) {
  85. position: relative;
  86. border-bottom: 1px solid getCssVar('datepicker-inner-border-color');
  87. font-size: 12px;
  88. padding: 8px 5px 5px 5px;
  89. display: table;
  90. width: 100%;
  91. box-sizing: border-box;
  92. > .#{$namespace}-icon-arrow-right {
  93. font-size: 20px;
  94. vertical-align: middle;
  95. display: table-cell;
  96. color: getCssVar('datepicker-icon-color');
  97. }
  98. }
  99. @include e(time-picker-wrap) {
  100. position: relative;
  101. display: table-cell;
  102. padding: 0 5px;
  103. .#{$namespace}-picker-panel {
  104. position: absolute;
  105. top: 13px;
  106. right: 0;
  107. z-index: 1;
  108. background: $color-white;
  109. }
  110. .#{$namespace}-time-panel {
  111. position: absolute;
  112. }
  113. }
  114. @include when(disabled) {
  115. @include e(header-label) {
  116. @include disable;
  117. }
  118. }
  119. }