badge.less 1.0 KB

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