element/examples/app.vue

51 lines
864 B
Vue
Raw Normal View History

2016-07-27 06:15:02 +00:00
<style lang="css">
@import '../node_modules/highlight.js/styles/color-brewer.css';
@import 'assets/styles/common.css';
2016-08-18 07:53:54 +00:00
@import 'assets/styles/fonts/style.css';
2016-07-27 06:15:02 +00:00
html, body {
margin: 0;
padding: 0;
2016-08-23 11:15:15 +00:00
height: 100%;
2016-07-27 06:15:02 +00:00
}
2016-08-23 11:15:15 +00:00
#app {
height: 100%;
2016-08-23 08:57:58 +00:00
}
2016-08-23 11:15:15 +00:00
body {
2016-07-27 06:15:02 +00:00
font-family: 'Helvetica Neue',Helvetica,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',SimSun,sans-serif;
2016-08-23 11:15:15 +00:00
overflow: auto;
font-weight: 300;
2016-07-27 06:15:02 +00:00
}
2016-08-23 11:15:15 +00:00
.main-cnt {
margin-top: -80px;
padding: 80px 0 120px;
2016-07-27 06:15:02 +00:00
box-sizing: border-box;
2016-08-23 11:15:15 +00:00
min-height: 100%;
2016-07-27 06:15:02 +00:00
}
2016-08-23 11:15:15 +00:00
.page-cnt {
2016-07-27 06:15:02 +00:00
}
.demo {
margin: 20px 0;
}
</style>
<template>
2016-07-27 09:05:28 +00:00
<div id="app">
2016-08-23 06:03:45 +00:00
<main-header></main-header>
2016-08-23 11:15:15 +00:00
<div class="main-cnt">
<router-view></router-view>
</div>
<main-footer></main-footer>
2016-07-27 09:05:28 +00:00
</div>
2016-07-27 06:15:02 +00:00
</template>
<script>
export default {
2016-08-23 11:15:15 +00:00
name: 'app'
2016-07-27 06:15:02 +00:00
};
</script>