labels.styl 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. @import 'nib'
  2. // XXX Use .board-widget-labels as a flexbox container
  3. .card-label
  4. border-radius: 4px
  5. color: white
  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. .card-label-orange
  42. background-color: #ff9f19
  43. .card-label-red
  44. background-color: #eb4646
  45. .card-label-purple
  46. background-color: #a632db
  47. .card-label-blue
  48. background-color: #0079bf
  49. .card-label-pink
  50. background-color: #ff78cb
  51. .card-label-sky
  52. background-color: #00c2e0
  53. .card-label-black
  54. background-color: #4d4d4d
  55. .card-label-lime
  56. background-color: #51e898
  57. .edit-label,
  58. .create-label
  59. .card-label
  60. float: left
  61. height: 25px
  62. margin: 0px 3% 7px 0px
  63. width: 10.5%
  64. cursor: pointer
  65. .edit-labels
  66. input[type="text"]
  67. margin: 4px 0 6px 38px
  68. width: 243px
  69. .card-label
  70. height: 30px
  71. left: 0
  72. padding: 1px 5px
  73. position: absolute
  74. top: 0
  75. width: 24px
  76. .labels-static .card-label
  77. line-height: 30px
  78. margin-bottom: 4px
  79. position: relative
  80. top: auto
  81. left: 0
  82. width: 260px
  83. .edit-labels-pop-over
  84. margin-bottom: 8px
  85. .edit-labels-pop-over .shortcut
  86. display: inline-block
  87. .card-label-selectable
  88. border-radius: 3px
  89. cursor: pointer
  90. margin: 0
  91. margin-bottom: 3px
  92. width: 190px
  93. min-height: 18px
  94. padding: 8px
  95. position: relative
  96. transition: margin-right .1s
  97. .card-label-selectable-icon
  98. position: absolute
  99. top: 8px
  100. right: -20px
  101. &.active:hover,
  102. &.active,
  103. &.active.selected:hover,
  104. &.active.selected
  105. padding-right: 32px
  106. .card-label-selectable-icon
  107. right: 6px
  108. &.selected,
  109. &:hover
  110. opacity: .8
  111. .active .card-label-selectable
  112. &,
  113. &:hover
  114. margin-right: 0
  115. .card-label-selectable-icon
  116. right: 8px
  117. .card-label-edit-button
  118. border-radius: 3px
  119. float: right
  120. padding: 8px
  121. &:hover
  122. background: #dbdbdb