This repository has been archived by the owner on Nov 1, 2020. It is now read-only.
forked from bencodezen/vue-enterprise-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.vue
90 lines (74 loc) · 1.53 KB
/
app.vue
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<script>
import appConfig from '@src/app.config'
export default {
page: {
// All subcomponent titles will be injected into this template.
titleTemplate(title) {
title = typeof title === 'function' ? title(this.$store) : title
return title ? `${title} | ${appConfig.title}` : appConfig.title
},
},
}
</script>
<template>
<div id="app">
<!--
Even when routes use the same component, treat them
as distinct and create the component again.
-->
<RouterView :key="$route.fullPath" />
</div>
</template>
<!-- This should generally be the only global CSS in the app. -->
<style lang="scss">
// Allow element/type selectors, because this is global CSS.
// stylelint-disable selector-max-type, selector-class-pattern
// Normalize default styles across browsers,
// https://necolas.github.io/normalize.css/
@import '~normalize.css/normalize.css';
// Style loading bar between pages.
// https://github.com/rstacruz/nprogress
@import '~nprogress/nprogress.css';
// Design variables and utilities from src/design.
@import '@design';
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
background: $color-body-bg;
}
#app {
@extend %typography-small;
}
// ===
// Base element styles
// ===
a,
a:visited {
color: $color-link-text;
}
h1 {
@extend %typography-xxlarge;
}
h2 {
@extend %typography-xlarge;
}
h3 {
@extend %typography-large;
}
h4 {
@extend %typography-medium;
}
h5,
h6 {
@extend %typography-small;
}
// ===
// Vendor
// ===
#nprogress .bar {
background: $color-link-text;
}
</style>