Post by pawl on Dec 3, 2012 13:49:08 GMT -8
This modification will show you how to change the width of the mini-profiles that appear next to posts and pm's, as it's not as easy as you might think. To begin with, if you want to decrease the size of the mini-profile you'll have to reduce the max avatar size, for which you'll need to read this thread - it only takes a minute though.
Once you're done, read on....
Head to your style sheet - Admin Panel -> Themes -> Colours & Styles -> Style Sheet
At approx line 975 you should find the following;
.posts .post .left-panel { width: 172px; vertical-align: top; }
Change the purple text to the width you'd like the entire mini profile to be (that is, the box with the border). Make sure that it's at least as wide as your max avatar width, ideally just a little wider.
Approx line 1031 you should find this line, make the same edit as above;
.messages .item .left-panel { width: 172px; }
The next number you need to change is on approx line 1138;
.mini-profile { color: @mini_text_color; font: @mini_text_font; background: @mini_background; border: @mini_border; .rounded-corners(@mini_border_radius); text-align: @mini_text_align; overflow: hidden; padding: 13px 10px; width: 150px; }
The number in red wants to be just smaller (by maybe 20px or so) than your .left-panel width above.
If you're making the mini-profile smaller, you're done. Sit back and relax!
If however you're making it bigger, there's one more thing you need to do.
Still in the stylesheet, approx. line 976, look for this;
.posts .post .content { padding-left: 10px; vertical-align: top; }
The number in blue needs to be increased by the same amount you've widened your mini-profile. If you've gone from the default 172px to 200px (an increase of 28px), then you need to go from 10px here to 38px.
This will stop your posts from overlapping into the mini-profile.
The same then needs to be done to the following line, approx 1036;
.messages .item .content { padding-left: 10px; word-wrap: break-word; overflow-x: auto; overflow-y: hidden; }
And there, we're done!
As ever feel free to reply if you're stuck, have a question, or think I've made a mistake. =]
Once you're done, read on....
Head to your style sheet - Admin Panel -> Themes -> Colours & Styles -> Style Sheet
At approx line 975 you should find the following;
.posts .post .left-panel { width: 172px; vertical-align: top; }
Change the purple text to the width you'd like the entire mini profile to be (that is, the box with the border). Make sure that it's at least as wide as your max avatar width, ideally just a little wider.
Approx line 1031 you should find this line, make the same edit as above;
.messages .item .left-panel { width: 172px; }
The next number you need to change is on approx line 1138;
.mini-profile { color: @mini_text_color; font: @mini_text_font; background: @mini_background; border: @mini_border; .rounded-corners(@mini_border_radius); text-align: @mini_text_align; overflow: hidden; padding: 13px 10px; width: 150px; }
The number in red wants to be just smaller (by maybe 20px or so) than your .left-panel width above.
If you're making the mini-profile smaller, you're done. Sit back and relax!
If however you're making it bigger, there's one more thing you need to do.
Still in the stylesheet, approx. line 976, look for this;
.posts .post .content { padding-left: 10px; vertical-align: top; }
The number in blue needs to be increased by the same amount you've widened your mini-profile. If you've gone from the default 172px to 200px (an increase of 28px), then you need to go from 10px here to 38px.
This will stop your posts from overlapping into the mini-profile.
The same then needs to be done to the following line, approx 1036;
.messages .item .content { padding-left: 10px; word-wrap: break-word; overflow-x: auto; overflow-y: hidden; }
And there, we're done!
As ever feel free to reply if you're stuck, have a question, or think I've made a mistake. =]