style.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. /* calendar root element */
  2. #calroot {
  3. margin-top:-1px;
  4. width:212px;
  5. background-color:#fff;
  6. font-size:12px;
  7. z-index:999999;
  8. border-radius:3px;
  9. box-shadow: 0 0 5px rgba(66,67,65,0.6);
  10. -webkit-box-sizing: content-box;
  11. -moz-box-sizing: content-box;
  12. box-sizing: content-box;
  13. }
  14. #calbody{
  15. border:1px solid #ccc;
  16. border-top:0 none;
  17. border-bottom-right-radius:3px;
  18. border-bottom-left-radius:3px;
  19. }
  20. /*bg*/
  21. #calhead,
  22. #calnext,
  23. #calprev{
  24. background:url(bg.png);
  25. }
  26. /* head. contains title, prev/next month controls and possible month/year selectors */
  27. #calhead{
  28. background:#306ea6 ;
  29. background-position:0 -40px;
  30. padding:5px 6px;
  31. height:23px;
  32. border-top-right-radius:3px;
  33. border-top-left-radius:3px;
  34. -webkit-box-sizing: content-box;
  35. -moz-box-sizing: content-box;
  36. box-sizing: content-box;
  37. }
  38. #calhead select{
  39. padding:0;
  40. border:0px solid #4d82b3;
  41. line-height:20px;
  42. height:20px;
  43. font-family:Simsun !important;
  44. font-size:12px !important;
  45. margin:0 2px;
  46. }
  47. #caltitle {
  48. color:#333;
  49. float:left;
  50. text-align:center;
  51. width:155px;
  52. line-height:20px;
  53. }
  54. #caltitle select{
  55. width:auto;
  56. }
  57. #calnext, #calprev {
  58. display:block;
  59. width:20px;
  60. height:20px;
  61. background-position:5px -17px;
  62. float:left;
  63. cursor:pointer;
  64. margin-top:2px;
  65. }
  66. #calnext {
  67. background-position:5px 3px;
  68. float:right;
  69. }
  70. #calprev.caldisabled, #calnext.caldisabled {
  71. visibility:hidden;
  72. }
  73. /* year/month selector */
  74. #caltitle select {
  75. font-size:10px;
  76. }
  77. /* names of the days */
  78. #caldays {
  79. height:27px;
  80. line-height:27px;
  81. border-bottom:1px solid #ddd;
  82. }
  83. #caldays span {
  84. display:block;
  85. float:left;
  86. width:28px;
  87. text-align:center;
  88. }
  89. /* container for weeks */
  90. #calweeks {
  91. background-color:#fff;
  92. }
  93. /* single week */
  94. .calweek {
  95. clear:left;
  96. height:26px;
  97. border-bottom:1px solid #eaeaea;
  98. margin-left:-1px;
  99. }
  100. /* single day */
  101. .calweek a {
  102. display:block;
  103. float:left;
  104. width:29px;
  105. height:26px;
  106. text-decoration:none;
  107. text-align:center;
  108. line-height:26px;
  109. color:#666;
  110. border-left:1px solid #eaeaea;
  111. }
  112. /* different states */
  113. .calweek a:hover, .calfocus {
  114. background-color:#ddd;
  115. }
  116. /* sunday */
  117. a.calsun {
  118. color:red;
  119. }
  120. /* offmonth day */
  121. a.caloff {
  122. color:#ccc;
  123. }
  124. a.caloff:hover {
  125. background-color:rgb(245, 245, 250);
  126. }
  127. /* unselecteble day */
  128. a.caldisabled {
  129. background-color:#efefef !important;
  130. color:#ccc !important;
  131. cursor:default;
  132. }
  133. /* current day */
  134. #calcurrent {
  135. background-color:#1b5e9c;
  136. color:#fff;
  137. }
  138. /* today */
  139. #caltoday {
  140. background-color:#333;
  141. color:#fff;
  142. }
  143. .caltime{
  144. padding:5px;
  145. }
  146. .caltime .input{
  147. width:40px;
  148. margin-right:5px;
  149. padding:2px 3px;
  150. }
  151. .caltime span{
  152. margin-right:5px;
  153. }
  154. .caltime .btn{
  155. padding: 4px 10px;
  156. float: right !important;
  157. background:#306ea6;
  158. }
  159. #calroot select:focus{
  160. outline: none;
  161. }