fullcalendar.css 11 KB

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