element/examples/app.vue

92 lines
1.5 KiB
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-30 11:30:58 +00:00
a {
color: #4078c0;
text-decoration: none;
}
.hljs {
padding: 20px 25px;
background-color: #f9fafc;
margin-bottom: 25px;
2016-09-07 04:17:16 +00:00
border-radius: 2px;
2016-08-30 11:30:58 +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-25 07:54:45 +00:00
.container,
.page-container {
2016-09-13 12:02:33 +00:00
width: 1140px;
2016-08-25 07:54:45 +00:00
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 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-09-08 10:11:18 +00:00
name: 'app',
created() {
window.addEventListener('hashchange', () => {
document.body.scrollTop = 0;
});
}
2016-07-27 06:15:02 +00:00
};
</script>