fullcalendar.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  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. border: 1px solid #3a87ad; /* default BORDER color */
  207. background-color: #3a87ad; /* default BACKGROUND color */
  208. color: #fff; /* default TEXT color */
  209. font-size: .85em;
  210. cursor: default;
  211. }
  212. a.fc-event {
  213. text-decoration: none;
  214. }
  215. a.fc-event,
  216. .fc-event-draggable {
  217. cursor: pointer;
  218. }
  219. .fc-rtl .fc-event {
  220. text-align: right;
  221. }
  222. .fc-event-inner {
  223. width: 100%;
  224. height: 100%;
  225. overflow: hidden;
  226. }
  227. .fc-event-time,
  228. .fc-event-title {
  229. padding: 0 1px;
  230. }
  231. .fc .ui-resizable-handle {
  232. display: block;
  233. position: absolute;
  234. z-index: 99999;
  235. overflow: hidden; /* hacky spaces (IE6/7) */
  236. font-size: 300%; /* */
  237. line-height: 50%; /* */
  238. }
  239. /* Horizontal Events
  240. ------------------------------------------------------------------------*/
  241. .fc-event-hori {
  242. border-width: 1px 0;
  243. margin-bottom: 1px;
  244. }
  245. .fc-ltr .fc-event-hori.fc-event-start,
  246. .fc-rtl .fc-event-hori.fc-event-end {
  247. border-left-width: 1px;
  248. border-top-left-radius: 3px;
  249. border-bottom-left-radius: 3px;
  250. }
  251. .fc-ltr .fc-event-hori.fc-event-end,
  252. .fc-rtl .fc-event-hori.fc-event-start {
  253. border-right-width: 1px;
  254. border-top-right-radius: 3px;
  255. border-bottom-right-radius: 3px;
  256. }
  257. /* resizable */
  258. .fc-event-hori .ui-resizable-e {
  259. top: 0 !important; /* importants override pre jquery ui 1.7 styles */
  260. right: -3px !important;
  261. width: 7px !important;
  262. height: 100% !important;
  263. cursor: e-resize;
  264. }
  265. .fc-event-hori .ui-resizable-w {
  266. top: 0 !important;
  267. left: -3px !important;
  268. width: 7px !important;
  269. height: 100% !important;
  270. cursor: w-resize;
  271. }
  272. .fc-event-hori .ui-resizable-handle {
  273. _padding-bottom: 14px; /* IE6 had 0 height */
  274. }
  275. /* Reusable Separate-border Table
  276. ------------------------------------------------------------*/
  277. table.fc-border-separate {
  278. border-collapse: separate;
  279. }
  280. .fc-border-separate th,
  281. .fc-border-separate td {
  282. border-width: 1px 0 0 1px;
  283. }
  284. .fc-border-separate th.fc-last,
  285. .fc-border-separate td.fc-last {
  286. border-right-width: 1px;
  287. }
  288. .fc-border-separate tr.fc-last th,
  289. .fc-border-separate tr.fc-last td {
  290. border-bottom-width: 1px;
  291. }
  292. .fc-border-separate tbody tr.fc-first td,
  293. .fc-border-separate tbody tr.fc-first th {
  294. border-top-width: 0;
  295. }
  296. /* Month View, Basic Week View, Basic Day View
  297. ------------------------------------------------------------------------*/
  298. .fc-grid th {
  299. text-align: center;
  300. }
  301. .fc .fc-week-number {
  302. width: 22px;
  303. text-align: center;
  304. }
  305. .fc .fc-week-number div {
  306. padding: 0 2px;
  307. }
  308. .fc-grid .fc-day-number {
  309. float: right;
  310. padding: 0 2px;
  311. }
  312. .fc-grid .fc-other-month .fc-day-number {
  313. opacity: 0.3;
  314. filter: alpha(opacity=30); /* for IE */
  315. /* opacity with small font can sometimes look too faded
  316. might want to set the 'color' property instead
  317. making day-numbers bold also fixes the problem */
  318. }
  319. .fc-grid .fc-day-content {
  320. clear: both;
  321. padding: 2px 2px 1px; /* distance between events and day edges */
  322. }
  323. /* event styles */
  324. .fc-grid .fc-event-time {
  325. font-weight: bold;
  326. }
  327. /* right-to-left */
  328. .fc-rtl .fc-grid .fc-day-number {
  329. float: left;
  330. }
  331. .fc-rtl .fc-grid .fc-event-time {
  332. float: right;
  333. }
  334. /* Agenda Week View, Agenda Day View
  335. ------------------------------------------------------------------------*/
  336. .fc-agenda table {
  337. border-collapse: separate;
  338. }
  339. .fc-agenda-days th {
  340. text-align: center;
  341. }
  342. .fc-agenda .fc-agenda-axis {
  343. width: 50px;
  344. padding: 0 4px;
  345. vertical-align: middle;
  346. text-align: right;
  347. white-space: nowrap;
  348. font-weight: normal;
  349. }
  350. .fc-agenda .fc-week-number {
  351. font-weight: bold;
  352. }
  353. .fc-agenda .fc-day-content {
  354. padding: 2px 2px 1px;
  355. }
  356. /* make axis border take precedence */
  357. .fc-agenda-days .fc-agenda-axis {
  358. border-right-width: 1px;
  359. }
  360. .fc-agenda-days .fc-col0 {
  361. border-left-width: 0;
  362. }
  363. /* all-day area */
  364. .fc-agenda-allday th {
  365. border-width: 0 1px;
  366. }
  367. .fc-agenda-allday .fc-day-content {
  368. min-height: 34px; /* TODO: doesnt work well in quirksmode */
  369. _height: 34px;
  370. }
  371. /* divider (between all-day and slots) */
  372. .fc-agenda-divider-inner {
  373. height: 2px;
  374. overflow: hidden;
  375. }
  376. .fc-widget-header .fc-agenda-divider-inner {
  377. background: #eee;
  378. }
  379. /* slot rows */
  380. .fc-agenda-slots th {
  381. border-width: 1px 1px 0;
  382. }
  383. .fc-agenda-slots td {
  384. border-width: 1px 0 0;
  385. background: none;
  386. }
  387. .fc-agenda-slots td div {
  388. height: 20px;
  389. }
  390. .fc-agenda-slots tr.fc-slot0 th,
  391. .fc-agenda-slots tr.fc-slot0 td {
  392. border-top-width: 0;
  393. }
  394. .fc-agenda-slots tr.fc-minor th,
  395. .fc-agenda-slots tr.fc-minor td {
  396. border-top-style: dotted;
  397. }
  398. .fc-agenda-slots tr.fc-minor th.ui-widget-header {
  399. *border-top-style: solid; /* doesn't work with background in IE6/7 */
  400. }
  401. /* Vertical Events
  402. ------------------------------------------------------------------------*/
  403. .fc-event-vert {
  404. border-width: 0 1px;
  405. }
  406. .fc-event-vert.fc-event-start {
  407. border-top-width: 1px;
  408. border-top-left-radius: 3px;
  409. border-top-right-radius: 3px;
  410. }
  411. .fc-event-vert.fc-event-end {
  412. border-bottom-width: 1px;
  413. border-bottom-left-radius: 3px;
  414. border-bottom-right-radius: 3px;
  415. }
  416. .fc-event-vert .fc-event-time {
  417. white-space: nowrap;
  418. font-size: 10px;
  419. }
  420. .fc-event-vert .fc-event-inner {
  421. position: relative;
  422. z-index: 2;
  423. }
  424. .fc-event-vert .fc-event-bg { /* makes the event lighter w/ a semi-transparent overlay */
  425. position: absolute;
  426. z-index: 1;
  427. top: 0;
  428. left: 0;
  429. width: 100%;
  430. height: 100%;
  431. background: #fff;
  432. opacity: .25;
  433. filter: alpha(opacity=25);
  434. }
  435. .fc .ui-draggable-dragging .fc-event-bg, /* TODO: something nicer like .fc-opacity */
  436. .fc-select-helper .fc-event-bg {
  437. display: none\9; /* for IE6/7/8. nested opacity filters while dragging don't work */
  438. }
  439. /* resizable */
  440. .fc-event-vert .ui-resizable-s {
  441. bottom: 0 !important; /* importants override pre jquery ui 1.7 styles */
  442. width: 100% !important;
  443. height: 8px !important;
  444. overflow: hidden !important;
  445. line-height: 8px !important;
  446. font-size: 11px !important;
  447. font-family: monospace;
  448. text-align: center;
  449. cursor: s-resize;
  450. }
  451. .fc-agenda .ui-resizable-resizing { /* TODO: better selector */
  452. _overflow: hidden;
  453. }