Skip to content
Snippets Groups Projects
Commit 8284ec55 authored by Martin Leblanc's avatar Martin Leblanc Committed by Kevin Paxman
Browse files

ISTWCMS-6110: Adds the faculty colours array to the mark element

parent 35657e0d
No related branches found
No related tags found
1 merge request!80ISTWCMS-6110: add mark styling
...@@ -114,7 +114,6 @@ ...@@ -114,7 +114,6 @@
} }
:where(mark) { :where(mark) {
background: var(--uw-gold-2);
color: var(--uw-black); color: var(--uw-black);
padding: var(--size-xs) var(--size-05); padding: var(--size-xs) var(--size-05);
/* Ensure the padding shows when there are line breaks. */ /* Ensure the padding shows when there are line breaks. */
...@@ -122,6 +121,28 @@ ...@@ -122,6 +121,28 @@
box-decoration-break: clone; box-decoration-break: clone;
} }
@each $faculty, $colour in $faculties_colours {
.#{$faculty} {
@if $faculty == org-default or $faculty == org-art or $faculty == org-sci {
:where(mark) {
background: var(--#{$colour}-2);
}
} @else if $faculty == org-stj or $faculty == org-ren {
:where(mark) {
background: var(--#{$colour}-light);
}
} @else if $faculty == org-stp {
:where(mark) {
// For accessible AAA, fraction light than -light.
background: #65b4dc;
}
} @else {
:where(mark) {
background: var(--#{$colour}-1);
}
}
}
}
:where(samp) { :where(samp) {
font-family: var(--font-mono); font-family: var(--font-mono);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment