Hello,Trying to do something like this...
View attachment 192300
Struggling to find where to simply add this? less janky the better! hope someone knows
Cheers
Martyn
the prefix, although it's not a prefix I just added via html code, was just trying to display stickies differentlyHello,
You mean the border or the prefix ?
Regards, SyTry
Add this to extra.less - it's a better solution than modifying the HTMLThought there might be some code that can be applied to show only for sticky’s![]()
.structItemContainer-group--sticky .structItem-title::before{
content: "Sticky";
background: @xf-paletteColor1;
border-radius: 3px;
color: @xf-paletteColor5;
display: inline-block;
font-size: 10px;
font-weight: bold;
padding: 2px 5px;
vertical-align: middle;
}
so simply, thank you so muchAdd this to extra.less - it's a better solution than modifying the HTML
Less:.structItemContainer-group--sticky .structItem-title::before{ content: "Sticky"; background: @xf-paletteColor1; border-radius: 3px; color: @xf-paletteColor5; display: inline-block; font-size: 10px; font-weight: bold; padding: 2px 5px; vertical-align: middle; }
/*****/
.structItemContainer-group--sticky .structItem-title::before{
content: "your name here";
background: #850000;
background: -moz-linear-gradient(top, #950000 0%, #650000 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#950000), color-stop(100%,#650000));
background: linear-gradient(top, #950000 0%,#650000 100%);
border: 1px solid rgba(0,0,0,0.7);
-moz-box-shadow: inset 1px 1px 0 0 #A50000, 0px 2px 3px rgba(0,0,0,0.3);
-webkit-box-shadow: inset 1px 1px 0 0 #A50000, 0px 2px 3px rgba(0,0,0,0.3);
box-shadow: inset 1px 1px 0 0 #A50000, 0px 2px 3px rgba(0,0,0,0.3);
color: #fff;
text-shadow: 0px 0px 2px rgba(0, 0, 0, 1);
-webkit-border-radius: 5px !important;
display: inline-block;
font-size: 10px;
font-weight: bold;
padding: 2px 5px;
margin: -1px;
vertical-align: middle;
}
/*****/
special
Code:/*****/ .structItemContainer-group--sticky .structItem-title::before{ content: "your name here"; background: #850000; background: -moz-linear-gradient(top, #950000 0%, #650000 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#950000), color-stop(100%,#650000)); background: linear-gradient(top, #950000 0%,#650000 100%); border: 1px solid rgba(0,0,0,0.7); -moz-box-shadow: inset 1px 1px 0 0 #A50000, 0px 2px 3px rgba(0,0,0,0.3); -webkit-box-shadow: inset 1px 1px 0 0 #A50000, 0px 2px 3px rgba(0,0,0,0.3); box-shadow: inset 1px 1px 0 0 #A50000, 0px 2px 3px rgba(0,0,0,0.3); color: #fff; text-shadow: 0px 0px 2px rgba(0, 0, 0, 1); -webkit-border-radius: 5px !important; display: inline-block; font-size: 10px; font-weight: bold; padding: 2px 5px; margin: -1px; vertical-align: middle; } /*****/ special
We use essential cookies to make this site work, and optional cookies to enhance your experience.