Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4295

Include variable to control course card image aspect ratio

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.2.0
    • None
    • Courses
    • MOODLE_402_STABLE

    Description

      Currently we have to change some css to control course card image aspect ratio using padding-top.

      It would be great to have something like:
      --course-card-image-aspect-ratio: 1/4; that automatically calculates the padding-top of the images.

      Additionally we have 2 AR to change: one for the course card on my courses page / course overview block, and another on the smaller cards with horizontal scroll (recent courses block and similar). So both of the vars should be created.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pferre22 Pau Ferrer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: