Brak opisu

simpleCalendar.css 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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. height: calc(100% - 35px);
  30. clear: both;
  31. box-shadow: 2px 4px 5px #bdbdbd;
  32. }
  33. .sc-week {
  34. height: 12%;
  35. font-weight: 400;
  36. font-size: 20px;
  37. color: #4A4A4A;
  38. margin-right: -8px;
  39. }
  40. .sc-days {
  41. height: 88%;
  42. margin-right: -8px;
  43. }
  44. .sc-item {
  45. position: relative;
  46. height: 20%;
  47. height: calc(20% + 1px);
  48. float: left;
  49. font-weight: 600;
  50. color: #565555;
  51. width: 14.285%;
  52. padding-top: 10px;
  53. background-color: #ffffff;
  54. border-width: 1px;
  55. border-color: #F1EBE4;
  56. border-style: solid;
  57. box-sizing: border-box;
  58. margin-top: -1px;
  59. margin-left: -1px;
  60. cursor: pointer;
  61. }
  62. .item-nolunar {
  63. padding-top: 20px;
  64. }
  65. .sc-item:nth-child(7n) .day,
  66. .sc-item:nth-child(7n+6) .day {
  67. /* color: rgba(224, 8, 8, 0.74); */
  68. color: rgba(225, 38, 38, 0.74);
  69. }
  70. .sc-mark {
  71. /* background-color: #7cc29e;
  72. color: #FFFFFF; */
  73. }
  74. .sc-mark:before {
  75. /* content: '班'; */
  76. content: '\73ed';
  77. display: block;
  78. position: absolute;
  79. right: 0;
  80. font-size: 0.7em;
  81. width: 1.2em;
  82. font-weight: 400;
  83. color: #5296eb;
  84. /* color: white;
  85. background-color: #E00808; */
  86. margin-top: -10px;
  87. }
  88. .sc-vocation {
  89. background-color: #FFEBEC;
  90. }
  91. .sc-vocation:before {
  92. /* content: '休'; */
  93. content: '\4f11';
  94. display: block;
  95. position: absolute;
  96. font-size: 0.7em;
  97. width: 1.2em;
  98. font-weight: 100;
  99. color: white;
  100. background-color: #E00808;
  101. margin-top: -10px;
  102. }
  103. .sc-othermenth {
  104. color: #C1C0C0 !important;
  105. }
  106. .sc-othermenth.sc-mark:before {
  107. color: #C1C1C1;
  108. }
  109. .sc-othermenth .day,
  110. .sc-othermenth .lunar-day {
  111. color: #C1C0C0 !important;
  112. }
  113. .sc-today {
  114. background-color: #fbed9d;
  115. /* color: white; */
  116. border: 1px solid transparent;
  117. }
  118. .sc-active-day,
  119. .sc-selected {
  120. border-color: #5296eb;
  121. z-index: 1;
  122. }
  123. .sc-item .day {
  124. font-size: 1.5em;
  125. }
  126. .sc-today .day {
  127. /* color: white !important; */
  128. }
  129. .sc-item .lunar-day {
  130. font-size: 10px;
  131. font-weight: normal;
  132. overflow: hidden;
  133. text-overflow: ellipsis;
  134. }
  135. .sc-festival .lunar-day {
  136. /* color: #E00808; */
  137. color: #f15b5b;
  138. }
  139. /*.sc-item:last-child, .sc-item:nth-child(7n) {
  140. border-width: 0 1px 1px 1px;
  141. }*/
  142. .sc-week-item {
  143. height: 100%;
  144. padding-top: 2%;
  145. float: left;
  146. width: 14.285%;
  147. background-color: #FBEC9C;
  148. border-width: 1px;
  149. border-color: #ECE3B1;
  150. margin-left: -1px;
  151. border-style: solid;
  152. box-sizing: border-box;
  153. overflow: hidden;
  154. text-overflow: ellipsis;
  155. }
  156. .sc-item-small {
  157. font-size: 10px !important;
  158. }
  159. .sc-week-item:last-child {
  160. border-width: 1px 1px 1px 1px;
  161. }
  162. .sc-week-item:nth-child(7n),
  163. .sc-week-item:nth-child(7n+6) {
  164. color: rgba(224, 8, 8, 0.74) !important;
  165. }
  166. .sc-actions {
  167. float: left;
  168. width: 25%;
  169. padding: 5px;
  170. height: 100%;
  171. box-sizing: border-box;
  172. }
  173. .sc-actions:last-child {
  174. float: right;
  175. }
  176. .sc-actions-big {
  177. width: 50%;
  178. }
  179. @media screen and (max-width : 500px) {
  180. .sc-actions {
  181. width: 50%;
  182. }
  183. }
  184. .sc-header select {
  185. border-color: rgba(0, 0, 0, 0);
  186. padding: 0.2em 2em;
  187. -webkit-appearance: none;
  188. -moz-appearance: none;
  189. appearance: none;
  190. font-family: "Microsoft Yahei";
  191. color: #606060;
  192. font-size: 13px;
  193. }
  194. .sc-header input {
  195. border-color: rgba(0, 0, 0, 0);
  196. padding: 0.2em;
  197. -webkit-appearance: none;
  198. -moz-appearance: none;
  199. appearance: none;
  200. font-family: "Microsoft Yahei";
  201. color: #606060;
  202. }
  203. .sc-actions div {
  204. display: inline-block;
  205. /*border: 1px solid #ccc;*/
  206. vertical-align: bottom;
  207. width: 20px;
  208. padding-bottom: 5px;
  209. font-size: 1.5em;
  210. line-height: 0.9em;
  211. cursor: pointer;
  212. }
  213. .sc-return-today {
  214. display: block;
  215. background-color: #F5F5F9;
  216. border-radius: 2px;
  217. /* border: 1px solid #ccc; */
  218. width: 60px;
  219. font-size: 0.8em;
  220. padding: 0.3em;
  221. margin: auto;
  222. cursor: pointer;
  223. }
  224. .sc-time {
  225. display: block;
  226. margin-top: 3px;
  227. font-size: 0.8em;
  228. }