datepicker.css 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. /*----------------------------------------------------------------------------------------
  2. Stylesheet for re-com.date Date Picker variants inline-picker & dropdown-picker
  3. Day8 variation loosely based on:
  4. Copyright 2013 Dan Grossman ( http://www.dangrossman.info )
  5. Licensed under the Apache License v2.0
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Built for http://www.improvely.com
  8. http://eternicode.github.io/bootstrap-datepicker
  9. START OF DATE PICKER SECTION...
  10. ----------------------------------------------------------------------------------------*/
  11. .noselect {
  12. -webkit-user-select: none;
  13. -moz-user-select: none;
  14. -ms-user-select: none;
  15. user-select: none;
  16. }
  17. .datepicker.single .calendar {
  18. float: none;
  19. }
  20. .datepicker .calendar {
  21. display: none;
  22. max-width: 200px;
  23. }
  24. .datepicker .calendar.single .calendar-date {
  25. border: none;
  26. }
  27. .datepicker .calendar th, .datepicker .calendar td {
  28. white-space: nowrap;
  29. text-align: center;
  30. min-width: 32px;
  31. }
  32. .datepicker .calendar-date {
  33. border: 1px solid #ddd;
  34. padding: 4px;
  35. border-radius: 4px;
  36. /* background: #fff; */
  37. }
  38. .datepicker .calendar-time {
  39. text-align: center;
  40. margin: 8px auto 0 auto;
  41. line-height: 30px;
  42. }
  43. .datepicker {
  44. position: absolute;
  45. top: 100px;
  46. left: 20px;
  47. padding: 10px;
  48. margin-top: 1px;
  49. -webkit-border-radius: 4px;
  50. -moz-border-radius: 4px;
  51. line-height: 16px;
  52. border-radius: 4px;
  53. background: #efefef;
  54. }
  55. .datepicker table {
  56. width: 100%;
  57. margin: 0;
  58. border-collapse: separate;
  59. border-spacing: 0;
  60. background: transparent;
  61. border: none;
  62. }
  63. .datepicker td, .datepicker th {
  64. text-align: center;
  65. width: 27px;
  66. height: 26px;
  67. max-width: 27px;
  68. max-height: 26px;
  69. min-width: 27px;
  70. min-height: 26px;
  71. padding: 4px;
  72. cursor: default;
  73. white-space: nowrap;
  74. font-weight: normal;
  75. }
  76. .datepicker td.off {
  77. padding: 4px;
  78. color: #999;
  79. }
  80. .datepicker td.disabled {
  81. color: #999;
  82. }
  83. .datepicker th.disabled {
  84. color: #999;
  85. }
  86. .datepicker td.available:hover, .datepicker th.available:hover {
  87. background: #357ebd;
  88. cursor: pointer;
  89. color: #FFF;
  90. border-radius: 4px;
  91. }
  92. .datepicker td.in-range {
  93. background: #ebf4f8;
  94. -webkit-border-radius: 0;
  95. -moz-border-radius: 0;
  96. border-radius: 0;
  97. }
  98. .datepicker td.start-date {
  99. -webkit-border-radius: 4px 0 0 4px;
  100. -moz-border-radius: 4px 0 0 4px;
  101. border-radius: 4px 0 0 4px;
  102. }
  103. .datepicker td.end-date {
  104. -webkit-border-radius: 0 4px 4px 0;
  105. -moz-border-radius: 0 4px 4px 0;
  106. border-radius: 0 4px 4px 0;
  107. }
  108. .datepicker td.start-date.end-date {
  109. -webkit-border-radius: 4px;
  110. -moz-border-radius: 4px;
  111. border-radius: 4px;
  112. }
  113. .datepicker td.active, .datepicker td.active:hover {
  114. background-color: #357ebd;
  115. border-color: #3071a9;
  116. color: #fff;
  117. }
  118. /* Introduced by Day8 from http://eternicode.github.io/bootstrap-datepicker */
  119. .datepicker td.today, .datepicker td.today:hover {
  120. background-color: #ffcd70;
  121. border-color: #f59e00;
  122. border-radius: 18px;
  123. color: #fff;
  124. }
  125. .datepicker th.day-enabled, label.day-enabled {
  126. font-weight: normal;
  127. font-size: 10px;
  128. color: #333;
  129. }
  130. .datepicker th.selectable {
  131. font-weight: normal;
  132. color: #357ebd;
  133. }
  134. .datepicker th.day-disabled {
  135. font-weight: normal;
  136. font-size: 10px;
  137. color: #999;
  138. }
  139. .datepicker td.week, .datepicker th.week {
  140. font-size: 80%;
  141. color: #ccc;
  142. }
  143. .datepicker th.month {
  144. width: auto;
  145. font-size: 14px;
  146. color: var(--ls-title-text-color);
  147. }
  148. .dropdown-button {
  149. cursor: pointer;
  150. height: 32px;
  151. font-size: 13px;
  152. font-weight: normal;
  153. }
  154. .dropdown-button.activator {
  155. width: 40px;
  156. color: #777;
  157. /* background-color: #F7F7F7 */
  158. }
  159. .table-condensed > thead > tr > th,
  160. .table-condensed > tbody > tr > th,
  161. .table-condensed > tfoot > tr > th,
  162. .table-condensed > thead > tr > td,
  163. .table-condensed > tbody > tr > td,
  164. .table-condensed > tfoot > tr > td {
  165. padding: 5px;
  166. }
  167. .dark-theme .datepicker {
  168. background: var(--ls-secondary-background-color);
  169. }
  170. .dark-theme .datepicker th.day-disabled, .dark-theme .datepicker th.disabled, .dark-theme .datepicker td.disabled, .dark-theme .datepicker td.off {
  171. color: #666;
  172. }
  173. .dark-theme .datepicker th.day-enabled, .dark-theme label.day-enabled {
  174. color: currentColor;
  175. }
  176. .dark-theme .datepicker td.active, .dark-theme .datepicker td.active:hover {
  177. background-color: var(--ls-block-properties-background-color);
  178. border-color: var(--ls-block-properties-background-color);
  179. }
  180. .dark-theme .datepicker th.selectable {
  181. color: var(--ls-primary-text-color);
  182. }
  183. .dark-theme .datepicker td.available:hover, .dark-theme .datepicker th.available:hover {
  184. background: var(--ls-block-properties-background-color);
  185. }
  186. .datepicker tr:nth-child(odd), .datepicker tr:nth-child(even), .dark-theme .datepicker tr:nth-child(odd), .dark-theme .datepicker tr:nth-child(even) {
  187. background: transparent;
  188. }
  189. .datepicker th, .datepicker tr, .datepicker td, .dark-theme .datepicker th, .dark-theme .datepicker tr, .dark-theme .datepicker td {
  190. border-bottom: none;
  191. }
  192. /*----------------------------------------------------------------------------------------
  193. END OF DATE PICKER SECTION...
  194. ----------------------------------------------------------------------------------------*/