|
|
|
|
Joined: Aug 2004
Posts: 490 Likes: 2
Addict
|
|
Addict
Joined: Aug 2004
Posts: 490 Likes: 2 |
I have a style where in 'thread view' I'd like to alter the color that display names are shown.
Which part of the style css file is responsible for the display name visible on the left side of each post?
|
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
|
|
|
|
|
Joined: Dec 2003
Posts: 6,649 Likes: 88
|
|
Joined: Dec 2003
Posts: 6,649 Likes: 88 |
Taking a stab at this. Since they are hover links and take the default colors. Only admins and moderators have a special link color setting. For admins and moderators. Should be: Misc. Properties in the style editor There is a class for each of the defaults(admin,mods). For a normal user: I assume it would be: General CSS Properties body Then edit special link properties. Since it is a hover link the default color is used.
Of course there are probably other settings to address but that should give you a start
Last edited by Ruben; 12/18/2011 6:08 PM. Reason: changed what property to change for name color.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
|
Joined: Dec 2003
Posts: 6,649 Likes: 88
|
|
Joined: Dec 2003
Posts: 6,649 Likes: 88 |
I found the original setting suggested did not work. But changing the general properties section as noted above did seem to work.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
|
Joined: Aug 2004
Posts: 490 Likes: 2
Addict
|
|
Addict
Joined: Aug 2004
Posts: 490 Likes: 2 |
I'm a bit lost here.  Looking at this thread is a perfect example of what I'm after. Which part of the css determines the color that my own display name is shown in when looking through a thread like this one?
|
|
|
|
|
Joined: Aug 2004
Posts: 490 Likes: 2
Addict
|
|
Addict
Joined: Aug 2004
Posts: 490 Likes: 2 |
Ok, seem to have got it right.  Did the general CSS one for the body as well as the special ones and all seems to have been sorted. Many thanks. 
|
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
if you want a specific css selector for the actual name in the left side, that would be .author-content a:link .author-content a:hover .author-content a:visited .author-content a:active 4 rules for the various states of a link, including pseudo selectors 
|
|
|
|
|
Joined: Dec 2003
Posts: 6,649 Likes: 88
|
|
Joined: Dec 2003
Posts: 6,649 Likes: 88 |
Okay the dilemma is that your name is a link per say. You can select it and it takes you to your profile. So there is a default class for doing so. Most links are somewhere in the blue range. In ubb there are some class settings that over-ride that color for mods and admins only, meaning admins are red and mods are green and global mods are light blue. For normal users they take on the default colors like all sites do. Blue in this case. So in ubb to override the link colors you need to change the special properties section in the style editor.
For example your name is: color #135060 Currently.
In the special properties section you can specify colors for unvisited,visited,active,hover.
Since there is not a class for normal users you would need to set the defaults. So you would edit the style and goto: General CSS Properties Select body Then select Special Link Properties.
When expanded you will see several boxes. As noted above. This is the mouse behaviors.
So you could have different colors for each one. So make a entry such as for yellow: color: #EEEE00;
In each entry box.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
|
Joined: Dec 2003
Posts: 6,649 Likes: 88
|
|
Joined: Dec 2003
Posts: 6,649 Likes: 88 |
SD did the abbreviated post so he beat me to it.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
1 members (1 invisible),
304
guests, and
96
robots. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
|
|
|