fullcalendar.css 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929
  1. /*!
  2. * FullCalendar v2.1.1 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-rtl {
  11. text-align: right;
  12. }
  13. body .fc { /* extra precedence to overcome jqui */
  14. font-size: 1em;
  15. }
  16. /* Colors
  17. --------------------------------------------------------------------------------------------------*/
  18. .fc-unthemed th,
  19. .fc-unthemed td,
  20. .fc-unthemed hr,
  21. .fc-unthemed thead,
  22. .fc-unthemed tbody,
  23. .fc-unthemed .fc-row,
  24. .fc-unthemed .fc-popover {
  25. border-color: #ddd;
  26. }
  27. .fc-unthemed .fc-popover {
  28. background-color: #fff;
  29. }
  30. .fc-unthemed hr,
  31. .fc-unthemed .fc-popover .fc-header {
  32. background: #eee;
  33. }
  34. .fc-unthemed .fc-popover .fc-header .fc-close {
  35. color: #666;
  36. }
  37. .fc-unthemed .fc-today {
  38. background: #fcf8e3;
  39. }
  40. .fc-highlight { /* when user is selecting cells */
  41. background: #bce8f1;
  42. opacity: .3;
  43. filter: alpha(opacity=30); /* for IE */
  44. }
  45. /* Icons (inline elements with styled text that mock arrow icons)
  46. --------------------------------------------------------------------------------------------------*/
  47. .fc-icon {
  48. display: inline-block;
  49. font-size: 2em;
  50. line-height: .5em;
  51. height: .5em; /* will make the total height 1em */
  52. font-family: "Courier New", Courier, monospace;
  53. }
  54. .fc-icon-left-single-arrow:after {
  55. content: "\02039";
  56. font-weight: bold;
  57. }
  58. .fc-icon-right-single-arrow:after {
  59. content: "\0203A";
  60. font-weight: bold;
  61. }
  62. .fc-icon-left-double-arrow:after {
  63. content: "\000AB";
  64. }
  65. .fc-icon-right-double-arrow:after {
  66. content: "\000BB";
  67. }
  68. .fc-icon-x:after {
  69. content: "\000D7";
  70. }
  71. /* Buttons (styled <button> tags, normalized to work cross-browser)
  72. --------------------------------------------------------------------------------------------------*/
  73. .fc button {
  74. /* force height to include the border and padding */
  75. -moz-box-sizing: border-box;
  76. -webkit-box-sizing: border-box;
  77. box-sizing: border-box;
  78. /* dimensions */
  79. margin: 0;
  80. height: 2.1em;
  81. padding: 0 .6em;
  82. /* text & cursor */
  83. font-size: 1em; /* normalize */
  84. white-space: nowrap;
  85. cursor: pointer;
  86. }
  87. /* Firefox has an annoying inner border */
  88. .fc button::-moz-focus-inner { margin: 0; padding: 0; }
  89. .fc-state-default { /* non-theme */
  90. border: 1px solid;
  91. }
  92. .fc-state-default.fc-corner-left { /* non-theme */
  93. border-top-left-radius: 4px;
  94. border-bottom-left-radius: 4px;
  95. }
  96. .fc-state-default.fc-corner-right { /* non-theme */
  97. border-top-right-radius: 4px;
  98. border-bottom-right-radius: 4px;
  99. }
  100. /* icons in buttons */
  101. .fc button .fc-icon { /* non-theme */
  102. position: relative;
  103. top: .05em; /* seems to be a good adjustment across browsers */
  104. margin: 0 .1em;
  105. }
  106. /*
  107. button states
  108. borrowed from twitter bootstrap (http://twitter.github.com/bootstrap/)
  109. */
  110. .fc-state-default {
  111. background-color: #f5f5f5;
  112. background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
  113. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
  114. background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
  115. background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
  116. background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
  117. background-repeat: repeat-x;
  118. border-color: #e6e6e6 #e6e6e6 #bfbfbf;
  119. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  120. color: #333;
  121. text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  122. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  123. }
  124. .fc-state-hover,
  125. .fc-state-down,
  126. .fc-state-active,
  127. .fc-state-disabled {
  128. color: #333333;
  129. background-color: #e6e6e6;
  130. }
  131. .fc-state-hover {
  132. color: #333333;
  133. text-decoration: none;
  134. background-position: 0 -15px;
  135. -webkit-transition: background-position 0.1s linear;
  136. -moz-transition: background-position 0.1s linear;
  137. -o-transition: background-position 0.1s linear;
  138. transition: background-position 0.1s linear;
  139. }
  140. .fc-state-down,
  141. .fc-state-active {
  142. background-color: #cccccc;
  143. background-image: none;
  144. box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
  145. }
  146. .fc-state-disabled {
  147. cursor: default;
  148. background-image: none;
  149. opacity: 0.65;
  150. filter: alpha(opacity=65);
  151. box-shadow: none;
  152. }
  153. /* Buttons Groups
  154. --------------------------------------------------------------------------------------------------*/
  155. .fc-button-group {
  156. display: inline-block;
  157. }
  158. /*
  159. every button that is not first in a button group should scootch over one pixel and cover the
  160. previous button's border...
  161. */
  162. .fc .fc-button-group > * { /* extra precedence b/c buttons have margin set to zero */
  163. float: left;
  164. margin: 0 0 0 -1px;
  165. }
  166. .fc .fc-button-group > :first-child { /* same */
  167. margin-left: 0;
  168. }
  169. /* Popover
  170. --------------------------------------------------------------------------------------------------*/
  171. .fc-popover {
  172. position: absolute;
  173. box-shadow: 0 2px 6px rgba(0,0,0,.15);
  174. }
  175. .fc-popover .fc-header {
  176. padding: 2px 4px;
  177. }
  178. .fc-popover .fc-header .fc-title {
  179. margin: 0 2px;
  180. }
  181. .fc-popover .fc-header .fc-close {
  182. cursor: pointer;
  183. }
  184. .fc-ltr .fc-popover .fc-header .fc-title,
  185. .fc-rtl .fc-popover .fc-header .fc-close {
  186. float: left;
  187. }
  188. .fc-rtl .fc-popover .fc-header .fc-title,
  189. .fc-ltr .fc-popover .fc-header .fc-close {
  190. float: right;
  191. }
  192. /* unthemed */
  193. .fc-unthemed .fc-popover {
  194. border-width: 1px;
  195. border-style: solid;
  196. }
  197. .fc-unthemed .fc-popover .fc-header .fc-close {
  198. font-size: 25px;
  199. margin-top: 4px;
  200. }
  201. /* jqui themed */
  202. .fc-popover > .ui-widget-header + .ui-widget-content {
  203. border-top: 0; /* where they meet, let the header have the border */
  204. }
  205. /* Misc Reusable Components
  206. --------------------------------------------------------------------------------------------------*/
  207. .fc hr {
  208. height: 0;
  209. margin: 0;
  210. padding: 0 0 2px; /* height is unreliable across browsers, so use padding */
  211. border-style: solid;
  212. border-width: 1px 0;
  213. }
  214. .fc-clear {
  215. clear: both;
  216. }
  217. .fc-bg,
  218. .fc-highlight-skeleton,
  219. .fc-helper-skeleton {
  220. /* these element should always cling to top-left/right corners */
  221. position: absolute;
  222. top: 0;
  223. left: 0;
  224. right: 0;
  225. }
  226. .fc-bg {
  227. bottom: 0; /* strech bg to bottom edge */
  228. }
  229. .fc-bg table {
  230. height: 100%; /* strech bg to bottom edge */
  231. }
  232. /* Tables
  233. --------------------------------------------------------------------------------------------------*/
  234. .fc table {
  235. width: 100%;
  236. table-layout: fixed;
  237. border-collapse: collapse;
  238. border-spacing: 0;
  239. font-size: 1em; /* normalize cross-browser */
  240. }
  241. .fc th {
  242. text-align: center;
  243. }
  244. .fc th,
  245. .fc td {
  246. border-style: solid;
  247. border-width: 1px;
  248. padding: 0;
  249. vertical-align: top;
  250. }
  251. .fc td.fc-today {
  252. border-style: double; /* overcome neighboring borders */
  253. }
  254. /* Fake Table Rows
  255. --------------------------------------------------------------------------------------------------*/
  256. .fc .fc-row { /* extra precedence to overcome themes w/ .ui-widget-content forcing a 1px border */
  257. /* no visible border by default. but make available if need be (scrollbar width compensation) */
  258. border-style: solid;
  259. border-width: 0;
  260. }
  261. .fc-row table {
  262. /* don't put left/right border on anything within a fake row.
  263. the outer tbody will worry about this */
  264. border-left: 0 hidden transparent;
  265. border-right: 0 hidden transparent;
  266. /* no bottom borders on rows */
  267. border-bottom: 0 hidden transparent;
  268. }
  269. .fc-row:first-child table {
  270. border-top: 0 hidden transparent; /* no top border on first row */
  271. }
  272. /* Day Row (used within the header and the DayGrid)
  273. --------------------------------------------------------------------------------------------------*/
  274. .fc-row {
  275. position: relative;
  276. }
  277. .fc-row .fc-bg {
  278. z-index: 1;
  279. }
  280. /* highlighting cells */
  281. .fc-row .fc-highlight-skeleton {
  282. z-index: 2;
  283. bottom: 0; /* stretch skeleton to bottom of row */
  284. }
  285. .fc-row .fc-highlight-skeleton table {
  286. height: 100%; /* stretch skeleton to bottom of row */
  287. }
  288. .fc-row .fc-highlight-skeleton td {
  289. border-color: transparent;
  290. }
  291. /*
  292. row content (which contains day/week numbers and events) as well as "helper" (which contains
  293. temporary rendered events).
  294. */
  295. .fc-row .fc-content-skeleton {
  296. position: relative;
  297. z-index: 3;
  298. padding-bottom: 2px; /* matches the space above the events */
  299. }
  300. .fc-row .fc-helper-skeleton {
  301. z-index: 4;
  302. }
  303. .fc-row .fc-content-skeleton td,
  304. .fc-row .fc-helper-skeleton td {
  305. /* see-through to the background below */
  306. background: none; /* in case <td>s are globally styled */
  307. border-color: transparent;
  308. /* don't put a border between events and/or the day number */
  309. border-bottom: 0;
  310. }
  311. .fc-row .fc-content-skeleton tbody td, /* cells with events inside (so NOT the day number cell) */
  312. .fc-row .fc-helper-skeleton tbody td {
  313. /* don't put a border between event cells */
  314. border-top: 0;
  315. }
  316. /* Scrolling Container
  317. --------------------------------------------------------------------------------------------------*/
  318. .fc-scroller { /* this class goes on elements for guaranteed vertical scrollbars */
  319. overflow-y: scroll;
  320. overflow-x: hidden;
  321. }
  322. .fc-scroller > * { /* we expect an immediate inner element */
  323. position: relative; /* re-scope all positions */
  324. width: 100%; /* hack to force re-sizing this inner element when scrollbars appear/disappear */
  325. overflow: hidden; /* don't let negative margins or absolute positioning create further scroll */
  326. }
  327. /* Global Event Styles
  328. --------------------------------------------------------------------------------------------------*/
  329. .fc-event {
  330. position: relative; /* for resize handle and other inner positioning */
  331. display: block; /* make the <a> tag block */
  332. font-size: .85em;
  333. background-color: #fff;
  334. font-size: .85em;
  335. }
  336. /* overpower some of bootstrap's and jqui's styles on <a> tags */
  337. .fc-event,
  338. .fc-event:hover,
  339. .ui-widget .fc-event {
  340. text-decoration: none; /* if <a> has an href */
  341. }
  342. .fc-event[href],
  343. .fc-event.fc-draggable {
  344. cursor: pointer; /* give events with links and draggable events a hand mouse pointer */
  345. }
  346. /* DayGrid events
  347. ----------------------------------------------------------------------------------------------------
  348. We use the full "fc-day-grid-event" class instead of using descendants because the event won't
  349. be a descendant of the grid when it is being dragged.
  350. */
  351. .fc-day-grid-event {
  352. margin: 1px 2px 0; /* spacing between events and edges */
  353. padding: 0 1px;
  354. }
  355. /* events that are continuing to/from another week. kill rounded corners and butt up against edge */
  356. .fc-ltr .fc-day-grid-event.fc-not-start,
  357. .fc-rtl .fc-day-grid-event.fc-not-end {
  358. margin-left: 0;
  359. border-left-width: 0;
  360. padding-left: 1px; /* replace the border with padding */
  361. border-top-left-radius: 0;
  362. border-bottom-left-radius: 0;
  363. }
  364. .fc-ltr .fc-day-grid-event.fc-not-end,
  365. .fc-rtl .fc-day-grid-event.fc-not-start {
  366. margin-right: 0;
  367. border-right-width: 0;
  368. padding-right: 1px; /* replace the border with padding */
  369. border-top-right-radius: 0;
  370. border-bottom-right-radius: 0;
  371. }
  372. .fc-day-grid-event > .fc-content { /* force events to be one-line tall */
  373. white-space: nowrap;
  374. overflow: hidden;
  375. }
  376. .fc-day-grid-event .fc-time {
  377. font-weight: bold;
  378. }
  379. /* resize handle (outside of fc-content, so can go outside of bounds) */
  380. .fc-day-grid-event .fc-resizer {
  381. position: absolute;
  382. top: 0;
  383. bottom: 0;
  384. width: 7px;
  385. }
  386. .fc-ltr .fc-day-grid-event .fc-resizer {
  387. right: -3px;
  388. cursor: e-resize;
  389. }
  390. .fc-rtl .fc-day-grid-event .fc-resizer {
  391. left: -3px;
  392. cursor: w-resize;
  393. }
  394. /* Event Limiting
  395. --------------------------------------------------------------------------------------------------*/
  396. /* "more" link that represents hidden events */
  397. a.fc-more {
  398. margin: 1px 3px;
  399. font-size: .85em;
  400. cursor: pointer;
  401. text-decoration: none;
  402. }
  403. a.fc-more:hover {
  404. text-decoration: underline;
  405. }
  406. .fc-limited { /* rows and cells that are hidden because of a "more" link */
  407. display: none;
  408. }
  409. /* popover that appears when "more" link is clicked */
  410. .fc-day-grid .fc-row {
  411. z-index: 1; /* make the "more" popover one higher than this */
  412. }
  413. .fc-more-popover {
  414. z-index: 2;
  415. width: 220px;
  416. }
  417. .fc-more-popover .fc-event-container {
  418. padding: 10px;
  419. }
  420. /* Toolbar
  421. --------------------------------------------------------------------------------------------------*/
  422. .fc-toolbar {
  423. text-align: center;
  424. margin-bottom: 1em;
  425. }
  426. .fc-toolbar .fc-left {
  427. float: left;
  428. }
  429. .fc-toolbar .fc-right {
  430. float: right;
  431. }
  432. .fc-toolbar .fc-center {
  433. display: inline-block;
  434. }
  435. /* the things within each left/right/center section */
  436. .fc .fc-toolbar > * > * { /* extra precedence to override button border margins */
  437. float: left;
  438. margin-left: .75em;
  439. }
  440. /* the first thing within each left/center/right section */
  441. .fc .fc-toolbar > * > :first-child { /* extra precedence to override button border margins */
  442. margin-left: 0;
  443. }
  444. /* title text */
  445. .fc-toolbar h2 {
  446. margin: 0;
  447. }
  448. /* button layering (for border precedence) */
  449. .fc-toolbar button {
  450. position: relative;
  451. }
  452. .fc-toolbar .fc-state-hover,
  453. .fc-toolbar .ui-state-hover {
  454. z-index: 2;
  455. }
  456. .fc-toolbar .fc-state-down {
  457. z-index: 3;
  458. }
  459. .fc-toolbar .fc-state-active,
  460. .fc-toolbar .ui-state-active {
  461. z-index: 4;
  462. }
  463. .fc-toolbar button:focus {
  464. z-index: 5;
  465. }
  466. /* View Structure
  467. --------------------------------------------------------------------------------------------------*/
  468. /* undo twitter bootstrap's box-sizing rules. normalizes positioning techniques */
  469. /* don't do this for the toolbar because we'll want bootstrap to style those buttons as some pt */
  470. .fc-view-container *,
  471. .fc-view-container *:before,
  472. .fc-view-container *:after {
  473. -webkit-box-sizing: content-box;
  474. -moz-box-sizing: content-box;
  475. box-sizing: content-box;
  476. }
  477. .fc-view, /* scope positioning and z-index's for everything within the view */
  478. .fc-view > table { /* so dragged elements can be above the view's main element */
  479. position: relative;
  480. z-index: 1;
  481. }
  482. /* BasicView
  483. --------------------------------------------------------------------------------------------------*/
  484. /* day row structure */
  485. .fc-basicWeek-view .fc-content-skeleton,
  486. .fc-basicDay-view .fc-content-skeleton {
  487. /* we are sure there are no day numbers in these views, so... */
  488. padding-top: 1px; /* add a pixel to make sure there are 2px padding above events */
  489. padding-bottom: 1em; /* ensure a space at bottom of cell for user selecting/clicking */
  490. }
  491. .fc-basic-view tbody .fc-row {
  492. min-height: 4em; /* ensure that all rows are at least this tall */
  493. }
  494. /* a "rigid" row will take up a constant amount of height because content-skeleton is absolute */
  495. .fc-row.fc-rigid {
  496. overflow: hidden;
  497. }
  498. .fc-row.fc-rigid .fc-content-skeleton {
  499. position: absolute;
  500. top: 0;
  501. left: 0;
  502. right: 0;
  503. }
  504. /* week and day number styling */
  505. .fc-basic-view .fc-week-number,
  506. .fc-basic-view .fc-day-number {
  507. padding: 0 2px;
  508. }
  509. .fc-basic-view td.fc-week-number span,
  510. .fc-basic-view td.fc-day-number {
  511. padding-top: 2px;
  512. padding-bottom: 2px;
  513. }
  514. .fc-basic-view .fc-week-number {
  515. text-align: center;
  516. }
  517. .fc-basic-view .fc-week-number span {
  518. /* work around the way we do column resizing and ensure a minimum width */
  519. display: inline-block;
  520. min-width: 1.25em;
  521. }
  522. .fc-ltr .fc-basic-view .fc-day-number {
  523. text-align: right;
  524. }
  525. .fc-rtl .fc-basic-view .fc-day-number {
  526. text-align: left;
  527. }
  528. .fc-day-number.fc-other-month {
  529. opacity: 0.3;
  530. filter: alpha(opacity=30); /* for IE */
  531. /* opacity with small font can sometimes look too faded
  532. might want to set the 'color' property instead
  533. making day-numbers bold also fixes the problem */
  534. }
  535. /* AgendaView all-day area
  536. --------------------------------------------------------------------------------------------------*/
  537. .fc-agenda-view .fc-day-grid {
  538. position: relative;
  539. z-index: 2; /* so the "more.." popover will be over the time grid */
  540. }
  541. .fc-agenda-view .fc-day-grid .fc-row {
  542. min-height: 3em; /* all-day section will never get shorter than this */
  543. }
  544. .fc-agenda-view .fc-day-grid .fc-row .fc-content-skeleton {
  545. padding-top: 1px; /* add a pixel to make sure there are 2px padding above events */
  546. padding-bottom: 1em; /* give space underneath events for clicking/selecting days */
  547. }
  548. /* TimeGrid axis running down the side (for both the all-day area and the slot area)
  549. --------------------------------------------------------------------------------------------------*/
  550. .fc .fc-axis { /* .fc to overcome default cell styles */
  551. vertical-align: middle;
  552. padding: 0 4px;
  553. white-space: nowrap;
  554. }
  555. .fc-ltr .fc-axis {
  556. text-align: right;
  557. }
  558. .fc-rtl .fc-axis {
  559. text-align: left;
  560. }
  561. .ui-widget td.fc-axis {
  562. font-weight: normal; /* overcome jqui theme making it bold */
  563. }
  564. /* TimeGrid Structure
  565. --------------------------------------------------------------------------------------------------*/
  566. .fc-time-grid-container, /* so scroll container's z-index is below all-day */
  567. .fc-time-grid { /* so slats/bg/content/etc positions get scoped within here */
  568. position: relative;
  569. z-index: 1;
  570. }
  571. .fc-time-grid {
  572. min-height: 100%; /* so if height setting is 'auto', .fc-bg stretches to fill height */
  573. }
  574. .fc-time-grid table { /* don't put outer borders on slats/bg/content/etc */
  575. border: 0 hidden transparent;
  576. }
  577. .fc-time-grid > .fc-bg {
  578. z-index: 1;
  579. }
  580. .fc-time-grid .fc-slats,
  581. .fc-time-grid > hr { /* the <hr> AgendaView injects when grid is shorter than scroller */
  582. position: relative;
  583. z-index: 2;
  584. }
  585. .fc-time-grid .fc-highlight-skeleton {
  586. z-index: 3;
  587. }
  588. .fc-time-grid .fc-content-skeleton {
  589. position: absolute;
  590. z-index: 4;
  591. top: 0;
  592. left: 0;
  593. right: 0;
  594. }
  595. .fc-time-grid > .fc-helper-skeleton {
  596. z-index: 5;
  597. }
  598. /* TimeGrid Slats (lines that run horizontally)
  599. --------------------------------------------------------------------------------------------------*/
  600. .fc-slats td {
  601. height: 1.5em;
  602. border-bottom: 0; /* each cell is responsible for its top border */
  603. }
  604. .fc-slats .fc-minor td {
  605. border-top-style: dotted;
  606. }
  607. .fc-slats .ui-widget-content { /* for jqui theme */
  608. background: none; /* see through to fc-bg */
  609. }
  610. /* TimeGrid Highlighting Slots
  611. --------------------------------------------------------------------------------------------------*/
  612. .fc-time-grid .fc-highlight-container { /* a div within a cell within the fc-highlight-skeleton */
  613. position: relative; /* scopes the left/right of the fc-highlight to be in the column */
  614. }
  615. .fc-time-grid .fc-highlight {
  616. position: absolute;
  617. left: 0;
  618. right: 0;
  619. /* top and bottom will be in by JS */
  620. }
  621. /* TimeGrid Event Containment
  622. --------------------------------------------------------------------------------------------------*/
  623. .fc-time-grid .fc-event-container { /* a div within a cell within the fc-content-skeleton */
  624. position: relative;
  625. }
  626. .fc-ltr .fc-time-grid .fc-event-container { /* space on the sides of events for LTR (default) */
  627. margin: 0 2.5% 0 2px;
  628. }
  629. .fc-rtl .fc-time-grid .fc-event-container { /* space on the sides of events for RTL */
  630. margin: 0 2px 0 2.5%;
  631. }
  632. .fc-time-grid .fc-event {
  633. position: absolute;
  634. z-index: 1; /* scope inner z-index's */
  635. }
  636. /* TimeGrid Event Styling
  637. ----------------------------------------------------------------------------------------------------
  638. We use the full "fc-time-grid-event" class instead of using descendants because the event won't
  639. be a descendant of the grid when it is being dragged.
  640. */
  641. .fc-time-grid-event.fc-not-start { /* events that are continuing from another day */
  642. /* replace space made by the top border with padding */
  643. border-top-width: 0;
  644. padding-top: 1px;
  645. /* remove top rounded corners */
  646. border-top-left-radius: 0;
  647. border-top-right-radius: 0;
  648. }
  649. .fc-time-grid-event.fc-not-end {
  650. /* replace space made by the top border with padding */
  651. border-bottom-width: 0;
  652. padding-bottom: 1px;
  653. /* remove bottom rounded corners */
  654. border-bottom-left-radius: 0;
  655. border-bottom-right-radius: 0;
  656. }
  657. .fc-time-grid-event {
  658. overflow: hidden; /* don't let the bg flow over rounded corners */
  659. }
  660. .fc-time-grid-event > .fc-content { /* contains the time and title, but no bg and resizer */
  661. position: relative;
  662. z-index: 2; /* above the bg */
  663. }
  664. .fc-time-grid-event .fc-time,
  665. .fc-time-grid-event .fc-title {
  666. padding: 0 1px;
  667. }
  668. .fc-time-grid-event .fc-time {
  669. font-size: .85em;
  670. white-space: nowrap;
  671. }
  672. .fc-time-grid-event .fc-bg {
  673. z-index: 1;
  674. background: #fff;
  675. opacity: .25;
  676. filter: alpha(opacity=25); /* for IE */
  677. }
  678. /* short mode, where time and title are on the same line */
  679. .fc-time-grid-event.fc-short .fc-content {
  680. /* don't wrap to second line (now that contents will be inline) */
  681. white-space: nowrap;
  682. }
  683. .fc-time-grid-event.fc-short .fc-time,
  684. .fc-time-grid-event.fc-short .fc-title {
  685. /* put the time and title on the same line */
  686. display: inline-block;
  687. vertical-align: top;
  688. }
  689. .fc-time-grid-event.fc-short .fc-time span {
  690. display: none; /* don't display the full time text... */
  691. }
  692. .fc-time-grid-event.fc-short .fc-time:before {
  693. content: attr(data-start); /* ...instead, display only the start time */
  694. }
  695. .fc-time-grid-event.fc-short .fc-time:after {
  696. content: "\000A0-\000A0"; /* seperate with a dash, wrapped in nbsp's */
  697. }
  698. .fc-time-grid-event.fc-short .fc-title {
  699. font-size: .85em; /* make the title text the same size as the time */
  700. padding: 0; /* undo padding from above */
  701. }
  702. /* resizer */
  703. .fc-time-grid-event .fc-resizer {
  704. position: absolute;
  705. z-index: 3; /* above content */
  706. left: 0;
  707. right: 0;
  708. bottom: 0;
  709. height: 8px;
  710. overflow: hidden;
  711. line-height: 8px;
  712. font-size: 11px;
  713. font-family: monospace;
  714. text-align: center;
  715. cursor: s-resize;
  716. }
  717. .fc-time-grid-event .fc-resizer:after {
  718. content: "=";
  719. }