Skip to content

Commit

Permalink
Un-tokenize some styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Oct 7, 2024
1 parent 1815944 commit 4afd684
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 12 deletions.
23 changes: 22 additions & 1 deletion arches_lingo/media/js/views/root.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import createVueApplication from 'arches/arches/app/media/js/utils/create-vue-application';
import { ArchesPreset, DEFAULT_THEME } from '@/arches/themes/default.ts';

import { definePreset } from '@primevue/themes';
import { createRouter, createWebHistory } from 'vue-router';

import LingoApp from '@/arches_lingo/App.vue';
Expand All @@ -10,7 +12,26 @@ const router = createRouter({
routes,
});

createVueApplication(LingoApp).then(vueApp => {
const LingoPreset = definePreset(ArchesPreset, {
components: {
button: {
root: {
label: {
fontWeight: 600,
},
},
},
},
});

const LingoTheme = {
theme: {
...DEFAULT_THEME,
preset: LingoPreset,
},
};

createVueApplication(LingoApp, LingoTheme).then(vueApp => {
vueApp.use(router);
vueApp.mount('#lingo-mounting-point');
});
4 changes: 3 additions & 1 deletion arches_lingo/src/arches_lingo/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ router.beforeEach(async (to, _from, next) => {
</main>
<Toast
:pt="{
summary: { fontSize: 'medium' },
detail: { fontSize: 'small' },
messageIcon: {
style: { marginTop: 'var(--p-toast-messageicon-margintop)' },
},
Expand All @@ -80,7 +82,7 @@ router.beforeEach(async (to, _from, next) => {

<style scoped>
main {
font-family: var(--p-font-family);
font-family: system-ui, sans-serif;
height: 100vh;
width: 100vw;
display: flex;
Expand Down
13 changes: 5 additions & 8 deletions arches_lingo/src/arches_lingo/components/header/PageHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ const items = ref([
</script>

<template>
<Menubar :model="items">
<Menubar
:model="items"
style="border-radius: 0"
>
<template #start>
<RouterLink
:to="{ name: routeNames.root }"
Expand All @@ -50,13 +53,7 @@ const items = ref([
</RouterLink>
</template>
<template #end>
<div
style="
display: flex;
align-items: center;
gap: var(--p-content-gap);
"
>
<div style="display: flex; align-items: center; gap: 1rem">
<DarkModeToggle />
<UserInteraction />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const submit = async () => {
form {
display: flex;
flex-direction: column;
gap: var(--p-content-gap);
gap: 1rem;
width: 30%;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const greeting = computed(() => {
</script>

<template>
<div style="display: flex; align-items: center; gap: var(--p-content-gap)">
<div style="display: flex; align-items: center; gap: 1rem">
<span v-if="user">{{ greeting }}</span>
<Button
:label="$gettext('Sign out')"
Expand Down

0 comments on commit 4afd684

Please sign in to comment.