calendar.wxss 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. /* 日历头部 */
  2. .calendar-view {
  3. display: flex;
  4. align-items:flex-end;
  5. text-align: center;
  6. justify-content: space-between;
  7. background: #fff;
  8. border-bottom: 1px solid #ccc;
  9. padding: 20rpx;
  10. margin-bottom: 30rpx;
  11. }
  12. .calendar-view text{
  13. color: #666;
  14. font-size: 28rpx;
  15. }
  16. .calendar-view .gray{
  17. color: #D9DADA;
  18. }
  19. .calendar-view .gray::before{
  20. border-color: #D9DADA !important;
  21. }
  22. .calendar-view .center {
  23. font-size: 36rpx;
  24. color: #ee3a43;
  25. }
  26. .calendar-view .left::before {
  27. content: '';
  28. height: 15rpx;
  29. width: 15rpx;
  30. border-top: 1px solid #666;
  31. border-left:1px solid #666;
  32. display: inline-block;
  33. transform: rotate(-45deg);
  34. }
  35. .calendar-view .right::after {
  36. content: '';
  37. height: 15rpx;
  38. width: 15rpx;
  39. border-top: 1px solid #666;
  40. border-right:1px solid #666;
  41. display: inline-block;
  42. transform: rotate(45deg);
  43. }
  44. .current-date{
  45. font-size: 36rpx;
  46. font-weight: 700;
  47. padding: 0 20rpx;
  48. margin: 20rpx 0 10rpx;
  49. background: #fff;
  50. }
  51. .current-date text{
  52. display: inline-block;
  53. padding: 20rpx 0;
  54. /* border-bottom: 4rpx solid #EE3A43; */
  55. }
  56. .current-date .line{
  57. width: 56rpx;
  58. height: 4rpx;
  59. background: #ee3a43;
  60. }
  61. /* 新版 */
  62. @font-face {
  63. font-family: "iconfont";
  64. src: url('iconfont.eot?t=1596614903470');
  65. /* IE9 */
  66. src: url('iconfont.eot?t=1596614903470#iefix') format('embedded-opentype'),
  67. /* IE6-IE8 */
  68. url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAL8AAsAAAAABxQAAAKvAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDHAqBVIFEATYCJAMQCwoABCAFhG0HQhswBsgekiRFQgQU8AMAmmCIh3/HXu9L8hFVWwXoyALpqqoqwAEfD6g66abEPBux/13TPwBUeZ0lAldI75LS0ctlzLY8NwVk3NQm5Co3lqhaWPE+z+X0pi+Q1bez3MZatCYtPuoFGAcU4F7UiyIroBPkltpFHBi88q89JtA0p1jEYe/wNMQryKpAPHbYMMT3CooStetCdeZgEd9U1NPX9ADgQf8+/kFlxJNUMrLx5LpHhPaf+GUsavP/JpxJQpHgHq8gYx0oxO1s41yUiMQoTWOibQN1dYmf+Dn0MhYO2zgfttC/PEKSiSrS3QabXjPzE3ON4GdII/FrrEsGhPjr/dYGcOyzM56gg6PM1BXvcbZIxY7zzRyS4znJs/m2VmjuRNq9edF1kcx9FbW85/nRgbXX6s5q/AX+vsGh/kBhUUHAYszwFx4acaAA6l7k9bgjo8Vbue4acDcbCqFqcBru+htf4l/I4EnzzQAa8lT+kNoAyG/TJuTdyDcsG+NB4r05rfm73irgx/jRrw4XMB+gyga24dQGHCqlg8RKyZ3cWuWLEWhFQlMTmOwwFLrCPwH3E+omB/I1sy2yunmysOuoaNlEVd0Omtb0HW8ZYaJEaWDVnoPQd4ek6zuyvkeysE+omPpCVT+i0HQaWRe2LIYjsYsRzImIrEvIIagKZQmeaHoniW1Owqzr0NIsYbqjjCpKy4ftPqIQdsUWfd5WyTlFlKky6nWeI5KkIo2pTiLwUjvnWmNZGZ37UKmgypDoAENgHCFCrJYgDgKVgsrxXOLo+5MImzkSjK3oFuazCEbnmB6pUKocQPZ5FZDuV97RzbOpxHEUQjEqGdLrzCMkEhWizc9zIgRcKfuBmqZRGR1Fod7S5/3yH56AJnJDiRQ5SlRU3yhUlcRoMStek/ASdUgSAAA=') format('woff2'),
  69. url('iconfont.woff?t=1596614903470') format('woff'),
  70. url('iconfont.ttf?t=1596614903470') format('truetype'),
  71. /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
  72. url('iconfont.svg?t=1596614903470#iconfont') format('svg');
  73. /* iOS 4.1- */
  74. }
  75. .iconfont {
  76. font-family: "iconfont" !important;
  77. font-style: normal;
  78. -webkit-font-smoothing: antialiased;
  79. -moz-osx-font-smoothing: grayscale;
  80. line-height: 1;
  81. font-weight: normal;
  82. }
  83. .icon-unfold:before {
  84. content: "\e661";
  85. }
  86. .icon-fold:before {
  87. content: "\e6de";
  88. }
  89. .icon-playfill:before {
  90. content: "\e74f";
  91. }
  92. .flex {
  93. display: flex;
  94. justify-content: space-between;
  95. align-items: center;
  96. }
  97. .direction-column {
  98. flex-direction: column;
  99. }
  100. .flex1 {
  101. flex: 1;
  102. }
  103. .flex-center {
  104. display: flex;
  105. justify-content: center;
  106. align-items: center;
  107. }
  108. .flex-start {
  109. display: flex;
  110. justify-content: flex-start;
  111. align-items: center;
  112. }
  113. .flex-end {
  114. display: flex;
  115. justify-content: flex-end;
  116. align-items: center;
  117. }
  118. .flex-around {
  119. display: flex;
  120. justify-content: space-around;
  121. align-items: center;
  122. }
  123. .flex-wrap {
  124. flex-wrap: wrap;
  125. }
  126. .align-start {
  127. align-items: flex-start;
  128. }
  129. .align-end {
  130. align-items: flex-end;
  131. }
  132. .align-stretch {
  133. align-items: stretch;
  134. }
  135. .calendar {
  136. background-color: #fff;
  137. }
  138. .calendar .title {
  139. font-size: 28rpx;
  140. color: #333;
  141. padding: 20rpx;
  142. line-height: 40rpx;
  143. }
  144. .calendar .title .year-month {
  145. margin-right: 20rpx;
  146. }
  147. .calendar .title .icon {
  148. padding: 0 16rpx;
  149. font-size: 32rpx;
  150. color: #999;
  151. }
  152. .calendar .title .open {
  153. background-color: #f6f6f6;
  154. color: #999;
  155. font-size: 22rpx;
  156. line-height: 36rpx;
  157. border-radius: 18rpx;
  158. padding: 0 14rpx;
  159. }
  160. .calendar .calendar-week {
  161. line-height: 40rpx;
  162. font-size: 28rpx;
  163. color: #999;
  164. }
  165. .calendar .calendar-week .view {
  166. width: 100rpx;
  167. text-align: center;
  168. }
  169. .calendar .calendar-main {
  170. padding: 30rpx 0rpx 0;
  171. transition: height 0.3s;
  172. align-content: flex-start;
  173. overflow: hidden;
  174. }
  175. .calendar .calendar-main .day {
  176. position: relative;
  177. width: calc(100%/7);
  178. color: #666;
  179. text-align: center;
  180. margin-bottom: 20rpx;
  181. }
  182. .calendar .calendar-main .day .bg {
  183. height: 80rpx;
  184. width: 80rpx;
  185. line-height: 80rpx;
  186. font-size: 28rpx;
  187. font-weight: bold;
  188. margin: auto;
  189. position: relative;
  190. }
  191. .calendar .calendar-main .day .selectDate {
  192. border-radius: 50%;
  193. text-align: center;
  194. background: rgba(238,58,67,.1);
  195. border: 1rpx solid #EE3A43;
  196. color: #EE3A43;
  197. margin: 0 auto;
  198. }
  199. .calendar .calendar-main .day .other-month {
  200. color: #D9DADA;
  201. }
  202. .calendar .calendar-main .day .spot {
  203. width: 30rpx;
  204. height: 30rpx;
  205. background-color: #EE3A43;
  206. color: #fff;
  207. line-height: 30rpx;
  208. font-size: 16rpx;
  209. border-radius: 50%;
  210. margin: 6rpx auto 0;
  211. position: absolute;
  212. top: -6px;
  213. right: 0;
  214. border-bottom-left-radius: 0;
  215. }
  216. .monthList-item{
  217. padding: 0 10rpx;
  218. margin-right: 15rpx;
  219. }
  220. .selected-month{
  221. border-bottom: 1rpx solid #EE3A43;
  222. color: #EE3A43;
  223. }
  224. .calendar .calendar-main .day .red{
  225. color: #EE3A43;
  226. }
  227. .gray{
  228. color: #878787;
  229. }