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 4.png
          18 kB
          Sulka Haro
        2. Picture 3.png
          18 kB
          Sulka Haro

            [CONFSERVER-4409] CSS code broken, adding space label reveals issue with body color

            I wasn't able to reproduce this, but for safety's sake there are now two stylesheets: /styles/main-action.css and /styles/wysiwyg-action.css - so the differences won't clobber any caches, as seems to be occurring.

            Charles Miller (Inactive) added a comment - I wasn't able to reproduce this, but for safety's sake there are now two stylesheets: /styles/main-action.css and /styles/wysiwyg-action.css - so the differences won't clobber any caches, as seems to be occurring.

            Sorry for the barrage of comments - the issue only persists for the duration of the session. If I quit the browser and log back in, the CSS is again fine. Hence this is just a small irritation to the administrators.

            Sulka Haro added a comment - Sorry for the barrage of comments - the issue only persists for the duration of the session. If I quit the browser and log back in, the CSS is again fine. Hence this is just a small irritation to the administrators.

            Ooops. Just noticed also any feature in the admin section which generates one of the red alert boxes causes the same issue to surface.

            For example, try to save a group without defining a name for it or upload a logo without choosing a file and the CSS will also explode.

            Sulka Haro added a comment - Ooops. Just noticed also any feature in the admin section which generates one of the red alert boxes causes the same issue to surface. For example, try to save a group without defining a name for it or upload a logo without choosing a file and the CSS will also explode.

            And after editing. Notice the background color of the page.

            Sulka Haro added a comment - And after editing. Notice the background color of the page.

            Attaching picture of the page before editing the labels.

            Sulka Haro added a comment - Attaching picture of the page before editing the labels.

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

                Created:
                Updated:
                Resolved: