Skip to content

Commit

Permalink
Upgrade: Adapt the course index icon feature visually to the new icon…
Browse files Browse the repository at this point in the history
… sizes.
  • Loading branch information
abias committed Jul 13, 2024
1 parent 3c7a883 commit 523004e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changes

### Unreleased

* 2024-07-12 - Upgrade: Adapt the course index icon feature visually to the new icon sizes.
* 2024-07-12 - Upgrade: Adopt changes for coloring the activity icons when modifying the activity purpose.
* 2024-07-12 - Upgrade: Adopt new activity purpose "Interactive content" when coloring activity icons, resolves #611.
* 2024-07-07 - Upgrade: Adopt changes for coloring the activity icons, moving from background-colors to CSS filters, resolves #631.
Expand Down
21 changes: 19 additions & 2 deletions scss/boost_union/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,12 @@ body.hascourseindexcmicons {
.courseindex-cmicon-icon .completioninfo {
display: none;
}

/* And move the section title in the course index slightly to the right to align it vertically with the
activity title (which is now slightly more right as well) again. */
.courseindex-chevron {
padding-right: 14px;
}
}
}

Expand All @@ -349,6 +355,12 @@ body.hascourseindexcmicons {
.courseindex-item .dragicon {
display: none;
}

/* And move the section title in the course index slightly to the right to align it vertically with the
activity title (which is now slightly more right as well) again. */
.courseindex-chevron {
padding-right: 14px;
}
}
}

Expand Down Expand Up @@ -388,8 +400,7 @@ body.hascourseindexcmicons {

/* General style of the course index activity type icon. */
.courseindex-cmicon {
margin: 0.2rem;
margin-top: 0;
margin: 0.1rem;
display: inline-flex;
justify-content: center;
align-items: center;
Expand All @@ -398,6 +409,12 @@ body.hascourseindexcmicons {
}
}

/* Gain back the vertical space which was given to the icon by reducing the vertical padding of each courseindex
element by 0.1rem. */
.courseindex-item {
padding: .45rem .5rem;
}

/* Overwrite activity type icon style for dimmed activities. */
.courseindex-item.dimmed .courseindex-cmicon-icon {
filter: invert(0.5);
Expand Down

0 comments on commit 523004e

Please sign in to comment.