mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-25 14:09:03 -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() {
|
mounted() {
|
||||||
if (!process.client) { return; }
|
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'));
|
el.innerHTML = rgbToHex(getComputedStyle(el.parentElement).getPropertyValue('background-color'));
|
||||||
});
|
});*/
|
||||||
this.$el.querySelectorAll('.font').forEach(el => {
|
this.$el.querySelectorAll('.font').forEach(el => {
|
||||||
el.innerHTML = getComputedStyle(el.parentElement).getPropertyValue('font-family').split(',')[0].replaceAll('"', '');
|
el.innerHTML = getComputedStyle(el.parentElement).getPropertyValue('font-family').split(',')[0].replaceAll('"', '');
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user