blob: 0de5fe763717a49f973531e4a4d91d622df2c9d7 [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>
@import '@/assets/styles/bmc/helpers/_index.scss';
@import '@/assets/styles/bootstrap/_helpers.scss';
@import 'bootstrap/dist/css/bootstrap.css';
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>