-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Exponse xmodule xblocks Sass variable as vanilla CSS variables
- Loading branch information
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* In pursuit of decoupling the built-in XBlocks from edx-platform's Sass build | ||
* and ensuring comprehensive theming support in the extracted XBlocks, | ||
* we need to expose Sass variables as CSS variables. | ||
* | ||
* Ticket/Issue: https://github.com/openedx/edx-platform/issues/35173 | ||
*/ | ||
@import 'bourbon/bourbon'; | ||
@import 'lms/theme/variables'; | ||
@import 'lms/theme/variables-v1'; | ||
@import 'cms/static/sass/partials/cms/theme/_variables'; | ||
@import 'cms/static/sass/partials/cms/theme/_variables-v1'; | ||
@import 'bootstrap/scss/variables'; | ||
@import 'vendor/bi-app/bi-app-ltr'; | ||
|
||
:root { | ||
--primary: $primary; | ||
--transparent: $transparent; | ||
--white: $white; | ||
--black: $black; | ||
--gray: $gray; | ||
--lightGrey: $lightGrey; | ||
--darkGrey: $darkGrey; | ||
--gray-l2: $gray-l2; | ||
--gray-l3: $gray-l3; | ||
--gray-l4: $gray-l4; | ||
--gray-l6: $gray-l6; | ||
--blue: $blue; | ||
--blue-d1: $blue-d1; | ||
--blue-d2: $blue-d2; | ||
--blue-d4: $blue-d4; | ||
--shadow: $shadow; | ||
--shadow-l1: $shadow-l1; | ||
--link-color: $link-color; | ||
--sidebar-color: $sidebar-color; | ||
--body-color: $body-color; | ||
--border-color: $border-color; | ||
--error-color: $error-color; | ||
--very-light-text: $very-light-text; | ||
--lighter-base-font-color: $lighter-base-font-color; | ||
--action-primary-active-bg: $action-primary-active-bg; | ||
--baseline: $baseline; | ||
--font-family-sans-serif: $font-family-sans-serif; | ||
--static-path: $static-path; | ||
--tmg-f2: $tmg-f2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters