swimlanes.styl 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. @import 'nib'
  2. .swimlane
  3. // Even if this background color is the same as the body we can't leave it
  4. // transparent, because that won't work during a swimlane drag.
  5. background: darken(white, 13%)
  6. display: flex
  7. flex-direction: row
  8. overflow: 0;
  9. max-height: calc(100% - 26px)
  10. &.placeholder
  11. background-color: rgba(0, 0, 0, .2)
  12. border-color: transparent
  13. box-shadow: none
  14. height: 100px
  15. &.ui-sortable-helper
  16. box-shadow: -2px 2px 8px rgba(0, 0, 0, .3),
  17. 0 0 1px rgba(0, 0, 0, .5)
  18. transform: rotate(2deg)
  19. cursor: grabbing
  20. .swimlane-header.ui-sortable-handle
  21. cursor: grabbing
  22. .swimlane-header-wrap
  23. display: flex;
  24. flex-direction: row;
  25. flex: 1 0 100%;
  26. background-color: #ccc;
  27. .swimlane-header
  28. font-size: 14px;
  29. padding: 5px 5px
  30. font-weight: bold;
  31. min-height: 9px;
  32. width: 100%;
  33. overflow: hidden;
  34. -o-text-overflow: ellipsis;
  35. text-overflow: ellipsis;
  36. word-wrap: break-word;
  37. text-align: center;
  38. .swimlane-header-menu
  39. position: absolute
  40. padding: 5px 5px
  41. .swimlane-header-plus-icon
  42. margin-left: 5px
  43. margin-right: 10px
  44. .swimlane-header-menu-handle
  45. position: absolute
  46. padding: 7px
  47. top: 50%
  48. transform: translateY(-50%)
  49. left: 300px
  50. font-size: 18px
  51. .list-group
  52. height: 100%
  53. .moving-swimlane
  54. display: none
  55. swimlane-color(background, color...)
  56. background: background !important
  57. if color
  58. color: color !important //overwrite text for better visibility
  59. .swimlane-white
  60. swimlane-color(#ffffff, #4d4d4d) //Black text for better visibility
  61. border: 1px solid #eee
  62. .swimlane-green
  63. swimlane-color(#3cb500, #ffffff) //White text for better visibility
  64. .swimlane-yellow
  65. swimlane-color(#fad900, #4d4d4d) //Black text for better visibility
  66. .swimlane-orange
  67. swimlane-color(#ff9f19, #4d4d4d) //Black text for better visibility
  68. .swimlane-red
  69. swimlane-color(#eb4646, #ffffff) //White text for better visibility
  70. .swimlane-purple
  71. swimlane-color(#a632db, #ffffff) //White text for better visibility
  72. .swimlane-blue
  73. swimlane-color(#0079bf, #ffffff) //White text for better visibility
  74. .swimlane-pink
  75. swimlane-color(#ff78cb, #4d4d4d) //Black text for better visibility
  76. .swimlane-sky
  77. swimlane-color(#00c2e0, #ffffff) //White text for better visibility
  78. .swimlane-black
  79. swimlane-color(#4d4d4d, #ffffff) //White text for better visibility
  80. .swimlane-lime
  81. swimlane-color(#51e898, #4d4d4d) //Black text for better visibility
  82. .swimlane-silver
  83. swimlane-color(unset, #4d4d4d) //Black text for better visibility
  84. .swimlane-peachpuff
  85. swimlane-color(#ffdab9, #4d4d4d) //Black text for better visibility
  86. .swimlane-crimson
  87. swimlane-color(#dc143c, #ffffff) //White text for better visibility
  88. .swimlane-plum
  89. swimlane-color(#dda0dd, #4d4d4d) //Black text for better visibility
  90. .swimlane-darkgreen
  91. swimlane-color(#006400, #ffffff) //White text for better visibility
  92. .swimlane-slateblue
  93. swimlane-color(#6a5acd, #ffffff) //White text for better visibility
  94. .swimlane-magenta
  95. swimlane-color(#ff00ff, #ffffff) //White text for better visibility
  96. .swimlane-gold
  97. swimlane-color(#ffd700, #4d4d4d) //Black text for better visibility
  98. .swimlane-navy
  99. swimlane-color(#000080, #ffffff) //White text for better visibility
  100. .swimlane-gray
  101. swimlane-color(#808080, #ffffff) //White text for better visibility
  102. .swimlane-saddlebrown
  103. swimlane-color(#8b4513, #ffffff) //White text for better visibility
  104. .swimlane-paleturquoise
  105. swimlane-color(#afeeee, #4d4d4d) //Black text for better visibility
  106. .swimlane-mistyrose
  107. swimlane-color(#ffe4e1, #4d4d4d) //Black text for better visibility
  108. .swimlane-indigo
  109. swimlane-color(#4b0082, #ffffff) //White text for better visibility