-
Notifications
You must be signed in to change notification settings - Fork 4.2k
DO NOT MERGE (in #57): SASS diff from stanford themed branch for master #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
181c231
f20c014
1cf5f9a
2a8fc92
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| @import 'bourbon/bourbon'; | ||
|
|
||
| @import 'base/reset'; | ||
| @import 'base/font_face'; | ||
| @import 'base/mixins'; | ||
| @import 'base/variables'; | ||
|
|
||
| ## THEMING | ||
| ## ------- | ||
| ## Set up this file to import an edX theme library if the environment | ||
| ## indicates that a theme should be used. The assumption is that the | ||
| ## theme resides outside of this main edX repository, in a directory | ||
| ## called themes/<theme-name>/, with its base Sass file in | ||
| ## themes/<theme-name>/static/sass/_<theme-name>.scss. That one entry | ||
| ## point can be used to @import in as many other things as needed. | ||
| % if env.get('THEME_NAME') is not None: | ||
| // import theme's Sass overrides | ||
| @import '${env.get('THEME_NAME')}'; | ||
| % endif | ||
|
|
||
| @import 'base/base'; | ||
| @import 'base/extends'; | ||
| @import 'base/animations'; | ||
| @import 'shared/tooltips'; | ||
|
|
||
| // Course base / layout styles | ||
| @import 'course/layout/courseware_header'; | ||
| @import 'course/layout/footer'; | ||
| @import 'course/base/mixins'; | ||
| @import 'course/base/base'; | ||
| @import 'course/base/extends'; | ||
| @import 'xmodule/modules/css/module-styles.scss'; | ||
|
|
||
| // courseware | ||
| @import 'course/courseware/courseware'; | ||
| @import 'course/courseware/sidebar'; | ||
| @import 'course/courseware/amplifier'; | ||
| @import 'course/layout/calculator'; | ||
| @import 'course/layout/timer'; | ||
|
|
||
| // course-specific courseware (all styles in these files should be gated by a | ||
| // course-specific class). This should be replaced with a better way of | ||
| // providing course-specific styling. | ||
| @import "course/courseware/courses/_cs188.scss"; | ||
|
|
||
| // wiki | ||
| @import "course/wiki/basic-html"; | ||
| @import "course/wiki/sidebar"; | ||
| @import "course/wiki/create"; | ||
| @import "course/wiki/wiki"; | ||
| @import "course/wiki/table"; | ||
|
|
||
| // pages | ||
| @import "course/info"; | ||
| @import "course/syllabus"; // TODO arjun replace w/ custom tabs, see courseware/courses.py | ||
| @import "course/textbook"; | ||
| @import "course/profile"; | ||
| @import "course/gradebook"; | ||
| @import "course/tabs"; | ||
| @import "course/staff_grading"; | ||
| @import "course/rubric"; | ||
| @import "course/open_ended_grading"; | ||
|
|
||
| // instructor | ||
| @import "course/instructor/instructor"; | ||
|
|
||
| // discussion | ||
| @import "course/discussion/form-wmd-toolbar"; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| footer { | ||
| border: $courseware-footer-border; | ||
| box-shadow: $courseware-footer-shadow; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. any reason you dropped this? seems like it should stay in.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @frrrances - I removed this because the edX theme doesn't have a border around the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should leave it as-is and include it in a future cleanup since it's unrelated to this theming effort.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sadly it isn't, it was screwing with our footer styling, thus why I removed it...
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, okay. Then this is 👌 😸 |
||
| margin-top: $courseware-footer-margin; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor, but I think you can just go with
if env.get('THEME_NAME'):unless you need to check for None specifically.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll make a note to change it in the templating PR.