Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 1 | <template> |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 2 | <main id="main-content" class="page-container"> |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 3 | <slot /> |
| 4 | </main> |
| 5 | </template> |
| 6 | |
| 7 | <script> |
Dixsie Wolmers | dc6b3cd | 2021-05-20 19:01:42 -0500 | [diff] [blame] | 8 | import JumpLinkMixin from '@/components/Mixins/JumpLinkMixin'; |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 9 | export default { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 10 | name: 'PageContainer', |
Dixsie Wolmers | dc6b3cd | 2021-05-20 19:01:42 -0500 | [diff] [blame] | 11 | mixins: [JumpLinkMixin], |
Derick Montague | 8026797 | 2021-02-16 09:47:03 -0600 | [diff] [blame] | 12 | created() { |
| 13 | this.$root.$on('skip-navigation', () => { |
| 14 | this.setFocus(this.$el); |
| 15 | }); |
| 16 | }, |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 17 | }; |
| 18 | </script> |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 19 | <style lang="scss" scoped> |
| 20 | main { |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 21 | width: 100%; |
| 22 | height: 100%; |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 23 | padding-top: $spacer * 1.5; |
| 24 | padding-bottom: $spacer * 3; |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 25 | padding-left: $spacer; |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 26 | padding-right: $spacer; |
Derick Montague | 8026797 | 2021-02-16 09:47:03 -0600 | [diff] [blame] | 27 | |
| 28 | &:focus-visible { |
| 29 | box-shadow: inset 0 0 0 2px theme-color('primary'); |
| 30 | outline: none; |
| 31 | } |
| 32 | |
Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 33 | @include media-breakpoint-up($responsive-layout-bp) { |
| 34 | padding-left: $spacer * 2; |
| 35 | } |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 36 | } |
| 37 | </style> |