style.css 2.7 KB

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