app.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. a {
  19. color: #4078c0;
  20. text-decoration: none;
  21. }
  22. .hljs {
  23. padding: 20px 25px;
  24. background-color: #f9fafc;
  25. margin-bottom: 25px;
  26. }
  27. .main-cnt {
  28. margin-top: -80px;
  29. padding: 80px 0 120px;
  30. box-sizing: border-box;
  31. min-height: 100%;
  32. }
  33. .container,
  34. .page-container {
  35. width: 960px;
  36. margin: 0 auto;
  37. }
  38. .page-container {
  39. padding-top: 55px;
  40. h2 {
  41. font-size: 28px;
  42. color: #1f2d3d;
  43. margin: 0;
  44. }
  45. h3 {
  46. font-size: 22px;
  47. }
  48. h2, h3, h4, h5 {
  49. font-weight: normal;
  50. color: #1f2f3d;
  51. }
  52. p {
  53. font-size: 14px;
  54. color: #5e6d82;
  55. }
  56. }
  57. .demo {
  58. margin: 20px 0;
  59. }
  60. </style>
  61. <template>
  62. <div id="app">
  63. <main-header></main-header>
  64. <div class="main-cnt">
  65. <router-view></router-view>
  66. </div>
  67. <main-footer></main-footer>
  68. </div>
  69. </template>
  70. <script>
  71. export default {
  72. name: 'app'
  73. };
  74. </script>