datepicker.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*
  2. Datepicker for Bootstrap
  3. Copyright 2012 Stefan Petre
  4. Licensed under the Apache License v2.0
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. */
  7. .datepicker {
  8. top: 0;
  9. left: 0;
  10. padding: 4px;
  11. margin-top: 1px; /*.dow { border-top: 1px solid #ddd !important; }*/
  12. }
  13. .datepicker:before {
  14. content: '';
  15. display: inline-block;
  16. position: absolute;
  17. top: -7px;
  18. left: 6px;
  19. }
  20. .datepicker:after {
  21. content: '';
  22. display: inline-block;
  23. }
  24. .datepicker > div {
  25. display: none;
  26. }
  27. .datepicker table {
  28. width: 100%;
  29. margin: 0;
  30. }
  31. .datepicker td, .datepicker th {
  32. text-align: center;
  33. width: 20px;
  34. height: 20px;
  35. }
  36. .datepicker td.day:hover {
  37. background: #eeeeee;
  38. cursor: pointer;
  39. }
  40. .datepicker td.old, .datepicker td.new {
  41. color: #999999;
  42. }
  43. .datepicker td.active, .datepicker td.active:hover {
  44. background: #49cced;
  45. border-color: #0044cc #0044cc #002a80;
  46. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  47. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  48. color: #fff;
  49. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  50. }
  51. .datepicker td.active:hover, .datepicker td.active:hover:hover, .datepicker td.active:active, .datepicker td.active:hover:active, .datepicker td.active.active, .datepicker td.active:hover.active, .datepicker td.active.disabled, .datepicker td.active:hover.disabled, .datepicker td.active[disabled], .datepicker td.active:hover[disabled] {
  52. background-color: #49cced;
  53. }
  54. .datepicker td.active:active, .datepicker td.active:hover:active, .datepicker td.active.active, .datepicker td.active:hover.active {
  55. background-color: #003399 \9;
  56. }
  57. .datepicker td span {
  58. display: block;
  59. width: 47px;
  60. height: 54px;
  61. line-height: 54px;
  62. float: left;
  63. margin: 2px;
  64. cursor: pointer;
  65. -webkit-border-radius: 4px;
  66. -moz-border-radius: 4px;
  67. border-radius: 4px;
  68. }
  69. .datepicker td span:hover {
  70. background: #eeeeee;
  71. }
  72. .datepicker td span.active {
  73. background-color: #006dcc;
  74. background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  75. background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  76. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  77. background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  78. background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  79. background-image: linear-gradient(top, #0088cc, #0044cc);
  80. background-repeat: repeat-x;
  81. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  82. border-color: #0044cc #0044cc #002a80;
  83. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  84. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  85. color: #fff;
  86. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  87. }
  88. .datepicker td span.active:hover, .datepicker td span.active:active, .datepicker td span.active.active, .datepicker td span.active.disabled, .datepicker td span.active[disabled] {
  89. background-color: #0044cc;
  90. }
  91. .datepicker td span.active:active, .datepicker td span.active.active {
  92. background-color: #003399 \9;
  93. }
  94. .datepicker td span.old {
  95. color: #999999;
  96. }
  97. .datepicker th.switch {
  98. width: 145px;
  99. }
  100. .datepicker th.next, .datepicker th.prev {
  101. font-size: 19.5px;
  102. }
  103. .datepicker thead tr:first-child th {
  104. cursor: pointer;
  105. }
  106. .datepicker thead tr:first-child th:hover {
  107. background: #eeeeee;
  108. }
  109. .input-append.date .add-on i, .input-prepend.date .add-on i {
  110. display: block;
  111. cursor: pointer;
  112. width: 16px;
  113. height: 16px;
  114. }