Cleanup material specific configuration
parent
87645d9f22
commit
d5b5616fbf
|
@ -5,10 +5,6 @@ html {
|
||||||
line-height: normal;
|
line-height: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.material {
|
|
||||||
font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
|
|
|
@ -306,13 +306,6 @@ export default {
|
||||||
const preset = presets[value];
|
const preset = presets[value];
|
||||||
const surfacePalette = this.surfaces.find((s) => s.name === this.selectedSurfaceColor)?.palette;
|
const surfacePalette = this.surfaces.find((s) => s.name === this.selectedSurfaceColor)?.palette;
|
||||||
|
|
||||||
if (value === 'Material') {
|
|
||||||
document.body.classList.add('material');
|
|
||||||
this.$primevue.config.ripple = true;
|
|
||||||
} else {
|
|
||||||
document.body.classList.remove('material');
|
|
||||||
}
|
|
||||||
|
|
||||||
$t().preset(preset).preset(this.getPresetExt()).surfacePalette(surfacePalette).use({ useDefaultOptions: true });
|
$t().preset(preset).preset(this.getPresetExt()).surfacePalette(surfacePalette).use({ useDefaultOptions: true });
|
||||||
},
|
},
|
||||||
onRTLChange(value) {
|
onRTLChange(value) {
|
||||||
|
|
|
@ -103,13 +103,6 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
const newPreset = presets[this.basePreset];
|
const newPreset = presets[this.basePreset];
|
||||||
|
|
||||||
if (this.basePreset === 'Material') {
|
|
||||||
document.body.classList.add('material');
|
|
||||||
this.$primevue.config.ripple = true;
|
|
||||||
} else {
|
|
||||||
document.body.classList.remove('material');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.$appState.designer.verified) {
|
if (this.$appState.designer.verified) {
|
||||||
const { data, error } = await $fetch(this.designerApiUrl + '/theme/create', {
|
const { data, error } = await $fetch(this.designerApiUrl + '/theme/create', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
|
@ -195,8 +195,6 @@ export default {
|
||||||
this.currentTheme = null;
|
this.currentTheme = null;
|
||||||
|
|
||||||
usePreset(Aura);
|
usePreset(Aura);
|
||||||
document.body.classList.remove('material');
|
|
||||||
this.$primevue.config.ripple = false;
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
openNewTheme() {
|
openNewTheme() {
|
||||||
|
|
|
@ -73,8 +73,7 @@ export default defineNuxtConfig({
|
||||||
],
|
],
|
||||||
link: [
|
link: [
|
||||||
{ rel: 'icon', href: baseUrl + 'favicon.ico' },
|
{ rel: 'icon', href: baseUrl + 'favicon.ico' },
|
||||||
{ rel: 'stylesheet', href: 'https://rsms.me/inter/inter.css' },
|
{ rel: 'stylesheet', href: 'https://rsms.me/inter/inter.css' }
|
||||||
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Roboto:400|Roboto:500|Roboto:600|Roboto:700', fetchpriority: 'low' }
|
|
||||||
],
|
],
|
||||||
script: [
|
script: [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue