Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-9646

Cant hide/outcomment @import in stylesheet.css

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.7-PL1
    • Fix Version/s: 3.0.8-RC1
    • Component/s: Styles
    • Labels:
      None
    • Environment:
      Apache/2.0.63 (Unix) PHP/5.2.11 DAV/2, MySQL 5.1.37, Safari 4.0.5

      Description

      Trying to hide/outcomment a @import rule in the stylesheet.css wont work, the outcomment @import rule will be generated and read by safari.

      ataching stylesheets used to test
      stylesheet.css
      lightcolours.css

      Output style.php gives the following code:
      /* /* lightcolours
      ---------------------------------------- */
      .copyright, .copyright a

      { color: #0000ff !important; }

      .copyright a:hover

      { color: #ff0000 !important; }


      Enable lightcolours.css stylesheet import for alternativ light version */

      1. lightcolours.css
        0.2 kB
        jesper møller
      2. stylesheet.css
        0.7 kB
        jesper møller

        Issue Links

          Activity

          Hide
          bantu Andreas Fischer added a comment -

          Related function

          acp_styles::db_theme_data()

          preg_match_all('/@import url\(["\'](.*)["\']\);/i', $stylesheet, $matches);

          Show
          bantu Andreas Fischer added a comment - Related function acp_styles::db_theme_data() preg_match_all('/@import url\(["\'](.*)["\']\);/i', $stylesheet, $matches);

            People

            • Assignee:
              A_Jelly_Doughnut A_Jelly_Doughnut
              Reporter:
              jesper møller jesper møller
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development