blob: ab4adb63c723be9e6101b9c8f02a8c63cfa8a2e5 [file] [log] [blame]
<template>
<main id="main-content" class="page-container">
<slot />
</main>
</template>
<script>
import JumpLinkMixin from '@/components/Mixins/JumpLinkMixin';
export default {
name: 'PageContainer',
mixins: [JumpLinkMixin],
created() {
this.$root.$on('skip-navigation', () => {
this.setFocus(this.$el);
});
},
};
</script>
<style lang="scss" scoped>
main {
width: 100%;
height: 100%;
padding-top: $spacer * 1.5;
padding-bottom: $spacer * 3;
padding-left: $spacer;
padding-right: $spacer;
&:focus-visible {
box-shadow: inset 0 0 0 2px theme-color('primary');
outline: none;
}
@include media-breakpoint-up($responsive-layout-bp) {
padding-left: $spacer * 2;
}
}
</style>