Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Code In message white background and written in white

Hi all,

In some messages in PHPBB I have code.

With the export, I have the code in white background and written in white

Example :

http://88.181.151.128:8080/discussion/6784/sauvegarde-adb-sans-root

In CSS Editor, I added the following code but it does not work

.pre {
    color: #2B333E;
}

Thank you for your help

Comments

  • Options

    @K17 Un grand merci à toi,

    Dans css editor il faut rajouter :

    /*changes the color of font when adding code in the editor*/
    pre {
        color: #2B333E;
    }
    pre ol {
        margin-bottom: 0;
    } 
    

    Etant un noob en dev, j'ai une question à ce sujet.

    Pourquoi le pre est sans le point devant ?

    Merci à toi pour ton retour

    Tof

  • Options

    in your example i can see the background is white and the code inside in it is black. What do you want to change?

  • Options
    TofTof
    edited February 2016

    Thank @jackmaessen
    But, just one is in progress,

    I discovered by inspecting the page the following errors:

    wysihtml5-0.4.0pre.js?v=1.7.2:176 'Range.detach' is now a no-op, as per DOM (https://dom.spec.whatwg.org/#dom-range-detach).
    Navigated to http://88.181.151.128:8080/messages/9550
    wysihtml5-0.4.0pre.js?v=1.7.2:176 'Range.detach' is now a no-op, as per DOM (https://dom.spec.whatwg.org/#dom-range-detach).
    Navigated to http://88.181.151.128:8080/messages/9550
    wysihtml5-0.4.0pre.js?v=1.7.2:176 'Range.detach' is now a no-op, as per DOM (https://dom.spec.whatwg.org/#dom-range-detach).
    Navigated to http://88.181.151.128:8080/messages/9550
    wysihtml5-0.4.0pre.js?v=1.7.2:176 'Range.detach' is now a no-op, as per DOM (https://dom.spec.whatwg.org/#dom-range-detach).
    Navigated to http://88.181.151.128:8080/messages/9550
    wysihtml5-0.4.0pre.js?v=1.7.2:176 'Range.detach' is now a no-op, as per DOM (https://dom.spec.whatwg.org/#dom-range-detach).
    Navigated to http://88.181.151.128:8080/messages/9550
    wysihtml5-0.4.0pre.js?v=1.7.2:176 'Range.detach' is now a no-op, as per DOM (https://dom.spec.whatwg.org/#dom-range-detach).
    

    Can you help me ?

  • Options

    Your Range.detach is probably a warning, not an error. But i still don't understand what this has to do with the codebackground and the color inside a codeblock. That was your question?

  • Options

    yes sorry for the off-topic

    You have all the same idea for this warning?

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    Pourquoi le pre est sans le point devant ?

    Because pre is an element not a class

  • Options
    K17K17 Français / French Paris, France ✭✭✭
    edited February 2016

    @Tof a dit :
    @K17 Un grand merci à toi,

    Dans css editor il faut rajouter :

    /*changes the color of font when adding code in the editor*/
    pre {
        color: #2B333E;
    }
    pre ol {
        margin-bottom: 0;
    

    }

    Etant un noob en dev, j'ai une question à ce sujet.

    Pourquoi le pre est sans le point devant ?

    Merci à toi pour ton retour

    Tof

    En CSS (et en gros), Le point, c'est une classes, le hashtag, c'est un identifiant et rien du tout c'est un élément.
    En gros,
    La règle abc{} s'appliquera sur <abc></abc>
    La règle .abc{} s'appliquera sur <* class="abc" />
    La règle #abc{} s'appliquera sur<* id="abc" />

  • Options

    ok merci ;)

Sign In or Register to comment.