You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

calendar.scss 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. @mixin base-calendar($primaryStyleName : v-calendar) {
  2. /* Global resize style */
  3. .#{$primaryStyleName}-nresize DIV DIV {
  4. cursor: n-resize !important;
  5. }
  6. .#{$primaryStyleName}-sresize DIV DIV {
  7. cursor: s-resize !important;
  8. }
  9. /* Header bar */
  10. .#{$primaryStyleName} {
  11. background-color: #fff;
  12. }
  13. .#{$primaryStyleName}-header-month,.#{$primaryStyleName}-header-week {
  14. border-bottom: 1px solid #c1c1c1;
  15. }
  16. .#{$primaryStyleName}-header-day {
  17. text-align: center;
  18. color: #666;
  19. font-size: 12px;
  20. line-height: normal;
  21. }
  22. .#{$primaryStyleName}-header-week .#{$primaryStyleName}-header-day:hover {
  23. cursor: pointer;
  24. color: #222
  25. }
  26. .#{$primaryStyleName}-header-day-today {
  27. font-weight: bold;
  28. color: #444;
  29. }
  30. .#{$primaryStyleName}-header-month td:first-child {
  31. padding-left: 19px;
  32. /* Same as VCalendar.MONTHLY_WEEKTOOLBARWIDTH - .#{$primaryStyleName}-week-numbers border */
  33. }
  34. .#{$primaryStyleName}-header-week .#{$primaryStyleName}-back,.#{$primaryStyleName}-header-week .#{$primaryStyleName}-next
  35. {
  36. border: none;
  37. padding: 0;
  38. margin: 0;
  39. height: 12px;
  40. width: 12px;
  41. overflow: hidden;
  42. background: transparent url(img/arrows.png) no-repeat 50% 0;
  43. opacity: .3;
  44. filter: alpha(opacity = 30);
  45. cursor: default;
  46. }
  47. .#{$primaryStyleName}-header-week .#{$primaryStyleName}-back:hover,.#{$primaryStyleName}-header-week .#{$primaryStyleName}-next:hover
  48. {
  49. opacity: .6;
  50. filter: alpha(opacity = 60);
  51. }
  52. .#{$primaryStyleName}-header-week .#{$primaryStyleName}-back:active,.#{$primaryStyleName}-header-week .#{$primaryStyleName}-next:active
  53. {
  54. opacity: 1;
  55. filter: alpha(opacity = 100);
  56. }
  57. .#{$primaryStyleName}-header-week .#{$primaryStyleName}-next {
  58. background-position: 50% -12px;
  59. }
  60. /* Month grid */
  61. .#{$primaryStyleName}-month {
  62. outline: none;
  63. }
  64. .#{$primaryStyleName}-week-numbers {
  65. width: 20px;
  66. border-right: 1px solid #ccc;
  67. }
  68. .#{$primaryStyleName}-week-number {
  69. border: none;
  70. background: transparent;
  71. padding: 0;
  72. margin: 0;
  73. cursor: pointer;
  74. opacity: .5;
  75. width: 20px;
  76. text-align: center;
  77. border-bottom: 1px solid #ddd;
  78. }
  79. .#{$primaryStyleName}-week-number:hover {
  80. opacity: 1;
  81. }
  82. .#{$primaryStyleName}-month-day {
  83. border-bottom: 1px solid #ccc;
  84. border-right: 1px solid #ccc;
  85. outline: none;
  86. }
  87. .#{$primaryStyleName}-month-day-today {
  88. background-color: #e7f0f5;
  89. }
  90. .#{$primaryStyleName}-month-day-selected {
  91. background-color: #fffee7;
  92. }
  93. .#{$primaryStyleName}-month-day-dragemphasis {
  94. background-color: #a8a8a8;
  95. }
  96. .#{$primaryStyleName}-month-day-scrollable {
  97. overflow-y: scroll;
  98. }
  99. .#{$primaryStyleName}-day-number {
  100. height: 18px;
  101. line-height: 18px;
  102. font-size: 12px;
  103. text-align: right;
  104. padding-right: 3px;
  105. white-space: nowrap;
  106. }
  107. .#{$primaryStyleName}-day-number:hover {
  108. cursor: pointer;
  109. opacity: .6;
  110. filter: alpha(opacity = 60);
  111. }
  112. .#{$primaryStyleName}-month .#{$primaryStyleName}-spacer,.#{$primaryStyleName}-month .#{$primaryStyleName}-bottom-spacer,.#{$primaryStyleName}-month .#{$primaryStyleName}-bottom-spacer-empty
  113. {
  114. /* Bottom spacer is used in GWT to measure the event height (offsetHeight) */
  115. height: 15px;
  116. font-size: 11px;
  117. }
  118. .#{$primaryStyleName}-month .#{$primaryStyleName}-bottom-spacer:hover {
  119. cursor: pointer;
  120. opacity: .6;
  121. filter: alpha(opacity = 60);
  122. }
  123. .#{$primaryStyleName}-event {
  124. line-height: 14px;
  125. font-size: 11px;
  126. padding: 0 0 0 4px;
  127. cursor: pointer;
  128. overflow: hidden;
  129. text-overflow: ellipsis;
  130. outline: none;
  131. }
  132. .#{$primaryStyleName}-event-month {
  133. margin-bottom: 1px;
  134. white-space: nowrap;
  135. }
  136. .#{$primaryStyleName}-event-month:hover {
  137. text-decoration: underline;
  138. }
  139. .#{$primaryStyleName}-event-all-day {
  140. background: #999;
  141. display: block;
  142. margin-left: -2px;
  143. }
  144. div.#{$primaryStyleName}-event-all-day {
  145. color: #fff;
  146. height: 14px;
  147. }
  148. .#{$primaryStyleName}-event-continued-from {
  149. margin-left: 0;
  150. }
  151. .#{$primaryStyleName}-event-start {
  152. -webkit-border-top-left-radius: 6px;
  153. -webkit-border-bottom-left-radius: 6px;
  154. -moz-border-radius-topleft: 6px;
  155. -moz-border-radius-bottomleft: 6px;
  156. border-top-left-radius: 6px;
  157. border-bottom-left-radius: 6px;
  158. margin-left: 0;
  159. }
  160. .#{$primaryStyleName}-event-end {
  161. -webkit-border-top-right-radius: 6px;
  162. -webkit-border-bottom-right-radius: 6px;
  163. -moz-border-radius-topright: 6px;
  164. -moz-border-radius-bottomright: 6px;
  165. border-top-right-radius: 6px;
  166. border-bottom-right-radius: 6px;
  167. }
  168. /* Week/day view */
  169. .#{$primaryStyleName}-week-wrapper {
  170. position: relative;
  171. }
  172. /*.v-ie7 .#{$primaryStyleName}-week-wrapper TABLE{
  173. table-layout: fixed;
  174. }*/
  175. .#{$primaryStyleName}-times {
  176. width: 51px;
  177. }
  178. .#{$primaryStyleName}-time {
  179. padding: 0 8px 7px 0;
  180. margin-top: -7px;
  181. text-align: right;
  182. font-size: 11px;
  183. color: #666;
  184. border-right: 1px solid #ccc;
  185. }
  186. .#{$primaryStyleName}-weekly-longevents {
  187. border-left: 1px solid #ccc;
  188. border-bottom: 2px solid #bbb;
  189. margin-left: 50px;
  190. }
  191. .#{$primaryStyleName}-weekly-longevents .#{$primaryStyleName}-datecell {
  192. border-right: 1px solid #ccc;
  193. padding: 1px 0 0;
  194. }
  195. .#{$primaryStyleName}-weekly-longevents .#{$primaryStyleName}-event {
  196. height: 14px;
  197. margin-bottom: 1px;
  198. }
  199. .#{$primaryStyleName}-weekly-longevents .#{$primaryStyleName}-event:hover {
  200. text-decoration: underline;
  201. }
  202. .#{$primaryStyleName}-day-times {
  203. border-right: 1px solid #ccc;
  204. outline: none;
  205. }
  206. .#{$primaryStyleName}-day-times .v-datecellslot,.#{$primaryStyleName}-day-times .v-datecellslot-even {
  207. border-bottom: 1px solid #ccc;
  208. }
  209. .#{$primaryStyleName}-day-times .v-datecellslot-even {
  210. border-bottom-color: #eee;
  211. }
  212. .#{$primaryStyleName}-day-times .v-daterange {
  213. background-color: #a8a8a8;
  214. }
  215. .#{$primaryStyleName}-day-times .v-reserved {
  216. background-color: #FF3333;
  217. }
  218. .#{$primaryStyleName}-day-times .dragemphasis {
  219. background-color: #a8a8a8;
  220. }
  221. .#{$primaryStyleName}-week-wrapper .#{$primaryStyleName}-event {
  222. padding: 0;
  223. -webkit-border-radius: 4px;
  224. -moz-border-radius: 4px;
  225. border-radius: 4px;
  226. margin-top: -1px;
  227. }
  228. .#{$primaryStyleName}-event-caption {
  229. position: absolute;
  230. z-index: 1;
  231. top: 2px;
  232. left: 4px;
  233. width: 100%;
  234. overflow: hidden;
  235. text-overflow: ellipsis;
  236. line-height: normal;
  237. }
  238. .#{$primaryStyleName}-event-content {
  239. -webkit-border-radius: 4px;
  240. -moz-border-radius: 4px;
  241. border-radius: 4px;
  242. border: 1px solid #777;
  243. background: #eee;
  244. opacity: .8;
  245. filter: alpha(opacity = 80);
  246. height: 14px; /* "min-height" */
  247. }
  248. .#{$primaryStyleName}-current-time {
  249. position: absolute;
  250. left: 0;
  251. width: 100%;
  252. height: 1px;
  253. overflow: hidden;
  254. background: #5a6c86;
  255. opacity: .6;
  256. filter: alpha(opacity = 60);
  257. z-index: 2;
  258. }
  259. .#{$primaryStyleName}-event-resizetop {
  260. position: absolute;
  261. cursor: n-resize;
  262. height: 5%;
  263. min-height: 3px;
  264. top: 0;
  265. width: 100%;
  266. z-index: 1;
  267. }
  268. .#{$primaryStyleName}-event-resizebottom {
  269. position: absolute;
  270. cursor: s-resize;
  271. height: 5%;
  272. min-height: 3px;
  273. bottom: 0;
  274. width: 100%;
  275. z-index: 1;
  276. }
  277. .#{$primaryStyleName}-month-sizedheight .#{$primaryStyleName}-month-day {
  278. height: 100px;
  279. }
  280. .#{$primaryStyleName}-month-sizedwidth .#{$primaryStyleName}-month-day {
  281. width: 100px;
  282. }
  283. .#{$primaryStyleName}-header-month-Hsized .#{$primaryStyleName}-header-day {
  284. width: 101px;
  285. }
  286. /* for others */
  287. .#{$primaryStyleName}-header-month-Hsized td:first-child {
  288. padding-left: 21px;
  289. }
  290. .#{$primaryStyleName}-header-day-Hsized {
  291. width: 200px;
  292. }
  293. .#{$primaryStyleName}-week-numbers-Vsized .#{$primaryStyleName}-week-number {
  294. height: 100px;
  295. line-height: 100px;
  296. }
  297. .#{$primaryStyleName}-week-wrapper-Vsized {
  298. height: 400px;
  299. overflow-x: hidden !important;
  300. }
  301. .#{$primaryStyleName}-times-Vsized .#{$primaryStyleName}-time {
  302. height: 38px;
  303. }
  304. .#{$primaryStyleName}-times-Hsized .#{$primaryStyleName}-time {
  305. width: 42px;
  306. }
  307. .#{$primaryStyleName}-day-times-Vsized .v-datecellslot,.#{$primaryStyleName}-day-times-Vsized .v-datecellslot-even {
  308. height: 18px;
  309. }
  310. .#{$primaryStyleName}-day-times-Hsized, .#{$primaryStyleName}-day-times-Hsized .v-datecellslot,.#{$primaryStyleName}-day-times-Hsized .v-datecellslot-even {
  311. width: 200px;
  312. }
  313. }