MozillaZine

Unable to hide Underline in Mozillazine

Discuss application theming and theme development.
mant

User avatar
 
Posts: 48
Joined: August 27th, 2006, 4:34 pm

Post Posted December 12th, 2014, 8:43 am

Something wrong here, Underline on this postlink cannot be hidden.

Screenshot:
Image


Code: Select all
I've put all these code in UserContent.css file:

a {text-decoration: NONE !important;}
a:link {text-decoration: NONE !important;}
:link {text-decoration: NONE !important;}
.postlink {text-decoration: NONE !important;}
.classname a {text-decoration: NONE !important;}
*|*:link {text-decoration: NONE !important;}
*|*:-moz-any-link {text-decoration: NONE !important;}

Even this brute-force code:

* {TEXT-DECORATION: NONE !IMPORTANT;}




Nothing works.
Theme Bug?

Aris

User avatar
 
Posts: 3175
Joined: February 27th, 2011, 10:14 am

Post Posted December 12th, 2014, 9:09 am

The file name should be userChrome.css not UserContent.css.
Btw. switch to Stylish add-on, its easier to manage styles there.

smsmith
Moderator

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

Post Posted December 12th, 2014, 9:57 am

Do me a favor and use text-decoration: underline red !important; You'll notice something very interesting when you do that.

Code: Select all
.postlink {
  border-bottom: none !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.

patrickjdempsey

User avatar
 
Posts: 23734
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted December 12th, 2014, 11:29 am

Aris wrote:The file name should be userChrome.css not UserContent.css.
Btw. switch to Stylish add-on, its easier to manage styles there.


You sure about that? ;)
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

Frank Lion

User avatar
 
Posts: 20035
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted December 12th, 2014, 12:08 pm

mant wrote:Nothing works.
Theme Bug?

Nope, mant bug.

Code: Select all
* {TEXT-DECORATION: NONE !IMPORTANT;}


...in userContent.css is all that's needed to prevent underlining there. Check your code, especially parts that should be commented out.
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

Aris

User avatar
 
Posts: 3175
Joined: February 27th, 2011, 10:14 am

Post Posted December 12th, 2014, 6:44 pm

Tested with userChrome.css inside profile folders of Seamonkey 2.3.1 and Firefox 37 nightly ("...\<profile folder>\chrome\userChrome.css") and css tweaks worked for me. Using userContent.css had no effect.

@patrickjdempsey
Yes, imo Stylish is the easier way to handle custom css code. :mrgreen:

patrickjdempsey

User avatar
 
Posts: 23734
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted December 12th, 2014, 7:31 pm

I'm asking why this would be in userChrome and not userContent? I don't mess around with Stylish either.... too much for me.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

ShareBird

User avatar
 
Posts: 2740
Joined: December 8th, 2004, 7:09 am
Location: Berlin | Made in Brasil

Post Posted March 17th, 2015, 2:23 pm

Try:

a { border: none !important; }
Silvermel - A Theme for Firefox and Thunderbird
YATT - Yet Another Theme Tutorial
Don't give a man a fish. Teach him how to fish instead.

Return to Theme Development


Who is online

Users browsing this forum: No registered users and 2 guests