Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
feat: restyle asides on course pages
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed Jan 23, 2024
1 parent 5d06808 commit e5f7b5e
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Here I will outline the changes I've made over time...

### 20240123

- Restyled the asides in course pages (in my course, they're labelled "Learning Outcomes" on each week's section)

### 20240122

- Differentiated 1st and 2nd semester courses more. Specifically, 1st semester courses have a desaturated color, and their images are slightly blurred.
Expand Down
29 changes: 28 additions & 1 deletion main.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* ==UserStyle==
@name UoM Blackboard theme
@version 20240122.03.00
@version 20240123.00.00
@namespace userstyles.world/user/adil192
@description Themes the blackboard UoM website to look more modern and use a consistent colour scheme.
@author adil192
Expand Down Expand Up @@ -356,6 +356,33 @@
.liItem .details:empty, .buildList > li .details:empty {
display: none;
}
.liItem .details > .vtbegenerated, .buildList > li .details > .vtbegenerated {
overflow: visible;
}
.liItem .details > .vtbegenerated > div[style*="float: right;"], .buildList > li .details > .vtbegenerated > div[style*="float: right;"] {
background: #ede0f3 !important;
padding: 1rem !important;
margin-bottom: 1rem;
border-top-left-radius: 0.5rem;
border-bottom-left-radius: 0.5rem;
border: none !important;
position: relative;
padding-right: 0 !important;
}
.liItem .details > .vtbegenerated > div[style*="float: right;"]::after, .buildList > li .details > .vtbegenerated > div[style*="float: right;"]::after {
content: "";
position: absolute;
top: 0;
right: -1rem;
width: 1rem;
height: 100%;
background: inherit;
}
.liItem .details > .vtbegenerated > div[style*="float: right;"][style*="width: 30%;"], .buildList > li .details > .vtbegenerated > div[style*="float: right;"][style*="width: 30%;"] {
width: 100% !important;
max-width: 25rem;
box-sizing: border-box;
}
.liItem .vtbegenerated table, .buildList > li .vtbegenerated table {
background: #ecdff2;
color: #1d1b1e;
Expand Down
33 changes: 33 additions & 0 deletions styles/_online.manchester.ac.uk.scss
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,39 @@ img[src="#{$orig-piazza-icon}"] {
&:empty {
display: none;
}

> .vtbegenerated {
overflow: visible;
}
}

.details > .vtbegenerated > div[style*="float: right;"] {
$floating-color: color.mix($surface-1, $primary, 90%);
background: $floating-color !important;
padding: 1rem !important;
margin-bottom: 1rem;
border-top-left-radius: 0.5rem;
border-bottom-left-radius: 0.5rem;
border: none !important;

// make it bleed into the side
position: relative;
padding-right: 0 !important;
&::after {
content: "";
position: absolute;
top: 0;
right: -1rem;
width: 1rem;
height: 100%;
background: inherit;
}

&[style*="width: 30%;"] {
width: 100% !important;
max-width: 25rem;
box-sizing: border-box;
}
}

.vtbegenerated table {
Expand Down
2 changes: 1 addition & 1 deletion styles/_version.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* ==UserStyle==
@name UoM Blackboard theme
@version 20240122.03.00
@version 20240123.00.00
@namespace userstyles.world/user/adil192
@description Themes the blackboard UoM website to look more modern and use a consistent colour scheme.
@author adil192
Expand Down

0 comments on commit e5f7b5e

Please sign in to comment.