labels.styl 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. @import 'nib'
  2. // XXX Use .board-widget-labels as a flexbox container
  3. .card-label
  4. background-color: #b3b3b3
  5. border-radius: 4px
  6. color: white
  7. display: inline-block
  8. font-weight: 700
  9. font-size: 13px
  10. margin-right: 4px
  11. padding: 3px 8px
  12. position:relative
  13. max-width: 100%
  14. min-width: 8px
  15. overflow: ellipsis
  16. height: 18px
  17. &:hover
  18. color: white
  19. .card-label-green
  20. background-color: #3cb500
  21. .card-label-yellow
  22. background-color: #fad900
  23. .card-label-orange
  24. background-color: #ff9f19
  25. .card-label-red
  26. background-color: #eb4646
  27. .card-label-purple
  28. background-color: #a632db
  29. .card-label-blue
  30. background-color: #0079bf
  31. .card-label-pink
  32. background-color: #ff78cb
  33. .card-label-sky
  34. background-color: #00c2e0
  35. .card-label-black
  36. background-color: #4d4d4d
  37. .card-label-lime
  38. background-color: #51e898
  39. .edit-label,
  40. .create-label
  41. .card-label
  42. float: left
  43. height: 25px
  44. margin: 0px 3% 7px 0px
  45. width: 10.5%
  46. cursor: pointer
  47. .edit-labels
  48. input[type="text"]
  49. margin: 4px 0 6px 38px
  50. width: 243px
  51. .card-label
  52. height: 30px
  53. left: 0
  54. padding: 1px 5px
  55. position: absolute
  56. top: 0
  57. width: 24px
  58. .labels-static .card-label
  59. line-height: 30px
  60. margin-bottom: 4px
  61. position: relative
  62. top: auto
  63. left: 0
  64. width: 260px
  65. .minicard-labels
  66. position: relative
  67. z-index: 30
  68. top: -6px
  69. .card-label
  70. border-radius: 0
  71. float: left
  72. height: 4px
  73. margin-bottom: 1px
  74. padding: 0
  75. width: 40px
  76. line-height: 100px
  77. .card-detail-item-labels .card-label
  78. border-radius: 3px
  79. display: block
  80. float: left
  81. height: 20px
  82. line-height: 20px
  83. margin: 0 4px 4px 0
  84. min-width: 30px
  85. padding: 5px 10px
  86. width: auto
  87. .editable-labels .card-label:hover
  88. cursor: pointer
  89. opacity: .75
  90. .edit-labels-pop-over
  91. margin-bottom: 8px
  92. .edit-labels-pop-over .shortcut
  93. display: inline-block
  94. .card-label-selectable
  95. border-radius: 3px
  96. cursor: pointer
  97. margin: 0 50px 4px 0
  98. min-height: 18px
  99. padding: 8px
  100. position: relative
  101. transition: margin-right .1s
  102. .card-label-selectable-icon
  103. position: absolute
  104. top: 8px
  105. right: -20px
  106. &.active:hover,
  107. &.active,
  108. &.active.selected:hover,
  109. &.active.selected
  110. margin-right: 38px
  111. padding-right: 32px
  112. .card-label-selectable-icon
  113. right: 6px
  114. &.active:hover:hover,
  115. &.active:hover,
  116. &.active.selected:hover:hover,
  117. &.active.selected:hover
  118. margin-right: 38px
  119. &.selected,
  120. &:hover
  121. margin-right: 38px
  122. opacity: .8
  123. .active .card-label-selectable
  124. &,
  125. &:hover
  126. margin-right: 0
  127. .card-label-selectable-icon
  128. right: 8px
  129. .card-label-edit-button
  130. border-radius: 3px
  131. float: right
  132. padding: 8px
  133. &:hover
  134. background: #dbdbdb
  135. .card-label-color-select-icon
  136. left: 14px
  137. position: absolute
  138. top: 9px
  139. .phenom .card-label
  140. display: inline-block
  141. font-size: 12px
  142. height: 14px
  143. line-height: 13px
  144. padding: 0 4px
  145. min-width: 16px
  146. overflow: ellipsis
  147. .board-widget .phenom .card-label
  148. max-width: 130px