fullcalendar.css 10 KB

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