Timeline.style.js 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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, 'Open Sans', 'Helvetica Neue', sans-serif;
  8. font-size: 16px;
  9. font-weight: 400;
  10. }
  11. div {
  12. box-sizing: border-box;
  13. }
  14. .jc-timeline-content,
  15. .jc-timeline-header{
  16. width:100%;
  17. position:relative;
  18. display: flex;
  19. flex-direction:row;
  20. height:max-content;
  21. align-items: stretch;
  22. }
  23. .jc-timeline-rows-title,
  24. .jc-timeline-rows > tr > td{
  25. padding: 8px;
  26. min-width:40px;
  27. box-sizing: border-box;
  28. }
  29. .jc-timeline-rows > tr > td {
  30. max-width:calc( var(--width) - 8px );
  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. }
  68. .jc-timeline-rows,
  69. .jc-timeline-rows-title{
  70. height: inherit;
  71. width:var(--width, 200px);
  72. overflow: hidden;
  73. border-collapse:collapse;
  74. }
  75. .jc-timeline-grid-title-container,
  76. .jc-timeline-grid-container{
  77. position:relative;
  78. width: 600px;
  79. display: block;
  80. overflow: hidden;
  81. }
  82. .jc-timeline-grid-container{
  83. overflow-x: auto;
  84. }
  85. .jc-timeline-grid-title-container table,
  86. .jc-timeline-grid-container table {
  87. width:100%;
  88. table-layout: fixed;
  89. border-collapse: collapse;
  90. box-sizing: border-box;
  91. }
  92. .jc-timeline-grid-title-container {
  93. white-space: nowrap;
  94. cursor: grab;
  95. user-select: none; /* supported by Chrome and Opera */
  96. -webkit-user-select: none; /* Safari */
  97. -khtml-user-select: none; /* Konqueror HTML */
  98. -moz-user-select: none; /* Firefox */
  99. -ms-user-select: none; /* Internet Explorer/Edge */
  100. }
  101. .jc-timeline-grid-title:first-child > th{
  102. border-top:0;
  103. border-left-color:#ffff;
  104. border-right-color:#ffff;
  105. }
  106. .jc-timeline-grid-title:first-child > th:before,
  107. .jc-timeline-grid-title:first-child > th:last-child:after {
  108. content:" ";
  109. display: block;
  110. position:absolute;
  111. left:-1px;
  112. bottom:0px;
  113. height: 8px;
  114. border-left: 1px solid lightgrey;
  115. z-index:2;
  116. }
  117. .jc-timeline-grid-title:first-child > th:last-child:after
  118. {
  119. left:auto;
  120. right:-1px;
  121. }
  122. .jc-timeline-grid-title:first-child:last-child >th{
  123. padding:8px 0;
  124. }
  125. .jc-timeline-grid-title:last-child > th{
  126. border-bottom:none;
  127. }
  128. .jc-timeline-grid-title > th,
  129. .jc-slot {
  130. height:100%;
  131. border: solid 1px lightgrey;
  132. border-left-style: dotted;
  133. border-right:0;
  134. text-align: center;
  135. position:relative;
  136. box-sizing: border-box;
  137. }
  138. .jc-timeline-grid-title > th:last-child,
  139. .jc-slot:last-child{
  140. border-right:solid 1px lightgray;
  141. }
  142. .jc-timeline-grid-title > th,
  143. .jc-major-slot{
  144. border-left-style: solid;
  145. }
  146. .jc-timeslots{
  147. position:absolute;
  148. top:0px;
  149. left:0px;
  150. bottom:0px;
  151. overflow: hidden;
  152. }
  153. .jc-timeslot{
  154. position:absolute;
  155. white-space: nowrap;
  156. overflow-x:hidden;
  157. background-color:var(--default-background);
  158. color:#fff;
  159. border-radius:3px;
  160. padding:4px;
  161. margin:2px 0px;
  162. font-size:14px;
  163. font-weight:600;
  164. z-index:1;
  165. cursor:auto;
  166. }
  167. .jc-timeslot.empty{
  168. height:5px;
  169. padding:2px 2px;
  170. margin:0px;
  171. cursor:pointer;
  172. }
  173. .jc-timeslot.moving{
  174. opacity:0.7;
  175. cursor:grabbing;
  176. }
  177. .jc-timeslot.selected:before{
  178. border:solid 2px black;
  179. position:absolute;
  180. top:0;
  181. bottom:0;
  182. left:0;
  183. right:0;
  184. content:" ";
  185. }
  186. .jc-timeslot-resizer-start,
  187. .jc-timeslot-resizer-end{
  188. position:absolute;
  189. top:0;
  190. bottom:0;
  191. width:4px;
  192. min-width:4px;
  193. display:block;
  194. cursor: ew-resize;
  195. }
  196. .jc-timeslot-resizer-start,
  197. .jc-timeslot-resizer-end{
  198. display:block;
  199. }
  200. .jc-timeslot-resizer-start{
  201. left:0px;
  202. }
  203. .jc-timeslot-resizer-end{
  204. right:0px;
  205. }
  206. .jc-timeline-rows > tr >td{
  207. height:100%;
  208. }
  209. .jc-ressource{
  210. padding-top: 2px;
  211. height: calc( 100% - 8px);
  212. }
  213. .jc-ressource > span {
  214. pointer-events: none;
  215. }
  216. .jc-ressource.target{
  217. background-color: lightgrey;
  218. }
  219. .jc-ressource-selected{
  220. border:1px solid var(--default-background, SteelBlue);
  221. border-right:0;
  222. border-left:0;
  223. background-color:#4682b46b;
  224. }
  225. .jc-ressource-above{
  226. height:4px;
  227. }
  228. .jc-ressource-above.target{
  229. margin-left: calc( var(--depth) * 16px );
  230. background-color: var(--default-background, SteelBlue);
  231. border-radius: 0 0 0 4px;
  232. }
  233. .jc-ressource-below{
  234. height:4px;
  235. }
  236. .jc-ressource-below.target{
  237. margin-left: calc( var(--depth) * 16px);
  238. background-color: var(--default-background, SteelBlue);
  239. border-radius: 4px 0 0 0;
  240. }
  241. `;
  242. //# sourceMappingURL=Timeline.style.js.map