fullcalendar.css 11 KB

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