Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-11974

/grade/report/grader/styles.php breaks display of header and footer in gradebook pages.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9, 2.0
    • Fix Version/s: 1.9
    • Component/s: Gradebook, Themes
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      the /grade/report/grader/styles.php contains CSS which breaks the display of headers in some themes. (there's a couple of pixels difference in the standard theme - very hard to see, but in other themes it can get quite bad when tables are used!)

      on the pages in the gradebook like this one.
      /grade/report/grader/index.php?id=2

      the following css class is applied to the <body>
      'grade-report-grader'

      which contains new settings for things such as
      table {
      border-width:1px;
      border-style:solid;
      margin-top: 20px;

      table td {
      border-width:1px;
      border-style:solid;

      and many others.

      These will all apply to items in the header and footer on the gradebook pages as well, which can break the display.

      the worst offender in my themes is margin-top: 20px;

      can these styles be applied more specifically rather than to all <tables> all <td>, etc etc in the <body> of the page?

      thanks,

      Dan

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            danmarsden Dan Marsden
            Tester:
            Dan Marsden Dan Marsden
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Bas Brands
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08