swimlanes.styl 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. @import 'nib'
  2. /*
  3. // Minimize swimlanes start https://www.w3schools.com/howto/howto_js_accordion.asp
  4. .accordion
  5. cursor: pointer
  6. width: 30px
  7. height: 20px
  8. border: none
  9. outline: none
  10. font-size: 18px
  11. transition: 0.4s
  12. padding-top: 0px
  13. margin-top: 0px
  14. .accordion:after
  15. // Unicode triagle right:
  16. content: '\25B6'
  17. color: #777
  18. font-weight: bold
  19. float: left
  20. .active:after
  21. // Unicode triangle down:
  22. content: '\25BC'
  23. .panel
  24. width: 100%
  25. max-height: 0
  26. overflow: hidden
  27. transition: max-height 0.2s ease-out
  28. margin: 0px
  29. padding: 0px
  30. // Minimize swimlanes end https://www.w3schools.com/howto/howto_js_accordion.asp
  31. */
  32. .swimlane
  33. // Even if this background color is the same as the body we can't leave it
  34. // transparent, because that won't work during a swimlane drag.
  35. background: darken(white, 13%)
  36. display: flex
  37. flex-direction: row
  38. overflow: 0;
  39. max-height: calc(100% - 26px)
  40. &.placeholder
  41. background-color: rgba(0, 0, 0, .2)
  42. border-color: transparent
  43. box-shadow: none
  44. height: 100px
  45. &.ui-sortable-helper
  46. box-shadow: -2px 2px 8px rgba(0, 0, 0, .3),
  47. 0 0 1px rgba(0, 0, 0, .5)
  48. transform: rotate(2deg)
  49. cursor: grabbing
  50. .swimlane-header.ui-sortable-handle
  51. cursor: grabbing
  52. .swimlane-header-wrap
  53. display: flex
  54. flex-direction: row
  55. flex: 1 0 100%
  56. background-color: #ccc
  57. .swimlane-header
  58. font-size: 14px
  59. padding: 5px 5px
  60. font-weight: bold
  61. min-height: 9px
  62. width: 100%
  63. overflow: hidden
  64. -o-text-overflow: ellipsis
  65. text-overflow: ellipsis
  66. word-wrap: break-word
  67. text-align: center
  68. .swimlane-header-menu
  69. position: absolute
  70. padding: 5px 5px
  71. .swimlane-header-plus-icon
  72. margin-left: 5px
  73. margin-right: 10px
  74. .swimlane-header-handle
  75. position: absolute
  76. padding: 7px
  77. top: 50%
  78. transform: translateY(-50%)
  79. left: 230px
  80. font-size: 18px
  81. .swimlane-header-miniscreen-handle
  82. position: absolute
  83. padding: 7px
  84. top: 50%
  85. transform: translateY(-50%)
  86. left: 87vw
  87. font-size: 24px
  88. .list-group
  89. height: 100%
  90. .moving-swimlane
  91. display: none
  92. swimlane-color(background, color...)
  93. background: background !important
  94. if color
  95. color: color !important //overwrite text for better visibility
  96. .swimlane-white
  97. swimlane-color(#ffffff, #4d4d4d) //Black text for better visibility
  98. border: 1px solid #eee
  99. .swimlane-green
  100. swimlane-color(#3cb500, #ffffff) //White text for better visibility
  101. .swimlane-yellow
  102. swimlane-color(#fad900, #4d4d4d) //Black text for better visibility
  103. .swimlane-orange
  104. swimlane-color(#ff9f19, #4d4d4d) //Black text for better visibility
  105. .swimlane-red
  106. swimlane-color(#eb4646, #ffffff) //White text for better visibility
  107. .swimlane-purple
  108. swimlane-color(#a632db, #ffffff) //White text for better visibility
  109. .swimlane-blue
  110. swimlane-color(#0079bf, #ffffff) //White text for better visibility
  111. .swimlane-pink
  112. swimlane-color(#ff78cb, #4d4d4d) //Black text for better visibility
  113. .swimlane-sky
  114. swimlane-color(#00c2e0, #ffffff) //White text for better visibility
  115. .swimlane-black
  116. swimlane-color(#4d4d4d, #ffffff) //White text for better visibility
  117. .swimlane-lime
  118. swimlane-color(#51e898, #4d4d4d) //Black text for better visibility
  119. .swimlane-silver
  120. swimlane-color(unset, #4d4d4d) //Black text for better visibility
  121. .swimlane-peachpuff
  122. swimlane-color(#ffdab9, #4d4d4d) //Black text for better visibility
  123. .swimlane-crimson
  124. swimlane-color(#dc143c, #ffffff) //White text for better visibility
  125. .swimlane-plum
  126. swimlane-color(#dda0dd, #4d4d4d) //Black text for better visibility
  127. .swimlane-darkgreen
  128. swimlane-color(#006400, #ffffff) //White text for better visibility
  129. .swimlane-slateblue
  130. swimlane-color(#6a5acd, #ffffff) //White text for better visibility
  131. .swimlane-magenta
  132. swimlane-color(#ff00ff, #ffffff) //White text for better visibility
  133. .swimlane-gold
  134. swimlane-color(#ffd700, #4d4d4d) //Black text for better visibility
  135. .swimlane-navy
  136. swimlane-color(#000080, #ffffff) //White text for better visibility
  137. .swimlane-gray
  138. swimlane-color(#808080, #ffffff) //White text for better visibility
  139. .swimlane-saddlebrown
  140. swimlane-color(#8b4513, #ffffff) //White text for better visibility
  141. .swimlane-paleturquoise
  142. swimlane-color(#afeeee, #4d4d4d) //Black text for better visibility
  143. .swimlane-mistyrose
  144. swimlane-color(#ffe4e1, #4d4d4d) //Black text for better visibility
  145. .swimlane-indigo
  146. swimlane-color(#4b0082, #ffffff) //White text for better visibility