entity-badge.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. $entity-badge-selector: 'entity-badge';
  2. .#{$entity-badge-selector} {
  3. &__badge {
  4. position: absolute;
  5. bottom: 0;
  6. left: -10px;
  7. height: 36px;
  8. line-height: 30px;
  9. padding-right: 8px;
  10. max-width: calc(100% - 18px);
  11. text-overflow: ellipsis;
  12. color: #fff;
  13. background-image: url(../img/specials/badge-middle.png);
  14. font-family: $fontcuprum;
  15. font-size: 18px;
  16. &:before {
  17. position: absolute;
  18. left: -8px;
  19. top: 0;
  20. content: '';
  21. display: block;
  22. height: 100%;
  23. width: 8px;
  24. background-image: url(../img/specials/badge-start.png);
  25. }
  26. &:after {
  27. position: absolute;
  28. right: -10px;
  29. top: 0;
  30. content: '';
  31. display: block;
  32. height: 100%;
  33. width: 10px;
  34. background-image: url(../img/specials/badge-end.png);
  35. }
  36. &--orange {
  37. background-position: 0 0;
  38. &:before,
  39. &:after {
  40. background-position: 0 0;
  41. }
  42. }
  43. &--green {
  44. background-position: 0 -36px;
  45. &:before,
  46. &:after {
  47. background-position: 0 -36px;
  48. }
  49. }
  50. &--gray {
  51. background-position: 0 -72px;
  52. &:before,
  53. &:after {
  54. background-position: 0 -72px;
  55. }
  56. }
  57. &--blue {
  58. background-position: 0 -108px;
  59. &:before,
  60. &:after {
  61. background-position: 0 -108px;
  62. }
  63. }
  64. &-text {
  65. overflow: hidden;
  66. width: 100%;
  67. display: block;
  68. white-space: nowrap;
  69. text-overflow: ellipsis;
  70. }
  71. }
  72. }