1<template>
2  <main id="main-content" class="page-container">
3    <slot />
4  </main>
5</template>
6
7<script>
8import JumpLinkMixin from '@/components/Mixins/JumpLinkMixin';
9export default {
10  name: 'PageContainer',
11  mixins: [JumpLinkMixin],
12  created() {
13    this.$root.$on('skip-navigation', () => {
14      this.setFocus(this.$el);
15    });
16  },
17};
18</script>
19<style lang="scss" scoped>
20main {
21  width: 100%;
22  height: 100%;
23  padding-top: $spacer * 1.5;
24  padding-bottom: $spacer * 3;
25  padding-left: $spacer;
26  padding-right: $spacer;
27
28  &:focus-visible {
29    box-shadow: inset 0 0 0 2px theme-color('primary');
30    outline: none;
31  }
32
33  @include media-breakpoint-up($responsive-layout-bp) {
34    padding-left: $spacer * 2;
35  }
36}
37</style>
38