mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-10-12 15:04:04 +00:00
compat component add/remove css class via lifecycle hooks to apply compat specific rules
This commit is contained in:
@@ -7,6 +7,11 @@ html {
|
|||||||
font-size: 0.875em;
|
font-size: 0.875em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.compat,
|
||||||
|
body.compat main#cis-main {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
.fhc-dark-bg{
|
.fhc-dark-bg{
|
||||||
background-color: var(--fhc-dark);
|
background-color: var(--fhc-dark);
|
||||||
color:var(--fhc-light) !important;
|
color:var(--fhc-light) !important;
|
||||||
|
|||||||
@@ -16,9 +16,15 @@ export default {
|
|||||||
return this.mode + '#' + this.path + '#' + this.query_string;
|
return this.mode + '#' + this.path + '#' + this.query_string;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
beforeMount: function() {
|
||||||
|
document.body.classList.add('compat');
|
||||||
|
},
|
||||||
mounted: function() {
|
mounted: function() {
|
||||||
this.srcUrl = this.buildSrcUrl();
|
this.srcUrl = this.buildSrcUrl();
|
||||||
},
|
},
|
||||||
|
beforeUnmount: function() {
|
||||||
|
document.body.classList.remove('compat');
|
||||||
|
},
|
||||||
watch: {
|
watch: {
|
||||||
propsWatchHelper: function() {
|
propsWatchHelper: function() {
|
||||||
if(this.lastLoadediFrameURL === '') {
|
if(this.lastLoadediFrameURL === '') {
|
||||||
|
|||||||
Reference in New Issue
Block a user