app.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <style lang="css">
  2. @import '../node_modules/highlight.js/styles/color-brewer.css';
  3. @import 'assets/styles/common.css';
  4. @import 'assets/styles/fonts/style.css';
  5. html, body {
  6. margin: 0;
  7. padding: 0;
  8. height: 100%;
  9. }
  10. #app {
  11. height: 100%;
  12. }
  13. body {
  14. font-family: 'Helvetica Neue',Helvetica,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',SimSun,sans-serif;
  15. overflow: auto;
  16. font-weight: 300;
  17. }
  18. .main-cnt {
  19. margin-top: -80px;
  20. padding: 80px 0 120px;
  21. box-sizing: border-box;
  22. min-height: 100%;
  23. }
  24. .container,
  25. .page-container {
  26. width: 960px;
  27. margin: 0 auto;
  28. }
  29. .page-container {
  30. padding-top: 55px;
  31. h2 {
  32. font-size: 28px;
  33. color: #1f2d3d;
  34. margin: 0;
  35. }
  36. h3 {
  37. font-size: 22px;
  38. }
  39. h2, h3, h4, h5 {
  40. font-weight: normal;
  41. color: #1f2f3d;
  42. }
  43. p {
  44. font-size: 14px;
  45. color: #5e6d82;
  46. }
  47. }
  48. .demo {
  49. margin: 20px 0;
  50. }
  51. </style>
  52. <template>
  53. <div id="app">
  54. <main-header></main-header>
  55. <div class="main-cnt">
  56. <router-view></router-view>
  57. </div>
  58. <main-footer></main-footer>
  59. </div>
  60. </template>
  61. <script>
  62. export default {
  63. name: 'app'
  64. };
  65. </script>