Isn't this an option when you're creating the banners for 1.2?
.bannermil {
color: @textCtrlBackground;
background-color: @primaryDarker;
border-color: @primaryDark;
}
a.bannerLink:hover .bannermil {
color: black;
background-color: yellow;
border-color: white;
}
So I tried making a banner using this in extra.css, but it isn't displaying as a banner:
It is appearing...just not as a banner.
.userBanner.wrapped {
-webkit-border-top-right-radius: 0;
-moz-border-radius-topright: 0;
-khtml-border-top-right-radius: 0;
border-top-right-radius: 0;
-webkit-border-top-left-radius: 0;
-moz-border-radius-topleft: 0;
-khtml-border-top-left-radius: 0;
border-top-left-radius: 0; position: relative;
}
.userBanner {
font-size: 11px;
background: transparent url('styles/default/xenforo/gradients/form-button-white-25px.png') repeat-x top;
padding: 1px 5px;
border: 1px solid transparent;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 1px 1px 3px rgba(0,0,0, 0.25);
-moz-box-shadow: 1px 1px 3px rgba(0,0,0, 0.25);
-khtml-box-shadow: 1px 1px 3px rgba(0,0,0, 0.25);
box-shadow: 1px 1px 3px rgba(0,0,0,0.25);
text-align: center;
}
Are you adding the class name on the banner option? Don't yet have hands on 1.2, but it should be pretty similar to the prefixes from what I've seen.
View attachment 49392
you need to add bannermil (or your class name) in the option for custom css class name.
I added that class name to the respective field, the only problem is it isn't displaying as a banner, but the colors are showing in the banner location.
Hmm, try this. In the custom css add both classes (with a space between them), your custom class and default class.Thanks. I didn't change your code, I essentially just pasted it into my extra.css. The banner is appearing as a block for me. Any idea what I am doing wrong?
View attachment 49393
userBanner bannermil wrapped didn't work, but when I used userBanner bannermil.wrapped, it appeared transparent (but wrapped) for some reason lol.
View attachment 49399
.bannermil {
color: @textCtrlBackground;
background-color: @primaryDarker;
border-color: @primaryDark;
}
.bannermil {
color: @textCtrlBackground !important;
background-color: @primaryDarker !important;
border-color: @primaryDark !important;
}
Well, at least we reached ahead somewhere haha.
What is your EXTRA.css statements?
That is mostly what needs to be there in EXTRA.css, you can remove the default classes since they'll work even without them being mentioned in EXTRA.css, and the ".a" rule isn't required as far as I see for the banner since it doesn't contain a hyperlink.Code:.bannermil { color: @textCtrlBackground; background-color: @primaryDarker; border-color: @primaryDark; }
If it continues to be transparent even after removing the unneeded statements from EXTRA.css, add !important to your bannermil rules.
Code:.bannermil { color: @textCtrlBackground !important; background-color: @primaryDarker !important; border-color: @primaryDark !important; }
.userBanner.wrapped {
-webkit-border-top-right-radius: 0;
-moz-border-radius-topright: 0;
-khtml-border-top-right-radius: 0;
border-top-right-radius: 0;
-webkit-border-top-left-radius: 0;
-moz-border-radius-topleft: 0;
-khtml-border-top-left-radius: 0;
border-top-left-radius: 0; position: relative;
}
.userBanner {
font-size: 11px;
background: transparent url('styles/default/xenforo/gradients/form-button-white-25px.png') repeat-x top;
padding: 1px 5px;
border: 1px solid transparent;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 1px 1px 3px rgba(0,0,0, 0.25);
-moz-box-shadow: 1px 1px 3px rgba(0,0,0, 0.25);
-khtml-box-shadow: 1px 1px 3px rgba(0,0,0, 0.25);
box-shadow: 1px 1px 3px rgba(0,0,0,0.25);
text-align: center;
}
.bannermil {
color: @textCtrlBackground !important;
background-color: @primaryDarker !important;
border-color: @primaryDark !important;
}
Still no change, but I appreciate the help none the less. This is what's in the extra.css
We use essential cookies to make this site work, and optional cookies to enhance your experience.