MozillaZine

userstyle issue

Discussion of third-party/unofficial Firefox/Thunderbird/SeaMonkey builds.
delicacy
 
Posts: 400
Joined: February 3rd, 2013, 4:09 pm

Post Posted March 18th, 2016, 4:33 am

I've set this style for my library manager (menubar/history/show all history)

for some reason, when i select text, the text itself is supposed to turn from my personalized blue color to "white", & it doesn't .. .


#placesList .tree-bodybox, #contentView .tree-bodybox { background-color: #FFFFFF !important; }
#placesList treechildren::-moz-tree-cell-text(selected), #contentView treechildren::-moz-tree-cell-text(selected) { color: #ffffff !important; }
#placesList treechildren::-moz-tree-cell-text, #contentView treechildren::-moz-tree-cell-text { color: #020944 !important; }
#placesList treechildren::-moz-tree-row(selected), #contentView treechildren::-moz-tree-row(selected) { background-color: #2673c1 !important; }

any clue ?

delicacy
 
Posts: 400
Joined: February 3rd, 2013, 4:09 pm

Post Posted March 19th, 2016, 3:01 am

nobody ?

delicacy
 
Posts: 400
Joined: February 3rd, 2013, 4:09 pm

Post Posted March 19th, 2016, 11:39 am

"You are receiving this notification because you are watching the topic,
"userstyle issue" at "mozillaZine Forums". This topic has received a reply
by mightyglydd since your last visit. You can use the following link to
view the replies made, no more notifications will be sent until you visit
the topic.

If you want to view the newest post made since your last visit, click the
following link:

viewtopic.php?f=42&t=2995397&p=14546423&e=14546423
"

smsmith
Moderator

User avatar
 
Posts: 19395
Joined: December 7th, 2004, 8:51 pm
Location: Indiana

Post Posted April 10th, 2016, 10:12 am

My guess would be that mighty deleted his post after you were notified. Might have posted in the wrong thread, decided his advice didn't work, etc.

The reason your code "doesn't work" is becaause userChrome and Stylish styles are applied "last come best served".

So, you say "make the selected text white" and then say "make the text blue". So it's going to always be blue, even when it's selected, because the "all text" rule trumps by being after the selected rule. Just flip the order of the all text and selected text rule.

Code: Select all
#placesList .tree-bodybox, #contentView .tree-bodybox { background-color: #FFFFFF !important; }
#placesList treechildren::-moz-tree-cell-text, #contentView treechildren::-moz-tree-cell-text { color: #020944 !important; }
#placesList treechildren::-moz-tree-cell-text(selected), #contentView treechildren::-moz-tree-cell-text(selected) { color: #ffffff !important; }
#placesList treechildren::-moz-tree-row(selected), #contentView treechildren::-moz-tree-row(selected) { background-color: #2673c1 !important; }
Give a man a fish, and he eats for a day. Teach a man to fish, and he eats for a lifetime.
I like poetry, long walks on the beach and poking dead things with a stick.
Please do not PM me for personal support. Keep posts here in the Forums instead and we all learn.

delicacy
 
Posts: 400
Joined: February 3rd, 2013, 4:09 pm

Post Posted April 10th, 2016, 11:13 am

Thanks a lot smsmith, but i had already fixed it. i was so tormented about it that i played with the code many times, by removing & reading lines & it finally worked out, even at mozilla support,
3 guys weren't able to tell me what i needed to know & why it didn't work & you've just explained me, something i had finally realized too, which is that style codes "orders" affect results.

Return to Third Party/Unofficial Builds


Who is online

Users browsing this forum: No registered users and 1 guest