Picture of Melissa Milloway
How do I customize the notify.less to show different colors for correct/incorrect answers?
by Melissa Milloway - Wednesday, 5 October 2016, 8:30 PM
 

Hi all,

I have been struggling trying to get the colors to change for if the class is correct or incorrect in the notify.less file.  I have the colors set in my colors.less but I can't seem to get the less to be specific to an incorrect modal versus a correct modal.

Any thoughts?  This is what I am trying to have two versions of (correct and incorrect) but this is the default:

 

It's nested in .notify

.notify-popup {
        background-color: @notify-color;
        color: @notify-text-color;

        a {
          text-decoration: none;
        }

Picture of Thomas Berger
Re: How do I customize the notify.less to show different colors for correct/incorrect answers?
by Thomas Berger - Friday, 7 October 2016, 7:19 AM
 

Hello Melissa,

this snippet works for me and may be a good starting point for your amends.

.notify-popup {
        background-color: @notify-color;
        color: @notify-text-color;

        &.incorrect {
            background-color: red;
        }
        &.correct {
            background-color: green;
        }

        a {
          text-decoration: none;
        }
    }

Cheers

Thomas

Picture of Melissa Milloway
Re: How do I customize the notify.less to show different colors for correct/incorrect answers?
by Melissa Milloway - Friday, 7 October 2016, 3:58 PM
 

Hey Thomas, it does! I went on Gitter yesterday and got the same response and it had worked. I need to study up more on LESS. I was not using the & and just putting the .notify-popup .correct outside of the nesting.

Thanks so much!

Mel