Timeline.style.js 6.4 KB

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