Uploaded image for project: 'Newsletter'
  1. Newsletter
  2. NEWSLETTER-220

The order of priority of css rules are not applied correctly on the newsletter

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.9.0
    • 1.9.0
    • None
    • FF & gmail

      How to reproduce :

      In the code HTML we have :

      <div class="newsletter-content">
      	<div class="ametys-cms-content news view-abstract vevent withIllustration wrapper">
      		<h3>My title</h3></div></div>

      In the styles defined in the head tag we have in that order :

      .newsletter-content h3{ font-size:1.1em; }
      .newsletter-content .ametys-cms-content h3{
      	font-size:1.2em;
      }				
      .newsletter-content .ametys-cms-content h3{ clear:none!important; font-size:1.3em; }
      

      In the mailer we received that :

      <h3 style="font-size:1.3em;font-size:1.2em;font-size:1.1em;">My title</h3>

          [NEWSLETTER-220] The order of priority of css rules are not applied correctly on the newsletter

          Laure Lopez made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Thibaut Rizzi (Inactive) made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Thibaut Rizzi (Inactive) made changes -
          Link New: This issue depends on RUNTIME-1116 [ RUNTIME-1116 ]
          Thibaut Rizzi (Inactive) made changes -
          Link New: This issue is duplicated by NEWSLETTER-215 [ NEWSLETTER-215 ]
          Laurence Aumeunier made changes -
          Fix Version/s New: 1.9.0 [ 12021 ]
          Laurence Aumeunier made changes -
          Assignee New: Thibaut Rizzi [ trizzi ]

          Laure Lopez added a comment -

          The property !important like :

          .newsletter-wrapper p a{ color:#00ffff!important; }

          should also be applied in priority whereas it is not.

          Laure Lopez added a comment - The property !important like : .newsletter-wrapper p a{ color:#00ffff!important; } should also be applied in priority whereas it is not.
          Laure Lopez created issue -

            trizzi Thibaut Rizzi (Inactive)
            llopez Laure Lopez
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: