element/examples/app.vue

75 lines
1.2 KiB
Vue
Raw Normal View History

2016-07-27 14:15:02 +08:00
<style lang="css">
@import '../node_modules/highlight.js/styles/color-brewer.css';
@import 'assets/styles/common.css';
2016-08-18 15:53:54 +08:00
@import 'assets/styles/fonts/style.css';
2016-07-27 14:15:02 +08:00
html, body {
margin: 0;
padding: 0;
2016-08-23 19:15:15 +08:00
height: 100%;
2016-07-27 14:15:02 +08:00
}
2016-08-23 19:15:15 +08:00
#app {
height: 100%;
2016-08-23 16:57:58 +08:00
}
2016-08-23 19:15:15 +08:00
body {
2016-07-27 14:15:02 +08:00
font-family: 'Helvetica Neue',Helvetica,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',SimSun,sans-serif;
2016-08-23 19:15:15 +08:00
overflow: auto;
font-weight: 300;
2016-07-27 14:15:02 +08:00
}
2016-08-23 19:15:15 +08:00
.main-cnt {
margin-top: -80px;
padding: 80px 0 120px;
2016-07-27 14:15:02 +08:00
box-sizing: border-box;
2016-08-23 19:15:15 +08:00
min-height: 100%;
2016-07-27 14:15:02 +08:00
}
2016-08-25 15:54:45 +08:00
.container,
.page-container {
width: 960px;
margin: 0 auto;
}
.page-container {
padding-top: 55px;
h2 {
font-size: 28px;
color: #1f2d3d;
margin: 0;
}
h3 {
font-size: 22px;
}
h2, h3, h4, h5 {
font-weight: normal;
color: #1f2f3d;
}
p {
font-size: 14px;
color: #5e6d82;
}
2016-07-27 14:15:02 +08:00
}
.demo {
margin: 20px 0;
}
</style>
<template>
2016-07-27 17:05:28 +08:00
<div id="app">
2016-08-23 14:03:45 +08:00
<main-header></main-header>
2016-08-23 19:15:15 +08:00
<div class="main-cnt">
<router-view></router-view>
</div>
<main-footer></main-footer>
2016-07-27 17:05:28 +08:00
</div>
2016-07-27 14:15:02 +08:00
</template>
<script>
export default {
2016-08-23 19:15:15 +08:00
name: 'app'
2016-07-27 14:15:02 +08:00
};
</script>