blob: c979759be47e89339bee322f065052c6c8350500 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<template>
<main id="main-content" class="page-container">
<slot />
</main>
</template>
<script>
import SetFocusMixin from '@/components/Mixins/SetFocusMixin';
export default {
name: 'PageContainer',
mixins: [SetFocusMixin],
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>
|