datepicker.less 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. .datepicker {
  2. &-calendar {
  3. padding: 16px 16px 0;
  4. min-height: 262px;
  5. button {
  6. border: 0;
  7. padding: 0;
  8. background-color: transparent;
  9. }
  10. &-days {
  11. height: 182px;
  12. margin: 10px 0 12px;
  13. width: 100%;
  14. thead {
  15. border-bottom: 1px solid #cccaca;
  16. }
  17. /* for spacing */
  18. tbody:before {
  19. color: transparent;
  20. content: "\200C";
  21. display: block;
  22. line-height: 3px;
  23. visibility: hidden;
  24. }
  25. td, th {
  26. font-size: 14px;
  27. height: 32px;
  28. text-align: center;
  29. vertical-align: middle;
  30. width: 14.29%;
  31. }
  32. td {
  33. b, button {
  34. color: #231f20;
  35. display: inline-block;
  36. font-weight: normal;
  37. height: 30px;
  38. text-decoration: none;
  39. width: 30px;
  40. }
  41. b {
  42. line-height: 30px;
  43. }
  44. span {
  45. display: block;
  46. &:hover {
  47. background: @selectableHover;
  48. text-decoration: none;
  49. }
  50. }
  51. &.current-day {
  52. b, button {
  53. border: 1px solid #333;
  54. }
  55. }
  56. &.last-month, &.next-month {
  57. background: #e3e2e1;
  58. }
  59. &.past {
  60. b, button {
  61. color: #8d8787;
  62. }
  63. }
  64. &.restricted {
  65. b, button {
  66. cursor: no-drop;
  67. position: relative;
  68. &:before {
  69. border-top: 1px solid #a94442;
  70. bottom: 0;
  71. content: " ";
  72. display: block;
  73. left: 5px;
  74. position: absolute;
  75. right: 5px;
  76. top: 50%;
  77. }
  78. &:hover {
  79. background: none;
  80. }
  81. }
  82. }
  83. &.selected {
  84. span {
  85. background: @selected;
  86. &:hover {
  87. background: @selectedHover;
  88. }
  89. }
  90. b, button {
  91. color: #8d8787;
  92. }
  93. &.current-day {
  94. box-shadow: 0 0 0 1px #fff offset;
  95. span {
  96. &:hover {
  97. b, button {
  98. border-color: #0f5f9f;
  99. }
  100. }
  101. }
  102. }
  103. }
  104. }
  105. th {
  106. font-weight: bold;
  107. height: 22px;
  108. vertical-align: top;
  109. }
  110. }
  111. &-header {
  112. .clearfix;
  113. button {
  114. border: 0;
  115. padding: 0;
  116. background-color: transparent;
  117. }
  118. .title {
  119. margin: 0 auto;
  120. text-align: center;
  121. display: block;
  122. width: 174px;
  123. color: #4d4d4f;
  124. font-size: 20px;
  125. line-height: 30px;
  126. text-decoration: underline;
  127. vertical-align: middle;
  128. &:hover {
  129. color: #1d75bb;
  130. text-decoration: underline;
  131. }
  132. &.disabled {
  133. cursor: default;
  134. pointer-events: none;
  135. text-decoration: none;
  136. }
  137. .month {
  138. display: inline;
  139. margin: 0;
  140. padding: 0;
  141. span {
  142. display: none;
  143. &.current {
  144. display: inline;
  145. }
  146. }
  147. }
  148. }
  149. .next, .prev {
  150. background: #666669;
  151. background-clip: padding-box;
  152. border-radius: 30px;
  153. cursor: pointer;
  154. float: left;
  155. height: 30px;
  156. text-align: center;
  157. width: 30px;
  158. span.glyphicon {
  159. color: #fff;
  160. font-size: 16px;
  161. line-height: 30px;
  162. }
  163. &:hover {
  164. background: #1d75bb;
  165. }
  166. }
  167. .next {
  168. float: right;
  169. span.glyphicon {
  170. line-height: 28px;
  171. }
  172. }
  173. }
  174. &-footer {
  175. background: #e3e2e1;
  176. background-clip: padding-box;
  177. border-radius: 0 0 4px 4px;
  178. border-top: 1px solid #cccaca;
  179. height: 30px;
  180. margin: 0 -16px;
  181. padding: 4px 14px;
  182. .datepicker-today {
  183. color: #231f20;
  184. font-size: 14px;
  185. text-decoration: underline;
  186. &:hover {
  187. color: #1b75bb;
  188. text-decoration: underline;
  189. }
  190. &.disabled {
  191. color: #8b8c8e;
  192. cursor: default;
  193. pointer-events: none;
  194. &:hover {
  195. color: #8b8c8e
  196. }
  197. }
  198. }
  199. }
  200. }
  201. &-calendar-wrapper {
  202. border: 1px solid #6e6f71;
  203. min-height: 20px;
  204. padding: 0;
  205. width: 300px;
  206. }
  207. &-wheels {
  208. display: none;
  209. ul button {
  210. border: 0;
  211. padding: 0;
  212. background-color: transparent;
  213. }
  214. &-footer {
  215. background: #e3e2e1;
  216. border-radius: 0 0 4px 4px;
  217. border-top: 1px solid #cccaca;
  218. clear: both;
  219. .datepicker-wheels-back {
  220. display: block;
  221. color: #4d4d4f;
  222. float: left;
  223. line-height: 22px;
  224. border: 0;
  225. background-color: transparent;
  226. &:hover {
  227. color: #1d75bb;
  228. }
  229. }
  230. .datepicker-wheels-select {
  231. float: right;
  232. background-color: transparent;
  233. color: @blue;
  234. &:hover {
  235. color: #1d75bb;
  236. }
  237. }
  238. }
  239. &-month, &-year {
  240. float: left;
  241. width: 50%;
  242. ul {
  243. height: 217px;
  244. list-style-type: none;
  245. margin: 0;
  246. overflow: auto;
  247. padding: 0;
  248. text-align: center;
  249. li {
  250. margin: 4px 0;
  251. button {
  252. display: block;
  253. width: 100%;
  254. text-align: center;
  255. color: #414041;
  256. display: block;
  257. font-size: 16px;
  258. line-height: 24px;
  259. text-decoration: none;
  260. &:hover {
  261. background: #aee0f8;
  262. text-decoration: none;
  263. }
  264. }
  265. &.selected {
  266. button {
  267. background: #1d75bb;
  268. color: #fff;
  269. &:hover {
  270. background: #0f5f9f;
  271. }
  272. }
  273. }
  274. }
  275. }
  276. .header {
  277. background: #e3e2e1;
  278. background-clip: padding-box;
  279. border-bottom: 1px solid #cccaca;
  280. border-radius: 4px 0 0 0;
  281. color: #4d4d4f;
  282. font-size: 20px;
  283. font-weight: bold;
  284. line-height: 30px;
  285. margin-top: 0;
  286. margin-bottom: 0;
  287. text-align: center;
  288. }
  289. &.full {
  290. border-left: 0;
  291. width: 100%;
  292. .header {
  293. border-radius: 4px 4px 0 0;
  294. }
  295. }
  296. }
  297. &-year {
  298. border-left: 1px solid #cccaca;
  299. float: right;
  300. .header {
  301. border-radius: 0 4px 0 0;
  302. }
  303. }
  304. }
  305. input {
  306. &::-ms-clear {
  307. display:none;
  308. }
  309. }
  310. }