Skip to content

Commit

Permalink
Merge pull request #148 from NIAEFEUP/main
Browse files Browse the repository at this point in the history
  • Loading branch information
ttoino authored Oct 3, 2023
2 parents 18b2324 + e764fc0 commit c404e1d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions content-scripts/src/modules/icons/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export const FA_ICON_MAP = Object.freeze({
export const BANNER_ICON_MAP = Object.freeze({
"alerta": "alert",
"info": "information",
"informa": "information",
});

export const BG_IMAGE_ICON_MAP = Object.freeze({
Expand Down
3 changes: 1 addition & 2 deletions content-scripts/src/modules/icons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,12 @@ const replaceBanners = () => {
document.querySelectorAll(`.${k}`).forEach((i) => {
const span = document.createElement("span");
span.innerHTML = i.innerHTML;
i.innerText = "";

const icon = document.createElement("span");
icon.classList.add("se-icon", `ri-${v}-fill`);
icon.style.fontSize = "1.5em";

i.append(icon, span);
i.replaceChildren(icon, span);
});
});
};
Expand Down
8 changes: 6 additions & 2 deletions css/simpler.css
Original file line number Diff line number Diff line change
Expand Up @@ -943,14 +943,18 @@ div.info, div.informa{
background-color: #e6fafd !important;
}

div.alerta > span[class='se-icon ri-alert-fill'] {
div.alerta > span.se-icon {
color: #ef4d61;
}

div.info > span[class='se-icon ri-information-fill'] {
div:is(.info, .informa) > span.se-icon {
color: #02cfe9;
}

div.informa > span > span.se-icon {
display: none !important;
}

/* ----------------- SCHEDULE ----------------- */

.horario {
Expand Down
2 changes: 1 addition & 1 deletion manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ let manifest = {
name: "NitSig: Sigarra, but Neater",
short_name: "NitSig",
description: "A Neater Sigarra by improving its UI/UX experience and adding new features",
version: "1.0.2",
version: "1.0.3",
manifest_version: 3,
icons: {
16: "images/logo/logo-16.png",
Expand Down

0 comments on commit c404e1d

Please sign in to comment.