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

Commit

Permalink
fix: make module images clickable again
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed Jan 5, 2024
1 parent ab14365 commit 3af5894
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 21 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...

### 20240105

- Made module images clickable again

### 20240104

- Styled tables in course pages
Expand Down
21 changes: 15 additions & 6 deletions main.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* ==UserStyle==
@name UoM Blackboard theme
@version 20240104.00.00
@version 20240105.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 @@ -696,20 +696,29 @@
position: relative;
z-index: 1;
}
.listElement li[data-module-code]::before,
.courseListing li[data-module-code]::before {
.listElement li[data-module-code] > a::before, .listElement li[data-module-code] > a::after,
.courseListing li[data-module-code] > a::before,
.courseListing li[data-module-code] > a::after {
content: "";
position: absolute;
top: 0;
border-radius: inherit;
z-index: -1;
}
.listElement li[data-module-code] > a::before,
.courseListing li[data-module-code] > a::before {
top: -5rem;
left: 0;
right: 0;
height: 6rem;
background-color: rgba(129, 66, 166, 0.1);
background-image: var(--bg-url);
background-size: cover;
background-position: center;
border-top-left-radius: 0.5rem;
border-top-right-radius: 0.5rem;
}
.listElement li[data-module-code] > a::after,
.courseListing li[data-module-code] > a::after {
inset: 0;
background: inherit;
}
.listElement li[data-module-code^=ARDSE001],
.courseListing li[data-module-code^=ARDSE001] {
Expand Down
36 changes: 22 additions & 14 deletions styles/_online.manchester.ac.uk_webapps_portal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,20 +108,28 @@ div.container {
border-radius: 0.5rem;
position: relative;
z-index: 1;
}
&::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 6rem;
background-color: $shadow; // fallback for bgs with transparency
background-image: var(--bg-url);
background-size: cover;
background-position: center;
border-top-left-radius: 0.5rem;
border-top-right-radius: 0.5rem;

&::before,
&::after {
content: '';
position: absolute;
border-radius: inherit;
z-index: -1;
}
&::before {
top: -5rem;
left: 0;
right: 0;
height: 6rem;
background-color: $shadow; // fallback for bgs with transparency
background-image: var(--bg-url);
background-size: cover;
background-position: center;
}
&::after {
inset: 0;
background: inherit;
}
}
}

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 20240104.00.00
@version 20240105.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 3af5894

Please sign in to comment.