This repository has been archived by the owner on Jan 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathApp.vue
76 lines (71 loc) · 1.69 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
<template>
<div id="app">
<component :is="layout">
<router-view />
</component>
</div>
</template>
<script>
import get from 'lodash-es/get'
const DefaultLayout = () => import(/* webpackChunkName: "vsf-layout-default" */ './layouts/Default')
const MinimalLayout = () => import(/* webpackChunkName: "vsf-layout-minimal" */ './layouts/Minimal')
export default {
components: {
DefaultLayout,
MinimalLayout
},
computed: {
layout () {
return `${get(this.$route, 'meta.layout', 'default')}-layout`
}
}
};
</script>
<style lang="scss" src="theme/css/main.scss"></style>
<style lang="scss">
@import "~@storefront-ui/shared/styles/helpers/breakpoints";
body {
--sidebar-aside-z-index: 2;
--sidebar-z-index: 2;
--bottom-navigation-height: 3.75rem;
--footer-height: 345px;
--_header-height: 80px;
--_header-mobile-height: 50px;
--select-dropdown-z-index: 2;
--bar-height: 3.125rem;
--notification-font-size: var(--font-sm);
font-family: var(--font-family-secondary);
margin: 0;
padding: 0;
a {
text-decoration: none;
color: var(--c-link);
cursor: pointer;
&:hover {
color: var(--c-link-hover);
}
}
.sf-select {
&__dropdown {
padding-bottom: env(safe-area-inset-bottom); //safe area padding for dropdown
}
}
.global--max-width {
min-height: calc(100vh - var(--_header-mobile-height) - var(--bottom-navigation-height));
@include for-desktop {
min-height: calc(100vh - var(--_header-height) - var(--footer-height));
max-width: 1272px;
}
}
}
#viewport {
position: relative;
}
@include for-desktop {
.sidebar {
&__microcart {
--sidebar-aside-width: 700px;
}
}
}
</style>