-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
feat(canvas-lms): rewrite #1084
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
I was able to use the following CSS to theme all of those little and sometimes big spinners Canvas uses: [class*="spinner__circleTrack"] {
stroke: @surface1 !important;
}
[class*="spinner__circleSpin"] {
stroke: @accent-color !important;
} |
I'm going to add a "waiting-on-author" label - no pressure, just signals to maintainers at a glance that a review is not required yet. Please leave a comment once you believe you have implemented the suggested changes and fixed the unthemed areas :) |
For the assignment-page/upload styles, i don't think canvas.instructure.com nor my school's instance has Enhanced Assignments enabled so I can't get those pages to show up on my end - if I could get some html snippets/css styles for those that'd be greatly appreciated. For sidebar, I left that unstyled because I thought it would help with people who enroll at multiple colleges. Should I just style it according to accent-color? |
I would say make it mantle? |
Pushed some fixes. Not complete yet, and not in the right place lol. Trying to juggle some files with new documentation I plan to introduce to go along with some of the stuff in that commit. If you want you can organize the new enhanced assignments section stuff I added into the right place and I'll keep working on it wherever you move it to when I get back to it. |
This comment was marked as outdated.
This comment was marked as outdated.
Oops didn't mean to request a review sorry
Hard to avoid, I think relying on at least some auto-generated class names and documenting where they may appear is the easier path for maintenance. canvas has way too many places that use auto-generated css. The main one targeted, |
It'll actually cause you more trouble since every time Canvas edits that component or whatever, sometimes even every time they deploy, the CSS autogen classnames will update and won't select correctly anymore. We get this often with the Gmail userstyle and it is a real PITA. Only do it if you must I guess. |
I'm going to do a squash merge of all your commits on this branch and then rebase it with main now. Is that okay? |
If you could please setup/install https://git-lfs.com for your local userstyles fork, you should get a "change" to the preview.webp file you added in this PR, and then can you commit & push that change up to this branch? |
yep, go ahead!
Yeah that makes sense. Later I can take some time to change to using mixins and more stable selectors to style each button. |
Co-authored-by: pynappo <[email protected]>
Can you invite me as a collaborator to your userstyles fork? Having more annoying issues with Git refusing my pushes because I'm "uploading LFS objects" (I'm not). |
(None of this is your fault, just Git and Git LFS and GitHub not cooperating.) |
6d4f509
to
8fd9d3e
Compare
All the changes should be there, except the preview image (it needs to be retaken anyways). There are no more conflicts, but the linter is complaining about a few things - |
When taking the preview can you try to make Canvas take up the whole screen? Looks like only the first half of the preview image actually has Canvas on it. Also if you haven't already see https://github.com/catppuccin/userstyles/blob/main/docs/tips-and-tricks/convert-images-to-webp.md for our recommendation on converting images to WebP (seeing some color quality loss in the current preview). |
i think the preview should be good now, lmk if you want me to remove the slightly low res png one of my classes has and i'll just retake it. also, does catwalk handle the conversion from png to webp losslessly as well? or is converting the png screenshots to webp via command still preferred? |
I personally convert before Catwalk-ing, I haven't exactly tested it though. It's also easier because I have a shell script |
I should be able to fix this later today, i'll lyk |
c970a67
to
ed781e0
Compare
(reopening because I didn't name my branch properly, apologies)
🔧 What does this fix? 🔧
Before/After on Catppuccin Mocha with Green accent color
(white borders on the screenshot are my browser not the userstyles)
Dashboard
Before

After

Example Course Homepage
Before

After

Example Quiz
Before

After

Example Course Modules
Before

After

I've themed the main pages that I've used as a student during my courses.
A lot of the canvas CSS is autogenerated but with stable suffixes/prefixes/children, hence the high use of attribute selectors and such. edit: apologies for the large line count increase, styling the site properly is a pain.
🗒 Checklist 🗒
==UserStyle==
header of thecatppuccin.user.css
file.Other things to do: