fullcalendar.css 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613
  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. background: #fff;
  10. padding: 20px;
  11. -moz-border-radius: 3px;
  12. -webkit-border-radius: 3px;
  13. border-radius: 3px;
  14. -moz-box-shadow: 0 3px 0 rgba(12,12,12,0.03);
  15. -webkit-box-shadow: 0 3px 0 rgba(12,12,12,0.03);
  16. box-shadow: 0 3px 0 rgba(12,12,12,0.03);
  17. }
  18. .fc table {
  19. border-collapse: collapse;
  20. border-spacing: 0;
  21. }
  22. html .fc,
  23. .fc table {
  24. font-size: 1em;
  25. }
  26. .fc td,
  27. .fc th {
  28. padding: 0;
  29. vertical-align: top;
  30. }
  31. /* Header */
  32. .fc-header td {
  33. white-space: nowrap;
  34. }
  35. .fc-header-left {
  36. width: 25%;
  37. text-align: left;
  38. }
  39. .fc-header-center {
  40. text-align: center;
  41. }
  42. .fc-header-right {
  43. width: 25%;
  44. text-align: right;
  45. }
  46. .fc-header-title {
  47. display: inline-block;
  48. vertical-align: top;
  49. }
  50. .fc-header-title h2 {
  51. margin-top: 7px;
  52. white-space: nowrap;
  53. font-size: 18px;
  54. text-transform: uppercase;
  55. color: #333;
  56. font-family: 'LatoBold';
  57. }
  58. .fc .fc-header-space {
  59. padding-left: 10px;
  60. }
  61. .fc-header .fc-button {
  62. margin-bottom: 1em;
  63. vertical-align: top;
  64. }
  65. /* buttons edges butting together */
  66. .fc-header .fc-button {
  67. margin-right: -1px;
  68. }
  69. .fc-header .fc-corner-right, /* non-theme */
  70. .fc-header .ui-corner-right { /* theme */
  71. margin-right: 0; /* back to normal */
  72. }
  73. /* button layering (for border precedence) */
  74. .fc-header .fc-state-hover,
  75. .fc-header .ui-state-hover {
  76. z-index: 2;
  77. }
  78. .fc-header .fc-state-down {
  79. z-index: 3;
  80. }
  81. .fc-header .fc-state-active,
  82. .fc-header .ui-state-active {
  83. z-index: 4;
  84. }
  85. /* Content */
  86. .fc-content {
  87. clear: both;
  88. zoom: 1;
  89. margin-top: 10px;
  90. }
  91. .fc-view {
  92. width: 100%;
  93. overflow: hidden;
  94. }
  95. /* Cell Styles */
  96. .fc-widget-header {
  97. text-transform: uppercase;
  98. font-weight: normal;
  99. font-family: 'LatoBold';
  100. font-size: 13px;
  101. height: 40px;
  102. }
  103. .fc-widget-content {
  104. border: 1px solid #eee;
  105. }
  106. .fc-widget-content > div {
  107. margin: 2px;
  108. padding: 3px;
  109. }
  110. .fc-state-highlight {
  111. background: #f7f7f7;
  112. }
  113. .fc-cell-overlay { /* semi-transparent rectangle while dragging */
  114. background: #bce8f1;
  115. opacity: .3;
  116. filter: alpha(opacity=30); /* for IE */
  117. }
  118. /* Buttons
  119. ------------------------------------------------------------------------*/
  120. .fc-button {
  121. position: relative;
  122. display: inline-block;
  123. padding: 6px 10px;
  124. overflow: hidden;
  125. line-height: 1.9em;
  126. white-space: nowrap;
  127. cursor: pointer;
  128. }
  129. .fc-state-default.fc-corner-left { /* non-theme */
  130. border-top-left-radius: 3px;
  131. border-bottom-left-radius: 3px;
  132. }
  133. .fc-state-default.fc-corner-right { /* non-theme */
  134. border-top-right-radius: 3px;
  135. border-bottom-right-radius: 3px;
  136. }
  137. /*
  138. Our default prev/next buttons use HTML entities like ‹ › « »
  139. and we'll try to make them look good cross-browser.
  140. */
  141. .fc-text-arrow {
  142. margin: 0 .1em;
  143. font-size: 2em;
  144. font-family: "Courier New", Courier, monospace;
  145. vertical-align: baseline; /* for IE7 */
  146. }
  147. .fc-button-prev .fc-text-arrow,
  148. .fc-button-next .fc-text-arrow { /* for ‹ › */
  149. font-weight: bold;
  150. }
  151. /* icon (for jquery ui) */
  152. .fc-button .fc-icon-wrap {
  153. position: relative;
  154. float: left;
  155. top: 50%;
  156. }
  157. .fc-button .ui-icon {
  158. position: relative;
  159. float: left;
  160. margin-top: -50%;
  161. *margin-top: 0;
  162. *top: -50%;
  163. }
  164. /*
  165. button states
  166. borrowed from twitter bootstrap (http://twitter.github.com/bootstrap/)
  167. */
  168. .fc-state-default {
  169. border: 1px solid #ddd;
  170. font-size: 12px;
  171. text-transform: uppercase;
  172. }
  173. .fc-state-hover,
  174. .fc-state-down,
  175. .fc-state-active,
  176. .fc-state-disabled {
  177. color: #333333;
  178. background-color: #e6e6e6;
  179. }
  180. .fc-state-hover {
  181. color: #333333;
  182. text-decoration: none;
  183. background-position: 0 -15px;
  184. -webkit-transition: background-position 0.1s linear;
  185. -moz-transition: background-position 0.1s linear;
  186. -o-transition: background-position 0.1s linear;
  187. transition: background-position 0.1s linear;
  188. }
  189. .fc-state-down,
  190. .fc-state-active {
  191. background-color: #eee;
  192. background-image: none;
  193. outline: 0;
  194. }
  195. .fc-state-disabled {
  196. cursor: default;
  197. opacity: 0.65;
  198. filter: alpha(opacity=65);
  199. box-shadow: none;
  200. background: none;
  201. color: #ccc;
  202. }
  203. .fc-button-next,
  204. .fc-button-prev {
  205. line-height: 20px;
  206. }
  207. /* Global Event Styles
  208. ------------------------------------------------------------------------*/
  209. .fc-event-container > * {
  210. z-index: 8;
  211. }
  212. .fc-event-container > .ui-draggable-dragging,
  213. .fc-event-container > .ui-resizable-resizing {
  214. z-index: 9;
  215. }
  216. .fc-event {
  217. border: 1px solid #428BCA; /* default BORDER color */
  218. background-color: #428BCA; /* default BACKGROUND color */
  219. color: #fff; /* default TEXT color */
  220. font-size: .85em;
  221. cursor: default;
  222. }
  223. a.fc-event {
  224. text-decoration: none;
  225. }
  226. a.fc-event,
  227. .fc-event-draggable {
  228. cursor: pointer;
  229. }
  230. .fc-rtl .fc-event {
  231. text-align: right;
  232. }
  233. .fc-event-inner {
  234. width: 100%;
  235. height: 100%;
  236. overflow: hidden;
  237. }
  238. .fc-event-time,
  239. .fc-event-title {
  240. padding: 0 1px;
  241. padding-left: 5px;
  242. }
  243. .fc .ui-resizable-handle {
  244. display: block;
  245. position: absolute;
  246. z-index: 99999;
  247. overflow: hidden; /* hacky spaces (IE6/7) */
  248. font-size: 300%; /* */
  249. line-height: 50%; /* */
  250. }
  251. /* Horizontal Events
  252. ------------------------------------------------------------------------*/
  253. .fc-event-hori {
  254. border-width: 1px 0;
  255. margin-bottom: 1px;
  256. }
  257. .fc-ltr .fc-event-hori.fc-event-start,
  258. .fc-rtl .fc-event-hori.fc-event-end {
  259. border-left-width: 1px;
  260. border-top-left-radius: 3px;
  261. border-bottom-left-radius: 3px;
  262. }
  263. .fc-ltr .fc-event-hori.fc-event-end,
  264. .fc-rtl .fc-event-hori.fc-event-start {
  265. border-right-width: 1px;
  266. border-top-right-radius: 3px;
  267. border-bottom-right-radius: 3px;
  268. }
  269. /* resizable */
  270. .fc-event-hori .ui-resizable-e {
  271. top: 0 !important; /* importants override pre jquery ui 1.7 styles */
  272. right: -3px !important;
  273. width: 7px !important;
  274. height: 100% !important;
  275. cursor: e-resize;
  276. }
  277. .fc-event-hori .ui-resizable-w {
  278. top: 0 !important;
  279. left: -3px !important;
  280. width: 7px !important;
  281. height: 100% !important;
  282. cursor: w-resize;
  283. }
  284. .fc-event-hori .ui-resizable-handle {
  285. _padding-bottom: 14px; /* IE6 had 0 height */
  286. }
  287. /* Reusable Separate-border Table
  288. ------------------------------------------------------------*/
  289. table.fc-border-separate {
  290. border-collapse: separate;
  291. }
  292. .fc-border-separate th,
  293. .fc-border-separate td {
  294. border-width: 1px 0 0 1px;
  295. }
  296. .fc-border-separate th.fc-last,
  297. .fc-border-separate td.fc-last {
  298. border-right-width: 1px;
  299. }
  300. .fc-border-separate tr.fc-last th,
  301. .fc-border-separate tr.fc-last td {
  302. border-bottom-width: 1px;
  303. }
  304. .fc-border-separate tbody tr.fc-first td,
  305. .fc-border-separate tbody tr.fc-first th {
  306. border-top-width: 0;
  307. }
  308. /* Month View, Basic Week View, Basic Day View */
  309. .fc-week td:first-child {
  310. border-left: 0;
  311. }
  312. .fc-week td:last-child {
  313. border-right: 0;
  314. }
  315. .fc-week:last-child td {
  316. border-bottom: 0;
  317. }
  318. .fc-grid th {
  319. text-align: center;
  320. }
  321. .fc .fc-week-number {
  322. width: 22px;
  323. text-align: center;
  324. }
  325. .fc .fc-week-number div {
  326. padding: 0 2px;
  327. }
  328. .fc-grid .fc-day-number {
  329. float: right;
  330. padding: 0 2px;
  331. }
  332. .fc-grid .fc-other-month .fc-day-number {
  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-vert {
  424. border-width: 0 1px;
  425. }
  426. .fc-event-vert.fc-event-start {
  427. border-top-width: 1px;
  428. border-top-left-radius: 3px;
  429. border-top-right-radius: 3px;
  430. }
  431. .fc-event-vert.fc-event-end {
  432. border-bottom-width: 1px;
  433. border-bottom-left-radius: 3px;
  434. border-bottom-right-radius: 3px;
  435. }
  436. .fc-event-vert .fc-event-time {
  437. white-space: nowrap;
  438. font-size: 10px;
  439. }
  440. .fc-event-vert .fc-event-inner {
  441. position: relative;
  442. z-index: 2;
  443. }
  444. .fc-event-vert .fc-event-bg { /* makes the event lighter w/ a semi-transparent overlay */
  445. position: absolute;
  446. z-index: 1;
  447. top: 0;
  448. left: 0;
  449. width: 100%;
  450. height: 100%;
  451. background: #fff;
  452. opacity: .25;
  453. filter: alpha(opacity=25);
  454. }
  455. .fc .ui-draggable-dragging .fc-event-bg, /* TODO: something nicer like .fc-opacity */
  456. .fc-select-helper .fc-event-bg {
  457. display: none\9; /* for IE6/7/8. nested opacity filters while dragging don't work */
  458. }
  459. /* resizable */
  460. .fc-event-vert .ui-resizable-s {
  461. bottom: 0 !important; /* importants override pre jquery ui 1.7 styles */
  462. width: 100% !important;
  463. height: 8px !important;
  464. overflow: hidden !important;
  465. line-height: 8px !important;
  466. font-size: 11px !important;
  467. font-family: monospace;
  468. text-align: center;
  469. cursor: s-resize;
  470. }
  471. .fc-agenda .ui-resizable-resizing { /* TODO: better selector */
  472. _overflow: hidden;
  473. }