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

CSS code broken, adding space label reveals issue with body color

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 2.0
    • 2.0
    • None
    • Standalone 2.0RC1, hsql, OS X, Java 1.5, Safari and Firefox, Confluence Personal Edition license

      When I log into my Confluence, the CSS from /styles/main-action.css looks like this:

      ----------------
      body, p, td, table, tr, .bodytext, .stepfield {
      font-family: Verdana, arial, sans-serif;
      font-size: 11px;
      line-height: 16px;
      color: #000000;
      font-weight: normal;
      }
      #PageContent {
      text-align: left;
      background-color: #fff;
      padding: 0px;
      margin: 0px;
      padding-bottom:20px;
      }
      /*

        • when this stylesheet is used for the FCK Wysiwyg editor's edit area, we can't
        • use an id=PageContent or class=wiki-content, so we must
        • set the body style to that used for PageContent, and p to that used for wiki-content.
          */

      body {
      margin: 0px;
      padding: 0px;
      text-align: center;
      background-color: #f0f0f0;
      }
      ------------

      Notice "body" is defined twice. Now, if I to any change to the space labels (add or delete a label) the CSS changes to:

      ------------
      body, p, td, table, tr, .bodytext, .stepfield {
      font-family: Verdana, arial, sans-serif;
      font-size: 11px;
      line-height: 16px;
      color: #000000;
      font-weight: normal;
      }

      body {
      margin: 0px;
      padding: 0px;
      text-align: center;
      background-color: #f0f0f0;
      }
      -----------

      So the "#PageContent " and the comment goes missing. This causes the background of the installation to start using the f0f0f0 (grey) background color so the whole confluence looks odd. The color reset happens to both Safari and Firefox, both when I'm logged in and/or browsing anonymously. Strangely if I go to the global admin section and reset the color settings of Confluence to the defaults (which they already are), the background resets to white again.

        1. Picture 3.png
          Picture 3.png
          18 kB
        2. Picture 4.png
          Picture 4.png
          18 kB

              Unassigned Unassigned
              ec22805fc0e2 Sulka Haro
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: