Timeline.style.js 6.5 KB

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