fullcalendar.css 12 KB

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