date-range-picker.scss 2.0 KB

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