Timeline.style.js 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.TimelineStyle = void 0;
  4. const lit_element_1 = require("lit-element");
  5. exports.TimelineStyle = lit_element_1.css `
  6. * {
  7. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
  8. "Open Sans", "Helvetica Neue", sans-serif;
  9. font-size: 16px;
  10. font-weight: 400;
  11. }
  12. div {
  13. box-sizing: border-box;
  14. }
  15. .jc-timeline-content,
  16. .jc-timeline-header {
  17. width: 100%;
  18. position: relative;
  19. display: flex;
  20. flex-direction: row;
  21. height: max-content;
  22. align-items: stretch;
  23. }
  24. .jc-timeline-rows-title,
  25. .jc-timeline-rows > tr > td {
  26. padding: 8px;
  27. box-sizing: border-box;
  28. }
  29. .jc-timeline-rows > tr > td {
  30. width: var(--width, 200px);
  31. padding: 0px;
  32. vertical-align: top;
  33. }
  34. .jc-timeline-rows > tr.empty > td {
  35. padding: 6px 0px 4px 8px;
  36. }
  37. i.jc-spacer {
  38. display: inline-block;
  39. width: 1rem;
  40. height: 1rem;
  41. position: relative;
  42. box-sizing: border-box;
  43. }
  44. i.jc-spacer:after {
  45. content: " ";
  46. position: absolute;
  47. background-repeat: no-repeat;
  48. background-size: 1.05rem;
  49. width: 1.05rem;
  50. height: 1.05rem;
  51. }
  52. .jc-spacer.extend,
  53. .jc-spacer.collapse {
  54. cursor: pointer;
  55. }
  56. i.jc-spacer.extend:after {
  57. background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siIHdpZHRoPSIxOHB4IiBoZWlnaHQ9IjE4cHgiPjxwYXRoIGQ9Ik0wIDBoMjR2MjRIMFYweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik0xOSAzSDVjLTEuMTEgMC0yIC45LTIgMnYxNGMwIDEuMS44OSAyIDIgMmgxNGMxLjEgMCAyLS45IDItMlY1YzAtMS4xLS45LTItMi0yem0wIDE2SDVWNWgxNHYxNHptLTgtMmgydi00aDR2LTJoLTRWN2gtMnY0SDd2Mmg0eiIvPjwvc3ZnPg==");
  58. }
  59. i.jc-spacer.collapse:after {
  60. background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0Ij48cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTE5IDNINWMtMS4xIDAtMiAuOS0yIDJ2MTRjMCAxLjEuOSAyIDIgMmgxNGMxLjEgMCAyLS45IDItMlY1YzAtMS4xLS45LTItMi0yem0wIDE2SDVWNWgxNHYxNHpNNyAxMWgxMHYySDd6Ii8+PC9zdmc+");
  61. }
  62. .jc-timeline-rows > tr {
  63. box-sizing: border-box;
  64. white-space: nowrap;
  65. border: 1px solid grey;
  66. border-style: solid none;
  67. width: 100%;
  68. }
  69. .jc-timeline-rows,
  70. .jc-timeline-rows-title {
  71. height: inherit;
  72. width: var(--width, 200px);
  73. min-width: 40px;
  74. overflow-x: hidden;
  75. border-collapse: collapse;
  76. display: block;
  77. }
  78. .jc-timeline-grid-title-container,
  79. .jc-timeline-grid-container {
  80. position: relative;
  81. width: calc(100% - var(--width, 200px));
  82. display: block;
  83. overflow: hidden;
  84. }
  85. .jc-timeline-grid-container {
  86. overflow-x: auto;
  87. }
  88. .jc-timeline-grid-title-container table,
  89. .jc-timeline-grid-container table {
  90. width: 100%;
  91. table-layout: fixed;
  92. border-collapse: collapse;
  93. box-sizing: border-box;
  94. }
  95. .jc-timeline-grid-title-container {
  96. white-space: nowrap;
  97. cursor: grab;
  98. user-select: none; /* supported by Chrome and Opera */
  99. -webkit-user-select: none; /* Safari */
  100. -khtml-user-select: none; /* Konqueror HTML */
  101. -moz-user-select: none; /* Firefox */
  102. -ms-user-select: none; /* Internet Explorer/Edge */
  103. }
  104. .jc-timeline-grid-title:first-child > th {
  105. border-top: 0;
  106. border-left-color: #ffff;
  107. border-right-color: #ffff;
  108. }
  109. .jc-timeline-grid-title:not(:last-child) > th > div {
  110. position: sticky;
  111. width: min-content;
  112. padding: 0 4px;
  113. position: -webkit-sticky;
  114. left: 0;
  115. }
  116. .jc-timeline-grid-title:first-child > th:before,
  117. .jc-timeline-grid-title:first-child > th:last-child:after {
  118. content: " ";
  119. display: block;
  120. position: absolute;
  121. left: -1px;
  122. bottom: 0px;
  123. height: 8px;
  124. border-left: 1px solid lightgrey;
  125. z-index: 2;
  126. }
  127. .jc-timeline-grid-title:first-child > th:last-child:after {
  128. left: auto;
  129. right: -1px;
  130. }
  131. .jc-timeline-grid-title:first-child:last-child > th {
  132. padding: 8px 0;
  133. }
  134. .jc-timeline-grid-title:last-child > th {
  135. border-bottom: none;
  136. }
  137. .jc-timeline-grid-title > th,
  138. .jc-slot {
  139. height: 100%;
  140. border: solid 1px lightgrey;
  141. border-left-style: dotted;
  142. border-right: 0;
  143. text-align: center;
  144. position: relative;
  145. box-sizing: border-box;
  146. }
  147. .jc-timeline-grid-title > th:last-child,
  148. .jc-slot:last-child {
  149. border-right: solid 1px lightgray;
  150. }
  151. .jc-timeline-grid-title > th,
  152. .jc-major-slot {
  153. border-left-style: solid;
  154. }
  155. .jc-timeslots {
  156. position: absolute;
  157. top: 0px;
  158. left: 0px;
  159. bottom: 0px;
  160. overflow: hidden;
  161. }
  162. .jc-timeslot {
  163. position: absolute;
  164. background-color: var(--default-background);
  165. color: #fff;
  166. border-radius: 3px;
  167. margin: 2px 0px;
  168. z-index: auto;
  169. cursor: grab;
  170. }
  171. .jc-timeslot-title {
  172. font-size: 14px;
  173. font-weight: 600;
  174. padding: 4px;
  175. white-space: nowrap;
  176. overflow-x: hidden;
  177. }
  178. .jc-timeslot.empty {
  179. height: 5px;
  180. padding: 2px 2px;
  181. margin: 0px;
  182. cursor: pointer;
  183. }
  184. .jc-timeslot.moving {
  185. opacity: 0.7;
  186. cursor: grabbing;
  187. }
  188. .jc-timeslot.selected:before {
  189. border: solid 2px black;
  190. border-radius: 3px;
  191. position: absolute;
  192. top: 0;
  193. bottom: 0;
  194. left: 0;
  195. right: 0;
  196. content: " ";
  197. }
  198. .jc-timeslot-resizer-start,
  199. .jc-timeslot-resizer-end {
  200. position: absolute;
  201. top: 0;
  202. bottom: 0;
  203. width: 4px;
  204. min-width: 4px;
  205. display: block;
  206. cursor: ew-resize;
  207. }
  208. .jc-timeslot-resizer-start,
  209. .jc-timeslot-resizer-end {
  210. display: block;
  211. }
  212. .jc-timeslot-resizer-start {
  213. left: 0px;
  214. }
  215. .jc-timeslot-resizer-end {
  216. right: 0px;
  217. }
  218. .jc-timeline-rows > tr > td {
  219. height: 100%;
  220. }
  221. .jc-ressource {
  222. padding-top: 2px;
  223. height: calc(100% - 8px);
  224. }
  225. .jc-ressource > span {
  226. pointer-events: none;
  227. }
  228. .jc-ressource.target {
  229. background-color: lightgrey;
  230. }
  231. .jc-ressource-selected {
  232. border: 1px solid var(--default-background, SteelBlue);
  233. border-right: 0;
  234. border-left: 0;
  235. background-color: #4682b46b;
  236. }
  237. .jc-ressource-above {
  238. height: 4px;
  239. }
  240. .jc-ressource-above.target {
  241. margin-left: calc(var(--depth) * 16px);
  242. background-color: var(--default-background, SteelBlue);
  243. border-radius: 0 0 0 4px;
  244. }
  245. .jc-ressource-below {
  246. height: 4px;
  247. }
  248. .jc-ressource-below.target {
  249. margin-left: calc(var(--depth) * 16px);
  250. background-color: var(--default-background, SteelBlue);
  251. border-radius: 4px 0 0 0;
  252. }
  253. `;
  254. //# sourceMappingURL=Timeline.style.js.map