Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-20666

Styles for Nav-map macro are stripped out when displayed within the Documentation and Left Nav theme

    XMLWordPrintable

Details

    Description

      Atlassian Status as of 29/08/2010

      Workaround available:
      It seems like the navmap macro gets its styles from a CSS file called confluence.macros.advanced:navmap-resources.css For some reason, these styles are not getting applied to the nav-map macro output when displayed within the left nav theme. However, you can manually add those styles to each affected space using Confluence's stylesheets feature.

      Pasting the contents of the confluence.macros.advanced:navmap-resources.css file (see below) into the stylesheets box should make your blue boxes come back. That should allow you to still use the nav-map macro with the left nav theme. The width and height parameters will allow you to specify the size of the nav-map boxes.

      table.navMapContainer{background-color:#f0f0f0;margin:15px 0 15px 0;border:1px solid #ccc;}
      
      table.navMapContainer th{color:black;font-weight:bold;font-size:14px;text-align:left;}
      
      a.navMapCell,a.navMapCell:link,a.navMapCell:visited{background-color:#3c78b5;color:white;font-weight:bold;text-decoration:none;display:block;padding:10px;border:1px solid white;width:100px;height:25px;}
      
      a.navMapCell:hover{background-color:#036;color:white;font-weight:bold;text-decoration:none;display:block;padding:10px;border:1px solid white;width:100px;height:25px;}
      

      Customer encountered this issue with the left-nav theme after upgrading from 2.9 to 3.1.2. It used to work in 2.9 but no longer in 3.1. It is unclear whether changed happened within the theme or the nav-map macro. Another bug was filed for just the left nav theme but was closed because the theme has been deprecated.

      However, I promised to file this against the documentation theme since the bug exists there too and the documentation theme is supported going forward.

      Attachments

        Issue Links

          Activity

            People

              shaffenden Steve Haffenden (Inactive)
              barconati BillA
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: