- Совместимость с XenForo
- 2.1.x
- 2.2.x
Как всегда все делаем через Extra.less, вешаем на все ресурсы:
Вешаем на нужные нам ресурсы:
CSS:
.structItem-cell--icon::before {
content: "Скидка 50%";
position: absolute;
top: 20px;
left: -26px;
width: 103px;
height: 14px;
background-color: #ff6347;
color: white;
display: flex;
justify-content: center;
align-items: center;
transform: rotate(-45deg);
transform-origin: center;
font-size: 11px;
text-align: center;
white-space: nowrap;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
z-index: 1;
}
.structItem {
overflow: hidden;
position: relative;
}
Вешаем на нужные нам ресурсы:
CSS:
.js-resourceListItem-8 .structItem-cell--icon::before {
content: "Скидка 50%";
position: absolute;
top: 20px;
left: -26px;
width: 103px;
height: 14px;
background-color: #ff6347;
color: white;
display: flex;
justify-content: center;
align-items: center;
transform: rotate(-45deg);
transform-origin: center;
font-size: 11px;
text-align: center;
white-space: nowrap;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
z-index: 1;
}
.structItem {
overflow: hidden;
position: relative;
}