Cleanup material specific configuration
parent
87645d9f22
commit
d5b5616fbf
|
@ -5,10 +5,6 @@ html {
|
|||
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 {
|
||||
margin: 0px;
|
||||
min-height: 100%;
|
||||
|
|
|
@ -306,13 +306,6 @@ export default {
|
|||
const preset = presets[value];
|
||||
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 });
|
||||
},
|
||||
onRTLChange(value) {
|
||||
|
|
|
@ -103,13 +103,6 @@ export default {
|
|||
} else {
|
||||
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) {
|
||||
const { data, error } = await $fetch(this.designerApiUrl + '/theme/create', {
|
||||
method: 'POST',
|
||||
|
|
|
@ -195,8 +195,6 @@ export default {
|
|||
this.currentTheme = null;
|
||||
|
||||
usePreset(Aura);
|
||||
document.body.classList.remove('material');
|
||||
this.$primevue.config.ripple = false;
|
||||
}
|
||||
},
|
||||
openNewTheme() {
|
||||
|
|
|
@ -73,8 +73,7 @@ export default defineNuxtConfig({
|
|||
],
|
||||
link: [
|
||||
{ rel: 'icon', href: baseUrl + 'favicon.ico' },
|
||||
{ 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' }
|
||||
{ rel: 'stylesheet', href: 'https://rsms.me/inter/inter.css' }
|
||||
],
|
||||
script: [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue