jsCalendar.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. /*
  2. * jsCalendar v1.4.4
  3. *
  4. *
  5. * MIT License
  6. *
  7. * Copyright (c) 2019 Grammatopoulos Athanasios-Vasileios
  8. *
  9. * Permission is hereby granted, free of charge, to any person obtaining a copy
  10. * of this software and associated documentation files (the "Software"), to deal
  11. * in the Software without restriction, including without limitation the rights
  12. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  13. * copies of the Software, and to permit persons to whom the Software is
  14. * furnished to do so, subject to the following conditions:
  15. *
  16. * The above copyright notice and this permission notice shall be included in all
  17. * copies or substantial portions of the Software.
  18. *
  19. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  20. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  21. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  22. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  23. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  24. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  25. * SOFTWARE.
  26. *
  27. */
  28. /* Default Theme */
  29. /* General style */
  30. .jsCalendar * {
  31. margin: 0;
  32. padding: 0;
  33. }
  34. .jsCalendar table,
  35. .jsCalendar table th,
  36. .jsCalendar table td {
  37. border: 0;
  38. }
  39. /* Blue default */
  40. .jsCalendar table {
  41. background-color: #FFFFFF;
  42. border-collapse: collapse;
  43. border-radius: 4px;
  44. box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
  45. color: #000000;
  46. font-family: Tahoma, Geneva, sans-serif;
  47. margin: 5px;
  48. }
  49. .jsCalendar thead .jsCalendar-title {
  50. height: 40px;
  51. line-height: 40px;
  52. }
  53. .jsCalendar thead .jsCalendar-title-left {
  54. float: left;
  55. }
  56. .jsCalendar thead .jsCalendar-title-right {
  57. float: right;
  58. }
  59. .jsCalendar thead .jsCalendar-nav-left,
  60. .jsCalendar thead .jsCalendar-nav-right {
  61. border-radius: 10px;
  62. color: #999999;
  63. cursor: pointer;
  64. font-family: "Courier New", Courier, monospace;
  65. font-size: 12px;
  66. font-weight: bold;
  67. height: 20px;
  68. line-height: 20px;
  69. margin: 10px 8px;
  70. text-align: center;
  71. transition: color 0.2s, background-color 0.2s;
  72. width: 20px;
  73. }
  74. .jsCalendar thead .jsCalendar-nav-left:hover,
  75. .jsCalendar thead .jsCalendar-nav-right:hover {
  76. background-color: #E2E2E2;
  77. color: #000000;
  78. }
  79. .jsCalendar thead .jsCalendar-nav-left {
  80. float: left;
  81. }
  82. .jsCalendar thead .jsCalendar-nav-right {
  83. float: right;
  84. }
  85. .jsCalendar thead .jsCalendar-title-name {
  86. cursor: default;
  87. float: left;
  88. font-size: 18px;
  89. font-weight: lighter;
  90. padding: 0 20px;
  91. }
  92. .jsCalendar thead .jsCalendar-nav-left:after {
  93. content: "<";
  94. }
  95. .jsCalendar thead .jsCalendar-nav-right:after {
  96. content: ">";
  97. }
  98. .jsCalendar thead .jsCalendar-week-days th {
  99. text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
  100. }
  101. .jsCalendar thead .jsCalendar-week-days th,
  102. .jsCalendar tbody td {
  103. border-radius: 18px;
  104. cursor: default;
  105. display: inline-block;
  106. font-size: 12px;
  107. font-weight: lighter;
  108. height: 36px;
  109. line-height: 36px;
  110. margin: 1px 2px;
  111. text-align: center;
  112. transition: color 0.1s, background-color 0.2s;
  113. width: 36px;
  114. }
  115. .jsCalendar tbody td:hover {
  116. background-color: #E6E6E6;
  117. }
  118. .jsCalendar tbody td.jsCalendar-selected {
  119. background-color: #FFFFFF;
  120. border: 2px solid #E6E6E6;
  121. box-sizing: content-box;
  122. height: 32px;
  123. line-height: 32px;
  124. width: 32px;
  125. }
  126. .jsCalendar tbody td.jsCalendar-current {
  127. background-color: #52C9FF;
  128. border-radius: 18px;
  129. color: #FFFFFF;
  130. }
  131. .jsCalendar tbody td.jsCalendar-previous,
  132. .jsCalendar tbody td.jsCalendar-next {
  133. color: #CACACA;
  134. }
  135. .jsCalendar tbody td.jsCalendar-previous:hover,
  136. .jsCalendar tbody td.jsCalendar-next:hover {
  137. color: #FFFFFF;
  138. }
  139. .jsCalendar thead {
  140. display: block;
  141. margin: 4px 4px 0 4px;
  142. }
  143. .jsCalendar tbody {
  144. display: block;
  145. margin: 0 4px 4px 4px;
  146. }
  147. .jsCalendar ::-moz-selection {
  148. background: #83D8FF;
  149. }
  150. .jsCalendar ::selection {
  151. background: #83D8FF;
  152. }
  153. /* Yellow */
  154. .jsCalendar.yellow tbody td.jsCalendar-current {
  155. background-color: #FFE31B;
  156. }
  157. .jsCalendar.yellow ::-moz-selection {
  158. background: #FDE74C;
  159. }
  160. .jsCalendar.yellow ::selection {
  161. background: #FDE74C;
  162. }
  163. /* Orange */
  164. .jsCalendar.orange tbody td.jsCalendar-current {
  165. background-color: #FFB400;
  166. }
  167. .jsCalendar.orange ::-moz-selection {
  168. background: #FFB400;
  169. }
  170. .jsCalendar.orange ::selection {
  171. background: #FFB400;
  172. }
  173. /* Red */
  174. .jsCalendar.red tbody td.jsCalendar-current {
  175. background-color: #F6511D;
  176. }
  177. .jsCalendar.red ::-moz-selection {
  178. background: #F6511D;
  179. }
  180. .jsCalendar.red ::selection {
  181. background: #F6511D;
  182. }
  183. /* Green */
  184. .jsCalendar.green tbody td.jsCalendar-current {
  185. background-color: #7FB800;
  186. }
  187. .jsCalendar.green ::-moz-selection {
  188. background: #7FB800;
  189. }
  190. .jsCalendar.green ::selection {
  191. background: #7FB800;
  192. }
  193. /* Material Theme */
  194. /* Blue default */
  195. .jsCalendar.material-theme table {
  196. border-radius: 0;
  197. }
  198. .jsCalendar.material-theme thead {
  199. background-color: #52C9FF;
  200. color: #FFFFFF;
  201. margin: 0;
  202. padding: 4px 4px 0 4px;
  203. }
  204. .jsCalendar.material-theme thead .jsCalendar-title {
  205. display: block;
  206. position: relative;
  207. }
  208. .jsCalendar.material-theme thead .jsCalendar-title-name {
  209. border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  210. color: #FFFFFF;
  211. font-size: 16px;
  212. left: 15px;
  213. position: absolute;
  214. right: 15px;
  215. text-align: center;
  216. }
  217. .jsCalendar.material-theme thead .jsCalendar-title-left,
  218. .jsCalendar.material-theme thead .jsCalendar-title-right {
  219. position: absolute;
  220. z-index: 1;
  221. }
  222. .jsCalendar.material-theme thead .jsCalendar-nav-left,
  223. .jsCalendar.material-theme thead .jsCalendar-nav-right {
  224. color: #FFFFFF;
  225. }
  226. .jsCalendar.material-theme thead .jsCalendar-nav-left:hover,
  227. .jsCalendar.material-theme thead .jsCalendar-nav-right:hover {
  228. background-color: #03A9F4;
  229. }
  230. .jsCalendar.material-theme thead .jsCalendar-title-right {
  231. right: 0;
  232. }
  233. .jsCalendar.material-theme thead .jsCalendar-week-days th {
  234. font-size: 14px;
  235. text-shadow: none;
  236. }
  237. /* Yellow */
  238. .jsCalendar.material-theme.yellow thead {
  239. background-color: #FFE31B;
  240. }
  241. .jsCalendar.material-theme.yellow thead .jsCalendar-nav-left:hover,
  242. .jsCalendar.material-theme.yellow thead .jsCalendar-nav-right:hover {
  243. background-color: #E2CA23;
  244. }
  245. /* Orange */
  246. .jsCalendar.material-theme.orange thead {
  247. background-color: #FFB400;
  248. }
  249. .jsCalendar.material-theme.orange thead .jsCalendar-nav-left:hover,
  250. .jsCalendar.material-theme.orange thead .jsCalendar-nav-right:hover {
  251. background-color: #D49600;
  252. }
  253. /* Red */
  254. .jsCalendar.material-theme.red thead {
  255. background-color: #F6511D;
  256. }
  257. .jsCalendar.material-theme.red thead .jsCalendar-nav-left:hover,
  258. .jsCalendar.material-theme.red thead .jsCalendar-nav-right:hover {
  259. background-color: #BB3D16;
  260. }
  261. /* Green */
  262. .jsCalendar.material-theme.green thead {
  263. background-color: #7FB800;
  264. }
  265. .jsCalendar.material-theme.green thead .jsCalendar-nav-left:hover,
  266. .jsCalendar.material-theme.green thead .jsCalendar-nav-right:hover {
  267. background-color: #639000;
  268. }
  269. /* Classic Theme */
  270. /* Blue default */
  271. .jsCalendar.classic-theme table,
  272. .jsCalendar.classic-theme thead .jsCalendar-nav-left,
  273. .jsCalendar.classic-theme thead .jsCalendar-nav-right,
  274. .jsCalendar.classic-theme thead .jsCalendar-week-days th,
  275. .jsCalendar.classic-theme tbody td,
  276. .jsCalendar.classic-theme tbody td.jsCalendar-current {
  277. border-radius: 0;
  278. }
  279. .jsCalendar.classic-theme thead {
  280. background-color: #52C9FF;
  281. margin: 0;
  282. padding: 4px 4px 0 4px;
  283. }
  284. .jsCalendar.classic-theme thead .jsCalendar-title-row,
  285. .jsCalendar.classic-theme thead .jsCalendar-title {
  286. display: block;
  287. width: 100%;
  288. }
  289. .jsCalendar.classic-theme thead .jsCalendar-title {
  290. position: relative;
  291. }
  292. .jsCalendar.classic-theme thead .jsCalendar-title-name {
  293. color: #FFFFFF;
  294. font-size: 16px;
  295. left: 41px;
  296. position: absolute;
  297. right: 41px;
  298. text-align: center;
  299. text-shadow: none;
  300. }
  301. .jsCalendar.classic-theme thead .jsCalendar-title-left,
  302. .jsCalendar.classic-theme thead .jsCalendar-title-right {
  303. position: absolute;
  304. z-index: 1;
  305. }
  306. .jsCalendar.classic-theme thead .jsCalendar-title-right {
  307. right: 0;
  308. }
  309. .jsCalendar.classic-theme thead .jsCalendar-nav-left,
  310. .jsCalendar.classic-theme thead .jsCalendar-nav-right {
  311. color: #FFFFFF;
  312. text-shadow: none;
  313. }
  314. .jsCalendar.classic-theme thead .jsCalendar-nav-left:hover,
  315. .jsCalendar.classic-theme thead .jsCalendar-nav-right:hover {
  316. background-color: #03A9F4;
  317. }
  318. .jsCalendar.classic-theme thead .jsCalendar-week-days {
  319. background-color: #FFFFFF;
  320. display: block;
  321. margin: 0 -4px;
  322. }
  323. .jsCalendar.classic-theme thead .jsCalendar-week-days th {
  324. font-size: 10px;
  325. height: 20px;
  326. line-height: 20px;
  327. text-shadow: none;
  328. }
  329. .jsCalendar.classic-theme tbody td {
  330. border-left: 1px solid #DADADA;
  331. border-top: 1px solid #DADADA;
  332. margin: -1px 0 0 -1px;
  333. padding: 1px 1px 0 1px;
  334. width: 38px;
  335. }
  336. .jsCalendar.classic-theme tbody {
  337. margin: 0;
  338. }
  339. .jsCalendar.classic-theme tbody td.jsCalendar-selected{
  340. background-color: #CCEFFF;
  341. border-bottom: 0;
  342. border-left: 1px solid #DADADA;
  343. border-right: 0;
  344. border-top: 1px solid #DADADA;
  345. height: 36px;
  346. line-height: 36px;
  347. }
  348. .jsCalendar.classic-theme tbody td.jsCalendar-current.jsCalendar-selected{
  349. background-color: #52C9FF;
  350. text-shadow: 0 0 3px #000000;
  351. }
  352. /* Yellow */
  353. .jsCalendar.classic-theme.yellow thead {
  354. background-color: #FFE31B;
  355. }
  356. .jsCalendar.classic-theme.yellow thead .jsCalendar-nav-left:hover,
  357. .jsCalendar.classic-theme.yellow thead .jsCalendar-nav-right:hover {
  358. background-color: #E2CA23;
  359. }
  360. /* Orange */
  361. .jsCalendar.classic-theme.orange thead {
  362. background-color: #FFB400;
  363. }
  364. .jsCalendar.classic-theme.orange thead .jsCalendar-nav-left:hover,
  365. .jsCalendar.classic-theme.orange thead .jsCalendar-nav-right:hover {
  366. background-color: #D49600;
  367. }
  368. /* Red */
  369. .jsCalendar.classic-theme.red thead {
  370. background-color: #F6511D;
  371. }
  372. .jsCalendar.classic-theme.red thead .jsCalendar-nav-left:hover,
  373. .jsCalendar.classic-theme.red thead .jsCalendar-nav-right:hover {
  374. background-color: #BB3D16;
  375. }
  376. /* Green */
  377. .jsCalendar.classic-theme.green thead {
  378. background-color: #7FB800;
  379. }
  380. .jsCalendar.classic-theme.green thead .jsCalendar-nav-left:hover,
  381. .jsCalendar.classic-theme.green thead .jsCalendar-nav-right:hover {
  382. background-color: #639000;
  383. }