bootstrap-year-calendar.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. /* =========================================================
  2. * Bootstrap year calendar v1.1.0
  3. * Repo: https://github.com/Paul-DS/bootstrap-year-calendar
  4. * =========================================================
  5. * Created by Paul David-Sivelle
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. * ========================================================= */
  19. /* Main */
  20. .calendar {
  21. padding: 4px;
  22. -webkit-border-radius: 4px;
  23. -moz-border-radius: 4px;
  24. border-radius: 4px;
  25. overflow: auto;
  26. direction: ltr;
  27. -webkit-touch-callout: none;
  28. -webkit-user-select: none;
  29. -khtml-user-select: none;
  30. -moz-user-select: none;
  31. -ms-user-select: none;
  32. user-select: none;
  33. }
  34. .calendar.calendar-rtl {
  35. direction: rtl;
  36. }
  37. .calendar.calendar-rtl table tr td span {
  38. float: right;
  39. }
  40. .calendar table {
  41. margin: auto;
  42. }
  43. .calendar table td,
  44. .calendar table th {
  45. text-align: center;
  46. width: 20px;
  47. height: 20px;
  48. border: none;
  49. padding: 4px 5px;
  50. font-size:12px;
  51. }
  52. /* Header */
  53. .calendar .calendar-header
  54. {
  55. width:100%;
  56. margin-bottom:20px;
  57. }
  58. .calendar .calendar-header table
  59. {
  60. width:100%;
  61. }
  62. .calendar .calendar-header table th
  63. {
  64. font-size:22px;
  65. padding:5px 10px;
  66. }
  67. .calendar .calendar-header table th:hover {
  68. background: #eeeeee;
  69. cursor: pointer;
  70. }
  71. .calendar .calendar-header table th.disabled,
  72. .calendar .calendar-header table th.disabled:hover {
  73. background: none;
  74. cursor: default;
  75. color:white;
  76. }
  77. .calendar .calendar-header table th.prev,
  78. .calendar .calendar-header table th.next
  79. {
  80. width:20px;
  81. }
  82. .calendar .year-title {
  83. font-weight:bold;
  84. text-align:center;
  85. height:20px;
  86. width:auto;
  87. }
  88. .calendar .year-neighbor
  89. {
  90. color:#aaaaaa;
  91. }
  92. .calendar .year-neighbor2
  93. {
  94. color:#dddddd;
  95. }
  96. /* Months */
  97. .calendar .months-container {
  98. width:100%;
  99. display:none;
  100. }
  101. .calendar .month-container {
  102. min-width:180px;
  103. text-align:center;
  104. height:200px;
  105. padding:0;
  106. }
  107. .calendar table.month th.month-title
  108. {
  109. font-size:16px;
  110. padding-bottom: 5px;
  111. }
  112. .calendar table.month th.day-header
  113. {
  114. font-size:14px;
  115. }
  116. .calendar table.month tr td,
  117. .calendar table.month tr th
  118. {
  119. padding:0;
  120. }
  121. .calendar table.month td.week-number {
  122. cursor: default;
  123. font-weight:bold;
  124. border-right:1px solid #eee;
  125. padding:5px;
  126. }
  127. .calendar .round-left {
  128. -webkit-border-radius: 8px 0 0 8px;
  129. -moz-border-radius: 8px 0 0 8px;
  130. border-radius: 8px 0 0 8px;
  131. }
  132. .calendar .round-right {
  133. webkit-border-radius: 0 8px 8px 0 ;
  134. -moz-border-radius: 0 8px 8px 0;
  135. border-radius: 0 8px 8px 0;
  136. }
  137. .calendar table.month tr td .day-content {
  138. -webkit-border-radius: 4px;
  139. -moz-border-radius: 4px;
  140. border-radius: 4px;
  141. padding: 5px 6px;
  142. }
  143. .table-striped .calendar table.month tr td,
  144. .table-striped .calendar table.month tr th {
  145. background-color: transparent;
  146. }
  147. .calendar table.month td.day .day-content:hover {
  148. background: rgba(0, 0, 0, 0.2);
  149. cursor: pointer;
  150. }
  151. .calendar table.month tr td.old,
  152. .calendar table.month tr td.new,
  153. .calendar table.month tr td.old:hover,
  154. .calendar table.month tr td.new:hover {
  155. background: none;
  156. cursor: default;
  157. }
  158. .calendar table.month tr td.disabled,
  159. .calendar table.month tr td.disabled:hover {
  160. color: #dddddd;
  161. }
  162. .calendar table.month td.day.disabled .day-content:hover {
  163. background: none;
  164. cursor: default;
  165. }
  166. .calendar table.month tr td.range .day-content {
  167. background: rgba(0, 0, 0, 0.2);
  168. -webkit-border-radius: 0;
  169. -moz-border-radius: 0;
  170. border-radius: 0;
  171. }
  172. .calendar table.month tr td.range.range-start .day-content {
  173. border-top-left-radius:4px;
  174. border-bottom-left-radius:4px;
  175. }
  176. .calendar table.month tr td.range.range-end .day-content {
  177. border-top-right-radius:4px;
  178. border-bottom-right-radius:4px;
  179. }
  180. .calendar-context-menu,
  181. .calendar-context-menu .submenu {
  182. border: 1px solid #ddd;
  183. background-color: white;
  184. box-shadow: 2px 2px 5px rgba(0, 0, 0, .2);
  185. -webkit-box-shadow: 2px 2px 5px rgba(0, 0, 0, .2);
  186. position:absolute;
  187. display:none;
  188. }
  189. .calendar-context-menu .item {
  190. padding:5px 10px;
  191. cursor:pointer;
  192. display:table;
  193. width:100%;
  194. }
  195. .calendar-context-menu .item:hover {
  196. background:#eee;
  197. }
  198. .calendar-context-menu .item .content {
  199. display:table-cell;
  200. }
  201. .calendar-context-menu .item span {
  202. display:table-cell;
  203. padding-left:10px;
  204. text-align:right;
  205. }
  206. .calendar-context-menu .item span:last-child {
  207. display:none;
  208. }
  209. .calendar-context-menu .submenu {
  210. left: 100%;
  211. margin-top: -6px;
  212. }
  213. .calendar-context-menu .item:hover > .submenu {
  214. display:block;
  215. }