diff --git a/lms/static/sass/course/_dates.scss b/lms/static/sass/course/_dates.scss index 169d50072b..eb53e22f89 100644 --- a/lms/static/sass/course/_dates.scss +++ b/lms/static/sass/course/_dates.scss @@ -5,10 +5,39 @@ .date-title { color: #414141; - font-weight: 500; + font-size: 24px; border-bottom: 0; } + .upgrade-banner { + border-radius: 4px; + border: solid 1px #9cd2e6; + background-color: #eff8fa; + margin-top: 20px; + margin-bottom: 40px; + padding: 24px; + display: flex; + flex-wrap: wrap; + gap: 24px; + max-width: $text-width-readability-max; + + .upgrade-banner-text { + font-size: 16px; + line-height: 24px; + color: #414141; + flex: 1 1 20em; + } + + .upgrade-button { + align-self: start; + flex: none; + + button { + @include white-button-flat-outline; + } + } + } + .timeline-item { border-left: solid 1px #2d323e; color: #2d323e; @@ -55,6 +84,13 @@ } } + .no-access { + // This is too low-contrast for a11y purposes. But since it only applies to pieces of the page that are + // inaccessible to users, and we have a banner explaining the parts that are inaccessible at the top, + // we're OK from an accessibility point of view. + color: #d1d2d4; + } + .timeline-date-content { @include font-size(16); diff --git a/lms/static/sass/course/base/_mixins.scss b/lms/static/sass/course/base/_mixins.scss index ac9156c82b..e8c32700b0 100644 --- a/lms/static/sass/course/base/_mixins.scss +++ b/lms/static/sass/course/base/_mixins.scss @@ -45,6 +45,21 @@ } } +@mixin white-button-flat-outline { + display: block; + border-radius: 2px; + border: solid 1px #0175b4; + background: white; + color: #2d323e; + font-size: 14px; + font-weight: bold; + line-height: 24px; + + &:hover, &:focus, &:active { + box-shadow: 0 2px 1px $shadow; + } +} + @mixin dark-grey-button { display: block; height: 35px; diff --git a/lms/templates/courseware/dates.html b/lms/templates/courseware/dates.html index 2d0394fff5..ef37bb3fdd 100644 --- a/lms/templates/courseware/dates.html +++ b/lms/templates/courseware/dates.html @@ -26,9 +26,29 @@ from openedx.core.djangolib.markup import HTML, Text