mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-25 05:54:25 -04:00
fix(design): Disable getting background colour dynamically
This commit is contained in:
parent
c8ad060bc8
commit
b62ecfe340
@ -165,9 +165,9 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
if (!process.client) { return; }
|
||||
this.$el.querySelectorAll('.colour').forEach(el => {
|
||||
/*this.$el.querySelectorAll('.colour').forEach(el => {
|
||||
el.innerHTML = rgbToHex(getComputedStyle(el.parentElement).getPropertyValue('background-color'));
|
||||
});
|
||||
});*/
|
||||
this.$el.querySelectorAll('.font').forEach(el => {
|
||||
el.innerHTML = getComputedStyle(el.parentElement).getPropertyValue('font-family').split(',')[0].replaceAll('"', '');
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user