Custom CSS and JavaScript Documentation

jpastorek
Community Member

I am looking to utilize CSS and JavaScript to create some custom styling for a new Course Template, but I cannot seem to find any documentation on the use of custom scripts within Canvas. The only thing I can find on the guides is how to upload the files.

Does anyone know of any good documentation or at least a starting point for the actual files themselves? I am looking for information such as:

  • how to reference the HTML objects in the DOM
  • what classes are used already in Canvas (to avoid any redundancy)
  • what kinds of things can you actually style with custom files

I would love to see some example code so I can at least get an idea of what to do. I already know how to write basic full-stack web apps, but it is frustrating that Canvas offers the use of custom code but doesn't provide any docs (at least that I can find...). I am yet to check github.

Right now I am creating Pages with the built-in html editor, but it is quite slow-going as I can't use any custom classes and certain tags get automatically removed, not to mention inline css styling per html element...

Labels (2)
0 Likes