labels.styl 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. @import 'nib'
  2. // XXX Use .board-widget-labels as a flexbox container
  3. .card-label
  4. border-radius: 4px
  5. color: white //Default white text, in select cases, changed to black to improve contrast between label colour and text
  6. display: inline-block
  7. font-weight: 700
  8. font-size: 13px
  9. margin-right: 4px
  10. margin-bottom: 5px
  11. padding: 3px 8px
  12. max-width: 100%
  13. min-width: 8px
  14. overflow: ellipsis
  15. height: 18px
  16. vertical-align: bottom
  17. &:hover
  18. color: white
  19. &.square
  20. height: 30px
  21. width: @height
  22. padding: 0
  23. &.add-label
  24. box-shadow: 0 0 0 2px darken(white, 25%) inset
  25. &:hover, &.is-active
  26. box-shadow: 0 0 0 2px darken(white, 60%) inset
  27. i.fa-plus
  28. margin-top: 3px
  29. .palette-colors
  30. display: flex
  31. flex-wrap: wrap
  32. .palette-color
  33. flex-grow: 1
  34. display: flex
  35. align-items: center
  36. justify-content: center
  37. .card-label-green
  38. background-color: #3cb500
  39. .card-label-yellow
  40. background-color: #fad900
  41. color: #000000 //Black text for better visibility
  42. .card-label-orange
  43. background-color: #ff9f19
  44. color: #000000 //Black text for better visibility
  45. .card-label-red
  46. background-color: #eb4646
  47. .card-label-purple
  48. background-color: #a632db
  49. .card-label-blue
  50. background-color: #0079bf
  51. .card-label-pink
  52. background-color: #ff78cb
  53. color: #000000 //Black text for better visibility
  54. .card-label-sky
  55. background-color: #00c2e0
  56. .card-label-black
  57. background-color: #4d4d4d
  58. .card-label-lime
  59. background-color: #51e898
  60. color: #000000 //Black text for better visibility
  61. .card-label-silver
  62. background-color: #c0c0c0
  63. color: #000000 //Black text for better visibility
  64. .card-label-peachpuff
  65. background-color: #ffdab9
  66. color: #000000 //Black text for better visibility
  67. .card-label-crimson
  68. background-color: #dc143c
  69. .card-label-plum
  70. background-color: #dda0dd
  71. color: #000000 //Black text for better visibility
  72. .card-label-darkgreen
  73. background-color: #006400
  74. .card-label-slateblue
  75. background-color: #6a5acd
  76. .card-label-magenta
  77. background-color: #ff00ff
  78. .card-label-gold
  79. background-color: #ffd700
  80. color: #000000 //Black text for better visibility
  81. .card-label-navy
  82. background-color: #000080
  83. .card-label-gray
  84. background-color: #808080
  85. .card-label-saddlebrown
  86. background-color: #8b4513
  87. .card-label-paleturquoise
  88. background-color: #afeeee
  89. color: #000000 //Black text for better visibility
  90. .card-label-mistyrose
  91. background-color: #ffe4e1
  92. color: #000000 //Black text for better visibility
  93. .card-label-indigo
  94. background-color: #4b0082
  95. .edit-label,
  96. .create-label
  97. .card-label
  98. float: left
  99. height: 25px
  100. margin: 0px 3% 7px 0px
  101. width: 10.5%
  102. cursor: pointer
  103. .edit-labels
  104. input[type="text"]
  105. margin: 4px 0 6px 38px
  106. width: 243px
  107. .card-label
  108. height: 30px
  109. left: 0
  110. padding: 1px 5px
  111. position: absolute
  112. top: 0
  113. width: 24px
  114. .labels-static .card-label
  115. line-height: 30px
  116. margin-bottom: 4px
  117. position: relative
  118. top: auto
  119. left: 0
  120. width: 260px
  121. .edit-labels-pop-over
  122. margin-bottom: 8px
  123. .edit-labels-pop-over .shortcut
  124. display: inline-block
  125. .card-label-selectable
  126. border-radius: 3px
  127. cursor: pointer
  128. margin: 0
  129. margin-bottom: 3px
  130. width: 190px
  131. min-height: 18px
  132. padding: 8px
  133. position: relative
  134. transition: margin-right .1s
  135. .card-label-selectable-icon
  136. position: absolute
  137. top: 8px
  138. right: -20px
  139. &.active:hover,
  140. &.active,
  141. &.active.selected:hover,
  142. &.active.selected
  143. padding-right: 32px
  144. .card-label-selectable-icon
  145. right: 6px
  146. &.selected,
  147. &:hover
  148. opacity: .8
  149. .active .card-label-selectable
  150. &,
  151. &:hover
  152. margin-right: 0
  153. .card-label-selectable-icon
  154. right: 8px
  155. .card-label-edit-button
  156. border-radius: 3px
  157. float: right
  158. padding: 8px
  159. &:hover
  160. background: #dbdbdb