Skip to content

moodle-an-hochschulen/moodle-theme_boost_union_snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Community Snippet for Moodle Boost Union Theme

The Community Snippets in this repository are available to be turned on and of in the theme_boost_union plugin SCSS Snippet setting page. The theme also provide a default set of Snippets snippets/builtin.

Snippet structure

File attributes

To make the snippet file work, there are required attributes that are needed to add at the top of the SCSS-file to work:

  • Snippet Title: Provide your own snippet title.
  • Scope:: Tag your scope. (optional, see below)
  • Goal: Tag your goal. (optional, see below)
  • Description: Describe in a few sentence what the snippet does. (recommended)
  • Creator: Set the creator of the snippet to be shown in the CSS snippets table. (recommended)
  • Usage note: Add a usage note to be shown in the CSS snippets table. (optional)

List of Scopes:

The theme provides the following standard Scopes:

  • global: When something shown on the entire site.
  • course: When something is only shown in a course context.
  • dashboard: When something is shown only on the dashboard of a user.

List of Goals:

The theme provides the following standard Goals:

  • eyecandy: Styling to give Moodle some (temp) change (ie. a rainbow for LHBTQ+ week).
  • bugfix: Fixes a temporary Moodle bug until Moodle fixes it themselfs.
  • accessibility: Styling to make Moodle more accessible.
  • easeofuse: To make Moodle easier to use.
  • devsonly: Styling that can be seen by dev's only.

Community Snippets

Snippets provided by the community can be found in the snippets folder.

Creating your own snippet

You can create a snippet for your own with the provided boilerplate.scss file.