56905d902fac06012b33aae32bec12558666d3a6ce6cc3ef874ecc58fb14c9eba0503f3b975974db297d866fbe2ef156e9ca2e57b47e08696166e8a7564ef7 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. @use '../mixins/mixins' as *;
  2. @use '../common/var' as *;
  3. @use './utils.scss' as *;
  4. @include b(picker-panel) {
  5. color: getCssVar('text-color', 'regular');
  6. background: getCssVar('bg-color', 'overlay');
  7. border-radius: getCssVarWithDefault(
  8. ('popper', 'border-radius'),
  9. getCssVar('border-radius-base')
  10. );
  11. line-height: 30px;
  12. .#{$namespace}-time-panel {
  13. margin: 5px 0;
  14. border: solid 1px getCssVar('datepicker-border-color');
  15. background-color: getCssVar('bg-color', 'overlay');
  16. box-shadow: getCssVar('box-shadow-light');
  17. }
  18. @include e((body, body-wrapper)) {
  19. &::after {
  20. content: '';
  21. display: table;
  22. clear: both;
  23. }
  24. }
  25. @include e(content) {
  26. position: relative;
  27. margin: 15px;
  28. }
  29. @include e(footer) {
  30. border-top: 1px solid getCssVar('datepicker-inner-border-color');
  31. padding: 4px 12px;
  32. text-align: right;
  33. background-color: getCssVar('bg-color', 'overlay');
  34. position: relative;
  35. font-size: 0;
  36. }
  37. @include e(shortcut) {
  38. display: block;
  39. width: 100%;
  40. border: 0;
  41. background-color: transparent;
  42. line-height: 28px;
  43. font-size: 14px;
  44. color: getCssVar('datepicker-text-color');
  45. padding-left: 12px;
  46. text-align: left;
  47. outline: none;
  48. cursor: pointer;
  49. &:hover {
  50. color: getCssVar('datepicker-hover-text-color');
  51. }
  52. &.active {
  53. background-color: #e6f1fe;
  54. color: getCssVar('datepicker-active-color');
  55. }
  56. }
  57. @include e(btn) {
  58. border: 1px solid getCssVar('fill-color', 'darker');
  59. color: getCssVar('text-color', 'primary');
  60. line-height: 24px;
  61. border-radius: 2px;
  62. padding: 0 20px;
  63. cursor: pointer;
  64. background-color: transparent;
  65. outline: none;
  66. font-size: 12px;
  67. &[disabled] {
  68. color: getCssVar('text-color', 'disabled');
  69. cursor: not-allowed;
  70. }
  71. }
  72. @include e(icon-btn) {
  73. font-size: 12px;
  74. color: getCssVar('datepicker-icon-color');
  75. border: 0;
  76. background: transparent;
  77. cursor: pointer;
  78. outline: none;
  79. margin-top: 8px;
  80. &:hover {
  81. color: getCssVar('datepicker-hover-text-color');
  82. }
  83. &:focus-visible {
  84. color: getCssVar('datepicker-hover-text-color');
  85. }
  86. @include when(disabled) {
  87. @include disable;
  88. }
  89. & .#{$namespace}-icon {
  90. cursor: pointer;
  91. font-size: inherit;
  92. }
  93. }
  94. @include e(link-btn) {
  95. vertical-align: middle;
  96. }
  97. @include when(disabled) {
  98. @include e(prev-btn) {
  99. @include disable;
  100. }
  101. @include e(next-btn) {
  102. @include disable;
  103. }
  104. @include e(icon-btn) {
  105. @include disable;
  106. }
  107. @include e(shortcut) {
  108. @include disable;
  109. }
  110. }
  111. }
  112. .#{$namespace}-picker-panel *[slot='sidebar'],
  113. .#{$namespace}-picker-panel__sidebar {
  114. position: absolute;
  115. top: 0;
  116. bottom: 0;
  117. width: 110px;
  118. border-right: 1px solid getCssVar('datepicker-inner-border-color');
  119. box-sizing: border-box;
  120. padding-top: 6px;
  121. overflow: auto;
  122. }
  123. .#{$namespace}-picker-panel
  124. *[slot='sidebar']
  125. + .#{$namespace}-picker-panel__body,
  126. .#{$namespace}-picker-panel__sidebar + .#{$namespace}-picker-panel__body {
  127. margin-left: 110px;
  128. }