From 5dbfae83fc70854ef452322f7c7b18c9f4b67657 Mon Sep 17 00:00:00 2001 From: Matthew Piatetsky Date: Wed, 10 Nov 2021 16:47:55 -0500 Subject: [PATCH] fix: Miscellaneous styling fixes for mobile (#29294) * fix: Miscellaneous styling fixes for mobile * fix: Add px fallback since outlook doesn't support rem --- .../edx_ace/goalreminder/email/body.html | 47 +++++++++---------- .../edx_ace/goalreminder/email/head.html | 17 +++++++ .../ace_common/edx_ace/common/base_head.html | 1 + 3 files changed, 41 insertions(+), 24 deletions(-) diff --git a/lms/djangoapps/course_goals/templates/course_goals/edx_ace/goalreminder/email/body.html b/lms/djangoapps/course_goals/templates/course_goals/edx_ace/goalreminder/email/body.html index 966be4aff1..fe3c6279f7 100644 --- a/lms/djangoapps/course_goals/templates/course_goals/edx_ace/goalreminder/email/body.html +++ b/lms/djangoapps/course_goals/templates/course_goals/edx_ace/goalreminder/email/body.html @@ -20,30 +20,17 @@ {# email client support for style sheets is pretty spotty, so we have to inline all of these styles #} {# we're using important below to override inline styles and my understanding is for email clients where media queries do not work, they'll simply see the desktop css on their phone #} - +
diff --git a/lms/djangoapps/course_goals/templates/course_goals/edx_ace/goalreminder/email/head.html b/lms/djangoapps/course_goals/templates/course_goals/edx_ace/goalreminder/email/head.html index 366ada7ad9..2232c6d6e7 100644 --- a/lms/djangoapps/course_goals/templates/course_goals/edx_ace/goalreminder/email/head.html +++ b/lms/djangoapps/course_goals/templates/course_goals/edx_ace/goalreminder/email/head.html @@ -1 +1,18 @@ {% extends 'ace_common/edx_ace/common/base_head.html' %} +{% block additional_styles %} + +{% endblock %} \ No newline at end of file diff --git a/openedx/core/djangoapps/ace_common/templates/ace_common/edx_ace/common/base_head.html b/openedx/core/djangoapps/ace_common/templates/ace_common/edx_ace/common/base_head.html index c0f5aa0d8f..466d26441c 100644 --- a/openedx/core/djangoapps/ace_common/templates/ace_common/edx_ace/common/base_head.html +++ b/openedx/core/djangoapps/ace_common/templates/ace_common/edx_ace/common/base_head.html @@ -34,3 +34,4 @@ } } +{% block additional_styles %}{% endblock %}
{% include "goal_reminder_banner.html" %} - -