blob: 0de5fe763717a49f973531e4a4d91d622df2c9d7 [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>
Ed Tanous9c729792024-03-23 14:56:34 -070020@import '@/assets/styles/bmc/helpers/_index.scss';
21@import '@/assets/styles/bootstrap/_helpers.scss';
22
23@import 'bootstrap/dist/css/bootstrap.css';
Yoshie Muranaka8d129102019-12-19 09:51:55 -080024main {
Yoshie Muranaka74f86872020-02-10 12:28:37 -080025 width: 100%;
26 height: 100%;
Yoshie Muranaka8d129102019-12-19 09:51:55 -080027 padding-top: $spacer * 1.5;
28 padding-bottom: $spacer * 3;
Yoshie Muranaka74f86872020-02-10 12:28:37 -080029 padding-left: $spacer;
Yoshie Muranaka8d129102019-12-19 09:51:55 -080030 padding-right: $spacer;
Derick Montague80267972021-02-16 09:47:03 -060031
32 &:focus-visible {
33 box-shadow: inset 0 0 0 2px theme-color('primary');
34 outline: none;
35 }
36
Yoshie Muranaka74f86872020-02-10 12:28:37 -080037 @include media-breakpoint-up($responsive-layout-bp) {
38 padding-left: $spacer * 2;
39 }
Yoshie Muranaka8d129102019-12-19 09:51:55 -080040}
41</style>