calendar.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. .cl-calendar {
  2. &__header {
  3. position: relative;
  4. padding-bottom: 10rpx;
  5. text-align: center;
  6. }
  7. &__title {
  8. font-size: 30rpx;
  9. }
  10. &__close {
  11. position: absolute;
  12. right: 0;
  13. top: 0;
  14. font-size: 36rpx;
  15. }
  16. &__container {
  17. margin-bottom: 20rpx;
  18. }
  19. &__selector {
  20. display: flex;
  21. align-items: center;
  22. justify-content: center;
  23. height: 80rpx;
  24. &-icon {
  25. position: relative;
  26. top: 1rpx;
  27. }
  28. &-date {
  29. font-size: 28rpx;
  30. margin: 0 30rpx;
  31. width: 200rpx;
  32. text-align: center;
  33. }
  34. }
  35. &__table {
  36. display: flex;
  37. flex-direction: column;
  38. }
  39. &__tr {
  40. display: flex;
  41. }
  42. &__td {
  43. display: flex;
  44. flex-direction: column;
  45. align-items: center;
  46. justify-content: center;
  47. flex: 1;
  48. padding: 16rpx 0;
  49. margin: 6rpx 0;
  50. position: relative;
  51. &.is-disabled {
  52. color: #ccc;
  53. background-color: rgba(249, 249, 249, 0.3);
  54. .cl-calendar__remark {
  55. color: #ccc;
  56. }
  57. }
  58. &.is-through {
  59. background-color: #f2f6fc;
  60. &.is-start {
  61. border-radius: 10rpx 0 0 10rpx;
  62. }
  63. &.is-end {
  64. border-radius: 0 10rpx 10rpx 0;
  65. }
  66. }
  67. &.is-start,
  68. &.is-end {
  69. .cl-calendar__value {
  70. background-color: $cl-color-primary;
  71. color: #fff;
  72. }
  73. }
  74. }
  75. &__value {
  76. display: flex;
  77. justify-content: center;
  78. align-items: center;
  79. height: 60rpx;
  80. width: 60rpx;
  81. border-radius: 100rpx;
  82. font-size: 30rpx;
  83. text-overflow: ellipsis;
  84. white-space: nowrap;
  85. text-align: center;
  86. overflow: hidden;
  87. }
  88. &__dot {
  89. position: absolute;
  90. right: 10rpx;
  91. top: 10rpx;
  92. height: 16rpx;
  93. width: 16rpx;
  94. background-color: transparent;
  95. border-radius: 16rpx;
  96. }
  97. &__remark {
  98. display: inline-block;
  99. width: 100rpx;
  100. font-size: 20rpx;
  101. margin-top: 6rpx;
  102. color: #666;
  103. overflow: hidden;
  104. text-overflow: ellipsis;
  105. white-space: nowrap;
  106. text-align: center;
  107. }
  108. &__today-btn {
  109. position: absolute;
  110. right: 30rpx;
  111. border: 0;
  112. font-size: 22rpx;
  113. padding: 0 10rpx;
  114. height: 40rpx;
  115. line-height: 40rpx;
  116. &::after {
  117. border: 0;
  118. }
  119. }
  120. }