labels.less 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. //
  2. // Labels
  3. // --------------------------------------------------
  4. .label {
  5. display: inline;
  6. padding: 0.2em 0.6em 0.3em;
  7. font-size: @labels-font-size;
  8. font-weight: bold;
  9. line-height: 1;
  10. color: @label-color;
  11. text-align: center;
  12. white-space: nowrap;
  13. vertical-align: baseline;
  14. border-radius: 0.25em;
  15. // Add hover effects, but only for links
  16. &[href] {
  17. &:hover,
  18. &:focus {
  19. color: @label-link-hover-color;
  20. text-decoration: none;
  21. cursor: pointer;
  22. }
  23. }
  24. // Empty labels collapse automatically (not available in IE8)
  25. &:empty {
  26. display: none;
  27. }
  28. // Quick fix for labels in buttons
  29. .btn & {
  30. position: relative;
  31. top: -1px;
  32. }
  33. }
  34. .label {
  35. padding: 0.3em 0.6em;
  36. display: inline-flex;
  37. align-items: center;
  38. }
  39. // Colors
  40. // Contextual variations (linked labels get darker on :hover)
  41. .label-default {
  42. .label-variant(@label-default-bg);
  43. }
  44. .label-primary {
  45. .label-variant(@label-primary-bg);
  46. }
  47. .label-success {
  48. .label-variant(@label-success-bg);
  49. }
  50. .label-info {
  51. .label-variant(@label-info-bg);
  52. }
  53. .label-warning {
  54. .label-variant(@label-warning-bg);
  55. }
  56. .label-danger {
  57. .label-variant(@label-danger-bg);
  58. }
  59. .label-text {
  60. color: @ol-type-color;
  61. font-size: 100%;
  62. }
  63. .label-premium {
  64. background-color: @neutral-20;
  65. background-image: url('../../../public/img/material-icons/star-gradient.svg');
  66. background-repeat: no-repeat;
  67. background-position: 2px 2px;
  68. border-radius: 4px;
  69. color: @neutral-90;
  70. display: inline-block;
  71. font-size: 12px;
  72. font-family: @font-family-sans-serif;
  73. margin-left: 10px;
  74. padding: 4px 4px 4px 20px;
  75. vertical-align: middle;
  76. }