FM Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49

» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

Recent Tutorials
Top posting users this month

Who is online?
In total there are 26 users online :: 0 Registered, 0 Hidden and 26 Guests :: 2 Bots

None

[ View the whole list ]


Most users ever online was 515 on Tue 14 Sep 2021, 15:24

Links in the Toolbar (Welcome and Notifications) aren't editable

View previous topic View next topic Go down

Bigtuber
Bigtuber

Gender : Male
Posts : 125
Points : 3425
Reputation : 52
Location : Germany
Language : German, English
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge

PostBigtuber Wed 15 Feb 2017, 07:51

So I think it sucks that you can't edit some things in the toolbar for example the color of the links.
Forumotion has already written that in !important so if you want to change the color or remove the underline, you can't.

This is some issue I noticed when I tried to change the color and remove the underline since my background color is brown there and blue looks not that great.
So I looked up other forumotion forums and every forum has the same color and is underlined, even FAE; here is the code:
Code:
#fa_toolbar #fa_right #notif_list li .contentText a {
    color: #00569C !important;
    text-decoration: underline !important;
    vertical-align: baseline;
}

I think it's a problem for forums with a dark background (on the toolbar atleast) and I don't think there is any way to change this.
What do you think? Or do you have a solution?

Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12258
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Fri 17 Feb 2017, 11:56

Hey

This can be changed by taking the existing selector set (
Code:
#fa_toolbar #fa_right #notif_list li .contentText a
) and adding a selector which is the parent of this set, such as
Code:
body
. Doing this will give your rule higher priority over the one defined by Forumotion. See and use the rule below and you'll understand. Wink

Code:
body #fa_toolbar #fa_right #notif_list li .contentText a {
  text-decoration:none !important;
}

Note that you'll still need to use "!important", however, with the addition of "body" in the selector set, this rule now has higher priority, allowing you to override the rule defined by Forumotion. You can do this with any rule that is important. Thumb left

See "Specificity" for more information : https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity
Bigtuber
Bigtuber

Gender : Male
Posts : 125
Points : 3425
Reputation : 52
Location : Germany
Language : German, English
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge

PostBigtuber Fri 17 Feb 2017, 12:20

Oh wow, thanks again Ange for this solution! I read about the overriding from !important but I didn't think about "body". Think

And this is working for everything which isn't working with !important and doesn't have the selector "body"?
You know, there is the sceditor and it has already body in it so it is necessary to override it with this JS:
Code:
$(window).load(function () {
  $(".sceditor-container iframe").contents().find("head").append("<style>body,html,code:before,p,table{color:#FFF!important;text-shadow:1px 1px 1px #000!important;}</style>")
        });

So we can say the overriding of Forumotion works like that: JS > selector "body" > !important

Thanks, Ange! Smile
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12258
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Fri 17 Feb 2017, 12:42

Yes, placing "body", "html", or any other parent selector before the current selector set will allow you to override existing rules which are important. For example..

Code:
#logo { background:red !important; }
is overridden by
Code:
body #logo { background:blue !important; }
, regardless if the rule is placed before or after.


In regards to that script, it's necessary unfortunately, because we cannot modify the iframe CSS with the forum stylesheet.
Sponsored content

PostSponsored content

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum