calendar.wxss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /* pages/account/growthCourse/component/calendar.wxss */
  2. .todayBg {
  3. background: #F9DED6;
  4. border-radius: 10rpx;
  5. }
  6. .clickBg {
  7. background-color: #FFF3F4;
  8. color: #E03D42;
  9. border: 2rpx solid #E03D42;
  10. border-radius: 100%;
  11. }
  12. .tips {
  13. background-color: #E03D42;
  14. display: inline-block;
  15. height: 14px;
  16. line-height: 14px;
  17. min-width: 14px;
  18. color: white;
  19. position: absolute;
  20. right: 0px;
  21. border-radius: 50% 50% 50% 0;
  22. }
  23. /* 例子的样式 */
  24. .container {
  25. font-size: 28rpx;
  26. height: 100%;
  27. min-height: 100%;
  28. display: flex;
  29. flex-direction: column;
  30. }
  31. .week_body {
  32. display: flex;
  33. justify-content: space-between;
  34. align-items: center;
  35. }
  36. .week_date {
  37. width: 100rpx;
  38. height: 80rpx;
  39. font-size: 28rpx;
  40. line-height: 80rpx;
  41. font-weight: bold;
  42. text-align: center;
  43. flex: 1;
  44. }
  45. /* 日期样式 */
  46. .layout_body .date_container {
  47. height: 600rpx;
  48. text-align: center;
  49. position: relative;
  50. font-size: 32rpx;
  51. overflow: hidden;
  52. }
  53. .date_box1 {
  54. width: 100%;
  55. height: 100%;
  56. display: flex;
  57. flex-wrap: wrap;
  58. justify-content: space-around;
  59. align-content: space-around;
  60. }
  61. /* 滑动的动画 */
  62. .animated {
  63. animation-duration: 2s;
  64. animation-fill-mode: both;
  65. }
  66. .grid {
  67. width: 80rpx;
  68. margin: 0 10rpx;
  69. height: 80rpx;
  70. line-height: 80rpx;
  71. float: left;
  72. position: relative;
  73. font-size: 24rpx;
  74. text-align: center;
  75. }
  76. .old {
  77. color: #e9eaec
  78. }
  79. @keyframes fadeOutLeft {
  80. from {
  81. opacity: 1;
  82. }
  83. to {
  84. opacity: 0;
  85. transform: translate3d(-100%, 0, 0);
  86. }
  87. }
  88. .fadeOutLeft {
  89. animation-name: fadeOutLeft;
  90. }
  91. @keyframes fadeOutRight {
  92. from {
  93. opacity: 1;
  94. }
  95. to {
  96. opacity: 0;
  97. transform: translate3d(100%, 0, 0);
  98. }
  99. }
  100. .fadeOutRight {
  101. animation-name: fadeOutRight;
  102. }
  103. /* 模板 */
  104. .recommend {
  105. width: 100%;
  106. background: #F5F5F4;
  107. padding: 30rpx 20rpx;
  108. box-sizing: border-box;
  109. margin-top: 10rpx
  110. }
  111. .recommendtitle {
  112. width: 152rpx;
  113. height: 29rpx;
  114. margin: 68rpx auto 20rpx;
  115. display: block;
  116. background: #fff;
  117. }
  118. .monthTitle {
  119. text-align: center;
  120. font-weight: 600;
  121. font-size: 28rpx;
  122. padding: 10rpx;
  123. }