diff --git a/css/devstyles.css b/css/devstyles.css index 20250cd..c8a1b29 100644 --- a/css/devstyles.css +++ b/css/devstyles.css @@ -1,8 +1,16 @@ /* stylelint-disable length-zero-no-unit, color-hex-case, color-hex-length, no-eol-whitespace, unit-blacklist, block-no-empty */ html { /* not :root, so we can override these colors in the :root field if needed */ --less-light: color-mix(in srgb, var(--light) 80%, #ccc); - --highlight: var(--info); --highlight-mix: 10%; + --highlight: var(--info); + --past: var(--purple); + --present: var(--blue); + --future: var(--gray); + --coursecat-list: var(--blue); + --course-list: var(--green); + --excellent: var(--blue); + --pending: var(--gray); + --incomplete: var(--gray); } @@ -200,48 +208,17 @@ li.t-item-course-gradeinfo img { } i.t-coursecat-list-item { - color: var(--blue); + color: var(--coursecat-list); } i.t-course-list-item { - color: var(--green); + color: var(--course-list); } ul.t-competency-list li { list-style: none; } -.t-competency-heading .draggable-competency { - display: inline-block; -} - -.t-competency-heading .disabled-competency { - text-decoration: line-through; -} - -.t-competency-heading .competency-info { - color: #aaa; -} - -.t-competency-heading i.t-goal { - color: #aaa; -} - -.t-competency-heading i.t-module { - color: var(--green); -} - -.t-competency-heading i.t-domain { - color: var(--purple); -} - -.t-framework-heading i { - color: var(--blue); -} - -.t-framework-heading { - font-weight: bold; -} .collapsed > .when-open, .not-collapsed > .when-closed { @@ -808,7 +785,7 @@ a.t-item-course-config { .r-item-start.completion-incomplete i, .r-completion-incomplete { - color: var(--gray); + color: var(--incomplete); } .r-completion-progress { color: var(--warning); @@ -820,10 +797,10 @@ a.t-item-course-config { color: var(--info); } .r-completion-excellent, .r-completion-complete { - color: var(--blue); + color: var(--excellent); } .r-completion-pending { - color: var(--gray); + color: var(--pending); } .r-completion-failed, .r-completion-complete-fail { color: var(--danger); @@ -868,7 +845,7 @@ tr.r-completion-category-header { .r-item-finish.completion-incomplete, .r-item-junction.completion-incomplete { - color: var(--gray); + color: var(--incomplete); } .r-item-finish.completion-progress, .r-item-junction.completion-progress { @@ -884,7 +861,7 @@ tr.r-completion-category-header { } .r-item-finish.completion-excellent, .r-item-junction.completion-excellent { - color: var(--blue); + color: var(--excellent); } .r-item-finish.completion-failed, @@ -912,15 +889,15 @@ table.r-item-course-grade-details td { .t-timing-past, .r-timing-past { - color: var(--purple); + color: var(--past); } .t-timing-present, .r-timing-present { - color: var(--blue); + color: var(--present); } .t-timing-future, .r-timing-future { - color: var(--gray); + color: var(--future); } .t-timing-indicator, @@ -941,17 +918,17 @@ table.r-item-course-grade-details td { .t-timing-indicator.timing-past, .r-timing-indicator.timing-past { - background-color: var(--purple); + background-color: var(--past); } .t-timing-indicator.timing-present, .r-timing-indicator.timing-present { - background-color: var(--blue); + background-color: var(--present); } .t-timing-indicator.timing-future, .r-timing-indicator.timing-future { - background-color: var(--gray); + background-color: var(--future); } .r-course-am-teacher { @@ -962,13 +939,13 @@ table.r-item-course-grade-details td { color: rgb(139, 107, 0); } .r-graded-unsubmitted { - color: var(--gray); + color: var(--incomplete); } .r-graded-ungraded { color: var(--danger); } .r-graded-allgraded { - color: var(--blue); + color: var(--excellent); } .r-graded-graded { color: var(--success); @@ -1052,13 +1029,13 @@ table.r-item-course-grade-details td { } .card.s-studyplan-card.timing-past .card-header { - background-color: var(--purple); + background-color: var(--past); } .card.s-studyplan-card.timing-present .card-header { - background-color: var(--blue); + background-color: var(--present); } .card.s-studyplan-card.timing-future .card-header { - background-color: var(--gray); + background-color: var(--future); } .s-studyplan-card-title-buttons { diff --git a/doc/configuration.htm b/doc/configuration.htm index 90902db..6f7d999 100644 --- a/doc/configuration.htm +++ b/doc/configuration.htm @@ -91,18 +91,32 @@ }

Tweaking other colors

-

Other variables that are used are color variables provided in bootstrap. To tweak them, use the Advanced settings -> Raw SCSS configuration - option in your theme's configuration.

+

There are some other custom css variables which you can tweak to change the styling. An overview:

+ + + + + + + + + + + +
ColorUsageDefault value
--highlightHighlighting of active periodBootstrap css var(--info)
--pastTag color for past courses or studyplans/pagesvar(--purple)
--presentTag color for active courses or studyplans/pagesvar(--blue)
--futureTag color for future/upcoming courses or studyplans/pagesvar(--gray)
--coursecat-listIcon color of course categories in the studyplan editor toolboxvar(--blue)
--course-listIcon color of courses in the studyplan editor toolboxvar(--green)
--excellentIndicator color for excellent resultsvar(--blue)
--pendingIndicator color for results pending grading.var(--gray)
--incompleteIndication color for incomplete resultsvar(--gray)

Fore example, in the Boost theme the option is found in Appearance -> (Themes) -> Boost -> Advanced settings -> Raw SCSS -

There, use code like the following to change the color variables. (Note that those colors will be changed throughout the site.)

+

There, use code like the following to change these color variables. (The value showin in the code is the default value used in the plugin)

 :root {
-    --blue: #007bff;
-    --indigo: #6610f2;
-    --purple: #6f42c1;
-    --red: #dc3545;
-    --green: #28a745;
-    --gray: #6c757d;
+    --highlight: var(--info);
+    --past: var(--purple);
+    --present: var(--blue);
+    --future: var(--gray);
+    --coursecat-list: var(--blue);
+    --course-list: var(--green);
+    --excellent: var(--blue);
+    --pending: var(--gray);
+    --incomplete: var(--gray);
     }
diff --git a/doc/view-studyplan.htm b/doc/view-studyplan.htm index 63e1d32..4aa165f 100644 --- a/doc/view-studyplan.htm +++ b/doc/view-studyplan.htm @@ -25,7 +25,7 @@ Completed (generic) - Bootstrap color variable --blue + Bootstrap color variable --info td class="pl-3">(Used only in the Moodle course completion studyplan aggregation methods) @@ -42,7 +42,7 @@ Excellent - Bootstrap color variable --blue + Color variable --excellent (Used only in the Manual studyplan aggregation methods) @@ -58,12 +58,12 @@ Not started - Bootstrap color variable --gray + Color variable --incomplete

As you can see, the used colors depend on your theme. The configured colors for success, warning, danger and info are all - used. If you wish to further configure the colors, you can choose to redefine the other variables (e.g. --blue and --gray) your theme's + used. If you wish to further configure the colors, you can choose to redefine the other variables (e.g. --excellent and --incomplete) in your theme's SCSS additions.

The colored tabs in front of each course show if the course is currently given (blue), in the past (purple) or in the future (grey)