App.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <div id="app" class="fm-design-container">
  3. <router-view/>
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. name: 'app',
  9. methods: {
  10. handleHome () {
  11. this.$router.push({path: '/'})
  12. }
  13. }
  14. }
  15. </script>
  16. <style lang="scss">
  17. .fm-header{
  18. height: 50px;
  19. box-shadow: 0 2px 10px rgba(70,160,252, 0.6);
  20. padding: 0 10px;
  21. background-image: linear-gradient(to right,#1278f6,#00b4aa);
  22. position: relative;
  23. .fm-logo{
  24. height: 26px;
  25. vertical-align: middle;
  26. }
  27. .fm-title{
  28. display: inline-block;
  29. line-height: 50px;
  30. vertical-align: middle;
  31. color: #fff;
  32. font-size: 20px;
  33. font-weight: 600;
  34. opacity: 0.8;
  35. margin-left: 6px;
  36. cursor: pointer;
  37. }
  38. .fm-sub-title{
  39. display: inline-block;
  40. vertical-align: middle;
  41. color: #fff;
  42. font-size: 14px;
  43. opacity: 0.6;
  44. margin-left: 10px;
  45. font-weight: 500;
  46. padding-top: 5px;
  47. }
  48. .fm-link{
  49. height: 50px;
  50. float: right;
  51. a{
  52. color: #fff;
  53. text-decoration: none;
  54. font-size: 14px;
  55. line-height: 50px;
  56. font-weight: 500;
  57. margin-left: 15px;
  58. &:hover{
  59. opacity: 0.8;
  60. }
  61. &.ad{
  62. color: #f5dab1;
  63. }
  64. }
  65. }
  66. }
  67. .fm-container{
  68. height: calc(100% - 50px);
  69. }
  70. *, :after, :before {
  71. -webkit-box-sizing: border-box;
  72. -moz-box-sizing: border-box;
  73. box-sizing: border-box;
  74. }
  75. html,body{
  76. height: 100%;
  77. }
  78. #app {
  79. font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  80. -webkit-font-smoothing: antialiased;
  81. -moz-osx-font-smoothing: grayscale;
  82. color: #2c3e50;
  83. min-height: 100%;
  84. height: 100%;
  85. padding: 10px;
  86. }
  87. </style>