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

Reduce padding of blocks

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6
    • Fix Version/s: 3.6
    • Component/s: Blocks
    • Labels:

      Description

      I created MDL-63102 but did a very poor job of describing the issue and instead of reducing the padding on the blocks we reduced the margin between the blocks.

      Currently the blocks are styled as cards and the default padding for the card body is 1.25rem. This adds quite a bit of whitespace to the block, particularly when it's in the side column where there isn't much room.

      We can reclaim a little bit of that space for the content (and make the block look better overall) by reducing that down. We can use the `p-3` class that comes with Bootstrap 4 to avoid adding new custom CSS.

      This issue can also revert the reduction to the margins that were introduced in MDL-63102.

        Attachments

        1. MDL-63796.PNG
          MDL-63796.PNG
          39 kB
        2. dashboard_prototype.png
          dashboard_prototype.png
          599 kB
        3. before.png
          before.png
          341 kB
        4. after.png
          after.png
          344 kB

          Activity

            People

            • Assignee:
              ryanwyllie Ryan Wyllie
              Reporter:
              ryanwyllie Ryan Wyllie
              Peer reviewer:
              Damyon Wiese
              Integrator:
              Andrew Nicols
              Tester:
              Anna Carissa Sadia
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Dec/18

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m