blob: ab4adb63c723be9e6101b9c8f02a8c63cfa8a2e5 [file] [log] [blame]
Yoshie Muranaka8d129102019-12-19 09:51:55 -08001<template>
Yoshie Muranaka74f86872020-02-10 12:28:37 -08002 <main id="main-content" class="page-container">
Yoshie Muranaka8d129102019-12-19 09:51:55 -08003 <slot />
4 </main>
5</template>
6
7<script>
Dixsie Wolmersdc6b3cd2021-05-20 19:01:42 -05008import JumpLinkMixin from '@/components/Mixins/JumpLinkMixin';
Yoshie Muranaka8d129102019-12-19 09:51:55 -08009export default {
Derick Montague602e98a2020-10-21 16:20:00 -050010 name: 'PageContainer',
Dixsie Wolmersdc6b3cd2021-05-20 19:01:42 -050011 mixins: [JumpLinkMixin],
Derick Montague80267972021-02-16 09:47:03 -060012 created() {
13 this.$root.$on('skip-navigation', () => {
14 this.setFocus(this.$el);
15 });
16 },
Yoshie Muranaka8d129102019-12-19 09:51:55 -080017};
18</script>
Yoshie Muranaka8d129102019-12-19 09:51:55 -080019<style lang="scss" scoped>
20main {
Yoshie Muranaka74f86872020-02-10 12:28:37 -080021 width: 100%;
22 height: 100%;
Yoshie Muranaka8d129102019-12-19 09:51:55 -080023 padding-top: $spacer * 1.5;
24 padding-bottom: $spacer * 3;
Yoshie Muranaka74f86872020-02-10 12:28:37 -080025 padding-left: $spacer;
Yoshie Muranaka8d129102019-12-19 09:51:55 -080026 padding-right: $spacer;
Derick Montague80267972021-02-16 09:47:03 -060027
28 &:focus-visible {
29 box-shadow: inset 0 0 0 2px theme-color('primary');
30 outline: none;
31 }
32
Yoshie Muranaka74f86872020-02-10 12:28:37 -080033 @include media-breakpoint-up($responsive-layout-bp) {
34 padding-left: $spacer * 2;
35 }
Yoshie Muranaka8d129102019-12-19 09:51:55 -080036}
37</style>