mirror of
https://github.com/ItsVipra/ProToots
synced 2025-02-16 12:38:23 +00:00
Remove all inline styles
This commit is contained in:
parent
ed4a687a1c
commit
0a5657ad91
2 changed files with 7 additions and 5 deletions
|
@ -204,7 +204,6 @@ async function addProplate(element) {
|
|||
//i think you can figure out what this does on your own
|
||||
proplate.classList.add("proplate-pog");
|
||||
}
|
||||
proplate.style.fontWeight = "500";
|
||||
//add plate to nametag
|
||||
insertAfter(proplate, nametagEl);
|
||||
}
|
||||
|
@ -298,9 +297,7 @@ async function addProplate(element) {
|
|||
const accountName = getAccountName(accountNameEl);
|
||||
|
||||
const nametagEl = getNametagEl(element, ".display-name__html");
|
||||
|
||||
nametagEl.parentElement.style.display = "flex";
|
||||
|
||||
nametagEl.parentElement.classList.add("has-proplate");
|
||||
element.setAttribute("protoots-checked", "true");
|
||||
// Add the checked attribute only _after_ we've passed the basic checks.
|
||||
// This allows us to pass incomplete nodes into this method, because
|
||||
|
@ -326,7 +323,7 @@ async function addProplate(element) {
|
|||
const nametagEl = element.querySelector(".display-name__html");
|
||||
const accountName = getAccountName(element.querySelector(".display-name__account"));
|
||||
|
||||
nametagEl.parentElement.style.display = "flex";
|
||||
nametagEl.parentElement.classList.add("has-proplate");
|
||||
|
||||
element.setAttribute("protoots-checked", "true");
|
||||
generateProPlate(statusId, accountName, nametagEl, "account");
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
display: inline-flex;
|
||||
text-transform: lowercase;
|
||||
animation: proplate-fadein 0.15s linear;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* dark theme */
|
||||
|
@ -90,3 +91,7 @@
|
|||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
bdi.has-proplate {
|
||||
display: flex;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue