labels.styl 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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. padding: 3px 8px
  11. max-width: 100%
  12. min-width: 8px
  13. overflow: ellipsis
  14. height: 18px
  15. &:hover
  16. color: white
  17. &.square
  18. height: 30px
  19. width: @height
  20. padding: 0
  21. &.add-label
  22. box-shadow: 0 0 0 2px darken(white, 25%) inset
  23. .palette-colors
  24. display: flex
  25. flex-wrap: wrap
  26. .palette-color
  27. flex-grow: 1
  28. display: flex
  29. align-items: center
  30. justify-content: center
  31. .card-label-green
  32. background-color: #3cb500
  33. .card-label-yellow
  34. background-color: #fad900
  35. .card-label-orange
  36. background-color: #ff9f19
  37. .card-label-red
  38. background-color: #eb4646
  39. .card-label-purple
  40. background-color: #a632db
  41. .card-label-blue
  42. background-color: #0079bf
  43. .card-label-pink
  44. background-color: #ff78cb
  45. .card-label-sky
  46. background-color: #00c2e0
  47. .card-label-black
  48. background-color: #4d4d4d
  49. .card-label-lime
  50. background-color: #51e898
  51. .edit-label,
  52. .create-label
  53. .card-label
  54. float: left
  55. height: 25px
  56. margin: 0px 3% 7px 0px
  57. width: 10.5%
  58. cursor: pointer
  59. .edit-labels
  60. input[type="text"]
  61. margin: 4px 0 6px 38px
  62. width: 243px
  63. .card-label
  64. height: 30px
  65. left: 0
  66. padding: 1px 5px
  67. position: absolute
  68. top: 0
  69. width: 24px
  70. .labels-static .card-label
  71. line-height: 30px
  72. margin-bottom: 4px
  73. position: relative
  74. top: auto
  75. left: 0
  76. width: 260px
  77. .edit-labels-pop-over
  78. margin-bottom: 8px
  79. .edit-labels-pop-over .shortcut
  80. display: inline-block
  81. .card-label-selectable
  82. border-radius: 3px
  83. cursor: pointer
  84. margin: 0
  85. margin-bottom: 3px
  86. width: 190px
  87. min-height: 18px
  88. padding: 8px
  89. position: relative
  90. transition: margin-right .1s
  91. .card-label-selectable-icon
  92. position: absolute
  93. top: 8px
  94. right: -20px
  95. &.active:hover,
  96. &.active,
  97. &.active.selected:hover,
  98. &.active.selected
  99. padding-right: 32px
  100. .card-label-selectable-icon
  101. right: 6px
  102. &.selected,
  103. &:hover
  104. opacity: .8
  105. .active .card-label-selectable
  106. &,
  107. &:hover
  108. margin-right: 0
  109. .card-label-selectable-icon
  110. right: 8px
  111. .card-label-edit-button
  112. border-radius: 3px
  113. float: right
  114. padding: 8px
  115. &:hover
  116. background: #dbdbdb