When exporting a space as HTML, the generated zip files contains a file /styles/site.css

      This css file contains the following line, which references a file not included in the zip file:

      @import 'imports/global';

      Furthermore site.css contains LESS-references to certain style not defined anywhere leading to a mediocre viewing experience:

      body {
      color: @aui-text-color;
      font-family: @aui-font-family;
      font-size: @aui-font-size-medium;
      ...

      All "@aui" references are not resolved.

      As we have to export a space containing a quality management documentation for external auditing, any hint or solution how to solve this issue would be great!

            [CONFSERVER-39221] Space exported as HTML does not resolve CSS dependencies

            I'm also facing the same issue, when will it be fixed?

            Gobinda Jamakatel added a comment - I'm also facing the same issue, when will it be fixed?

            It's a shame.

            Is there anyone who has a working solution to fix this? I need to export the spaces and preserve style.

            Thanks

            Paolo Zigoni added a comment - It's a shame. Is there anyone who has a working solution to fix this? I need to export the spaces and preserve style. Thanks

            G'day,

            I just processed the site.css with @atlassian/aui fixing a few missing bits. Would it be ok for me to attach that site.css here as a starter for people to use here?

            Peter McNeil added a comment - G'day, I just processed the site.css with @atlassian/aui fixing a few missing bits. Would it be ok for me to attach that site.css here as a starter for people to use here?

            Bhargav Gohil added a comment - - edited

            Is Atlassian addressing this issue ? I mean it is almost 10 years now.  2ba8be2a2eb1 
            Please have a look at this issue. 

            Bhargav Gohil added a comment - - edited Is Atlassian addressing this issue ? I mean it is almost 10 years now.   2ba8be2a2eb1   Please have a look at this issue. 

            Zen added a comment -

            Yeah!!!! We are almost 10 years!!! Bug still there ~~~~

            Zen added a comment - Yeah!!!! We are almost 10 years!!! Bug still there ~~~~

            Also the same issue here! Please fix this soon!

            Christian Hesse added a comment - Also the same issue here! Please fix this soon!

            How can this kind of bug be opened since 2015? Why are we paying for a service that is clearly not maintained? 

            Gaylord Gauvrit added a comment - How can this kind of bug be opened since 2015? Why are we paying for a service that is clearly not maintained? 

            Johannes Dato added a comment - - edited

            Has there been any progress to this? I also am stuck here, issue has been open for 7 years so I suppose there won't be much more to expect? Also affects cloud btw.

            Johannes Dato added a comment - - edited Has there been any progress to this? I also am stuck here, issue has been open for 7 years so I suppose there won't be much more to expect? Also affects cloud btw.

            Facing the same issue. The export should also export the required LESS dependencies OR resolve them while exporting.

            Nitin.Jadhav1 added a comment - Facing the same issue. The export should also export the required LESS dependencies OR resolve them while exporting.

            Same issue!

            Carlos Moreno added a comment - Same issue!

            Also a problem for us, trying to render confluence pages properly and the styled_view does nothing to help.

            Ulysse Mizrahi added a comment - Also a problem for us, trying to render confluence pages properly and the styled_view does nothing to help.

            This is an ongoing problem. I tried the script that was shared on Bitbucket in an earlier comment and it generated a massive amount of CSS, some of which unfortunately seems to break my django server. Although it does make the export look prettier. It's super hard for me to sort through what's actually needed from what's just bloat. It's annoying that this problem has been a known issue for years and Confluence hasn't fixed it.

            Laura McWilliams added a comment - This is an ongoing problem. I tried the script that was shared on Bitbucket in an earlier comment and it generated a massive amount of CSS, some of which unfortunately seems to break my django server. Although it does make the export look prettier. It's super hard for me to sort through what's actually needed from what's just bloat. It's annoying that this problem has been a known issue for years and Confluence hasn't fixed it.

            Confluence Cloud. After export a space as HTML, the generated zip files contains a file: /styles/site.css.

            This css file contains the following line: @import './imports/global';

            This line references a file, not included in the zip file.

            Folder 'imports' does not exist.

             

            Чижиков Дмитрий added a comment - Confluence Cloud. After export a space as HTML, the generated zip files contains a file: /styles/site.css. This css file contains the following line: @import './imports/global'; This line references a file, not included in the zip file. Folder 'imports' does not exist.  

            Please fix this, This is still an issue after nearly 4 years.

            In my case, an exported page html is complaining about missing styles/important/global

            Crispin Bivans added a comment - Please fix this, This is still an issue after nearly 4 years. In my case, an exported page html is complaining about missing styles/important/global

            I can't believe this is still not fixed. Even more, this problem affects Cloud as well, I'm getting exactly the same results.

            Radosław Łoboda added a comment - I can't believe this is still not fixed. Even more, this problem affects Cloud as well, I'm getting exactly the same results.

            code block objects inserted in the documentation, make collapsible, does not appears any more in the documentation. The object cannot be expanded....

            I'm guessing that the default style is collapsed. In that case I'd inspect the code block, find the CSS rules that cause it to collapse and add custom rules to the "customCss" var which negate the collapsing.

            If I don't want the site.css zipped, I could send a normal file without change in the behavior  ?

            If you don't care for any of the other files you can modify this section to skip the archive creation and only download the site.css.

            Fabian Iwand added a comment - code block objects inserted in the documentation, make collapsible, does not appears any more in the documentation. The object cannot be expanded.... I'm guessing that the default style is collapsed. In that case I'd inspect the code block, find the CSS rules that cause it to collapse and add custom rules to the "customCss" var which negate the collapsing. If I don't want the site.css zipped, I could send a normal file without change in the behavior  ? If you don't care for any of the other files you can modify this section to skip the archive creation and only download the site.css.

            Hi Fabian, I have two issues, unfortunately,

            1.code block objects inserted in the documentation, make collapsible, does not appears any more in the documentation. The object cannot be expanded....

            Could you help suggesting some of your wonderful solutions ? 

             

            2.If I don't want the site.css zipped, I could send a normal file without change in the behavior  ?

             

            Thanks in advance,

            Giorgio

            Giorgio Ricciuti added a comment - Hi Fabian, I have two issues, unfortunately, 1.code block objects inserted in the documentation, make collapsible, does not appears any more in the documentation. The object cannot be expanded.... Could you help suggesting some of your wonderful solutions ?    2.If I don't want the site.css zipped, I could send a normal file without change in the behavior  ?   Thanks in advance, Giorgio

            As a workaround we are using the script at https://gist.github.com/mootari/333cca8cf708ad886a790e55034fe291 to generate the required CSS.

            The script needs to be run in the Chrome dev tools in the context of a Confluence page. It will bundle all of the page's stylesheets and CSS assets (fonts, images) into a zip file that is automatically downloaded and can be extracted into the styles folder. The stylesheet may contain some bloat, but will also have the extension styles (as far as I can tell).

            Fabian Iwand added a comment - As a workaround we are using the script at https://gist.github.com/mootari/333cca8cf708ad886a790e55034fe291  to generate the required CSS. The script needs to be run in the Chrome dev tools in the context of a Confluence page. It will bundle all of the page's stylesheets and CSS assets (fonts, images) into a zip file that is automatically downloaded and can be extracted into the styles folder. The stylesheet may contain some bloat, but will also have the extension styles (as far as I can tell).

            Same issue in Confluence 6.13.3 (node104: 24c1b786).

            Syugo Saito added a comment - Same issue in Confluence 6.13.3 (node104: 24c1b786).

            codemaestro added a comment - Are these related:  https://jira.atlassian.com/browse/CONFSERVER-40907

            I can confirm seeing the same issue with Confluence Cloud: 1000.0.0-05d781fdbe3

            Peter Hannon added a comment - I can confirm seeing the same issue with Confluence Cloud: 1000.0.0-05d781fdbe3

            If anyone could attach an "old" style.css example or a global.css file it could be super helpful as a workaround until the issue is fixed.

            Emanuel Greisen added a comment - If anyone could attach an "old" style.css example or a global.css file it could be super helpful as a workaround until the issue is fixed.

            Same issue in Confluence 6.11.0 (I installed 64 bit version).  We were just about to export final test report to our customer when noticed that the export html files do not display table grid lines. Worse than "mediocre viewing"! Luckily, copying old site.css style file seem to help and solve my issues. 

            I can attach good(old) and bad(new) CSS files as well for comparison if it helps.

            Mehran Moss added a comment - Same issue in Confluence 6.11.0 (I installed 64 bit version).  We were just about to export final test report to our customer when noticed that the export html files do not display table grid lines. Worse than "mediocre viewing"! Luckily, copying old site.css style file seem to help and solve my issues.  I can attach good(old) and bad(new) CSS files as well for comparison if it helps.

            Same problem here. Please resolve this - we want to export 1 page as a weekly status report to be viewed on an intranet site, the number of users would be far too many and costly.

            Martin van Middelkoop added a comment - Same problem here. Please resolve this - we want to export 1 page as a weekly status report to be viewed on an intranet site, the number of users would be far too many and costly.

            Same issue for us !

            Arnaud Goethals added a comment - Same issue for us !

            Same here!

            Alain Dresse added a comment - Same here!

            Same issue for us with V6.0.3.
             

            Michael Marton added a comment - Same issue for us with V6.0.3.  

            Mj added a comment -

            Same for us - again, like Bill Darcy, this is a red-line issue.

            Mj added a comment - Same for us - again, like Bill Darcy, this is a red-line issue.

            Big problem for us too...

            Sam Lellouche added a comment - Big problem for us too...

            Bill Darcy added a comment -

            I see this problem today (August 31, 2016) in the Cloud version. 

            We, also must submit a document to our customer. We were expecting to create pages in Confluence and export them to submit. 

            This issue will cause us to NOT use Confluence for these documents and we'll rethink our entire use of Confluence and Atlassian products. 

            Any workarounds would help.

            Thank you

            Bill Darcy added a comment - I see this problem today (August 31, 2016) in the Cloud version.  We, also must submit a document to our customer. We were expecting to create pages in Confluence and export them to submit.  This issue will cause us to NOT use Confluence for these documents and we'll rethink our entire use of Confluence and Atlassian products.  Any workarounds would help. Thank you

            I also had this problem in 5.9.2. As a workaround, I ran the css and the aui source through a LESS compiler. You can find aui source here: https://bitbucket.org/atlassian/aui/src/22922126f69d/src/less/imports/?at=master. I didn't particularly enjoy that, so please fix this!

            Michael Kalnicki [M20] added a comment - I also had this problem in 5.9.2. As a workaround, I ran the css and the aui source through a LESS compiler. You can find aui source here: https://bitbucket.org/atlassian/aui/src/22922126f69d/src/less/imports/?at=master . I didn't particularly enjoy that, so please fix this!

            I see this same problem in Confluence 5.9.4.

            Ralf Röding added a comment - I see this same problem in Confluence 5.9.4.

            This seems to be fixed in 5.9.2

            Jan-Peter Rusch added a comment - This seems to be fixed in 5.9.2

            I see this same problem in Confluence 5.7.1.

            John McGehee added a comment - I see this same problem in Confluence 5.7.1.

              Unassigned Unassigned
              160e57dc4064 Jan-Peter Rusch
              Affected customers:
              71 This affects my team
              Watchers:
              68 Start watching this issue

                Created:
                Updated: