boardBody.styl 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. @import 'nib'
  2. position()
  3. if arguments[0] == cover || arguments[0] == fixed-cover
  4. if arguments[0] == cover
  5. position: absolute
  6. else
  7. position: fixed
  8. left: 0
  9. right: 0
  10. top: 0
  11. bottom: 0
  12. else
  13. position: arguments
  14. .board-wrapper
  15. position: cover
  16. overflow-x: hidden
  17. overflow-y: hidden
  18. .board-canvas
  19. position: cover
  20. transition: margin .1s
  21. overflow-y: auto
  22. &.is-sibling-sidebar-open
  23. margin-right: 248px
  24. .board-overlay
  25. position: fixed-cover
  26. top: -100px
  27. right: -400px
  28. background: black
  29. opacity: 0.33
  30. animation: fadeIn 0.2s
  31. z-index: 16
  32. &.is-dragging-active
  33. .open-minicard-composer,
  34. .minicard-wrapper.is-checked
  35. display: none
  36. @media screen and (max-width: 800px)
  37. .board-wrapper
  38. .board-canvas
  39. .swimlane
  40. border-bottom: 1px solid #CCC
  41. display: flex
  42. flex-direction: column
  43. margin: 0
  44. padding: 0 0px 0px 0
  45. overflow-x: hidden
  46. overflow-y: auto
  47. calendar-event-color(background, borderColor, color...)
  48. background: background !important
  49. border-color: borderColor
  50. if color
  51. color: color !important //overwrite text for better visibility
  52. .calendar-event-green
  53. calendar-event-color(#3cb500, #2a8000, #ffffff) //White text for better visibility
  54. .calendar-event-yellow
  55. calendar-event-color(#fad900, #c7ac00, #000) //Black text for better visibility
  56. .calendar-event-orange
  57. calendar-event-color(#ff9f19, #cc7c14, #000) //Black text for better visibility
  58. .calendar-event-red
  59. calendar-event-color(#eb4646, #b83737, #ffffff) //White text for better visibility
  60. .calendar-event-purple
  61. calendar-event-color(#a632db, #7d26a6, #ffffff) //White text for better visibility
  62. .calendar-event-blue
  63. calendar-event-color(#0079bf, #005a8a, #ffffff) //White text for better visibility
  64. .calendar-event-pink
  65. calendar-event-color(#ff78cb, #cc62a3, #000) //Black text for better visibility
  66. .calendar-event-sky
  67. calendar-event-color(#00c2e0, #0094ab, #ffffff) //White text for better visibility
  68. .calendar-event-black
  69. calendar-event-color(#4d4d4d, #1a1a1a, #ffffff) //White text for better visibility
  70. .calendar-event-lime
  71. calendar-event-color(#51e898, #3eb375, #000) //Black text for better visibility
  72. .calendar-event-silver
  73. calendar-event-color(#c0c0c0, #8c8c8c, #000) //Black text for better visibility
  74. .calendar-event-peachpuff
  75. calendar-event-color(#ffdab9, #ccaf95, #000) //Black text for better visibility
  76. .calendar-event-crimson
  77. calendar-event-color(#dc143c, #a8112f, #ffffff) //White text for better visibility
  78. .calendar-event-plum
  79. calendar-event-color(#dda0dd, #a87ba8, #000) //Black text for better visibility
  80. .calendar-event-darkgreen
  81. calendar-event-color(#006400, #003000, #ffffff) //White text for better visibility
  82. .calendar-event-slateblue
  83. calendar-event-color(#6a5acd, #4f4399, #ffffff) //White text for better visibility
  84. .calendar-event-magenta
  85. calendar-event-color(#ff00ff, #cc00cc, #ffffff) //White text for better visibility
  86. .calendar-event-gold
  87. calendar-event-color(#ffd700, #ccaa00, #000) //Black text for better visibility
  88. .calendar-event-navy
  89. calendar-event-color(#000080, #000033, #ffffff) //White text for better visibility
  90. .calendar-event-gray
  91. calendar-event-color(#808080, #333333, #ffffff) //White text for better visibility
  92. .calendar-event-saddlebrown
  93. calendar-event-color(#8b4513, #572b0c, #ffffff) //White text for better visibility
  94. .calendar-event-paleturquoise
  95. calendar-event-color(#afeeee, #8ababa, #000) //Black text for better visibility
  96. .calendar-event-mistyrose
  97. calendar-event-color(#ffe4e1, #ccb8b6, #000) //Black text for better visibility
  98. .calendar-event-indigo
  99. calendar-event-color(#4b0082, #2b004d, #ffffff) //White text for better visibility