simple-calendar.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. .sc-calendar {
  2. width: 500px;
  3. height: 500px;
  4. text-align: center;
  5. font-family: "Microsoft Yahei";
  6. color: #4A4A4A;
  7. box-shadow: 2px 4px 5px #bdbdbd;
  8. border-width: 1px 0 0 1px;
  9. border-color: #E6E4E0;
  10. border-style: solid;
  11. float: left;
  12. margin-right: 20px;
  13. -moz-user-select: none;
  14. /*火狐*/
  15. -webkit-user-select: none;
  16. /*webkit浏览器*/
  17. -ms-user-select: none;
  18. /*IE10*/
  19. user-select: none;
  20. -webkit-text-size-adjust: none;
  21. font-size: 16px;
  22. }
  23. .sc-header {
  24. height: 35px;
  25. border-bottom: 0;
  26. }
  27. .sc-body {
  28. height: 93%;
  29. clear: both;
  30. box-shadow: 2px 4px 5px #bdbdbd;
  31. }
  32. .sc-week {
  33. height: 12%;
  34. font-weight: 400;
  35. font-size: 20px;
  36. color: #4A4A4A;
  37. }
  38. .sc-days {
  39. height: 88%;
  40. }
  41. .sc-item {
  42. height: 20%;
  43. float: left;
  44. font-weight: 600;
  45. color: #565555;
  46. width: 14.285%;
  47. padding-top: 10px;
  48. background-color: #ffffff;
  49. border-width: 0 0 1px 1px;
  50. border-color: #F1EBE4;
  51. border-style: solid;
  52. box-sizing: border-box;
  53. }
  54. .item-nolunar {
  55. padding-top: 20px;
  56. }
  57. .sc-item:nth-child(7n) .day, .sc-item:nth-child(7n+6) .day {
  58. color: rgba(224, 8, 8, 0.74);
  59. }
  60. .sc-vocation {
  61. background-color: #FFEBEC;
  62. }
  63. .sc-mark{
  64. background-color: #E5FBFA;
  65. }
  66. .sc-vocation:before {
  67. content: '休';
  68. display: block;
  69. position: absolute;
  70. font-size: 0.7em;
  71. width: 1.2em;
  72. font-weight: 100;
  73. color: white;
  74. background-color: #E00808;
  75. margin-top: -10px;
  76. }
  77. .sc-othermenth {
  78. color: #C1C0C0 !important;
  79. }
  80. .sc-othermenth .day, .sc-othermenth .lunar-day {
  81. color: #C1C0C0 !important;
  82. }
  83. .sc-active-day, .sc-selected {
  84. border: 1px solid orange;
  85. }
  86. .sc-today {
  87. background-color: orange;
  88. color: white;
  89. border: 1px solid orange;
  90. }
  91. .sc-item .day {
  92. font-size: 1.5em;
  93. }
  94. .sc-today .day {
  95. color: white !important;
  96. }
  97. .sc-item .lunar-day {
  98. font-size: 10px;
  99. font-weight: normal;
  100. overflow: hidden;
  101. text-overflow: ellipsis;
  102. }
  103. .sc-festival .lunar-day {
  104. color: #E00808;
  105. }
  106. /*.sc-item:last-child, .sc-item:nth-child(7n) {
  107. border-width: 0 1px 1px 1px;
  108. }*/
  109. .sc-week-item {
  110. height: 100%;
  111. padding-top: 2%;
  112. float: left;
  113. width: 14.285%;
  114. background-color: #FBEC9C;
  115. border-width: 1px 0 1px 1px;
  116. border-color: #ECE3B1;
  117. border-style: solid;
  118. box-sizing: border-box;
  119. overflow: hidden;
  120. text-overflow: ellipsis;
  121. }
  122. .sc-item-small{
  123. font-size: 10px !important;
  124. }
  125. .sc-week-item:last-child {
  126. border-width: 1px 1px 1px 1px;
  127. }
  128. .sc-week-item:nth-child(7n), .sc-week-item:nth-child(7n+6) {
  129. color: rgba(224, 8, 8, 0.74)!important;
  130. }
  131. .sc-actions {
  132. float: left;
  133. width: 25%;
  134. padding: 5px;
  135. height: 100%;
  136. box-sizing: border-box;
  137. }
  138. .sc-actions:last-child {
  139. float: right;
  140. }
  141. .sc-actions-big{
  142. width: 50%;
  143. }
  144. @media screen and (max-width : 500px){
  145. .sc-actions{
  146. width: 50%;
  147. }
  148. }
  149. .sc-header select {
  150. border-color: rgba(0, 0, 0, 0);
  151. padding: 0.2em;
  152. -webkit-appearance: none;
  153. -moz-appearance: none;
  154. appearance: none;
  155. font-family: "Microsoft Yahei";
  156. color: #606060;
  157. font-size: 13px ;
  158. }
  159. .sc-header input {
  160. border-color: rgba(0, 0, 0, 0);
  161. padding: 0.2em;
  162. -webkit-appearance: none;
  163. -moz-appearance: none;
  164. appearance: none;
  165. font-family: "Microsoft Yahei";
  166. color: #606060;
  167. }
  168. .sc-actions div {
  169. display: inline-block;
  170. /*border: 1px solid #ccc;*/
  171. vertical-align: bottom;
  172. width: 20px;
  173. padding-bottom: 5px;
  174. font-size: 1.5em;
  175. line-height: 0.9em;
  176. }
  177. .sc-return-today {
  178. display: block;
  179. background-color: #F5F5F9;
  180. border-radius: 2px;
  181. /* border: 1px solid #ccc; */
  182. width: 60px;
  183. font-size: 0.8em;
  184. padding: 0.3em;
  185. margin: auto;
  186. }
  187. .sc-time {
  188. display: block;
  189. margin-top: 3px;
  190. font-size: 0.8em;
  191. }