Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Community forum styling question
Hi folks.
I'm currently working on a style which I regularly test on this forum as my custom style. I noticed something that I thought being a mistake of mine, but in fact, it appears Mark's style might override some of my CSS classes. I'm not sure about this, that's why I ask. I guess since there's a special header with all of the Lussumo links at the top, some elements under it may be affected.
On local and on my test site, I have no problem displaying the "signed in as..." text and the advanced search switch at the height I want. But when I test it here, no matter what position from the top I specify, both of them always stay at the same place. Not really a big deal, but since my header isn't the same height than Vanilla's base style, these two elements aren't at the right place in my style on this forum (and only on this forum).
Did some of you encounter the same problem? Is there something I can do for these two elements to look nice on the community forum?
I'm currently working on a style which I regularly test on this forum as my custom style. I noticed something that I thought being a mistake of mine, but in fact, it appears Mark's style might override some of my CSS classes. I'm not sure about this, that's why I ask. I guess since there's a special header with all of the Lussumo links at the top, some elements under it may be affected.
On local and on my test site, I have no problem displaying the "signed in as..." text and the advanced search switch at the height I want. But when I test it here, no matter what position from the top I specify, both of them always stay at the same place. Not really a big deal, but since my header isn't the same height than Vanilla's base style, these two elements aren't at the right place in my style on this forum (and only on this forum).
Did some of you encounter the same problem? Is there something I can do for these two elements to look nice on the community forum?
0
This discussion has been closed.
Comments
<link rel="stylesheet" type="text/css" href="http://example.com/vanilla.css" media="screen" /> <link rel="stylesheet" type="text/css" href="http://example.com/vanilla.print.css" media="print" /> <link rel="stylesheet" type="text/css" href="/community/extensions/Style/style.css" /> <link rel="stylesheet" type="text/css" href="/community/extensions/TextMode/style.css" /> <link rel="stylesheet" type="text/css" href="/community/extensions/LussumoBanner/style.css" />
Since the LussumoBanner style is added after your custom style, it gets applied later, and overrides your style.
You have to set the positioning on the container, and then position the items inside the container.
For example, I use this on the categories page to turm parts of the content into a header:
#Categories { position: relative; } .CategoryDiscussionCount span, .CategoryOptions span { position: absolute; top: -23px; border-bottom: 3px solid #f00; }
;If you are already familiar with CSS, this should get you started:
#Panel * { float: left; width: 180px; }
This floats all panel items to the left, but some could be grouped together better with some more specific styling.
If you're good with CSS you could probably manage to pull the left sidebar to the bottom without having to write a new theme, but otherwise you'll probably need to write a theme to help you position things easier.
And you can of course actually leave the sidebar where it is, which would leave you with 420px for the main content. Kind of cramped perhaps, but you can make it work.