Timeline.style.js 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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. background-color:var(--default-background);
  156. color:#fff;
  157. border-radius:3px;
  158. margin:2px 0px;
  159. z-index:1;
  160. cursor: grab;
  161. }
  162. .jc-timeslot-title{
  163. font-size:14px;
  164. font-weight:600;
  165. padding:4px;
  166. white-space: nowrap;
  167. overflow-x: hidden;
  168. }
  169. .jc-timeslot.empty{
  170. height:5px;
  171. padding:2px 2px;
  172. margin:0px;
  173. cursor:pointer;
  174. }
  175. .jc-timeslot.moving{
  176. opacity:0.7;
  177. cursor:grabbing;
  178. }
  179. .jc-timeslot.selected:before{
  180. border:solid 2px black;
  181. border-radius:3px;
  182. position:absolute;
  183. top:0;
  184. bottom:0;
  185. left:0;
  186. right:0;
  187. content:" ";
  188. }
  189. .jc-timeslot-resizer-start,
  190. .jc-timeslot-resizer-end{
  191. position:absolute;
  192. top:0;
  193. bottom:0;
  194. width:4px;
  195. min-width:4px;
  196. display:block;
  197. cursor: ew-resize;
  198. }
  199. .jc-timeslot-resizer-start,
  200. .jc-timeslot-resizer-end{
  201. display:block;
  202. }
  203. .jc-timeslot-resizer-start{
  204. left:0px;
  205. }
  206. .jc-timeslot-resizer-end{
  207. right:0px;
  208. }
  209. .jc-timeline-rows > tr >td{
  210. height:100%;
  211. }
  212. .jc-ressource{
  213. padding-top: 2px;
  214. height: calc( 100% - 8px);
  215. }
  216. .jc-ressource > span {
  217. pointer-events: none;
  218. }
  219. .jc-ressource.target{
  220. background-color: lightgrey;
  221. }
  222. .jc-ressource-selected{
  223. border:1px solid var(--default-background, SteelBlue);
  224. border-right:0;
  225. border-left:0;
  226. background-color:#4682b46b;
  227. }
  228. .jc-ressource-above{
  229. height:4px;
  230. }
  231. .jc-ressource-above.target{
  232. margin-left: calc( var(--depth) * 16px );
  233. background-color: var(--default-background, SteelBlue);
  234. border-radius: 0 0 0 4px;
  235. }
  236. .jc-ressource-below{
  237. height:4px;
  238. }
  239. .jc-ressource-below.target{
  240. margin-left: calc( var(--depth) * 16px);
  241. background-color: var(--default-background, SteelBlue);
  242. border-radius: 4px 0 0 0;
  243. }
  244. `;
  245. //# sourceMappingURL=Timeline.style.js.map