entity-badge.scss 1.8 KB

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