diff --git a/src/app.vue b/src/app.vue index 3bbd08acb..a114426a5 100644 --- a/src/app.vue +++ b/src/app.vue @@ -1,5 +1,11 @@ @@ -11,6 +17,8 @@ import { useUserStore } from './stores/userStore'; import { useLockStore } from './stores/lockStore'; export default class App extends Vue { + currentPath = window.location.href; + @Watch('$route', { immediate: true }) onRouteUpdate(to: RouteLocationNormalized): void { this.$i18n.locale = (to.params.lang as string) ?? 'en'; @@ -75,4 +83,36 @@ body { } } } + +// Making the margins align with the canada.ca template + +.canada-ca-site { + width: 1536px; + max-width: 100%; + justify-self: center; +} + +@media only screen and (max-width: 1535px) { + .canada-ca-site { + width: 1280px; + } +} + +@media only screen and (max-width: 1279px) { + .canada-ca-site { + width: 1024px; + } +} + +@media only screen and (max-width: 1024px) { + .canada-ca-site { + width: 768px; + } +} + +@media only screen and (max-width: 767px) { + .canada-ca-site { + width: 640px; + } +} diff --git a/src/components/editor.vue b/src/components/editor.vue index e3bb6cfe9..1293bfa6d 100644 --- a/src/components/editor.vue +++ b/src/components/editor.vue @@ -4,416 +4,422 @@
-
-
-
- - - - - - - - -
+ + -
- -
-
+ + +
- +
- - - - -
+

{{ $t('editor.unsavedChanges') }}

+
+ + - - - - - {{ currentRoute.includes('#/en') ? 'Français' : 'English' }} - - -
- - + + {{ $t('editor.resetChanges') }} + -
-
-
- -
- + + + + UUID: {{ uuid }} + + {{ currentRoute.includes('#/en') ? 'Français' : 'English' }} + +
- -
- - - + +
+
+
+ +
+ {{ metadata.title }} - - - - - -

{{ $t('editor.preview') }}

- - - - - - - - -
-
- -
+ +
+ + + +
+ + + + + + + + +
+
-