Skip to content

Convert discussion block sass variables into css variables #456

Description

@salman2013

Description:
In this story we have to convert builtin discussion block Sass variables into CSS variables.

The goal of this task is to entirely convert the Sass into vanilla CSS which can be loaded with the standard ResourceLoader class from xblock.utils. The longer-term benefit is that this will remove any Sass build concerns from the xblock extraction effort.

Tasks

  • Record a list of every Sass variable used by discussion block Sass.
  • The builtin block Sass files are all located under lms/static/sass/discussion/
  • A Sass variable is indicated with a dollar sign, for example $bg-color or $success.
  • To make the variables, add them all in :root { ... }
  • (CSS var reference on MDN), file: common/static/sass/_builtin-block-variables.scss

Parent ticket: openedx/openedx-platform#35300
PR: https://github.com/openedx/edx-platform/pull/37742/files

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions