fullcalendar.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586
  1. /*!
  2. * FullCalendar v1.6.4 Stylesheet
  3. * Docs & License: http://arshaw.com/fullcalendar/
  4. * (c) 2013 Adam Shaw
  5. */
  6. .fc {
  7. direction: ltr;
  8. text-align: left;
  9. }
  10. .fc table {
  11. border-collapse: collapse;
  12. border-spacing: 0;
  13. }
  14. html .fc,
  15. .fc table {
  16. font-size: 1em;
  17. }
  18. .fc td,
  19. .fc th {
  20. padding: 0;
  21. vertical-align: top;
  22. }
  23. /* Header
  24. ------------------------------------------------------------------------*/
  25. .fc-header td {
  26. white-space: nowrap;
  27. }
  28. .fc-header-left {
  29. width: 25%;
  30. text-align: left;
  31. }
  32. .fc-header-center {
  33. text-align: center;
  34. }
  35. .fc-header-right {
  36. width: 25%;
  37. text-align: right;
  38. }
  39. .fc-header-title {
  40. display: inline-block;
  41. vertical-align: top;
  42. }
  43. .fc-header-title h2 {
  44. margin-top: 0;
  45. white-space: nowrap;
  46. }
  47. .fc .fc-header-space {
  48. padding-left: 10px;
  49. }
  50. .fc-header .fc-button {
  51. margin-bottom: 1em;
  52. vertical-align: top;
  53. }
  54. /* buttons edges butting together */
  55. .fc-header .fc-button {
  56. margin-right: -1px;
  57. }
  58. .fc-header .fc-corner-right, /* non-theme */
  59. .fc-header .ui-corner-right { /* theme */
  60. margin-right: 0; /* back to normal */
  61. }
  62. /* button layering (for border precedence) */
  63. .fc-header .fc-state-hover,
  64. .fc-header .ui-state-hover {
  65. z-index: 2;
  66. }
  67. .fc-header .fc-state-down {
  68. z-index: 3;
  69. }
  70. .fc-header .fc-state-active,
  71. .fc-header .ui-state-active {
  72. z-index: 4;
  73. }
  74. /* Content
  75. ------------------------------------------------------------------------*/
  76. .fc-content {
  77. clear: both;
  78. zoom: 1; /* for IE7, gives accurate coordinates for [un]freezeContentHeight */
  79. }
  80. .fc-view {
  81. width: 100%;
  82. overflow: hidden;
  83. }
  84. /* Cell Styles
  85. ------------------------------------------------------------------------*/
  86. .fc-widget-header, /* <th>, usually */
  87. .fc-widget-content { /* <td>, usually */
  88. border: 1px solid #ddd;
  89. }
  90. .fc-state-highlight { /* <td> today cell */ /* TODO: add .fc-today to <th> */
  91. background: #fcf8e3;
  92. }
  93. .fc-cell-overlay { /* semi-transparent rectangle while dragging */
  94. background: #bce8f1;
  95. opacity: .3;
  96. filter: alpha(opacity=30); /* for IE */
  97. }
  98. /* Buttons
  99. ------------------------------------------------------------------------*/
  100. .fc-button {
  101. position: relative;
  102. display: inline-block;
  103. padding: 0 .6em;
  104. overflow: hidden;
  105. height: 1.9em;
  106. line-height: 1.9em;
  107. white-space: nowrap;
  108. cursor: pointer;
  109. }
  110. .fc-state-default { /* non-theme */
  111. border: 1px solid;
  112. }
  113. .fc-state-default.fc-corner-left { /* non-theme */
  114. border-top-left-radius: 4px;
  115. border-bottom-left-radius: 4px;
  116. }
  117. .fc-state-default.fc-corner-right { /* non-theme */
  118. border-top-right-radius: 4px;
  119. border-bottom-right-radius: 4px;
  120. }
  121. /*
  122. Our default prev/next buttons use HTML entities like &lsaquo; &rsaquo; &laquo; &raquo;
  123. and we'll try to make them look good cross-browser.
  124. */
  125. .fc-text-arrow {
  126. margin: 0 .1em;
  127. font-size: 2em;
  128. font-family: "Courier New", Courier, monospace;
  129. vertical-align: baseline; /* for IE7 */
  130. }
  131. .fc-button-prev .fc-text-arrow,
  132. .fc-button-next .fc-text-arrow { /* for &lsaquo; &rsaquo; */
  133. font-weight: bold;
  134. }
  135. /* icon (for jquery ui) */
  136. .fc-button .fc-icon-wrap {
  137. position: relative;
  138. float: left;
  139. top: 50%;
  140. }
  141. .fc-button .ui-icon {
  142. position: relative;
  143. float: left;
  144. margin-top: -50%;
  145. *margin-top: 0;
  146. *top: -50%;
  147. }
  148. /*
  149. button states
  150. borrowed from twitter bootstrap (http://twitter.github.com/bootstrap/)
  151. */
  152. .fc-state-default {
  153. background-color: #f5f5f5;
  154. background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
  155. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
  156. background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
  157. background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
  158. background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
  159. background-repeat: repeat-x;
  160. border-color: #e6e6e6 #e6e6e6 #bfbfbf;
  161. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  162. color: #333;
  163. text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  164. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  165. }
  166. .fc-state-hover,
  167. .fc-state-down,
  168. .fc-state-active,
  169. .fc-state-disabled {
  170. color: #333333;
  171. background-color: #e6e6e6;
  172. }
  173. .fc-state-hover {
  174. color: #333333;
  175. text-decoration: none;
  176. background-position: 0 -15px;
  177. -webkit-transition: background-position 0.1s linear;
  178. -moz-transition: background-position 0.1s linear;
  179. -o-transition: background-position 0.1s linear;
  180. transition: background-position 0.1s linear;
  181. }
  182. .fc-state-down,
  183. .fc-state-active {
  184. background-color: #cccccc;
  185. background-image: none;
  186. outline: 0;
  187. box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
  188. }
  189. .fc-state-disabled {
  190. cursor: default;
  191. background-image: none;
  192. opacity: 0.65;
  193. filter: alpha(opacity=65);
  194. box-shadow: none;
  195. }
  196. /* Global Event Styles
  197. ------------------------------------------------------------------------*/
  198. .fc-event-container > * {
  199. z-index: 8;
  200. }
  201. .fc-event-container > .ui-draggable-dragging,
  202. .fc-event-container > .ui-resizable-resizing {
  203. z-index: 9;
  204. }
  205. .fc-event {
  206. background-color: #fff; /* default BACKGROUND color */
  207. font-size: .85em;
  208. cursor: default;
  209. }
  210. a.fc-event {
  211. text-decoration: none;
  212. }
  213. a.fc-event,
  214. .fc-event-draggable {
  215. cursor: pointer;
  216. }
  217. .fc-rtl .fc-event {
  218. text-align: right;
  219. }
  220. .fc-event-inner {
  221. width: 100%;
  222. height: 100%;
  223. overflow: hidden;
  224. }
  225. .fc-event-time,
  226. .fc-event-title {
  227. padding: 0 1px;
  228. }
  229. .fc .ui-resizable-handle {
  230. display: block;
  231. position: absolute;
  232. z-index: 99999;
  233. overflow: hidden; /* hacky spaces (IE6/7) */
  234. font-size: 300%; /* */
  235. line-height: 50%; /* */
  236. }
  237. /* Horizontal Events
  238. ------------------------------------------------------------------------*/
  239. .fc-event-hori {
  240. margin-bottom: 1px;
  241. }
  242. .fc-ltr .fc-event-hori.fc-event-start,
  243. .fc-rtl .fc-event-hori.fc-event-end {
  244. /*border-left-width: 1px;*/
  245. border-top-left-radius: 3px;
  246. border-bottom-left-radius: 3px;
  247. }
  248. .fc-ltr .fc-event-hori.fc-event-end,
  249. .fc-rtl .fc-event-hori.fc-event-start {
  250. /*border-right-width: 1px;*/
  251. border-top-right-radius: 3px;
  252. border-bottom-right-radius: 3px;
  253. }
  254. /* resizable */
  255. .fc-event-hori .ui-resizable-e {
  256. top: 0 !important; /* importants override pre jquery ui 1.7 styles */
  257. right: -3px !important;
  258. width: 7px !important;
  259. height: 100% !important;
  260. cursor: e-resize;
  261. }
  262. .fc-event-hori .ui-resizable-w {
  263. top: 0 !important;
  264. left: -3px !important;
  265. width: 7px !important;
  266. height: 100% !important;
  267. cursor: w-resize;
  268. }
  269. .fc-event-hori .ui-resizable-handle {
  270. _padding-bottom: 14px; /* IE6 had 0 height */
  271. }
  272. /* Reusable Separate-border Table
  273. ------------------------------------------------------------*/
  274. table.fc-border-separate {
  275. border-collapse: separate;
  276. }
  277. .fc-border-separate th,
  278. .fc-border-separate td {
  279. border-width: 1px 0 0 1px;
  280. }
  281. .fc-border-separate th.fc-last,
  282. .fc-border-separate td.fc-last {
  283. border-right-width: 1px;
  284. }
  285. .fc-border-separate tr.fc-last th,
  286. .fc-border-separate tr.fc-last td {
  287. border-bottom-width: 1px;
  288. }
  289. .fc-border-separate tbody tr.fc-first td,
  290. .fc-border-separate tbody tr.fc-first th {
  291. border-top-width: 0;
  292. }
  293. /* Month View, Basic Week View, Basic Day View
  294. ------------------------------------------------------------------------*/
  295. .fc-grid th {
  296. text-align: center;
  297. }
  298. .fc .fc-week-number {
  299. width: 22px;
  300. text-align: center;
  301. }
  302. .fc .fc-week-number div {
  303. padding: 0 2px;
  304. }
  305. .fc-grid .fc-day-number {
  306. float: right;
  307. padding: 0 2px;
  308. }
  309. .fc-grid .fc-other-month .fc-day-number {
  310. opacity: 0.3;
  311. filter: alpha(opacity=30); /* for IE */
  312. /* opacity with small font can sometimes look too faded
  313. might want to set the 'color' property instead
  314. making day-numbers bold also fixes the problem */
  315. }
  316. .fc-grid .fc-day-content {
  317. clear: both;
  318. padding: 2px 2px 1px; /* distance between events and day edges */
  319. }
  320. /* event styles */
  321. .fc-grid .fc-event-time {
  322. font-weight: bold;
  323. }
  324. /* right-to-left */
  325. .fc-rtl .fc-grid .fc-day-number {
  326. float: left;
  327. }
  328. .fc-rtl .fc-grid .fc-event-time {
  329. float: right;
  330. }
  331. /* Agenda Week View, Agenda Day View
  332. ------------------------------------------------------------------------*/
  333. .fc-agenda table {
  334. border-collapse: separate;
  335. }
  336. .fc-agenda-days th {
  337. text-align: center;
  338. }
  339. .fc-agenda .fc-agenda-axis {
  340. width: 50px;
  341. padding: 0 4px;
  342. vertical-align: middle;
  343. text-align: right;
  344. white-space: nowrap;
  345. font-weight: normal;
  346. }
  347. .fc-agenda .fc-week-number {
  348. font-weight: bold;
  349. }
  350. .fc-agenda .fc-day-content {
  351. padding: 2px 2px 1px;
  352. }
  353. /* make axis border take precedence */
  354. .fc-agenda-days .fc-agenda-axis {
  355. border-right-width: 1px;
  356. }
  357. .fc-agenda-days .fc-col0 {
  358. border-left-width: 0;
  359. }
  360. /* all-day area */
  361. .fc-agenda-allday th {
  362. border-width: 0 1px;
  363. }
  364. .fc-agenda-allday .fc-day-content {
  365. min-height: 34px; /* TODO: doesnt work well in quirksmode */
  366. _height: 34px;
  367. }
  368. /* divider (between all-day and slots) */
  369. .fc-agenda-divider-inner {
  370. height: 2px;
  371. overflow: hidden;
  372. }
  373. .fc-widget-header .fc-agenda-divider-inner {
  374. background: #eee;
  375. }
  376. /* slot rows */
  377. .fc-agenda-slots th {
  378. border-width: 1px 1px 0;
  379. }
  380. .fc-agenda-slots td {
  381. border-width: 1px 0 0;
  382. background: none;
  383. }
  384. .fc-agenda-slots td div {
  385. height: 20px;
  386. }
  387. .fc-agenda-slots tr.fc-slot0 th,
  388. .fc-agenda-slots tr.fc-slot0 td {
  389. border-top-width: 0;
  390. }
  391. .fc-agenda-slots tr.fc-minor th,
  392. .fc-agenda-slots tr.fc-minor td {
  393. border-top-style: dotted;
  394. }
  395. .fc-agenda-slots tr.fc-minor th.ui-widget-header {
  396. *border-top-style: solid; /* doesn't work with background in IE6/7 */
  397. }
  398. /* Vertical Events
  399. ------------------------------------------------------------------------*/
  400. .fc-event-vert {
  401. border-width: 0 1px;
  402. }
  403. .fc-event-vert.fc-event-start {
  404. border-top-width: 1px;
  405. border-top-left-radius: 3px;
  406. border-top-right-radius: 3px;
  407. }
  408. .fc-event-vert.fc-event-end {
  409. border-bottom-width: 1px;
  410. border-bottom-left-radius: 3px;
  411. border-bottom-right-radius: 3px;
  412. }
  413. .fc-event-vert .fc-event-time {
  414. white-space: nowrap;
  415. font-size: 10px;
  416. }
  417. .fc-event-vert .fc-event-inner {
  418. position: relative;
  419. z-index: 2;
  420. }
  421. .fc-event-vert .fc-event-bg { /* makes the event lighter w/ a semi-transparent overlay */
  422. position: absolute;
  423. z-index: 1;
  424. top: 0;
  425. left: 0;
  426. width: 100%;
  427. height: 100%;
  428. background: #fff;
  429. opacity: .25;
  430. filter: alpha(opacity=25);
  431. }
  432. .fc .ui-draggable-dragging .fc-event-bg, /* TODO: something nicer like .fc-opacity */
  433. .fc-select-helper .fc-event-bg {
  434. display: none\9; /* for IE6/7/8. nested opacity filters while dragging don't work */
  435. }
  436. /* resizable */
  437. .fc-event-vert .ui-resizable-s {
  438. bottom: 0 !important; /* importants override pre jquery ui 1.7 styles */
  439. width: 100% !important;
  440. height: 8px !important;
  441. overflow: hidden !important;
  442. line-height: 8px !important;
  443. font-size: 11px !important;
  444. font-family: monospace;
  445. text-align: center;
  446. cursor: s-resize;
  447. }
  448. .fc-agenda .ui-resizable-resizing { /* TODO: better selector */
  449. _overflow: hidden;
  450. }