Karma ~ at Runboard.com


Temple of Illusia
 »  Illustrated Secrets of Design .
 »  »  Karma

SupportSearch Illusia

   Runboard       

Jump to Page:  1  2 

 
Demonic Inuyasha
Citizen
Worldly Traveler (premium)

Registered: 11-2004
Province: My Secluded Paradise
Posts: 49
Karma: 2 (+2/-0)
Avatar
Reply | Quote
Karma


I finally got sick and tired of the smites being visible, so I was wondering about something.

Without actually turning it off, is there a way to use CSS and simply hide the parentheses next to the current amount of karma that you have on the post list master table page. To go deeper, like I need to, but the parentheses with the total karma, negatives in it is what I mean.

It seems possible, since CSS rules and all. If we can't it's no big deal, but it would be cool to be able to.

---
Image
Image

5/17/2008, 11:39 pm PM Demonic Inuyasha Yahoo Read Blog
 
Lesigner Girl
Minerva
Worldly Traveler (premium)
Runboard staff member

Registered: 11-2005
Province: SW MI, USA
Posts: 5123
Karma: 89 (+103/-14)
Avatar
Reply | Quote
Re: Karma


Yes and no.

Since there is nothing in the custom language set to the effect of
%1 (%2/%3) that will let you alter the part in parentheses, we can only work with what is already there.

Here is the board's underlying HTML for that:

<span class="postlist_karma">Karma: </span>
<span class="postlist_karma_value">1 (+1/-0)</span>


Since the part in parentheses doesn't have its own class name apart from the number outside the parentheses, we can't just do a display:none; and be done with it. What you can do is limit how much of the karma value can be seen.

.postlist_karma { display: block; float: left; }
.postlist_karma_value { display: block; width: 1.25em; overflow: hidden; margin-right: 0.5em; white-space: nowrap; }


I temporarily added this code to this board, so you can see what it does, along with a background color so you can see the visible width.

This isn't a perfect solution, as you can see by comparing your single-digit karma with my double-digit karma. If anyone at your board has karma in the triple digits or more, you would have to widen the visible karma value even more, thus showing more of the area in parentheses for people with karma in the single and double digits.

It may not look pretty that way, but it hides the negative part. emoticon

Last revised by Lesigner Girl, 5/20/2008, 7:43 pm


---
Image
Customization tutorials & Q&A
5/18/2008, 12:02 pm PM Lesigner Girl Read Blog
 
SKOKEY
Citizen
Worldly Traveler

Registered: 12-2005
Province: Bennington, NH
Posts: 364
Karma: 11 (+12/-1)
Avatar
Reply | Quote
Re: Karma


Look what it's doing now. It's wrapping the mumbers into a column and still showing the negative ones.
5/20/2008, 12:01 pm PM SKOKEY
 
Lesigner Girl
Minerva
Worldly Traveler (premium)
Runboard staff member

Registered: 11-2005
Province: SW MI, USA
Posts: 5123
Karma: 89 (+103/-14)
Avatar
Reply | Quote
Re: Karma


I haven't seen what you were seeing, but it might be best to add white-space: nowrap; to .postlist_karma_value just to make sure that doesn't happen to anyone who uses this idea.

I'll edit my code above to add that in.

Thanks, Skokey! emoticon

---
Image
Customization tutorials & Q&A
5/20/2008, 7:43 pm PM Lesigner Girl Read Blog
 
SKOKEY
Citizen
Worldly Traveler

Registered: 12-2005
Province: Bennington, NH
Posts: 364
Karma: 11 (+12/-1)
Avatar
Reply | Quote
Re: Karma


OK, I don't see the wrap any more.
5/20/2008, 8:13 pm PM SKOKEY
 
SKOKEY
Citizen
Worldly Traveler

Registered: 12-2005
Province: Bennington, NH
Posts: 364
Karma: 11 (+12/-1)
Avatar
Reply | Quote
Re: Karma


I'm at work and have IE6 here. The column of numbers is back.
5/21/2008, 11:30 am PM SKOKEY
 
Lesigner Girl
Minerva
Worldly Traveler (premium)
Runboard staff member

Registered: 11-2005
Province: SW MI, USA
Posts: 5123
Karma: 89 (+103/-14)
Avatar
Reply | Quote
Re: Karma


Ok, I know I added the nowrap to my CSS, but it wasn't there just now when I looked. emoticon Please let me know how it looks the next time you view it with IE6. emoticon

Thanks! emoticon

---
Image
Customization tutorials & Q&A
5/21/2008, 6:25 pm PM Lesigner Girl Read Blog
 
SKOKEY
Citizen
Worldly Traveler

Registered: 12-2005
Province: Bennington, NH
Posts: 364
Karma: 11 (+12/-1)
Avatar
Reply | Quote
Re: Karma


Sure thing Boss.
5/21/2008, 8:10 pm PM SKOKEY
 
SKOKEY
Citizen
Worldly Traveler

Registered: 12-2005
Province: Bennington, NH
Posts: 364
Karma: 11 (+12/-1)
Avatar
Reply | Quote
Re: Karma


Lookin' OK now in IE6.
5/22/2008, 10:19 am PM SKOKEY
 
Lesigner Girl
Minerva
Worldly Traveler (premium)
Runboard staff member

Registered: 11-2005
Province: SW MI, USA
Posts: 5123
Karma: 89 (+103/-14)
Avatar
Reply | Quote
Re: Karma


Boss emoticon

Thanks, Skokey! emoticon Karma coming your way. emoticon

---
Image
Customization tutorials & Q&A
5/22/2008, 7:01 pm PM Lesigner Girl Read Blog
 


Add to this discussion

Jump to Page:  1  2 




Powered by AkBBS 0.9.5b  -  Link to us   -  Blogs   -  Hall of Honour   -  Chat
Click here to get your own free message board
You are not logged in (login)      Board's time is: 12/1/2008, 6:38 pm EDT