From 3cd985da209d8e49619ad073482f256b2575e544 Mon Sep 17 00:00:00 2001 From: Andy Armstrong Date: Mon, 26 Jun 2017 17:06:14 -0400 Subject: [PATCH] Implement a skeleton page with Bootstrap LEARNER-1174 --- .../sass/bootstrap/lms-main-bootstrap.scss | 7 ++ lms/templates/main.html | 15 +++- .../reference/bootstrap/course-skeleton.html | 76 +++++++++++++++++++ lms/templates/ux/reference/index.html | 5 ++ openedx/core/djangoapps/debug/views.py | 5 +- package.json | 1 + 6 files changed, 105 insertions(+), 4 deletions(-) create mode 100644 lms/static/sass/bootstrap/lms-main-bootstrap.scss create mode 100644 lms/templates/ux/reference/bootstrap/course-skeleton.html diff --git a/lms/static/sass/bootstrap/lms-main-bootstrap.scss b/lms/static/sass/bootstrap/lms-main-bootstrap.scss new file mode 100644 index 0000000000..b4fefe9ea9 --- /dev/null +++ b/lms/static/sass/bootstrap/lms-main-bootstrap.scss @@ -0,0 +1,7 @@ +// ----------------------------- +// LMS main styles for Bootstrap +// ----------------------------- + +// Bootstrap theme +@import 'edx-bootstrap/sass/open-edx/theme'; +@import 'bootstrap/scss/bootstrap'; diff --git a/lms/templates/main.html b/lms/templates/main.html index cb1ed90d6a..b6526ae951 100644 --- a/lms/templates/main.html +++ b/lms/templates/main.html @@ -61,7 +61,11 @@ from pipeline_mako import render_require_js_path_overrides <%static:css group='style-vendor'/> - <%static:css group='${self.attr.main_css}'/> + % if uses_bootstrap: + + % else: + <%static:css group='${self.attr.main_css}'/> + % endif % if not uses_pattern_library: % if disable_courseware_js: @@ -78,6 +82,11 @@ from pipeline_mako import render_require_js_path_overrides <%static:js group='base_application'/> % endif + % if uses_bootstrap: + + + % endif +