.block[data-widget-key="most_replied"] .block-minorHeader, .p-body-sideNav .block-minorHeader, .block[data-widget-key="most_replied"] .block-header, .p-body-sideNav .block-header {
color: @xf-paletteAccent2;
}
.block .block-minorHeader, .p-body-sideNav .block-minorHeader, .block .block-header, .p-body-sideNav .block-header {
color: @xf-paletteAccent2;
}
Ooh didn’t know that was possible, thanks Brad!
.DonateBarBg {
margin: 0 0 10px;
border-radius: 20px;
box-shadow: 1px 1px 1px rgba(255,255,255,.2);
line-height: 20px;
overflow: hidden;
width: 100%;
height: 20px;
position: relative;
}
.DonateBarBg .progressBarText {
position: absolute;
z-index: 1;
top: 0;
bottom: 0;
left: 0;
right: 0;
text-align: center;
}
.DonateBarBg .progressBarOverlay {
width: @fx-DonateProgress;
-moz-transition: none;
-webkit-transition: none;
-o-transition: none;
-ms-transition: none;
transition: none;
background-color: #65a5d1;
border-radius: 20px 8px 8px 20px;
position: relative;
overflow: hidden;
display: block;
height: 100%;
-moz-transition: width 1.2s ease-out;
-webkit-transition: width 1.2s ease-out;
-o-transition: width 1.2s ease-out;
-ms-transition: width 1.2s ease-out;
transition: width 1.2s ease-out;
}
<div class="DonateBarBg">
<div class="progressBarText">@fx-DonateProgress</div>
<div class="progressBarOverlay"></div>
</div>
Thank you for the fast answer @Brad Padgett
Sorry I forgot to mention that I have a html widget and in this template i will use the properties.
Here a
CSS:<style> .DonateBarBg { background-color: #fff; margin: 0 0 10px; border-radius: 20px; box-shadow: 0 1px 0 rgba(0,0,0,.1); line-height: 20px; overflow: hidden; width: 100%; height: 20px; position: relative; } .DonateBarBg .progressBarText { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; right: 0; text-align: center; } .DonateBarBg .progressBarOverlay{ width: @fx-DonateProgress; -moz-transition: none; -webkit-transition: none; -o-transition: none; -ms-transition: none; transition: none; } </style>
HTML:<div class="DonateBarBg"> <div class="progressBarText">@fx-DonateProgress</div> <div class="progressBarOverlay" style="width: 0%;"></div> </div>
<div class="DonateBarBg">
<div class="progressBarText" style="width:@xf-DonateProgress;">My Text</div>
<div class="progressBarOverlay" style="width: 0%;"></div>
</div>
Yeah, that's my fault.The @fx-DonateProgress should be @xf-DonateProgress.
I want to use it as text and variable.Not sure if that's a typo or not. But also I believe because you placed it in between the 2 progressBarText divs that it's treated as text only.
This is my first attempt to work with "style properties" and I give the width in percent and this percentage should also be displayed as text.Though I don't really see the point in complicating it.
<div class="progressBarText" >@xf-DonateProgress</div>
<div class="progressBarOverlay" style="width:@xf-DonateProgress;"></div>
Yeah, that's my fault.
But even now he doesn't convert the variable
View attachment 164152
I want to use it as text and variable.
This is my first attempt to work with "style properties" and I give the width in percent and this percentage should also be displayed as text.
Like:
HTML:<div class="progressBarText" >@xf-DonateProgress</div> <div class="progressBarOverlay" style="width:@xf-DonateProgress;"></div>
<div class="progressBarOverlay" style="width:@xf-DonateProgress !important;"></div>
I have set up the style code into the widget template and it looks like the widget cant convert valuesextra.less file
I have set up the style code into the widget template
I dont need itYou can try giving it an !important flag.
What are you trying to say?It varies depending on what your editing but style creators like themehouse.... etc.. would not be able to create styles without it. Just how it works.
If i use the extra.less the variable "@xf-DonateProgress" get his value but the same variable in the widget doesn't get a value;
this is my current problem
View attachment 164154
I dont need it
at least this is what it looks likeunless the "less" itself isn't being served to the html widget.
<div class="progressBarText" >@xf-DonateProgress</div>
@xf-name
is only valid syntax in LESS templates -- it's just syntactic sugar to make it look like valid/normal LESS for IDEs.
Otherwise, its{{ property('name') }}
(as a standard templater function).
Perfect thank you verry muchOtherwise, its{{ property('name') }}
(as a standard templater function).
We use essential cookies to make this site work, and optional cookies to enhance your experience.