badge.less 843 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. .badge-bs3 {
  2. @size: 24px;
  3. @padding: 4px;
  4. display: inline-flex;
  5. align-items: center;
  6. overflow: hidden;
  7. height: @size;
  8. min-height: @size;
  9. padding: 0 @padding;
  10. white-space: nowrap;
  11. color: @ol-blue-gray-6;
  12. background-color: @neutral-20;
  13. border-radius: 4px;
  14. &:hover {
  15. background-color: @neutral-30;
  16. }
  17. &-prepend {
  18. margin-right: 2px;
  19. }
  20. &-close {
  21. .reset-button;
  22. width: @size;
  23. margin-left: 4px;
  24. font-size: 20px;
  25. height: @size;
  26. display: flex;
  27. align-items: center;
  28. justify-content: center;
  29. margin-right: -@padding;
  30. color: inherit;
  31. &:hover {
  32. background-color: @neutral-40;
  33. }
  34. }
  35. &-sm {
  36. @size-sm: 20px;
  37. height: @size-sm;
  38. font-size: @font-size-extra-small;
  39. .badge-bs3-close {
  40. width: @size-sm;
  41. font-size: @size-sm;
  42. }
  43. }
  44. }