Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions styles/canvas-lms/catppuccin.user.less
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,54 @@
color: @subtext0;
}

/* used for markdown code */
pre, code {
font-family: var(--ic-brand-font-family-monospace, monospace);

Check failure on line 136 in styles/canvas-lms/catppuccin.user.less

View workflow job for this annotation

GitHub Actions / lint

Property `font-family` is not allowed
background-color: @mantle;
color: @text;
border: 1px solid @surface0;

Check failure on line 139 in styles/canvas-lms/catppuccin.user.less

View workflow job for this annotation

GitHub Actions / lint

Use `border-color` instead of `border`
border-radius: 8px;
}

code {
padding: 0.2em 0.4em;
font-size: 85%;

Check failure on line 145 in styles/canvas-lms/catppuccin.user.less

View workflow job for this annotation

GitHub Actions / lint

Property `font-size` is not allowed
}
Comment on lines +142 to +146
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
code {
padding: 0.2em 0.4em;
font-size: 85%;
}

https://userstyles.catppuccin.com/contributing/#opinionated-changes


pre {
padding: 1rem;
border-left: 3px solid @accent;

Check failure on line 150 in styles/canvas-lms/catppuccin.user.less

View workflow job for this annotation

GitHub Actions / lint

Use `border-left-color` instead of `border-left`
box-shadow: inset 0 1px 3px fade(@crust, 10%);

code {
background-color: transparent;
padding: 0;
border: none;

Check failure on line 156 in styles/canvas-lms/catppuccin.user.less

View workflow job for this annotation

GitHub Actions / lint

Use `border-color` instead of `border`
box-shadow: none;
}
}

/* used for view feedback and add comment buttons */
button[data-testid="view_feedback_button"] {
.neutral-button();
box-shadow: 0 1px 2px fade(@crust, 5%);
border-color: @surface1;

&:hover {
border-color: @accent;
background-color: @surface0;
}

svg[name="IconChat"] {
color: @accent !important;
}

span[class$="baseButton__children"] {
color: @text;
font-weight: 500;

Check failure on line 178 in styles/canvas-lms/catppuccin.user.less

View workflow job for this annotation

GitHub Actions / lint

Property `font-weight` is not allowed
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
}

.user_content {
/* for highlighted non-links in user-created content, revert to regular-ish text color */
[style~="background-color:"]:not([style~="color:"])
Expand Down
Loading